/* ============================================
   RENOVAPRO — Global Styles
   Premium Home Renovation Website
   ============================================ */

/* Google Fonts imported via HTML */

:root {
  /* Brand Colors */
  --primary:        #C9A84C;
  --primary-dark:   #A07830;
  --primary-light:  #E8D18A;
  --primary-glow:   rgba(201,168,76,0.25);
  --secondary:      #1A2744;
  --secondary-light:#243356;
  --accent:         #F0E6D0;
  --dark:           #0D1520;
  --light:          #FAF8F5;
  --white:          #FFFFFF;
  --black:          #000000;

  /* Grays */
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;
  --text-8xl:  6rem;

  /* Spacing */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.25rem;  --sp-6: 1.5rem;
  --sp-8: 2rem;     --sp-10: 2.5rem;  --sp-12: 3rem;
  --sp-16: 4rem;    --sp-20: 5rem;    --sp-24: 6rem;
  --sp-32: 8rem;    --sp-40: 10rem;

  /* Border Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 30px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.06);
  --shadow-xl:   0 20px 40px rgba(0,0,0,0.14), 0 8px 20px rgba(0,0,0,0.08);
  --shadow-2xl:  0 30px 60px rgba(0,0,0,0.20);
  --shadow-gold: 0 8px 32px rgba(201,168,76,0.35);
  --shadow-dark: 0 20px 60px rgba(13,21,32,0.5);

  /* Transitions */
  --t-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --t-base:   300ms cubic-bezier(0.4,0,0.2,1);
  --t-slow:   500ms cubic-bezier(0.4,0,0.2,1);
  --t-slower: 800ms cubic-bezier(0.4,0,0.2,1);
  --t-spring: 400ms cubic-bezier(0.34,1.56,0.64,1);

  /* Z-index scale */
  --z-below:    -1;
  --z-base:      0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-preloader:1000;

  /* Layout */
  --container: 1280px;
  --nav-h:     80px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; outline: none; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-preloader);
  transform: translate(-50%, -50%);
  transition: transform var(--t-fast), width var(--t-base), height var(--t-base), opacity var(--t-base);
  mix-blend-mode: normal;
}
.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: calc(var(--z-preloader) - 1);
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width var(--t-base), height var(--t-base), opacity var(--t-base), border-color var(--t-base);
  opacity: 0.7;
}
.cursor.hovering    { width: 6px; height: 6px; }
.cursor-follower.hovering { width: 52px; height: 52px; background: var(--primary-glow); border-color: var(--primary); opacity: 0.5; }
.cursor.clicking    { transform: translate(-50%,-50%) scale(0.7); }
.cursor-follower.clicking { transform: translate(-50%,-50%) scale(0.85); }

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: var(--z-preloader);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity var(--t-slow), visibility var(--t-slow);
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
  opacity: 0;
  animation: fadeInUp 0.8s 0.2s forwards;
}
.preloader-logo .logo-mark {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.preloader-logo .logo-name {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.preloader-logo .logo-name span { color: var(--primary); }
.preloader-track {
  width: 280px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.5s 0.6s forwards;
}
.preloader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
  border-radius: var(--r-full);
  width: 0%;
  transition: width 0.1s linear;
}
.preloader-text {
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--gray-400);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.5s 0.8s forwards;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--secondary);
  font-weight: 700;
}
.display-xl  { font-size: clamp(3.5rem, 8vw, var(--text-8xl)); letter-spacing: -2px; }
.display-lg  { font-size: clamp(2.8rem, 6vw, var(--text-7xl)); letter-spacing: -1.5px; }
.display-md  { font-size: clamp(2.2rem, 4.5vw, var(--text-6xl)); letter-spacing: -1px; }
.display-sm  { font-size: clamp(1.8rem, 3.5vw, var(--text-5xl)); letter-spacing: -0.5px; }
.heading-xl  { font-size: clamp(1.5rem, 2.5vw, var(--text-4xl)); }
.heading-lg  { font-size: clamp(1.25rem, 2vw, var(--text-3xl)); }
.heading-md  { font-size: var(--text-2xl); }
.heading-sm  { font-size: var(--text-xl); }
.italic      { font-style: italic; color: var(--primary); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white  { color: var(--white); }
.text-gray   { color: var(--gray-500); }

/* Section label */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-4);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--primary);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}
.container-sm {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
}
.section { padding: var(--sp-24) 0; }
.section-lg { padding: var(--sp-32) 0; }
.section-sm { padding: var(--sp-16) 0; }

.grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-8); }

.flex     { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.text-center { text-align: center; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: var(--z-sticky);
  transition: background var(--t-base), box-shadow var(--t-base), height var(--t-base);
}
.navbar.scrolled {
  background: rgba(26,39,68,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  height: 68px;
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-8);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo .logo-mark {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  transition: transform var(--t-spring), box-shadow var(--t-base);
}
.nav-logo:hover .logo-mark { transform: rotate(-5deg) scale(1.1); box-shadow: var(--shadow-gold); }
.nav-logo .logo-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.nav-logo .logo-name span { color: var(--primary); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  transition: color var(--t-base), background var(--t-base);
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--primary);
  border-radius: var(--r-full);
  transition: left var(--t-base), right var(--t-base);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { left: var(--sp-3); right: var(--sp-3); }
.nav-link.active { color: var(--primary); }

/* Shown in hamburger/tablet menu only; desktop uses .nav-cta */
@media (min-width: 1025px) {
  .nav-link--quote-mobile { display: none !important; }
}

.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  min-width: 200px;
  box-shadow: var(--shadow-2xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base);
  pointer-events: none;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.dropdown-menu a {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  border-radius: var(--r-md);
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-base);
}
.dropdown-menu a:hover {
  background: rgba(201,168,76,0.12);
  color: var(--primary);
  padding-left: var(--sp-6);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--primary);
  color: var(--dark);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: background var(--t-base), transform var(--t-spring), box-shadow var(--t-base);
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.nav-cta:active { transform: translateY(0); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: var(--r-full);
  transition: transform var(--t-base), opacity var(--t-base), width var(--t-base);
}
.nav-toggle span:nth-child(2) { width: 70%; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--r-full);
  cursor: none;
  transition: all var(--t-base);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform var(--t-slow);
}
.btn:hover::before { transform: translateX(100%) skewX(-15deg); }

.btn-primary {
  background: var(--primary);
  color: var(--dark);
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.btn-primary:active { transform: translateY(-1px); }

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}
.btn-secondary:hover { background: var(--secondary-light); transform: translateY(-3px); box-shadow: var(--shadow-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

.btn-outline-dark {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn-outline-dark:hover { background: var(--secondary); color: var(--white); transform: translateY(-3px); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); transform: translateY(-3px); }

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

.btn-icon {
  width: 48px; height: 48px;
  padding: 0;
  border-radius: 50%;
}
.btn-icon-sm { width: 38px; height: 38px; }

/* ============================================
   HERO SECTIONS (page heroes)
   ============================================ */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--secondary);
  overflow: hidden;
  padding-top: var(--nav-h);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 50%, #2C3E6A 100%);
}

/* ── Video Hero Background ─────────────────── */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.38;
  pointer-events: none;
}
.page-hero.has-video .page-hero-bg {
  background: linear-gradient(160deg, rgba(10,14,24,0.88) 0%, rgba(26,39,68,0.82) 60%, rgba(18,28,52,0.90) 100%);
  z-index: 1;
}
.page-hero.has-video .page-hero-pattern { z-index: 2; }
.page-hero.has-video .page-hero-grid    { z-index: 2; }
.page-hero.has-video .page-hero-content { z-index: 3; }
.page-hero.has-video .parallax-bg       { z-index: 0; opacity: 0 !important; }
.page-hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.06) 0%, transparent 50%);
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-8);
  text-align: center;
}
.page-hero-content h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  margin-bottom: var(--sp-4);
}
.page-hero-content h1 span { color: var(--primary); }
.page-hero-content p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto var(--sp-6);
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  margin-top: var(--sp-4);
}
.breadcrumb a { color: var(--primary); transition: opacity var(--t-fast); }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.card-body { padding: var(--sp-6); }
.card-img { width: 100%; height: 220px; object-fit: cover; }

/* Service card */
.service-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.service-card:hover { transform: translateY(-10px) rotateX(2deg); box-shadow: var(--shadow-xl); border-color: var(--primary-light); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: calc(100% + 4rem);
  height: 200px;
  margin: -2rem -2rem 1.5rem;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  overflow: hidden;
  display: block;
  position: relative;
}
.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.service-card:hover .service-icon { transform: none; }
.service-card:hover .service-icon img { transform: scale(1.06); }
.service-card h3 { font-size: var(--text-xl); margin-bottom: var(--sp-3); color: var(--secondary); }
.service-card p { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.7; }
.service-card .card-link {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: var(--text-sm); font-weight: 600; color: var(--primary);
  margin-top: var(--sp-5);
  transition: gap var(--t-base);
}
.service-card:hover .card-link { gap: var(--sp-2); }

