/* ============================================
   KALENDER HUKUK - Premium Design System
   Modern, Elegant Turkish Law Firm
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Primary - Deep Navy with richer contrast */
  --primary: #091729;
  --primary-light: #152d4f;
  --primary-dark: #040b14;
  --primary-muted: #1e3d66;

  /* Accent - Refined Gold with warmer luminance */
  --accent: #c9a24b;
  --accent-light: #debb6e;
  --accent-dark: #a07e2e;
  --accent-glow: rgba(201, 162, 75, 0.12);
  --accent-shimmer: rgba(201, 162, 75, 0.06);

  /* Neutrals - Warmer tones with deeper contrast */
  --white: #ffffff;
  --off-white: #f9f8f5;
  --cream: #f2f0ea;
  --gray-50: #f5f4f0;
  --gray-100: #e8e5df;
  --gray-200: #cfc9c0;
  --gray-300: #a8a298;
  --gray-400: #7d776c;
  --gray-500: #5c564d;
  --gray-600: #3e3a33;
  --gray-700: #2a2722;
  --gray-800: #161411;

  /* Glass */
  --glass-white: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(9, 23, 41, 0.06);

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing - 8pt rhythm */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Transitions - Elegant easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --transition: all 0.4s var(--ease-out-expo);
  --transition-slow: all 0.7s var(--ease-out-expo);
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows - Layered for depth */
  --shadow-sm: 0 1px 2px rgba(9, 23, 41, 0.03), 0 4px 12px rgba(9, 23, 41, 0.04);
  --shadow-md: 0 2px 4px rgba(9, 23, 41, 0.04), 0 8px 24px rgba(9, 23, 41, 0.06);
  --shadow-lg: 0 4px 8px rgba(9, 23, 41, 0.04), 0 12px 40px rgba(9, 23, 41, 0.08);
  --shadow-xl: 0 8px 16px rgba(9, 23, 41, 0.06), 0 24px 64px rgba(9, 23, 41, 0.1);
  --shadow-glow: 0 0 0 1px var(--accent-shimmer), 0 8px 40px rgba(201, 162, 75, 0.12);

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--gray-600);
  line-height: 1.75;
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); letter-spacing: -0.015em; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }

p {
  margin-bottom: 1rem;
  color: var(--gray-500);
  line-height: 1.75;
  letter-spacing: 0.005em;
}

/* --- Layout --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header h2 {
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}

.section-header .section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header p {
  max-width: 540px;
  margin: 28px auto 0;
  font-size: 1.05rem;
  color: var(--gray-400);
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-expo);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(201, 162, 75, 0.2),
              0 8px 24px rgba(201, 162, 75, 0.15);
}

.btn-primary::before {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  border-radius: inherit;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(201, 162, 75, 0.25),
              0 12px 36px rgba(201, 162, 75, 0.2);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}

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

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* --- Top Bar --- */
.top-bar {
  background: var(--primary-dark);
  color: var(--gray-300);
  padding: 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

.top-bar-left {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-bar-left a,
.top-bar-right a {
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  transition: color 0.3s var(--ease-out-expo);
}

.top-bar-left a:hover,
.top-bar-right a:hover {
  color: var(--accent-light);
}

.top-bar-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.top-bar-right a {
  font-size: 0.9rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.3s var(--ease-out-expo);
}

.top-bar-right a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-light);
}

/* --- Header / Navbar --- */
.header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.5s var(--ease-out-expo);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(2);
  -webkit-backdrop-filter: blur(28px) saturate(2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6),
              0 4px 24px rgba(9, 23, 41, 0.04),
              0 12px 48px rgba(9, 23, 41, 0.03);
  border-bottom: 1px solid rgba(9, 23, 41, 0.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  height: 72px;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity 0.3s var(--ease-out-expo);
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.logo-text span {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 3px;
  opacity: 0.8;
}

/* --- Nav Links --- */
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.03em;
  position: relative;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.3s var(--ease-out-expo),
              background 0.3s var(--ease-out-expo);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out-expo);
  transform-origin: center;
  border-radius: 1px;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(9, 23, 41, 0.03);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

