/* ============================================
   Dr. Laurel at Home — Stylesheet
   Modern, Trustworthy, Luxury Aesthetic
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bg: #faf9f7;
  --color-bg-dark: #0f0f1a;
  --color-bg-card: #ffffff;
  --color-text: #1a1a2e;
  --color-text-muted: #6b6b80;
  --color-text-light: #9999ab;
  --color-gold: #b8964e;
  --color-gold-light: #d4b96a;
  --color-gold-dark: #96783e;
  --color-accent: #c9a96e;
  --color-border: #e8e6e1;
  --color-border-light: #f0eeea;
  --color-white: #ffffff;
  --color-cream: #f5f3ef;
  --color-navy: #0f0f1a;
  --color-navy-light: #1a1a2e;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height: 80px;
  --container-max: 1200px;
  --container-padding: clamp(16px, 4vw, 24px);
  --carousel-gap: clamp(16px, 2vw, 24px);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

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

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

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

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

/* --- Reveal Animation Base --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 0.35s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger .reveal:nth-child(7) { transition-delay: 0.45s; }
.reveal-stagger .reveal:nth-child(8) { transition-delay: 0.5s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  border: none;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(184, 150, 78, 0.3);
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  box-shadow: 0 0 30px rgba(184, 150, 78, 0.5);
  transition: opacity 0.4s ease;
}

.btn-glow:hover::after {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-large {
  padding: 20px 44px;
  font-size: 1.05rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.4s var(--ease-out-expo);
}

.nav.scrolled {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-dr {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.01em;
}

.logo-at {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gold);
  padding: 10px 20px;
  border: 1px solid rgba(184, 150, 78, 0.3);
  border-radius: 60px;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: rgba(184, 150, 78, 0.1);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

.nav-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.nav-login:hover {
  color: var(--color-gold);
  background: rgba(184, 150, 78, 0.1);
}

.nav.scrolled .nav-login {
  color: rgba(26, 26, 46, 0.25);
}

.nav.scrolled .nav-login:hover {
  color: var(--color-gold);
}

.mobile-login {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  font-size: 0.85rem;
  margin-top: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-white);
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 26, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-gold);
  margin-top: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.3s;
}

.mobile-menu.active .mobile-phone {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Background Image --- */
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-navy);
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 20%;
  opacity: 0;
  transform: scale(1.06);
  animation: heroBgReveal 2.4s var(--ease-out-expo) 0.2s forwards;
}

@keyframes heroBgReveal {
  to { opacity: 1; transform: scale(1); }
}

/* --- Overlay Stack --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Color wash: dark navy with warm tint to unify image tones */
.hero-overlay--color {
  background:
    radial-gradient(ellipse 120% 80% at 60% 40%, rgba(15, 15, 26, 0.25) 0%, rgba(15, 15, 26, 0.7) 100%),
    linear-gradient(180deg, rgba(15, 15, 26, 0.5) 0%, rgba(15, 15, 26, 0.2) 40%, rgba(15, 15, 26, 0.65) 100%);
  z-index: 1;
}

/* Vignette: darken edges for depth */
.hero-overlay--vignette {
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(15, 15, 26, 0.6) 100%);
  z-index: 2;
}

/* Film grain texture (subtle) */
.hero-overlay--grain {
  z-index: 3;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* --- Particles (on top of overlays) --- */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.5; }
  90% { opacity: 0.15; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* --- Content Layer --- */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: clamp(90px, 15vw, 120px) var(--container-padding) clamp(48px, 8vw, 80px);
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Glassmorphic Panel --- */
.hero-glass {
  background: rgba(15, 15, 26, 0.35);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 5vw, 52px) clamp(28px, 4.5vw, 44px);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

/* Inner glow on glass panel */
.hero-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.12) 50%, transparent 90%);
}

/* Subtle gold shimmer inside glass */
.hero-glass::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(184, 150, 78, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* --- Hero Brand Name --- */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  margin-bottom: 20px;
}

.hero-brand-dr {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.hero-brand-at {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 6px;
}

.hero-brand-rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 20px auto 24px;
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.1;
  color: var(--color-white);
}

.hero-title-accent {
  color: var(--color-gold);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin: 0 auto;
}

/* --- CTA Row (glass style) --- */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-outline-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: 60px;
  cursor: pointer;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s var(--ease-out-expo);
}

.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-note {
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.03em;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 0.8; transform: scaleY(1); }
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
  background: var(--color-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
}

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

.trust-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-gold);
  line-height: 1;
  display: inline;
}

.trust-plus {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--color-gold);
  line-height: 1;
}

.trust-icon {
  color: var(--color-gold);
  margin-bottom: 4px;
}

.trust-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.03em;
}

.trust-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 12px;
  display: block;
}