/* Portfolio card */
.portfolio-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  background: var(--secondary);
  cursor: none;
}
.portfolio-card img {
  width: 100%; height: 280px;
  object-fit: cover;
  transition: transform var(--t-slow), filter var(--t-slow);
}
.portfolio-card:hover img { transform: scale(1.08); filter: brightness(0.6); }
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,21,32,0.9) 0%, transparent 60%);
  transition: background var(--t-base);
}
.portfolio-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--sp-6);
  transform: translateY(8px);
  transition: transform var(--t-base);
}
.portfolio-card:hover .portfolio-card-content { transform: translateY(0); }
.portfolio-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(201,168,76,0.15);
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-2);
  border: 1px solid rgba(201,168,76,0.3);
}
.portfolio-card-content h3 { color: var(--white); font-size: var(--text-lg); margin-bottom: var(--sp-1); }
.portfolio-card-content p { color: rgba(255,255,255,0.6); font-size: var(--text-sm); }
.portfolio-zoom {
  position: absolute;
  top: var(--sp-4); right: var(--sp-4);
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 18px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity var(--t-base), transform var(--t-spring);
}
.portfolio-card:hover .portfolio-zoom { opacity: 1; transform: scale(1); }

/* Blog card */
.blog-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.blog-card-img { position: relative; height: 220px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-category {
  position: absolute;
  top: var(--sp-4); left: var(--sp-4);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--dark); background: var(--primary);
  padding: 4px 12px; border-radius: var(--r-full);
}
.blog-card-body { padding: var(--sp-6); }
.blog-meta { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-3); }
.blog-meta span { font-size: var(--text-xs); color: var(--gray-400); }
.blog-card-body h3 { font-size: var(--text-xl); margin-bottom: var(--sp-3); color: var(--secondary); line-height: 1.3; }
.blog-card-body h3 a { transition: color var(--t-fast); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { font-size: var(--text-sm); color: var(--gray-500); }
.blog-read-more {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: var(--text-sm); font-weight: 600; color: var(--primary);
  margin-top: var(--sp-4);
  transition: gap var(--t-base);
}
.blog-card:hover .blog-read-more { gap: var(--sp-2); }

/* Team card */
.team-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-base), box-shadow var(--t-base);
  text-align: center;
}
.team-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-xl); }
.team-card-img { position: relative; height: 280px; overflow: hidden; background: var(--accent); }
.team-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.team-card:hover .team-card-img img { transform: scale(1.05); }
.team-social {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,39,68,0.9) 0%, transparent 100%);
  padding: var(--sp-4) var(--sp-4) var(--sp-3);
  display: flex; justify-content: center; gap: var(--sp-2);
  transform: translateY(100%);
  transition: transform var(--t-base);
}
.team-card:hover .team-social { transform: translateY(0); }
.team-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 14px;
  transition: background var(--t-fast), transform var(--t-spring);
}
.team-social a:hover { background: var(--primary); transform: translateY(-3px); }
.team-card-body { padding: var(--sp-5); }
.team-card-body h3 { font-size: var(--text-lg); color: var(--secondary); margin-bottom: var(--sp-1); }
.team-card-body .role { font-size: var(--text-sm); color: var(--primary); font-weight: 500; margin-bottom: var(--sp-2); }
.team-card-body p { font-size: var(--text-sm); color: var(--gray-500); }

/* Testimonial card */
.testimonial-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--sp-4); right: var(--sp-6);
  font-family: var(--font-heading);
  font-size: 80px;
  color: var(--accent);
  line-height: 1;
}
.testimonial-stars { display: flex; gap: 4px; margin-bottom: var(--sp-4); }
.star { color: var(--primary); font-size: 18px; }
.testimonial-card p { font-size: var(--text-base); color: var(--gray-600); line-height: 1.8; margin-bottom: var(--sp-6); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: var(--sp-3); }
.testimonial-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.testimonial-author-info .name { font-weight: 600; color: var(--secondary); font-size: var(--text-sm); }
.testimonial-author-info .location { font-size: var(--text-xs); color: var(--gray-400); margin-top: 2px; }

