/* ==========================================================================
   The Spanish Nest — Premium Website Styles v2
   Vibrant Mediterranean palette + enhanced animations
   ========================================================================== */

/* FOUC (Flash of Unstyled Content) Prevention */
.js-loading .reveal-up,
.js-loading .reveal-left,
.js-loading .reveal-right,
.js-loading .reveal-scale,
.js-loading .hero__title,
.js-loading .hero__subtitle,
.js-loading .hero__ctas,
.js-loading .trust-bar__item,
.js-loading .float-shape {
  opacity: 0;
}

/* Ensure background color is set immediately to avoid white flashes */
html {
  background-color: #233786; /* Matches --color-bg-dark for hero stability */
}

body {
  opacity: 0;
  transition: opacity 0.8s ease-out; /* Smooth reveal */
}

.js-loaded body {
  opacity: 1;
}

/* Force visibility if JS is enabled but taking too long */
html.js-loaded .reveal-up,
html.js-loaded .reveal-left,
html.js-loaded .reveal-right,
html.js-loaded .reveal-scale {
  transition: opacity 1s ease;
}

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Vibrant Mediterranean Sunset Palette */
  --color-primary: #D4613E;        /* Rich terracotta red */
  --color-primary-dark: #B84E30;
  --color-primary-light: #E8845F;
  --color-secondary: #233786;      /* Deep ocean navy */
  --color-secondary-light: #2D6A8E; /* Mediterranean teal */
  --color-accent: #F2A65A;         /* Warm golden amber */
  --color-accent-bright: #F4C278;  /* Light gold highlight */
  --color-coral: #E07B54;          /* Sunset coral */
  --color-bg-light: #FBF7F2;       /* Warm cream */
  --color-bg-alt: #F5E6DB;         /* Peachy blush */
  --color-bg-dark: #233786;        /* Deep night */
  --color-text: #2D2D3A;
  --color-text-light: #6E6E7E;
  --color-text-on-dark: #E8D5C4;
  --color-white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Caveat', cursive;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  --max-width: 1200px;
  --nav-height: 80px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 50px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 40px rgba(212,97,62,0.25);
  --shadow-gold: 0 0 40px rgba(242,166,90,0.2);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

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

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

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-secondary);
}

h1 { font-size: clamp(2.75rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text);
  max-width: 65ch;
}

.text-accent {
  font-family: var(--font-accent);
  color: var(--color-primary);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

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

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

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

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

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all var(--transition-base);
  background: transparent;
}

/* Scrolled nav = dark frosted glass (keeps white logo visible) */
.nav.scrolled {
  background: rgba(35, 55, 134, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  padding: 0.4rem 0;
}

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

/* Logo — much larger, let the image breathe */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 69px;
  width: auto;
  transition: height var(--transition-base);
}

.nav.scrolled .nav__logo img {
  height: 69px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

/* Links stay light on scroll (dark nav background) */
.nav.scrolled .nav__link {
  color: rgba(255,255,255,0.85);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-coral));
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(212,97,62,0.3);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-base);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

/* Shimmer effect on buttons */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-coral));
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(212,97,62,0.3);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

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

.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-white);
  transform: translateY(-3px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn--dark {
  background: var(--color-secondary);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(26,58,92,0.3);
}

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

.btn--gold {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-bright));
  color: var(--color-secondary);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(242,166,90,0.35);
}

.btn--lg {
  padding: 1.125rem 2.75rem;
  font-size: 1.0625rem;
}

/* ---------- Decorative Floating Shapes ---------- */
.float-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.float-shape--1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(242,166,90,0.12), transparent 70%);
  top: 20%;
  right: -5%;
}

.float-shape--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212,97,62,0.08), transparent 70%);
  bottom: -10%;
  left: -10%;
}

.float-shape--3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(45,106,142,0.1), transparent 70%);
  top: 60%;
  right: 20%;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-bg-dark) url(../assets/hero-poster.png) center/cover no-repeat;
  overflow: hidden;
}