/* --- Nav CTA --- */
.nav-cta {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--gray-100);
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.74rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out-expo);
}

.menu-toggle:hover {
  border-color: var(--gray-200);
  background: var(--gray-50);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s var(--ease-out-expo);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 55%, rgba(21, 45, 79, 0.95) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(30, 61, 102, 0.7) 0%, transparent 55%),
    radial-gradient(circle 40% at 65% 75%, rgba(201, 162, 75, 0.07) 0%, transparent 50%),
    radial-gradient(circle 30% at 40% 20%, rgba(201, 162, 75, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(4, 11, 20, 0.6) 0%, transparent 70%),
    linear-gradient(165deg, var(--primary-dark) 0%, var(--primary) 35%, var(--primary-light) 70%, var(--primary) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="24" height="24" patternUnits="userSpaceOnUse"><circle cx="1" cy="1" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23g)"/></svg>');
  z-index: 1;
  animation: heroShimmer 20s ease-in-out infinite;
}

@keyframes heroShimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.hero h1 .highlight {
  color: var(--accent-light);
  position: relative;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.12rem;
  margin-bottom: 44px;
  max-width: 520px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-decoration {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  z-index: 1;
}

.hero-decoration svg {
  width: 100%;
  height: 100%;
  opacity: 0.04;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 72px;
  padding-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat h3 {
  color: var(--accent-light);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.hero-stat p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 44px 32px;
  text-align: center;
  transition: all 0.5s var(--ease-out-expo);
  border: 1px solid rgba(232, 229, 223, 0.6);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out-expo);
  transform-origin: left;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--accent-shimmer) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 75, 0.12);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s var(--ease-out-expo);
}

.service-card:hover .service-icon {
  background: var(--primary);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(9, 23, 41, 0.15);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon svg {
  fill: var(--accent-light);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--gray-400);
}

.service-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: gap 0.4s var(--ease-out-expo), color 0.3s ease;
}

.service-card .read-more:hover {
  gap: 12px;
  color: var(--accent-dark);
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 180px;
  height: 180px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.4;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  margin-top: 16px;
  border-radius: 2px;
}

.about-content p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 32px 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.about-feature svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* --- Why Us Section --- */
.why-us {
  background: var(--cream);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  text-align: center;
  padding: 44px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  transition: all 0.5s var(--ease-out-expo);
  border: 1px solid rgba(232, 229, 223, 0.5);
}

.why-card:hover {
  box-shadow: var(--shadow-glow);
  border-color: rgba(201, 162, 75, 0.15);
  transform: translateY(-6px);
}

.why-card-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.why-card h4 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1rem;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--gray-400);
}

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(232, 229, 223, 0.6);
  transition: all 0.5s var(--ease-out-expo);
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 75, 0.12);
}

.team-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: var(--cream);
}

.team-photo-placeholder {
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-muted) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo-placeholder svg {
  width: 90px;
  height: 90px;
  fill: rgba(255, 255, 255, 0.15);
}

.team-info {
  padding: 28px;
  text-align: center;
}

.team-info h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.team-info .team-title {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-info p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray-400);
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.team-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cream);
  color: var(--gray-400);
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--accent);
  color: var(--white);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--primary);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 70% 60% at 25% 50%, rgba(21, 45, 79, 0.7) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 75% 50%, rgba(201, 162, 75, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(4, 11, 20, 0.5) 0%, transparent 60%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

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

.cta-section p {
  color: rgba(255, 255, 255, 0.55);
  max-width: 540px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Testimonials --- */
.testimonials {
  background: var(--cream);
}

.testimonial-slider {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.testimonial-item {
  text-align: center;
  padding: 24px;
  display: none;
}

.testimonial-item.active {
  display: block;
}

.testimonial-quote {
  font-size: 1.12rem;
  font-style: italic;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 32px;
  position: relative;
  padding-top: 48px;
  letter-spacing: 0.005em;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 7rem;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  font-family: var(--font-heading);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.testimonial-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 4px;
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(232, 229, 223, 0.6);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.faq-item:hover,
.faq-item.open {
  border-color: rgba(201, 162, 75, 0.15);
  box-shadow: var(--shadow-glow);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent-dark);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: var(--transition);
  opacity: 0.5;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  opacity: 1;
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 28px 24px;
  color: var(--gray-500);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* --- Blog Section --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(232, 229, 223, 0.6);
  transition: all 0.5s var(--ease-out-expo);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 162, 75, 0.12);
}

.blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--cream);
  transition: var(--transition-slow);
}