/* Stats */
.stat-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
}
.stat-number-large {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, var(--text-7xl));
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}
.stat-number-large .suffix { font-size: 60%; color: var(--primary-light); }
.stat-card p { font-size: var(--text-sm); color: var(--gray-500); margin-top: var(--sp-2); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }

/* Process step */
.process-step {
  display: flex;
  gap: var(--sp-6);
  position: relative;
}
.process-step-number {
  flex-shrink: 0;
  width: 56px; height: 56px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
  position: relative;
  z-index: 1;
  transition: transform var(--t-spring), background var(--t-base), box-shadow var(--t-base);
}
.process-step:hover .process-step-number { transform: scale(1.15); background: var(--primary); color: var(--dark); box-shadow: var(--shadow-gold); }
.process-step-content { padding-bottom: var(--sp-10); }
.process-step-content h3 { font-size: var(--text-xl); margin-bottom: var(--sp-2); color: var(--secondary); }
.process-step-content p { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.7; }

/* ============================================
   SECTION STYLES
   ============================================ */

/* Section header */
.section-header { margin-bottom: var(--sp-12); }
.section-header.center { text-align: center; }
.section-header h2 { margin-bottom: var(--sp-4); }
.section-header p { font-size: var(--text-lg); color: var(--gray-500); max-width: 580px; line-height: 1.7; }
.section-header.center p { margin: 0 auto; }

/* Split section */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); align-items: center; }
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

/* Image with frame */
.img-frame {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.img-frame img { width: 100%; height: 500px; object-fit: cover; }
.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.img-badge {
  position: absolute;
  bottom: var(--sp-6); left: var(--sp-6);
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: var(--sp-3);
  animation: floatBadge 4s ease-in-out infinite;
}
.img-badge .badge-icon { font-size: 24px; }
.img-badge .badge-text { font-size: var(--text-xs); color: var(--gray-500); }
.img-badge .badge-value { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 700; color: var(--secondary); line-height: 1; }

/* Parallax section */
.parallax-section {
  position: relative;
  overflow: hidden;
}
.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: var(--sp-24) 0;
  background: var(--secondary);
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.08) 0%, transparent 60%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); font-size: clamp(2rem, 4vw, var(--text-5xl)); margin-bottom: var(--sp-4); }
.cta-section p { color: rgba(255,255,255,0.7); font-size: var(--text-lg); max-width: 560px; margin: 0 auto var(--sp-10); }
.cta-actions { display: flex; justify-content: center; gap: var(--sp-4); flex-wrap: wrap; }

/* Feature list */
.feature-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.feature-item { display: flex; align-items: flex-start; gap: var(--sp-3); }
.feature-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--dark);
  margin-top: 2px;
}
.feature-item .feature-text h4 { font-size: var(--text-sm); font-weight: 600; color: var(--secondary); margin-bottom: 2px; }
.feature-item .feature-text p { font-size: var(--text-sm); color: var(--gray-500); }

/* Number list */
.numbered-list { counter-reset: item; display: flex; flex-direction: column; gap: var(--sp-6); }
.numbered-item {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  counter-increment: item;
}
.numbered-item::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  width: 50px;
}
.numbered-item h3 { font-size: var(--text-lg); color: var(--secondary); margin-bottom: var(--sp-1); }
.numbered-item p { font-size: var(--text-sm); color: var(--gray-500); }