.about-image-accent {
  position: absolute;
  top: -12px;
  right: -12px;
  bottom: 12px;
  left: 12px;
  border: 1px solid var(--color-gold);
  border-radius: 12px;
  opacity: 0.2;
  z-index: -1;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.about-text p:last-child {
  margin-bottom: 32px;
}

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.credential {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 400;
}

.credential svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: clamp(80px, 10vw, 120px) 0;
  background: linear-gradient(180deg, var(--color-navy) 0%, #12122a 100%);
  overflow-x: clip;
  overflow-y: visible;
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(184, 150, 78, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Dark section text overrides */
.services .section-title {
  color: var(--color-white);
}
.services .section-subtitle {
  color: rgba(255, 255, 255, 0.45);
}

/* --- Filter Tabs (Glassmorphism) --- */
.services-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.services-filter-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px;
}
.services-filter-track::-webkit-scrollbar { display: none; }

.filter-tab {
  white-space: nowrap;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-tab:hover {
  border-color: rgba(184, 150, 78, 0.4);
  color: var(--color-gold-light);
  background: rgba(255, 255, 255, 0.08);
}
.filter-tab.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(184, 150, 78, 0.3);
}

/* --- Carousel --- */
.services-carousel {
  position: relative;
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-viewport::-webkit-scrollbar { display: none; }

.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  transition: opacity 0.3s ease;
}

/* --- Premium Card --- */
.carousel-card {
  flex: 0 0 calc((100% - 3 * var(--carousel-gap)) / 3.25);
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  display: block;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  will-change: transform, opacity;
  transition:
    transform 0.5s var(--ease-out-expo),
    box-shadow 0.5s ease,
    opacity 0.6s var(--ease-out-expo);
}
/* Gradient border glow on hover */
.carousel-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,0.2) 0%, transparent 40%, rgba(184,150,78,0.15) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.carousel-card:hover::before {
  opacity: 1;
}
.carousel-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(184, 150, 78, 0.08);
}

/* Entrance animation for scroll reveal */
.carousel-card.card-enter {
  opacity: 0;
  transform: translateY(30px);
}
.carousel-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

.carousel-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-out-expo), filter 0.5s ease;
  filter: brightness(0.9);
}
.carousel-card:hover .carousel-card-image {
  transform: scale(1.08);
  filter: brightness(0.75);
}

/* Frosted glass overlay — dramatic blur like streaming app cards.
   The overlay covers the bottom half with a heavy backdrop blur
   that fades smoothly to clear image at top via mask. */
.carousel-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  transition: padding 0.4s var(--ease-out-expo), height 0.5s var(--ease-out-expo);
}

/* Heavy frosted blur layer */
.carousel-card-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(56px) saturate(1.8) brightness(0.65);
  -webkit-backdrop-filter: blur(56px) saturate(1.8) brightness(0.65);
  background: rgba(0, 0, 0, 0.2);
  /* Sharp-ish fade: solid blur at bottom, quick fade at top */
  -webkit-mask: linear-gradient(to top, #000 0%, #000 50%, rgba(0,0,0,0.5) 75%, transparent 100%);
  mask: linear-gradient(to top, #000 0%, #000 50%, rgba(0,0,0,0.5) 75%, transparent 100%);
  border-radius: 0 0 20px 20px;
  z-index: -1;
  transition: backdrop-filter 0.4s ease;
}

.carousel-card:hover .carousel-card-overlay {
  height: 68%;
  padding-bottom: 24px;
}
.carousel-card:hover .carousel-card-overlay::before {
  backdrop-filter: blur(64px) saturate(2) brightness(0.55);
  -webkit-backdrop-filter: blur(64px) saturate(2) brightness(0.55);
}

.carousel-card-category {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 6px;
}

.carousel-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
}

/* Description reveal on hover */
.carousel-card-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.5s var(--ease-out-expo), opacity 0.4s ease, margin 0.4s ease;
}
.carousel-card:hover .carousel-card-desc {
  max-height: 80px;
  opacity: 1;
  margin-top: 8px;
}

.carousel-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold-light);
  margin-top: 10px;
  transition: gap 0.3s ease;
}
.carousel-card:hover .carousel-card-link {
  gap: 12px;
}

/* Carousel Arrows (Glassmorphism) */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  padding: 0;
}
.carousel-arrow:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(184, 150, 78, 0.1);
}
.carousel-arrow--left { left: -24px; }
.carousel-arrow--right { right: -24px; }
.carousel-arrow:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Carousel placeholder for services without images */
.carousel-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-navy) 0%, #1a1a3e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-card-placeholder svg {
  opacity: 0.15;
}

/* ============================================
   EXPERIENCE
   ============================================ */
.experience {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--color-bg);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.exp-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: 48px 40px;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.exp-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out-expo);
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  border-color: transparent;
}

.exp-card:hover::after {
  transform: scaleY(1);
}