/* Video background */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0 !important;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
  filter: brightness(1.15) saturate(1.3);
}

.hero__video.active.is-playing {
  opacity: 1 !important;
}

.hero__video:nth-child(3) {
  transform: scaleX(-1);
}

/* Hide native Safari/iOS video play buttons for background videos */
video::-webkit-media-controls {
  display: none !important;
}
video::-webkit-media-controls-enclosure {
  display: none !important;
}
video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

/* Dark gradient overlay for text legibility */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(10, 20, 35, 0.3) 0%,
      rgba(10, 20, 35, 0.12) 40%,
      rgba(10, 20, 35, 0.2) 70%,
      rgba(10, 20, 35, 0.55) 100%
    ),
    linear-gradient(90deg,
      rgba(10, 20, 35, 0.25) 0%,
      transparent 60%
    );
}

/* Ambient glow orbs in hero */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.hero__glow--1 {
  width: 500px;
  height: 500px;
  background: rgba(212,97,62,0.15);
  top: -10%;
  left: -10%;
}

.hero__glow--2 {
  width: 400px;
  height: 400px;
  background: rgba(242,166,90,0.1);
  bottom: -15%;
  right: -5%;
}

.hero__glow--3 {
  width: 300px;
  height: 300px;
  background: rgba(45,106,142,0.12);
  top: 40%;
  right: 30%;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin-top: 20px;
  margin-left: 15px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__eyebrow {
  font-family: var(--font-accent);
  font-size: 1.75rem;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  opacity: 0;
}

.hero__title {
  color: var(--color-white);
  margin-top: 10px;
  margin-bottom: var(--space-md);
  opacity: 0;
  line-height: 1.1;
}

.hero__title .word-highlight {
  color: var(--color-accent);
  position: relative;
  display: inline-block;
}

.hero__title .word-highlight::after {
  display: none;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
  opacity: 0;
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  opacity: 0;
}

/* Hero buttons need to pop over video */
.hero .btn {
  text-shadow: none;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  padding: var(--space-lg) 0;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.trust-bar__item {
  opacity: 0;
  position: relative;
}

/* Decorative line between trust items */
.trust-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.08), transparent);
}

.trust-bar__number {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.375rem;
}

.trust-bar__label {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- About / Why Us Section ---------- */
.about {
  background: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about__image-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about__image-wrap:hover img {
  transform: scale(1.03);
}

.about__image-decoration {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-bg-alt), rgba(242,166,90,0.15));
  z-index: -1;
}

/* Floating accent dot */
.about__image-wrap::after {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-bright));
  opacity: 0.6;
  z-index: -1;
}

.about__eyebrow {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.about__title {
  margin-bottom: var(--space-md);
}

.about__text {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.about__feature:hover {
  background: rgba(242,166,90,0.08);
  transform: translateX(4px);
}

.about__feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(212,97,62,0.1), rgba(242,166,90,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 1.1rem;
}

/* ---------- Services Section ---------- */
.services {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.services__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.services__header p {
  margin: var(--space-sm) auto 0;
  color: var(--color-text-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg); /* Slightly more gap feels better with 3 cards */
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-md) 1.5rem;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  opacity: 0;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-accent-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: var(--color-white);
  border-color: rgba(242,166,90,0.15);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-coral));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(212,97,62,0.25);
  transition: transform var(--transition-spring);
}

.service-card:hover .service-card__icon {
  transform: scale(1.1) rotate(-5deg);
}

.service-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

.service-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all var(--transition-fast);
}

.service-card__link:hover {
  gap: 0.625rem;
  color: var(--color-primary-dark);
}

/* ---------- Process Section ---------- */
.process {
  background: var(--color-bg-dark);
  color: var(--color-white);
  overflow: hidden;
  position: relative;
}

