/* TB Kitap — Style v2.0 | Optimized for Core Web Vitals */
/* Critical: Above-the-fold styles loaded first */

/* TB Kitap - Main Stylesheet */
/* Color Palette: Warm earth tones - sahaf/bookstore vibe */

:root {
  /* Brand Colors */
  --brown-deep: #3E2723;
  --brown-medium: #5D4037;
  --brown-light: #8D6E63;
  --amber: #F57F17;
  --amber-light: #FFB300;
  --cream: #FFF8E1;
  --off-white: #FAFAFA;
  --green-cta: #2E7D32;
  --green-cta-hover: #1B5E20;
  --green-light: #4CAF50;
  --text-dark: #212121;
  --text-medium: #424242;
  --text-light: #757575;
  --border-color: #E0D5C1;
  --shadow-warm: rgba(62, 39, 35, 0.1);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  
  /* Sizes */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.775rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.4rem + 2.5vw, 2.75rem);
  --text-hero: clamp(2.25rem, 1.5rem + 4vw, 3.75rem);
  
  --max-width: 1200px;
  --content-width: 800px;
  --header-height: 72px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --brown-deep: #EFEBE9;
    --brown-medium: #D7CCC8;
    --brown-light: #BCAAA4;
    --cream: #1A1410;
    --off-white: #121212;
    --text-dark: #EFEBE9;
    --text-medium: #D7CCC8;
    --text-light: #A1887F;
    --border-color: #3E2723;
    --shadow-warm: rgba(0, 0, 0, 0.3);
  }
}

[data-theme="dark"] {
  --brown-deep: #EFEBE9;
  --brown-medium: #D7CCC8;
  --brown-light: #BCAAA4;
  --cream: #1A1410;
  --off-white: #121212;
  --text-dark: #EFEBE9;
  --text-medium: #D7CCC8;
  --text-light: #A1887F;
  --border-color: #3E2723;
  --shadow-warm: rgba(0, 0, 0, 0.3);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--amber-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brown-deep);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: var(--text-hero); margin-bottom: var(--space-lg); }
h2 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--text-xl); margin-bottom: var(--space-md); }
h4 { font-size: var(--text-lg); margin-bottom: var(--space-sm); }

p { margin-bottom: var(--space-md); color: var(--text-medium); }

ul, ol { margin-bottom: var(--space-md); padding-left: var(--space-xl); color: var(--text-medium); }
li { margin-bottom: var(--space-xs); }

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--green-cta);
  color: white;
  padding: var(--space-sm) var(--space-md);
  z-index: 1000;
  border-radius: 4px;
}
.skip-link:focus {
  top: var(--space-md);
  color: white;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

[data-theme="dark"] .site-header {
  background: rgba(18, 18, 18, 0.95);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px var(--shadow-warm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--brown-deep);
  text-decoration: none;
}

.logo:hover { color: var(--amber); }

.logo svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.main-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-medium);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width var(--transition-base);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brown-deep);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--off-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: var(--space-sm) 0;
  min-width: 220px;
  box-shadow: 0 8px 32px var(--shadow-warm);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.nav-dropdown-content a::after { display: none; }

.nav-dropdown-content a:hover {
  background: var(--cream);
}

.header-cta {
  background: var(--green-cta);
  color: white !important;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.header-cta:hover {
  background: var(--green-cta-hover);
  color: white !important;
  transform: translateY(-1px);
}

.header-cta::after { display: none !important; }

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--brown-deep);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--off-white);
  z-index: 99;
  padding: var(--space-xl);
  overflow-y: auto;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--text-lg);
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav .mobile-sub {
  padding-left: var(--space-lg);
}

.mobile-nav .mobile-sub a {
  font-size: var(--text-base);
  color: var(--text-medium);
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
}