/* Tabs */
.tabs { display: flex; gap: var(--sp-2); background: var(--gray-100); padding: var(--sp-1); border-radius: var(--r-lg); }
.tab-btn {
  flex: 1; padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm); font-weight: 500;
  color: var(--gray-500);
  border-radius: var(--r-md);
  transition: all var(--t-base);
  cursor: none;
}
.tab-btn.active { background: var(--white); color: var(--secondary); box-shadow: var(--shadow-sm); font-weight: 600; }
.tab-btn:hover:not(.active) { color: var(--secondary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }

/* Accordion / FAQ */
.accordion { display: flex; flex-direction: column; gap: var(--sp-3); }
.accordion-item {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: box-shadow var(--t-base);
}
.accordion-item.open { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.accordion-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-5) var(--sp-6);
  cursor: none;
  transition: background var(--t-fast);
}
.accordion-header:hover { background: var(--gray-50); }
.accordion-header h3 { font-size: var(--text-base); font-weight: 600; color: var(--secondary); }
.accordion-icon {
  width: 28px; height: 28px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--gray-500);
  flex-shrink: 0;
  transition: transform var(--t-base), background var(--t-base), color var(--t-base);
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); background: var(--primary); color: var(--dark); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.accordion-item.open .accordion-body { max-height: 500px; }
.accordion-body-inner { padding: 0 var(--sp-6) var(--sp-5); }
.accordion-body-inner p { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.7; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding-top: var(--sp-20);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.footer-brand .logo-mark {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--dark);
  font-weight: 700;
}
.footer-brand .logo-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
}
.footer-brand .logo-name span { color: var(--primary); }
.footer-brand p { font-size: var(--text-sm); line-height: 1.8; margin-bottom: var(--sp-6); max-width: 260px; }
.footer-social { display: flex; gap: var(--sp-2); }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background var(--t-fast), transform var(--t-spring);
}
.footer-social a:hover { background: var(--primary); color: var(--dark); transform: translateY(-3px); }
.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col ul li a {
  font-size: var(--text-sm);
  transition: color var(--t-fast), padding-left var(--t-base);
  display: flex; align-items: center; gap: var(--sp-2);
}
.footer-col ul li a::before {
  content: '›';
  color: var(--primary);
  opacity: 0;
  transition: opacity var(--t-base);
}
.footer-col ul li a:hover { color: var(--white); padding-left: var(--sp-2); }
.footer-col ul li a:hover::before { opacity: 1; }
.footer-contact-item { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer-contact-icon { font-size: 16px; margin-top: 2px; flex-shrink: 0; color: var(--primary); }
.footer-contact-text { font-size: var(--text-sm); line-height: 1.6; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-5) 0;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-bottom a { color: var(--primary); }

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0 var(--sp-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
}
.footer-credit-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity var(--t-base);
}
.footer-credit:hover .footer-credit-logo { opacity: 0.9; }
.footer-credit:hover { color: rgba(255,255,255,0.55); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: var(--sp-5); position: relative; }
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--sp-2);
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  transform: translateY(-1px);
}
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: none; }

.form-floating { position: relative; }
.form-floating .form-control { padding: 22px 16px 10px; }
.form-floating label {
  position: absolute;
  top: 18px; left: 16px;
  font-size: var(--text-sm);
  color: var(--gray-400);
  pointer-events: none;
  transition: all var(--t-base);
}
.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
  top: 8px; font-size: var(--text-xs); color: var(--primary);
}

.form-check {
  display: flex; align-items: flex-start; gap: var(--sp-3); cursor: none;
}
.form-check input { width: 18px; height: 18px; cursor: none; accent-color: var(--primary); margin-top: 2px; }
.form-check label { font-size: var(--text-sm); color: var(--gray-600); cursor: none; }

/* Multi-step form */
.form-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--sp-12);
  counter-reset: step;
}
.form-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  counter-increment: step;
}
.form-step-indicator .step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--text-sm);
  transition: background var(--t-base), color var(--t-base), box-shadow var(--t-base);
  position: relative;
  z-index: 1;
}
.form-step-indicator.active .step-num { background: var(--primary); color: var(--dark); box-shadow: var(--shadow-gold); }
.form-step-indicator.done .step-num { background: var(--secondary); color: var(--white); }
.form-step-indicator:not(:last-child)::after {
  content: '';
  display: block;
  width: 80px; height: 2px;
  background: var(--gray-200);
  transition: background var(--t-base);
}
.form-step-indicator.done::after { background: var(--primary); }
.step-label { font-size: var(--text-xs); color: var(--gray-400); margin-top: var(--sp-1); text-align: center; }

