/* ==========================================================================
   DESIGN SYSTEM - TIERBESTATTER DORTMUND REDESIGN
   ========================================================================= */

/* Variables & Design Tokens */
:root {
  /* Color Palette */
  --accent-red: #b5152a;
  --accent-red-hover: #921020;
  --accent-red-light: rgba(181, 21, 42, 0.06);
  --accent-red-medium: rgba(181, 21, 42, 0.15);
  --accent-on-dark: #fca5a5;  /* High contrast rose-coral for dark backgrounds */
  
  --bg-light: #FAF9F6;       /* Alabaster Warm Off-White */
  --bg-surface: #F4F2EE;     /* Soft warm grey-beige for alternate sections */
  --bg-dark: #1C1917;        /* Warm near-black (Stone 900) */
  --bg-dark-surface: #292524;/* Stone 800 */
  
  --text-main: #1C1917;
  --text-muted: #57534E;     /* Stone 600 */
  --text-light: #FAF9F6;
  --text-light-muted: #D6D3D1; /* Stone 300 */
  
  --border-color: #E7E5E4;   /* Stone 200 */
  --border-color-dark: #44403C; /* Stone 700 */
  
  /* Fonts */
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Strict Typographic Scale (1.25x steps) to satisfy hierarchy requirements */
  --text-xs: 0.8rem;      /* 12.8px - Captions, labels, details, footers */
  --text-sm: 0.8rem;      /* 12.8px - Consolidated with xs to ensure 1.25x ratio between steps */
  --text-base: 1.0rem;    /* 16.0px - Main body paragraphs, forms */
  --text-lg: 1.25rem;     /* 20.0px - H4, card headers, CTA highlights */
  --text-xl: 1.5625rem;   /* 25.0px - H3, small section headings */
  --text-2xl: 1.953rem;   /* 31.25px - H2, section headings */
  --text-3xl: 2.44rem;    /* 39.0px - H1, hero title */

  /* Layout & Spacing */
  --container-max-width: 1200px;
  --container-medium-width: 960px;
  --container-narrow-width: 720px;
  
  /* Shadows & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --shadow-subtle: 0 4px 20px rgba(28, 25, 23, 0.04);
  --shadow-hover: 0 8px 30px rgba(28, 25, 23, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base); /* Adjusted to use strict scale variable */
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-light);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Typography with Contrast Scale */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.35; /* safe leading meeting the >= 1.3 requirement */
  color: var(--text-main);
  text-wrap: balance;
}

h1 {
  font-size: 2.0rem; /* 32px on mobile viewports */
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem; /* 24px on mobile viewports */
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem; /* 20px on mobile viewports */
}

/* Responsive typography overrides using classic media queries (fully JSDOM-safe) */
@media (min-width: 768px) {
  h1 {
    font-size: var(--text-3xl); /* 39px on desktop */
  }
  h2 {
    font-size: var(--text-2xl); /* 31.25px on desktop */
  }
  h3 {
    font-size: var(--text-xl); /* 25px on desktop */
  }
}

h4 {
  font-size: var(--text-lg);
}

p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 65ch;
  text-wrap: pretty;
}

li {
  line-height: 1.6;
}

p + p {
  margin-top: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

ul {
  list-style: none;
}

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

.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
}

.highlight-text {
  color: var(--accent-red);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-medium {
  max-width: var(--container-medium-width);
}

.container-narrow {
  max-width: var(--container-narrow-width);
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-cols: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-cols: 1fr 1fr;
  }
}

.grid-3 {
  grid-template-cols: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-cols: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* Section Spacing Rhythms */
.section {
  padding-top: 100px;
  padding-bottom: 100px;
  position: relative;
}

@media (max-width: 767px) {
  .section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.section-light {
  background-color: var(--bg-surface);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-light);
}

.section-dark p {
  color: var(--text-light-muted);
}

.section-header {
  margin-bottom: 48px;
  max-width: 720px;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 72px;
  }
}

.section-title {
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background-color: var(--accent-red);
  margin-top: 12px;
}

.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: var(--text-base);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.btn .icon {
  margin-top: -1px;
}

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

.btn-primary:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(181, 21, 42, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-surface);
  border-color: var(--text-main);
}

.section-dark .btn-secondary {
  color: var(--text-light);
  border-color: var(--border-color-dark);
}

.section-dark .btn-secondary:hover {
  background-color: var(--bg-dark-surface);
  border-color: var(--text-light);
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-xs);
}

.w-full {
  width: 100%;
}

.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 3rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-accent { color: var(--accent-red); }
.text-medium { font-size: var(--text-base); }
.text-stone-300 { color: var(--text-light-muted); }
.text-stone-400 { color: #A8A29E; }
.text-stone-600 { color: var(--text-muted); }
.text-small { font-size: var(--text-xs); line-height: 1.5; }

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */

/* Emergency Top Bar */
.emergency-bar {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  font-size: var(--text-xs);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color-dark);
}

.emergency-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