/* Ambient glow in process section */
.process::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242,166,90,0.06), transparent 70%);
  pointer-events: none;
}

.process__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
}

/* Connecting line between steps */
.process__connector {
  position: absolute;
  top: 55px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.process__connector-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-accent-bright));
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process__connector-fill.animated {
  width: 100%;
}

.process__step {
  text-align: center;
  position: relative;
  opacity: 0;
}

.process__step-number {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 30px rgba(212,97,62,0.3);
}

/* Animated ring around step number */
.process__step-number::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(242,166,90,0.3);
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.08); opacity: 0.6; }
}

.process__step-number span {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-white);
}

.process__step h3 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
}

.process__step p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  max-width: 300px;
  margin: 0 auto;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  background: var(--color-bg-light);
  overflow: hidden;
  position: relative;
}

.testimonials__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

/* Slider wrapper — holds track + arrows */
.testimonials__slider {
  position: relative;
}

/* Fade edges to hint at overflow */
.testimonials__slider::before,
.testimonials__slider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: var(--space-md);
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.testimonials__slider::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-light), transparent);
}

.testimonials__slider::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-light), transparent);
}

.testimonials__track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-sm) 48px var(--space-md);
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.testimonials__track::-webkit-scrollbar {
  display: none;
}

/* Arrow buttons */
.testimonials__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(212,97,62,0.35);
  background: var(--color-white);
  color: var(--color-primary);
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: all var(--transition-base);
  line-height: 1;
}

.testimonials__arrow:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-60%) scale(1.05);
}

.testimonials__arrow--prev {
  left: 0;
}

.testimonials__arrow--next {
  right: 0;
}

.testimonials__arrow:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.testimonial-card {
  flex: 0 0 clamp(280px, 30%, 380px);
  scroll-snap-align: start;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md) 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

/* Gradient accent line at top of card */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.testimonial-card:hover::before {
  opacity: 1;
}

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

.testimonial-card__stars {
  color: var(--color-accent);
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  letter-spacing: 3px;
}

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

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-bg-alt), rgba(242,166,90,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial-card__name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.testimonial-card__origin {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* ---------- FAQ Section ---------- */
.faq {
  background: var(--color-white);
}

.faq__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,97,62,0.08), rgba(242,166,90,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: all var(--transition-base);
  color: var(--color-primary);
}

.faq__item.active .faq__icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.5s ease;
}

.faq__answer-inner {
  padding-bottom: var(--space-md);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.faq__item.active .faq__answer {
  max-height: 500px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-coral) 50%, var(--color-accent) 100%);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

/* Animated background shimmer */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent, rgba(255,255,255,0.03), transparent);
  animation: cta-shimmer 8s linear infinite;
}

@keyframes cta-shimmer {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(50%); }
}

.cta-banner__eyebrow {
  font-family: var(--font-accent);
  font-size: 1.75rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-xs);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  position: relative;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  margin: 0 auto var(--space-md);
  max-width: 550px;
  position: relative;
}