/* Service option cards */
.service-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.service-option {
  border: 2px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 0;
  cursor: none;
  transition: all var(--t-base);
  text-align: center;
  overflow: hidden;
}
.service-option:hover { border-color: var(--primary-light); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-option.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,168,76,0.25); }
.service-option .option-img {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
}
.service-option .option-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.service-option:hover .option-img img { transform: scale(1.08); }
.service-option.selected .option-img::after {
  content: '✓';
  position: absolute;
  inset: 0;
  background: rgba(201,168,76,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
}
.service-option .option-body { padding: var(--sp-3) var(--sp-3) var(--sp-4); }
.service-option .option-icon { display: none; }
.service-option h4 { font-size: var(--text-sm); font-weight: 600; color: var(--secondary); }

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-full);
  letter-spacing: 0.5px;
}
.badge-primary { background: rgba(201,168,76,0.15); color: var(--primary-dark); border: 1px solid rgba(201,168,76,0.3); }
.badge-secondary { background: rgba(26,39,68,0.1); color: var(--secondary); }
.badge-success { background: rgba(34,197,94,0.1); color: #16a34a; }
.badge-new { background: var(--primary); color: var(--dark); }

/* ============================================
   RATINGS
   ============================================ */
.rating { display: flex; align-items: center; gap: var(--sp-1); }
.rating .stars { display: flex; gap: 2px; }
.rating .stars span { font-size: 14px; color: var(--primary); }
.rating .score { font-weight: 700; font-size: var(--text-sm); color: var(--secondary); }
.rating .count { font-size: var(--text-xs); color: var(--gray-400); }

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  width: 48px; height: 48px;
  background: var(--primary);
  color: var(--dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-gold);
  z-index: var(--z-sticky);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--t-base), visibility var(--t-base), transform var(--t-base);
  cursor: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-light); transform: translateY(-4px); }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }
.visible { visibility: visible !important; opacity: 1 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.mt-4 { margin-top: var(--sp-4); }
.mt-8 { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.pt-8 { padding-top: var(--sp-8); }
.pb-8 { padding-bottom: var(--sp-8); }
.w-full { width: 100%; }

/* Reveal animation targets */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.88); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
.delay-600 { transition-delay: 600ms; }

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin: var(--sp-12) 0;
}