.exp-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--color-gold);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 20px;
}

.exp-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-text);
}

.exp-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--color-navy);
}

.testimonial-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.testimonial-quote-mark {
  color: var(--color-gold);
  margin-bottom: 24px;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.testimonial-attribution {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--color-gold);
}

.testimonial-name {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--color-bg);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  align-items: center;
}

.cta-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cta-detail svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-navy);
  padding: 64px 0 32px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  padding: 4px 0;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-disclaimer {
  font-style: italic;
}

/* ============================================
   FLOATING CTA
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-gold);
  color: var(--color-white);
  padding: 16px 24px;
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(184, 150, 78, 0.35);
  z-index: 900;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s var(--ease-out-expo);
}

.floating-cta.visible {
  transform: translateY(0);
  opacity: 1;
}

.floating-cta:hover {
  background: var(--color-gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(184, 150, 78, 0.45);
}

.floating-cta.visible:hover {
  transform: translateY(-3px);
}

/* Pulse ring on floating CTA */
.floating-cta::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid var(--color-gold);
  opacity: 0;
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.05); }
}

/* ============================================
   SERVICE DETAIL (LEARN MORE) PAGE
   ============================================ */
.service-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.service-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-navy);
}

.service-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.service-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 26, 0.5) 0%, rgba(15, 15, 26, 0.8) 100%);
  z-index: 1;
}

.service-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 140px var(--container-padding) 80px;
  max-width: 700px;
}

.service-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.service-blocks {
  padding: 80px 0;
  background: var(--color-bg);
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto 80px;
  padding: 0 var(--container-padding);
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block--reversed {
  direction: rtl;
}

.service-block--reversed > * {
  direction: ltr;
}

.service-block--text-only {
  grid-template-columns: 1fr;
  max-width: 720px;
  text-align: center;
}

.service-block-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.service-block-image {
  border-radius: 12px;
  overflow: hidden;
}

.service-block-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.service-cta {
  padding: 80px 0;
  background: var(--color-cream);
  text-align: center;
}

.service-cta-content {
  max-width: 500px;
  margin: 0 auto;
}

.service-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 16px;
}

.service-cta p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.service-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.service-back:hover {
  color: var(--color-gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .carousel-card {
    flex: 0 0 calc((100% - 2 * var(--carousel-gap)) / 2.25);
  }
  .carousel-arrow { display: none; }

  .about-grid {
    gap: 48px;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  .nav-links,
  .nav-cta,
  .nav-login {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-bg-image {
    object-position: 60% 20%;
  }

  .hero-glass {
    border-radius: 20px;
  }

  .hero-title-line {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline-glass {
    width: 100%;
    justify-content: center;
  }

  .trust-items {
    gap: 24px;
  }

  .trust-divider {
    display: none;
  }

  .trust-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }

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

  .about-image-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  /* Inset carousel so cards have breathing room and next card peeks through */
  .carousel-viewport {
    padding: 0 var(--container-padding);
  }
  .carousel-card {
    flex: 0 0 calc(100% - 60px);
  }
  /* Disable hover-only features on touch */
  .carousel-card-desc {
    display: none;
  }
  /* Remove backdrop-filter on mobile for performance */
  .filter-tab {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.08);
  }
  .services-filter {
    position: relative;
  }
  .services-filter::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--color-bg-dark));
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
  }
  .services-filter.scrolled-end::after {
    opacity: 0;
  }
  .services-filter-track {
    justify-content: flex-start;
    padding-right: 40px;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }

  .service-block--reversed {
    direction: ltr;
  }

  .service-hero-content {
    padding: 120px 16px 60px;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .exp-card {
    padding: 32px 28px;
  }

  .cta-details {
    align-items: flex-start;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .cta-detail {
    align-items: flex-start;
    gap: 10px;
  }
  .cta-detail svg {
    margin-top: 3px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .floating-cta span {
    display: none;
  }

  .floating-cta {
    padding: 16px;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

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

  .trust-items {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 375px) {
  .hero-glass {
    padding: 24px 16px 22px;
    border-radius: 16px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.85rem;
  }
  .btn-large {
    padding: 16px 32px;
    font-size: 0.95rem;
  }

  .mobile-link {
    font-size: 1.6rem;
  }

  .carousel-card {
    flex: 0 0 calc(100% - 48px);
  }
}

/* --- Ultrawide --- */
@media (min-width: 2560px) {
  :root {
    --container-max: 1600px;
    --container-padding: 48px;
  }

  body {
    font-size: 18px;
  }

  .hero-glass {
    padding: 64px 72px 60px;
  }

  .carousel-card {
    flex: 0 0 calc((100% - 4 * var(--carousel-gap)) / 4.25);
  }

  .about-grid {
    gap: 120px;
  }

  .experience-grid {
    gap: 48px;
  }
}
