/* ==========================================================================
   STYLE.CSS - Core Design System
   Brand: Dani Dienstleistungen, Peggau / Graz-Umgebung
   Tone: Grounded Styrian household service — warm, local, photographic
   ========================================================================== */

:root {
  --color-primary: #1f3a2e;
  --color-primary-light: #2d5343;
  --color-primary-hover: #162a22;

  --color-accent: #b85c38;
  --color-accent-hover: #9a4b2d;
  --color-accent-light: #f8eee8;

  --color-whatsapp: #0d6b4a;
  --color-whatsapp-hover: #0a5a3e;
  --color-whatsapp-dark: #08543a;

  --color-bg: #f7f4ee;
  --color-surface: #ffffff;
  --color-surface-subtle: #efebe3;
  --color-border: #ddd6c8;
  --color-border-hover: #c9c0ae;

  --color-text-main: #1a1f1c;
  --color-text-muted: #5c675f;
  --color-text-light: #7a857e;
  --color-text-white: #ffffff;

  --shadow-xs: 0 1px 2px 0 rgba(31, 58, 46, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(31, 58, 46, 0.06);
  --shadow-md: 0 6px 12px -2px rgba(31, 58, 46, 0.08);
  --shadow-lg: 0 12px 20px -4px rgba(31, 58, 46, 0.1);
  --shadow-accent: 0 4px 10px rgba(184, 92, 56, 0.25);
  --shadow-whatsapp: 0 4px 10px rgba(37, 211, 102, 0.25);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --container-max: 1200px;
  --container-pad: 1rem;
  --header-height: 64px;
  --mobile-bar-height: 56px;

  --font-heading: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
  hyphens: none;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.2;
}

@media (min-width: 768px) {
  :root {
    --container-pad: 1.5rem;
    --header-height: 74px;
  }
}

h1 { font-size: clamp(1.85rem, 6.5vw, 3.35rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.35rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.45rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--color-text-muted);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  min-width: 0;
}

.section {
  padding-block: 3rem;
}

@media (min-width: 768px) {
  .section {
    padding-block: 4.25rem;
  }
}

@media (min-width: 992px) {
  .section {
    padding-block: 5rem;
  }
}

.section-subtle {
  background-color: var(--color-surface-subtle);
  border-block: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-block-end: 2rem;
  min-width: 0;
  padding-inline: 0.15rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-block-end: 3.5rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.badge-accent {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
}

.badge-primary {
  background-color: rgba(31, 58, 46, 0.08);
  color: var(--color-primary);
}

.section-header h2 {
  margin-block: 0.75rem 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  white-space: nowrap;
  min-height: 48px;
  text-align: center;
  font-family: var(--font-body);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text-white);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -6px rgba(184, 92, 56, 0.4);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-text-white);
  box-shadow: var(--shadow-whatsapp);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -6px rgba(37, 211, 102, 0.45);
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background-color: var(--color-primary);
  color: var(--color-text-white);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  top: 0.75rem;
}

body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 599px) {
  .btn {
    white-space: normal;
  }
}

@media (hover: none) {
  .btn-accent:hover,
  .btn-primary:hover,
  .btn-outline:hover,
  .btn-whatsapp:hover {
    transform: none;
  }
}