/* Dark section */
.section-dark {
  background: var(--secondary);
  color: rgba(255,255,255,0.8);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-dark .section-eyebrow { color: var(--primary-light); }
.section-dark .section-eyebrow::before { background: var(--primary-light); }

/* Light accent section */
.section-accent { background: var(--accent); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }

  /* ── Navigation: hamburger + full-screen panel (tablet & phone) ─────────────
     Horizontal nav at ~900px was clipping links; all pages stay reachable here. */
  :root { --nav-h: 68px; }

  .navbar,
  .navbar.scrolled {
    background: rgba(13,21,32,0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 9999 !important;
  }
  .nav-container { padding: 0 1rem; gap: var(--sp-4); }

  /* Panel is reparented next to #nav-container on small screens so no ancestor clips links */
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Critical: desktop .nav-menu uses justify-content:center — in a column + fixed height
       that vertically centers the whole link stack, clipping Home/About off the top in Chrome */
    justify-content: flex-start;
    align-content: flex-start;
    flex: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: auto;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    background: linear-gradient(180deg, #1A2744 0%, #152038 100%);
    padding: 0.5rem 0 calc(5rem + env(safe-area-inset-bottom, 0px));
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-anchor: none;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    z-index: 9998;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    will-change: transform;
  }
  .nav-menu.open {
    transform: translateX(0);
    pointer-events: all;
  }

  .nav-link {
    display: block;
    width: 100%;
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.92);
    padding: 0.95rem 1.35rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    white-space: normal;
    background: transparent;
  }
  .nav-link:hover { color: var(--primary-light); background: rgba(201,168,76,0.08); }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--primary); background: rgba(201,168,76,0.06); }

  .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
  }

  /* Services: show every sub-page in the panel (no hidden accordion) */
  .nav-dropdown .nav-link span { display: none; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    max-height: none;
    overflow: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,0.22);
    border-radius: 0;
    margin: 0;
    padding: 0.35rem 0 0.6rem;
    min-width: unset;
    pointer-events: all;
    transition: none;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .dropdown-menu a {
    display: block;
    padding: 0.7rem 1.35rem 0.7rem 2.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0;
    color: rgba(255,255,255,0.72);
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .dropdown-menu a:last-child { border-bottom: none; }
  .dropdown-menu a:hover {
    padding-left: 3rem;
    background: rgba(201,168,76,0.1);
    color: var(--primary-light);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,8,14,0.55);
    z-index: 9997;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
  }
  .nav-overlay.visible { display: block; }
  .nav-overlay.active  { opacity: 1; }

  /* Kill desktop hover dropdown rules in this range — keep submenu visible */
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: none !important;
    transform: none !important;
    pointer-events: all !important;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--sp-5); }
  .section { padding: var(--sp-16) 0; }
  .section-lg { padding: var(--sp-20) 0; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; gap: var(--sp-8); }
  .split-section.reverse { direction: ltr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .back-to-top { bottom: var(--sp-5); right: var(--sp-5); }

  .service-options { grid-template-columns: repeat(2, 1fr); }
  .form-steps { gap: var(--sp-2); }
  .form-step-indicator:not(:last-child)::after { width: 40px; }

  .cta-section h2 { font-size: var(--text-3xl); }

  /* Services strip */
  .services-strip-grid { grid-template-columns: repeat(3, 1fr) !important; gap: .5rem !important; }

  /* Portfolio preview inline grid */
  .portfolio-preview-grid { grid-template-columns: 1fr !important; }
  .portfolio-preview-grid .portfolio-card { grid-row: span 1 !important; }
  .portfolio-preview-grid .portfolio-card img { height: 240px !important; min-height: unset !important; }

  /* Hero */
  .hero-title-line { font-size: clamp(2rem, 9vw, 3rem) !important; }
  .hero-subtitle { font-size: 1rem !important; }
  .hero-stats { gap: 1.5rem !important; flex-wrap: wrap; }

  /* Contact info strip */
  .contact-info-strip { grid-template-columns: repeat(2, 1fr) !important; }

  /* Contact form layout */
  .contact-form-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }

  /* CTA contact info */
  .cta-contact-info { gap: 1.25rem !important; }

  /* Service icon full width on mobile */
  .service-icon { width: calc(100% + 2.5rem); margin: -1.5rem -1.25rem 1.25rem; }

  /* ── NO HORIZONTAL SCROLL anywhere ───────────────────────────── */
  html, body { overflow-x: hidden; }
  img, video, iframe { max-width: 100%; }

  /* ── TYPOGRAPHY SCALING ──────────────────────────────────────── */
  .display-xl { font-size: clamp(2rem, 8vw, 3rem) !important; }
  .display-lg { font-size: clamp(1.75rem, 6vw, 2.5rem) !important; }
  .display-sm { font-size: clamp(1.375rem, 5vw, 1.875rem) !important; }

  /* ── HERO ────────────────────────────────────────────────────── */
  .hero-actions { flex-direction: column !important; gap: 0.75rem !important; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-stats { gap: 1rem 2rem !important; }

  /* ── PAGE HERO ──────────────────────────────────────────────── */
  .page-hero { min-height: 56vh !important; }
  .page-hero h1 { font-size: clamp(1.625rem, 5.5vw, 2.5rem) !important; }
  .page-hero p  { font-size: 0.9rem !important; max-width: 100% !important; }
  .page-hero-content { padding: 2rem 1.25rem !important; text-align: center; }

  /* ── GRID-4: 2 columns on tablet, 1 on phone (480px) ─────────── */
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }

  /* ── PORTFOLIO MASONRY → single column ──────────────────────── */
  .portfolio-masonry-grid {
    grid-template-columns: 1fr !important;
  }
  .portfolio-masonry-grid [style*="grid-column"],
  .portfolio-masonry-grid [style*="grid-row"] {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .portfolio-masonry-grid .portfolio-card img {
    height: 240px !important; min-height: unset !important;
  }
  /* Also catch first featured card's fixed height */
  .portfolio-masonry-grid .portfolio-card:first-child img {
    height: 260px !important;
  }

  /* ── INLINE 2-COL GRIDS → single column ─────────────────────── */
  /* contact form+map, form input grids, etc. */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important; gap: 1rem !important;
  }
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns: 1.2fr 1fr"] {
    grid-template-columns: 1fr !important; gap: 2rem !important;
  }
  /* Reset any inline span overrides from 3-col grids */
  [style*="grid-column:span 2"] { grid-column: auto !important; }
  [style*="grid-row:span 2"]    { grid-row: auto !important; }

  /* ── FILTER BAR: horizontal scroll on mobile ─────────────────── */
  .filter-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.375rem !important;
    padding-bottom: 0.75rem !important;
    justify-content: flex-start !important;
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-btn { font-size: 0.75rem !important; padding: 0.5rem 0.875rem !important; white-space: nowrap; flex-shrink: 0; }

  /* ── SERVICES PAGE: tab bar ──────────────────────────────────── */
  .services-nav-inner, .services-tab-bar { gap: 0.25rem !important; }
  .tab-btn { font-size: 0.78rem !important; padding: 0.6rem 0.75rem !important; }

  /* ── CARDS & SECTIONS ────────────────────────────────────────── */
  .card { padding: 1.25rem !important; }
  .section-header { margin-bottom: 2rem !important; }
  .cta-section { padding: 3rem 1.25rem !important; text-align: center; }
  .cta-section .btn { width: 100%; justify-content: center; }

  /* ── QUOTE PAGE ─────────────────────────────────────────────── */
  .q-grid-2 { grid-template-columns: 1fr !important; }
  .q-grid-3 { grid-template-columns: 1fr !important; }
  .q-trust  { grid-template-columns: repeat(2, 1fr) !important; }
  .q-nav    { flex-wrap: wrap !important; gap: 0.75rem !important; }
  .q-nav .btn { flex: 1 1 auto; min-width: 140px; }

  /* ── TEAM PAGE ───────────────────────────────────────────────── */
  .team-bio { flex-direction: column !important; text-align: center; }
  .team-bio img { margin: 0 auto 1rem !important; }

  /* ── BLOG SIDEBAR ───────────────────────────────────────────── */
  .blog-sidebar { order: -1; }

  /* ── BREADCRUMB ─────────────────────────────────────────────── */
  .breadcrumb { justify-content: center !important; }

  /* ── STATS NUMBER SIZE ─────────────────────────────────────── */
  .stat-number-large { font-size: clamp(2rem, 8vw, 3rem) !important; }

  /* ── PROCESS: step number prominence ─────────────────────────── */
  .process-step-content { padding: 1.25rem !important; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .service-options { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }

  /* Typography - scale down for small phones */
  .display-xl { font-size: clamp(1.75rem, 7vw, 2.5rem) !important; }
  .display-lg { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
  .display-sm { font-size: clamp(1.25rem, 5vw, 1.625rem) !important; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem) !important; }

  /* Services strip → 2 col on small phones */
  .services-strip-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Hero stats stack vertically */
  .hero-stats { flex-direction: column !important; gap: 0.875rem !important; padding-top: 1.25rem !important; }
  .hero-actions { flex-direction: column !important; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }

  /* Contact */
  .contact-info-strip { grid-template-columns: 1fr !important; }
  .contact-form-grid  { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

  /* Quote trust bar */
  .q-trust { grid-template-columns: repeat(2, 1fr) !important; }
  .q-grid-2, .q-grid-3 { grid-template-columns: 1fr !important; }

  /* CTA */
  .cta-contact-info { flex-direction: column !important; gap: 1rem !important; }

  /* Blog & portfolio */
  .blog-preview-grid { grid-template-columns: 1fr !important; }
  .portfolio-masonry-grid { grid-template-columns: 1fr !important; }

  /* Service icon */
  .service-icon { height: 160px; }

  /* Inline 2-column forms always collapse on small phones */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important; gap: 0.75rem !important;
  }

  /* Section padding reduction */
  .section { padding: 3rem 0 !important; }
  .section-lg { padding: 3.5rem 0 !important; }
  .container { padding: 0 1rem !important; }

  /* Cards */
  .card, .service-card, .blog-card, .team-card { border-radius: 12px !important; }

  /* Form elements */
  input, textarea, select { font-size: 16px !important; } /* Prevent iOS zoom */
}