.blog-card:hover .blog-card-image {
  transform: scale(1.03);
}

.blog-card-content {
  padding: 26px;
}

.blog-card-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.blog-card-content h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.45;
}

.blog-card-content h3 a:hover {
  color: var(--accent-dark);
}

.blog-card-content p {
  font-size: 0.88rem;
  color: var(--gray-400);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 28px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: var(--cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.contact-info-item h4 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--gray-400);
}

.contact-form {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 229, 223, 0.6);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition);
  background: var(--gray-50);
  color: var(--gray-700);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
  background: var(--white);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* --- Map --- */
.map-section {
  width: 100%;
  height: 420px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.85) contrast(1.05);
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: var(--gray-300);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-about .logo-text {
  color: var(--white);
  margin-bottom: 18px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 6px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: all 0.4s var(--ease-out-expo);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

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

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 96px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  transition: all 0.4s var(--ease-out-expo);
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(201, 162, 75, 0.25);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* --- Page Header (Inner Pages) --- */
.page-header {
  background: var(--primary);
  padding: 130px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(21, 45, 79, 0.6) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(201, 162, 75, 0.05) 0%, transparent 40%),
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(21, 45, 79, 0.4) 0%, transparent 50%);
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 800;
}

.page-header .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.4);
}

.page-header .breadcrumb a {
  color: var(--accent-light);
}

.page-header .breadcrumb a:hover {
  text-decoration: underline;
}

/* --- Services Page Layout (single sidebar) --- */
.services-page-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.services-content {
  min-width: 0;
}

/* --- Service Detail --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
}

.service-detail-content h2 {
  margin-bottom: 18px;
}

.service-detail-content p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}

.service-detail-content ul {
  margin: 18px 0;
  padding-left: 20px;
}

.service-detail-content li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--gray-500);
  line-height: 1.7;
}

.service-detail-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-100);
}

.sidebar-widget h4 {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--accent);
  font-size: 0.95rem;
}

.sidebar-links li {
  margin-bottom: 6px;
}

.sidebar-links a {
  display: block;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--gray-500);
  transition: var(--transition);
}

.sidebar-links a:hover,
.sidebar-links a.active {
  background: var(--cream);
  color: var(--accent-dark);
  padding-left: 22px;
}

.sidebar-cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  border-color: var(--primary);
}

.sidebar-cta h4 {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.sidebar-cta p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

/* --- Blog Detail --- */
.blog-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
}

.blog-detail-content {
  min-width: 0;
}

.blog-detail-hero {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  background: var(--cream);
}

.blog-detail-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.blog-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 500;
}

.blog-detail-meta .blog-category {
  background: var(--accent-glow);
  color: var(--accent-dark);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.blog-detail-content h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 28px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.blog-detail-content h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

.blog-detail-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.blog-detail-content h3 {
  font-size: 1.15rem;
  margin-top: 28px;
  margin-bottom: 14px;
}

.blog-detail-content p {
  margin-bottom: 18px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--gray-500);
}

.blog-detail-content ul,
.blog-detail-content ol {
  margin: 18px 0;
  padding-left: 20px;
}

.blog-detail-content li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--gray-500);
  line-height: 1.75;
  font-size: 1rem;
}

.blog-detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.blog-detail-content ol {
  counter-reset: list-counter;
}

.blog-detail-content ol li {
  counter-increment: list-counter;
}

.blog-detail-content ol li::before {
  content: counter(list-counter) '.';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-heading);
}