/* Dark mode toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--cream);
  color: var(--amber);
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-xs);
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span { margin: 0 var(--space-xs); }

/* ===== HERO SECTIONS ===== */
.hero {
  background: linear-gradient(135deg, var(--brown-deep) 0%, #4E342E 50%, #3E2723 100%);
  color: white;
  padding: clamp(var(--space-3xl), 8vw, var(--space-4xl)) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #1A1410 0%, #2C1810 50%, #1A1410 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-md);
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-home {
  padding: clamp(var(--space-4xl), 12vw, 10rem) var(--space-lg);
}

.hero-home h1 {
  font-size: var(--text-hero);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--green-cta-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: white;
}

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

.btn-amber:hover {
  background: var(--amber-light);
  color: var(--brown-deep);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--green-cta);
  border: 2px solid var(--green-cta);
}

.btn-outline:hover {
  background: var(--green-cta);
  color: white;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(var(--space-3xl), 6vw, var(--space-4xl)) var(--space-lg);
}

.section-alt {
  background: var(--cream);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header p {
  max-width: 600px;
  margin: var(--space-sm) auto 0;
  font-size: var(--text-lg);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: var(--space-sm);
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: var(--off-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-warm);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--cream);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.card h3 a {
  color: var(--brown-deep);
}

.card h3 a:hover {
  color: var(--amber);
}

/* Service Card */
.service-card {
  text-align: center;
  padding: var(--space-2xl);
}

.service-card .card-icon {
  margin: 0 auto var(--space-md);
  width: 64px;
  height: 64px;
  font-size: 2rem;
}

/* District Card */
.district-card {
  display: flex;
  flex-direction: column;
}

.district-card h3 {
  font-size: var(--text-lg);
}

.district-card .card-link {
  margin-top: auto;
  padding-top: var(--space-md);
  font-weight: 600;
  color: var(--green-cta);
  font-size: var(--text-sm);
}

.district-card .card-link:hover {
  color: var(--amber);
}

/* ===== STATS ===== */
.stats-bar {
  background: var(--brown-deep);
  color: white;
  padding: var(--space-2xl) var(--space-lg);
}

[data-theme="dark"] .stats-bar {
  background: #2C1810;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--amber);
  display: block;
}

.stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  margin-top: var(--space-xs);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--off-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: var(--space-xl);
}

.testimonial-stars {
  color: var(--amber);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  color: var(--brown-deep);
  font-size: var(--text-sm);
}

.testimonial-location {
  font-size: var(--text-xs);
  color: var(--text-light);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: var(--content-width);
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-lg) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--brown-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  line-height: 1.4;
}

.faq-question::after {
  content: '+';
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--amber);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-answer-inner {
  padding-bottom: var(--space-lg);
  color: var(--text-medium);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-xl);
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber);
  color: white;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 auto var(--space-md);
}

.process-step h3 {
  font-size: var(--text-lg);
}

/* ===== CONTENT PAGES ===== */
.page-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.page-content h2 {
  margin-top: var(--space-2xl);
}

.page-content h3 {
  margin-top: var(--space-xl);
}

.page-content ul, .page-content ol {
  margin-bottom: var(--space-lg);
}

.page-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.content-wide {
  max-width: var(--max-width);
}

/* Callout box */
.callout {
  background: var(--cream);
  border-left: 4px solid var(--amber);
  padding: var(--space-lg) var(--space-xl);
  border-radius: 0 8px 8px 0;
  margin: var(--space-xl) 0;
}

.callout p:last-child { margin-bottom: 0; }

/* Content table */
.content-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: var(--text-sm);
}

.content-table th {
  background: var(--brown-deep);
  color: white;
  padding: var(--space-md);
  text-align: left;
  font-family: var(--font-display);
}

[data-theme="dark"] .content-table th {
  background: #3E2723;
  color: var(--cream);
}

.content-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-medium);
}

.content-table tr:hover td {
  background: var(--cream);
}

/* ===== BLOG CARDS ===== */
.blog-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-warm);
}

.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--brown-deep), var(--brown-medium));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-content {
  padding: var(--space-xl);
}

.blog-card-meta {
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.blog-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.blog-card h3 a {
  color: var(--brown-deep);
}

.blog-card h3 a:hover {
  color: var(--amber);
}

.blog-card p {
  font-size: var(--text-sm);
  color: var(--text-light);
}

/* Article */
.article-meta {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: var(--space-xl);
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.article-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--amber);
  padding: var(--space-xs) var(--space-md);
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--green-cta), #1B5E20);
  color: white;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: white;
  color: var(--green-cta);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--cream);
  color: var(--green-cta-hover);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--brown-deep);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

[data-theme="dark"] .site-footer {
  background: #0D0907;
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer-brand .logo {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  max-width: 300px;
}

.footer-col h4 {
  color: white;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--amber);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-2xl) auto 0;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: var(--amber);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--amber);
  color: white;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 200;
  background: #25D366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--brown-deep);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--off-white);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 127, 23, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== RELATED LINKS ===== */
.related-section {
  background: var(--cream);
  padding: var(--space-2xl);
  border-radius: 12px;
  margin-top: var(--space-3xl);
}

.related-section h3 {
  margin-bottom: var(--space-lg);
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.related-links a {
  display: block;
  padding: var(--space-md);
  background: var(--off-white);
  border-radius: 8px;
  color: var(--text-medium);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.related-links a:hover {
  color: var(--amber);
  transform: translateX(4px);
}

/* ===== TWO COLUMN LAYOUT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder {
  background: var(--cream);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: var(--text-lg);
}

/* ===== ABOUT PAGE ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.value-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .card-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: var(--text-2xl); }
}

/* ===== PRINT ===== */
@media print {
  .site-header, .site-footer, .whatsapp-float, .cta-section { display: none; }
  .hero { padding: var(--space-lg); background: none; color: black; }
  .hero h1, .hero p { color: black; }
}

/* Internal link highlight */
.text-link {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.text-link:hover {
  color: var(--green-cta);
}

/* District grid for homepage */
.district-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.district-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--off-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-medium);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.district-link:hover {
  background: var(--cream);
  color: var(--amber);
  border-color: var(--amber);
  transform: translateY(-2px);
}

.district-link::before {
  content: '📍';
  flex-shrink: 0;
}