/* ============================================
   BLOG PAGE LAYOUT (responsive)
   ============================================ */
.blog-featured-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.blog-layout        { display: flex; gap: 4rem; align-items: flex-start; }
.blog-main          { flex: 1; min-width: 0; }
.blog-sidebar       { width: 300px; flex-shrink: 0; }
.blog-card-horiz    { display: grid !important; grid-template-columns: 320px 1fr !important; gap: 0 !important; }

@media (max-width: 1024px) {
  .blog-featured-grid { grid-template-columns: 1fr; }
  .blog-layout        { gap: 2.5rem; }
  .blog-sidebar       { width: 260px; }
}
@media (max-width: 768px) {
  .blog-featured-grid { grid-template-columns: 1fr !important; }
  .blog-layout        { flex-direction: column !important; gap: 2rem !important; }
  .blog-sidebar       { width: 100% !important; }
  .blog-card-horiz    { grid-template-columns: 1fr !important; }
  .blog-card-horiz .blog-card-img { height: 220px !important; min-height: unset !important; }
  /* Fix explicit grid-column on team leadership cards */
  .grid-3 > *[style*="grid-column"] { grid-column: auto !important; }
  /* Nav toggle cursor on mobile */
  .nav-toggle { cursor: pointer; }
  button { cursor: pointer; }
}
@media (max-width: 480px) {
  .blog-sidebar { width: 100% !important; }
}