.blog-detail-content blockquote {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--cream);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--gray-600);
  line-height: 1.8;
}

.blog-detail-content strong {
  color: var(--gray-700);
  font-weight: 600;
}

.blog-share {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-100);
}

.blog-share span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  font-family: var(--font-heading);
  margin-right: 8px;
}

.blog-share a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--gray-400);
  transition: all 0.4s var(--ease-out-expo);
}

.blog-share a:hover {
  background: var(--accent);
  color: var(--white);
}

.blog-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}

.blog-nav-item {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: all 0.4s var(--ease-out-expo);
}

.blog-nav-item:hover {
  border-color: rgba(201, 162, 75, 0.15);
  box-shadow: var(--shadow-sm);
}

.blog-nav-item .blog-nav-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.blog-nav-item .blog-nav-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1.4;
}

.blog-nav-item:last-child {
  text-align: right;
}

/* Blog sidebar widget */
.sidebar-blog-list li {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-blog-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-blog-list a {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.5;
  font-weight: 500;
}

.sidebar-blog-list a:hover {
  color: var(--accent-dark);
}

.sidebar-blog-list .sidebar-blog-date {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-300);
  margin-top: 4px;
}

/* --- 404 Error Page --- */
.error-page {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  overflow: hidden;
  text-align: center;
}

.error-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(21, 45, 79, 0.95) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(201, 162, 75, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(21, 45, 79, 0.4) 0%, transparent 50%),
    linear-gradient(165deg, var(--primary-dark) 0%, var(--primary) 35%, var(--primary-light) 70%, var(--primary) 100%);
  z-index: 1;
}

.error-page-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  z-index: 1;
}

.error-page-bg svg {
  width: 100%;
  height: 100%;
  opacity: 0.03;
  fill: none;
  stroke: white;
  stroke-width: 1.5;
}

.error-page .container {
  position: relative;
  z-index: 2;
}

.error-page-content {
  max-width: 560px;
  margin: 0 auto;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(7rem, 15vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.9;
}

.error-page h1 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 18px;
  font-weight: 700;
}

.error-page p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.error-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.error-links {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
}

.error-links-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  margin-bottom: 16px;
}

.error-links-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.error-links-grid a {
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.error-links-grid a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-light);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out-expo);
  transform-origin: left;
}

.error-links-grid a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .error-page {
    min-height: 60vh;
    padding: 80px 0 60px;
  }

  .error-page-bg {
    width: 300px;
    height: 300px;
  }

  .error-buttons {
    flex-direction: column;
    align-items: center;
  }

  .error-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .error-links-grid {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

/* Stagger delays for grid children */
.services-grid .fade-in:nth-child(1) { transition-delay: 0s; }
.services-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }
.services-grid .fade-in:nth-child(5) { transition-delay: 0.32s; }
.services-grid .fade-in:nth-child(6) { transition-delay: 0.4s; }

.why-us-grid .fade-in:nth-child(1) { transition-delay: 0s; }
.why-us-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.why-us-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.why-us-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }

.blog-grid .fade-in:nth-child(1) { transition-delay: 0s; }
.blog-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.blog-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }

/* Scale-up animation for stats */
.hero-stat {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

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

.fade-in.visible .hero-stat:nth-child(1) { transition-delay: 0.3s; }
.fade-in.visible .hero-stat:nth-child(2) { transition-delay: 0.45s; }
.fade-in.visible .hero-stat:nth-child(3) { transition-delay: 0.6s; }

/* --- Section Dividers --- */
.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gray-100) 20%,
    var(--accent-shimmer) 50%,
    var(--gray-100) 80%,
    transparent 100%
  );
  margin: 0;
  overflow: visible;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--gray-100);
}

/* Alternate divider: simple gradient line */
.section-divider--subtle {
  position: relative;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    var(--gray-100) 50%,
    transparent 95%
  );
  margin: 0;
}

/* --- Responsive Design --- */