/* ---------- Contact Section ---------- */
.contact {
  background: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact__info-eyebrow {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.contact__info h2 {
  margin-bottom: var(--space-sm);
}

.contact__info > p {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact__channel {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.contact__channel:hover {
  background: rgba(242,166,90,0.06);
  transform: translateX(4px);
}

.contact__channel-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(212,97,62,0.1), rgba(242,166,90,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  color: var(--color-primary);
}

.contact__channel h4 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.contact__channel a, .contact__channel span {
  font-weight: 600;
  color: var(--color-secondary);
  font-size: 1.0625rem;
  transition: color var(--transition-fast);
}

.contact__channel a:hover {
  color: var(--color-primary);
}

/* Contact Form */
.contact__form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
}

.contact__form-card h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg-light);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(242,166,90,0.12);
  background: var(--color-white);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-submit {
  margin-top: var(--space-md);
}

.form-submit .btn {
  width: 100%;
}

/* ---------- Collaborators ---------- */
.collaborators {
  background: linear-gradient(145deg, var(--color-bg-dark) 0%, #1a2a47 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0;
  min-height: calc(100vh - 90px);
}

.collaborators::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(35, 55, 134, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.collaborators__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.collaborators__image-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.collaborators__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.collaborators__image-wrap:hover img {
  transform: scale(1.05);
}

.collaborators__image-decoration {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  pointer-events: none;
  z-index: 1;
}

.collaborators__content {
  text-align: left;
  z-index: 2;
}

.collaborators .section-eyebrow {
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  display: block;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

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

.collaborators p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.partner-form-container {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.partner-form .form-group label {
  color: var(--color-white);
  text-align: left;
  font-weight: 500;
}

.partner-form .form-group input {
  background: rgba(255, 255, 255, 0.08); /* Increased for better definition */
  border-color: rgba(255, 255, 255, 0.3); /* Sharper border */
  color: var(--color-white);
}

.partner-form .form-group input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-accent);
}

.partner-form .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5); /* Clearer placeholder */
}

@media (max-width: 992px) {
  .collaborators__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .collaborators {
    padding: var(--space-lg) 0;
  }
  .partner-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9375rem;
  margin-top: var(--space-sm);
  max-width: 300px;
}

.footer__brand img {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--space-sm);
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-white);
  transform: translateX(3px);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-sm);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-base);
}

.footer__social a:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--color-white);
}

.footer__bottom p {
  color: var(--color-white);
  margin: 0;
}

.footer__bottom a {
  color: rgba(255,255,255,0.4);
}

.footer__bottom a:hover {
  color: var(--color-accent);
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 25px rgba(37,211,102,0.35);
  z-index: 999;
  transition: all var(--transition-base);
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 35px rgba(37,211,102,0.45);
}

/* ---------- Animations (initial states for GSAP) ---------- */
.service-card, .process__step, .testimonial-card, .faq__item, .about__feature, .cta__banner, .about__deco {
  opacity: 0;
}

.reveal-up {
  opacity: 0;
  transform: translateY(50px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
}

.reveal-rotate {
  opacity: 0;
  transform: translateY(30px) rotate(3deg);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-up, .reveal-left, .reveal-right, .reveal-scale, .reveal-rotate,
  .hero__eyebrow, .hero__title, .hero__subtitle, .hero__ctas,
  .trust-bar__item, .service-card, .process__step {
    opacity: 1;
    transform: none;
  }
}

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

  .hero__asset {
    display: none;
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__ctas {
    justify-content: center;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,29,47,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    z-index: 999;
  }

  .nav__links.active {
    display: flex;
  }

  .nav__links .nav__link {
    color: var(--color-white);
    font-size: 1.25rem;
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__logo img {
    height: 55px;
  }

  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .trust-bar__item:not(:last-child)::after {
    display: none;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .process__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .process__connector {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 300px;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .section {
    padding: var(--space-lg) 0;
  }
}

@media (max-width: 480px) {
  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .about__features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111827; /* Dark background */
  color: var(--color-white);
  padding: 1.25rem 2rem;
  z-index: 9999;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cookie-banner__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.cookie-banner__btn--accept {
  background: var(--color-primary);
  color: var(--color-white);
}

.cookie-banner__btn--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 92, 79, 0.3);
}

.cookie-banner__btn--decline {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--color-white);
}

.cookie-banner__btn--decline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ---------- Success Modal (Form Submission) ---------- */
.form-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.85); /* Semi-transparent dark background */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.form-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.form-modal {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-modal-overlay.active .form-modal {
  transform: translateY(0) scale(1);
}

.form-modal__icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 32px;
  color: var(--color-primary);
}

.form-modal__title {
  color: var(--color-secondary);
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-heading);
}

.form-modal__text {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.form-modal__close {
  display: inline-flex;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-modal__close:hover {
  background: var(--color-primary-dark);
}