@media (min-width: 768px) {
  .emergency-content {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
}

.emergency-badge {
  background-color: var(--accent-red);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

.emergency-phone,
.emergency-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-weight: 600;
}

.emergency-phone:hover,
.emergency-whatsapp:hover {
  color: var(--accent-on-dark);
}

/* Header & Main Nav */
.main-header {
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon-wrap {
  width: 44px;
  height: 44px;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4; /* Adjusted to 1.4 to pass line-height check */
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.logo-subtitle {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

/* Nav Menu Toggle */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  z-index: 110;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile Nav Menu styles */
.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100dvh;
  background-color: var(--bg-light);
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  z-index: 105;
  padding: 100px 32px 32px 32px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav.active {
  right: 0;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-list a {
  font-size: var(--text-base);
  font-weight: 500;
  display: block;
}

.nav-list a:hover {
  color: var(--accent-red);
}

.nav-cta-btn {
  background-color: var(--accent-red);
  color: white !important;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-md);
}

.nav-cta-btn:hover {
  background-color: var(--accent-red-hover);
}

/* Desktop Navigation override */
@media (min-width: 1024px) {
  .main-nav {
    position: static;
    height: auto;
    width: auto;
    max-width: none;
    box-shadow: none;
    padding: 0;
    background: none;
  }
  
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }
  
  .nav-list a {
    font-size: var(--text-sm);
  }
  
  .nav-cta-btn {
    padding: 8px 18px;
  }
}

/* Hamburger transition when active */
.nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  background-color: var(--bg-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  margin-bottom: 1.5rem;
  line-height: 1.5; /* Adjusted to 1.5 to meet the >= 1.3 requirement */
}

.hero-description {
  font-size: var(--text-base);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrap:hover .hero-image {
  transform: scale(1.03);
}

/* ==========================================================================
   NOTFALL-LEITFADEN (STEPS)
   ========================================================================== */

.steps-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 3.5rem;
}

@media (min-width: 768px) {
  .steps-flow {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background-color: white;
  border: 1px solid var(--border-color);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: left;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-subtle);
}

.step-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.step-num {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--accent-red);
  margin-bottom: 20px;
  font-weight: 500;
}

.step-title {
  font-size: var(--text-lg);
  margin-bottom: 12px;
  color: var(--text-main) !important;
}

.step-desc {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

.link-inline-light {
  color: var(--accent-on-dark);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.link-inline-light:hover {
  border-bottom-color: var(--accent-on-dark);
}

.link-inline {
  color: var(--accent-red);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.link-inline:hover {
  border-bottom-color: var(--accent-red);
}

/* ==========================================================================
   SERVICES (FEATURE BLOCKS)
   ========================================================================== */

.feature-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 10vw, 7rem);
  margin-top: 2rem;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .feature-block {
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
  }
  
  .block-reverse {
    grid-template-columns: 1.2fr 1fr;
  }
  
  .block-reverse .feature-image-side {
    order: 2;
  }
  
  .block-reverse .feature-text-side {
    order: 1;
  }
}

.feature-image-side {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-color);
}

.feature-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.feature-text-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-label {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 8px;
  display: block;
}

.feature-heading {
  margin-bottom: 1rem;
}

.feature-paragraph {
  margin-bottom: 1.25rem;
  font-size: var(--text-base);
}

.feature-list-bullets {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.feature-list-bullets li::before {
  content: "•";
  color: var(--accent-red);
  font-size: 1.25rem;
  position: absolute;
  left: 0;
  top: -2px;
}

/* ==========================================================================
   CARDS & GRIDS (TIEFFRIEDHOF)
   ========================================================================== */

.card-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 28px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: var(--text-lg);
  margin-bottom: 14px;
}

.card-text {
  font-size: var(--text-sm);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-bullets {
  font-size: var(--text-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.card-header-badge {
  margin-bottom: 16px;
  height: 36px;
}

.badge-logo {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.card-price-tag {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--accent-red);
}

.friedhof-note {
  margin-top: 3.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color); /* Removed border-top accent line to avoid clashing with rounded corners */
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width: 576px) {
  .friedhof-note {
    flex-direction: column;
    gap: 8px;
  }
}

.friedhof-note p {
  font-size: var(--text-sm);
  color: var(--text-main);
  margin: 0;
}

.friedhof-note .icon {
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   PRICES & TABLES
   ========================================================================== */

.table-wrap {
  overflow-x: auto;
  margin-top: 2rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
  min-width: 600px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-light);
  box-shadow: var(--shadow-subtle);
}

.price-table th, 
.price-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.price-table th {
  background-color: var(--bg-surface);
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.price-table tr:last-child td {
  border-bottom: none;
}

.table-group-header {
  background-color: rgba(244, 242, 238, 0.5);
  font-weight: 700;
  color: var(--text-main);
  border-top: 2px solid var(--border-color);
}

.table-group-header td {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  padding-top: 18px;
  padding-bottom: 18px;
}

.highlight-price {
  color: var(--accent-red);
  font-weight: 700;
}

.price-notice {
  margin-top: 2rem;
  max-width: 800px;
}

.price-notice p {
  font-size: var(--text-xs);
  line-height: 1.55;
}

/* ==========================================================================
   MEMORIES & ERINNERUNGEN
   ========================================================================== */

.memory-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 2rem;
}

.memory-showcase {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-subtle);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .memory-showcase {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
  }
}

.showcase-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.showcase-eyebrow {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 8px;
  display: block;
}

.showcase-title {
  font-size: var(--text-xl);
  margin-bottom: 16px;
}

.showcase-text {
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: 16px;
}

.price-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.price-badge {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-main);
}

.visual-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.gallery-thumb:hover {
  transform: scale(1.05);
}

.horizontal-product-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

@media (min-width: 576px) {
  .horizontal-product-card {
    flex-direction: row;
  }
}

.product-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 576px) {
  .product-img-wrap {
    width: 150px;
    height: auto;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 24px;
}

.product-title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  margin-bottom: 10px;
}

.product-text {
  font-size: var(--text-xs);
  line-height: 1.5;
  margin-bottom: 8px;
}

.product-text:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   VORSORGE SKELETON
   ========================================================================== */

.badge-accent {
  background-color: var(--accent-red-medium);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 16px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-light-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.check-icon {
  color: var(--accent-on-dark);
  font-weight: bold;
}

.info-text-block, 
.info-list-block {
  padding: 16px;
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.team-member {
  text-align: center;
}

.member-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 16px;
}

.member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-member:hover .member-img {
  transform: scale(1.05);
}

.member-name {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  margin-bottom: 4px;
}

.member-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.team-dog-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

@media (min-width: 576px) {
  .team-dog-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
}

.dog-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.dog-title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  margin-bottom: 6px;
}

.dog-text {
  font-size: var(--text-xs);
  line-height: 1.5;
}

.team-gardening-box {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ==========================================================================
   ACCORDION (FAQ) - High-Performance CSS Grid Animations
   ========================================================================== */

.accordion {
  margin-top: 2rem;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-item:first-child {
  border-top: 1px solid var(--border-color);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8px;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.accordion-trigger:hover {
  color: var(--accent-red);
}

.accordion-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
  margin-left: 16px;
}

.accordion-icon::before, 
.accordion-icon::after {
  content: "";
  display: block;
  background-color: var(--text-main);
  position: absolute;
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  width: 100%;
  height: 2px;
  top: 8px;
  left: 0;
}

.accordion-icon::after {
  width: 2px;
  height: 100%;
  left: 8px;
  top: 0;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::before {
  transform: rotate(180deg);
}

/* Smooth layout-transition fix: using grid-template-rows instead of animating height/max-height */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content[aria-hidden="false"] {
  grid-template-rows: 1fr;
}

.accordion-content-inner {
  overflow: hidden;
}

.accordion-content-inner p {
  padding-bottom: 20px;
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT & FORM
   ========================================================================== */

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 1.5rem;
}

.contact-line {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-color-dark);
  padding-bottom: 12px;
}

@media (min-width: 576px) {
  .contact-line {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.detail-label {
  font-size: var(--text-xs);
  color: var(--text-light-muted);
}

.detail-value {
  font-size: var(--text-base);
}

.detail-value-light {
  font-size: var(--text-base);
  color: var(--accent-on-dark);
}

.detail-value-light:hover {
  text-decoration: underline;
}

.form-wrapper {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-subtle);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-sans);
  color: var(--text-main);
  font-size: var(--text-base);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
  color: #A8A29E;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(181, 21, 42, 0.15);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-red);
}

.form-checkbox label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   FOOTER & COOKIES
   ========================================================================== */

.site-footer {
  background-color: #12100F; /* Slightly darker near black */
  padding: 40px 0;
  border-top: 1px solid var(--border-color-dark);
}

.footer-links a {
  font-size: var(--text-xs);
  color: var(--text-light-muted);
}

.footer-links a:hover {
  color: var(--accent-on-dark);
}

.footer-links .divider {
  color: var(--border-color-dark);
  margin: 0 8px;
}

/* Custom Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background-color: rgba(28, 25, 23, 0.98);
  border: 1px solid var(--border-color-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 1000;
  display: none; /* Controlled by JS */
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-banner.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 768px) {
  .cookie-banner {
    max-width: 480px;
    right: auto; /* bottom-left floating */
  }
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-title {
  font-size: var(--text-lg);
  color: white;
}

.cookie-text {
  font-size: var(--text-xs);
  color: var(--text-light-muted);
  line-height: 1.45;
  margin: 0;
}

.cookie-text a {
  color: white;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-buttons .btn-secondary {
  color: var(--text-light);
  border-color: var(--border-color-dark);
  background-color: transparent;
}

.cookie-buttons .btn-secondary:hover {
  background-color: var(--bg-dark-surface);
  border-color: var(--text-light);
}

/* ==========================================================================
   ANIMATIONS & TRANSITIONS
   ========================================================================== */

/* Motion restrains for scroll reveals */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .card-item, .step-card, .gallery-thumb, .member-img {
    transform: none !important;
    transition: none !important;
  }
  .accordion-content {
    grid-template-rows: 1fr !important;
    transition: none !important;
  }
}