/* Switch to hamburger menu before nav overflows (tablets / narrow desktops) */
@media (max-width: 992px) {
  .top-bar {
    display: none;
  }

  .nav-inner {
    height: 64px;
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 28px 24px;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
  }

  .nav-links.open {
    display: flex;
    animation: menuSlideIn 0.35s var(--ease-out-expo);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .nav-links a {
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 1px solid rgba(232, 229, 223, 0.5);
    width: 100%;
    border-radius: 0;
    transition: color 0.25s ease, padding-left 0.25s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-links a:hover {
    color: var(--accent-dark);
    padding-left: 8px;
    background: none;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--primary);
    font-weight: 700;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 24px;
    padding-left: 0;
    border-left: none;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.82rem;
  }

  .menu-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  body.menu-open .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--white);
    transition: none;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .services-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .about-grid {
    gap: 48px;
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-page-layout {
    grid-template-columns: 1fr;
  }

  .service-detail,
  .blog-detail {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .services-sidebar {
    order: -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
  }

  /* Lock body scroll when mobile menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* When menu is open, switch header from sticky to fixed.
     This prevents sticky+backdrop-filter from creating a
     containing block that traps .nav-links position:fixed */
  body.menu-open .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--white);
    transition: none;
  }

  .top-bar {
    display: none;
  }

  .nav-inner {
    height: 64px;
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 28px 24px;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
  }

  .nav-links.open {
    display: flex;
    animation: menuSlideIn 0.35s var(--ease-out-expo);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  @keyframes menuSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links a {
    padding: 16px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 1px solid rgba(232, 229, 223, 0.5);
    width: 100%;
    border-radius: 0;
    transition: color 0.25s ease, padding-left 0.25s ease;
    /* Ensure min 44px touch target */
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-links a:hover {
    color: var(--accent-dark);
    padding-left: 8px;
    background: none;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--primary);
    font-weight: 700;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 24px;
    padding-left: 0;
    border-left: none;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.82rem;
  }

  .menu-toggle {
    display: flex;
    /* Ensure 44px touch target */
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 85vh;
    padding-top: 40px;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
  }

  .hero-stat h3 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    margin-bottom: 0;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-decoration {
    display: none;
  }

  .services-grid,
  .team-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image img {
    height: 240px;
  }

  .about-image-accent {
    display: none;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  /* Team card mobile improvements */
  .team-photo,
  .team-photo-placeholder {
    height: 280px;
  }

  .team-info {
    padding: 24px 20px;
  }

  /* Contact page */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Blog cards */
  .blog-card-image {
    height: 200px;
  }

  .blog-card-content {
    padding: 20px;
  }

  .blog-detail-hero {
    height: 220px;
  }

  .blog-nav {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer {
    padding: 40px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .footer-about {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-about p {
    display: none;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-about .logo-text {
    margin-bottom: 12px;
  }

  .footer h4 {
    font-size: 0.82rem;
    margin-bottom: 14px;
  }

  .footer-links li {
    margin-bottom: 7px;
  }

  .footer-links a {
    font-size: 0.84rem;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
  }

  .footer-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .footer-contact li {
    margin-bottom: 0;
    font-size: 0.84rem;
  }

  .footer-contact li:first-child {
    grid-column: 1 / -1;
  }

  .footer-contact span {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .footer-bottom {
    padding: 18px 0;
    font-size: 0.78rem;
  }

  /* Page header */
  .page-header {
    padding: 100px 0 44px;
  }

  .page-header h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  /* WhatsApp & back to top */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .back-to-top {
    right: 80px;
    bottom: 20px;
  }

  /* CTA section */
  .cta-section {
    padding: 56px 0;
  }

  .cta-section h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Why us */
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why-card {
    padding: 32px 24px;
  }

  .section-header {
    margin-bottom: 44px;
  }

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

  /* Map */
  .map-section {
    height: 280px;
  }

  /* FAQ improvements */
  .faq-question {
    padding: 18px 20px;
    font-size: 0.95rem;
    gap: 12px;
  }

  .faq-answer-inner {
    padding: 0 20px 20px;
    font-size: 0.9rem;
  }

  /* Service detail mobile */
  .service-detail-content h2 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .service-detail-content h2 svg {
    width: 24px !important;
    height: 24px !important;
  }

  /* Sidebar on mobile */
  .sidebar-widget {
    padding: 24px 20px;
  }

  .sidebar-cta .btn {
    padding: 14px 24px;
  }

  /* Testimonials */
  .testimonial-quote {
    font-size: 1rem;
    padding-top: 40px;
  }

  .testimonial-quote::before {
    font-size: 5rem;
    top: -10px;
  }

  /* Inline-style overrides for hakkimizda.html mission/vision cards */
  .about-grid > [style*="padding: 40px"],
  .about-grid > div[style*="padding"] {
    padding: 24px 20px !important;
  }

  /* Hero heading mobile */
  .hero h1 {
    font-size: clamp(1.8rem, 5.5vw, 2.4rem);
    line-height: 1.15;
  }

  /* Logo mobile */
  .logo {
    gap: 10px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .logo-text span {
    font-size: 0.52rem;
    letter-spacing: 0.18em;
  }

  /* Service cards - left-align on full-width mobile */
  .service-card {
    text-align: left;
  }

  .service-icon {
    margin: 0 0 20px 0;
  }

  /* Team info - left-align on full-width mobile */
  .team-info {
    text-align: left;
  }

  .team-social {
    justify-content: flex-start;
  }

  /* Blog detail mobile improvements */
  .blog-detail-content blockquote {
    padding: 18px 20px;
    margin: 20px 0;
  }

  .blog-detail-content h2 {
    font-size: 1.2rem;
  }

  .blog-detail-content p {
    font-size: 0.95rem;
  }

  /* CTA section text sizing */
  .cta-section p {
    font-size: 0.95rem;
  }

  /* Hero stats centered wrap */
  .hero-stats {
    justify-content: center;
  }

  /* Section header mobile */
  .section-header h2 {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
  }

  /* Contact info item wrapping */
  .contact-info-item {
    gap: 14px;
  }

  .contact-info-icon {
    width: 44px;
    height: 44px;
  }

  /* Breadcrumb mobile */
  .page-header .breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 0.92rem;
    margin-bottom: 32px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .hero-stat h3 {
    font-size: 1.8rem;
    margin-bottom: 0;
  }

  .hero-stat p {
    margin: 0;
  }

  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.78rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  /* Footer small mobile */
  .footer-links a {
    font-size: 0.8rem;
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }

  .footer-contact li {
    font-size: 0.78rem;
  }

  /* Service card small mobile */
  .service-card {
    padding: 28px 20px;
  }

  .service-icon {
    width: 56px;
    height: 56px;
  }

  /* Blog card small mobile */
  .blog-card-image {
    height: 180px;
  }

  /* Contact form small mobile */
  .contact-form {
    padding: 20px 16px;
  }

  /* Team photo small mobile */
  .team-photo,
  .team-photo-placeholder {
    height: 240px;
  }

  /* Why card small mobile */
  .why-card {
    padding: 28px 20px;
  }

  .why-card-number {
    font-size: 2.2rem;
  }

  /* Logo small mobile */
  .logo-icon {
    width: 30px;
    height: 30px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .logo-text span {
    font-size: 0.48rem;
  }

  /* Nav inner tighter */
  .nav-inner {
    padding: 0 16px;
  }

  /* Blog detail small mobile */
  .blog-detail-content blockquote {
    padding: 14px 16px;
    margin: 16px 0;
  }

  .blog-detail-content h2 {
    font-size: 1.1rem;
  }

  .blog-detail-content p {
    font-size: 0.92rem;
  }

  /* Page header small mobile */
  .page-header {
    padding: 88px 0 36px;
  }

  .page-header h1 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  /* CTA small mobile */
  .cta-section h2 {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  .cta-section p {
    font-size: 0.88rem;
  }

  /* Error page small mobile */
  .error-code {
    font-size: clamp(5rem, 18vw, 7rem);
  }
}
