/* ================================================================
   MARIA PAULINA FAJARDO — Premium Design System
   High-end psychologist website: depth, imagery, editorial quality
================================================================ */

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES
---------------------------------------------------------------- */
:root {
  /* Brand palette — exact violet from logo #8C59EF */
  --primary:        #8C59EF;
  --primary-dark:   #6B3DC8;
  --primary-light:  #A87DF3;
  --primary-xlight: #F0EAFF;
  --primary-glass:  rgba(140,89,239,0.12);
  --accent:         #C4D62E;
  --accent-dark:    #9AAC18;
  --bg:             #F0EAFF;
  --bg-soft:        #F9F6FF;
  --dark:           #2D1960;
  --dark-deep:      #1A0E40;
  --text:           #3D2B6E;
  --text-muted:     #7B6898;
  --border:         rgba(140,89,239,0.15);
  --white:          #FFFFFF;

  /* Shadow scale */
  --s1: 0 1px 3px rgba(45,25,96,0.06), 0 4px 12px rgba(45,25,96,0.06);
  --s2: 0 2px 8px rgba(45,25,96,0.07), 0 8px 28px rgba(45,25,96,0.09);
  --s3: 0 4px 16px rgba(45,25,96,0.08), 0 20px 56px rgba(45,25,96,0.12);
  --s4: 0 8px 24px rgba(45,25,96,0.10), 0 32px 80px rgba(45,25,96,0.18);

  /* Layout */
  --nav-h:    80px;
  --pad-sec:  120px;
  --contain:  1200px;
  --r:        18px;
  --r-lg:     28px;
  --r-xl:     40px;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  /* Motion */
  --ease:     0.3s ease;
  --ease-out: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-alt {
  --primary:        #3D8B8C;
  --primary-dark:   #2A6364;
  --primary-light:  #5AABAC;
  --primary-xlight: #E0F4F4;
  --primary-glass:  rgba(61,139,140,0.12);
  --accent:         #D4842A;
  --accent-dark:    #AA6320;
  --bg:             #F0F7F7;
  --bg-soft:        #FAFEFE;
  --dark:           #1A3838;
  --dark-deep:      #0F2424;
  --text:           #2A4848;
  --text-muted:     #5A7878;
  --border:         rgba(61,139,140,0.15);
}


/* ----------------------------------------------------------------
   RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-soft);
  overflow-x: hidden;
  transition: background var(--ease), color var(--ease);
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }


/* ----------------------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--dark);
}
h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.5rem; }

p  { line-height: 1.8; }
em { font-style: italic; color: var(--primary); }
strong { font-weight: 700; }

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-xlight);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}
.section-head h2 { margin-bottom: 1rem; }
.section-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
}


/* ----------------------------------------------------------------
   LAYOUT
---------------------------------------------------------------- */
.container {
  max-width: var(--contain);
  margin: 0 auto;
  padding: 0 2.5rem;
}
section { padding: var(--pad-sec) 0; }


/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(123,79,160,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(123,79,160,0.45);
}
.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: var(--dark);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--s2);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(123,79,160,0.3);
}
.btn-sm  { padding: 0.5rem 1.4rem; font-size: 0.85rem; }
.btn-lg  { padding: 1.1rem 2.6rem; font-size: 1.05rem; }


/* ----------------------------------------------------------------
   GLASS CARD
---------------------------------------------------------------- */
.glass-card {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--s3);
}


/* ----------------------------------------------------------------
   NAVIGATION
---------------------------------------------------------------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: box-shadow var(--ease);
}
#navbar.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--s1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
}
.footer-logo-img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.92;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  position: relative;
  transition: color var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-controls { display: flex; align-items: center; gap: 0.75rem; }

#lang-toggle, #theme-toggle {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.42rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--ease);
}
#lang-toggle:hover, #theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-xlight);
}
#theme-toggle { font-size: 1rem; padding: 0.38rem 0.75rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ----------------------------------------------------------------
   HERO
---------------------------------------------------------------- */
#hero {
  padding-top: var(--nav-h);
  background-color: var(--bg-soft);
  position: relative;
  overflow: visible;
}

/* Orb clipping wrapper — isolates blob overflow from #hero so content isn't clipped */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Decorative mesh orbs */
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}
.mesh-orb-1 {
  width: 560px; height: 560px;
  background: var(--primary-xlight);
  top: -180px; right: -100px;
  opacity: 0.8;
}
.mesh-orb-2 {
  width: 300px; height: 300px;
  background: rgba(196,214,46,0.3);
  bottom: 60px; left: 5%;
  opacity: 0.7;
}
.mesh-orb-3 {
  width: 200px; height: 200px;
  background: var(--primary-light);
  top: 40%; left: 42%;
  opacity: 0.12;
  filter: blur(80px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 460px 1fr;
  min-height: calc(100vh - var(--nav-h));
  position: relative;
  z-index: 1;
}

/* LEFT: photo column */
.hero-photo-panel {
  position: relative;
  overflow: hidden;
}
.hero-photo-panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
/* Soft fade where the photo meets the background */
.hero-photo-panel-fade {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 120px;
  background: linear-gradient(to right,
    transparent 0%,
    color-mix(in srgb, var(--bg-soft) 25%, transparent) 35%,
    color-mix(in srgb, var(--bg-soft) 65%, transparent) 65%,
    var(--bg-soft) 100%
  );
  pointer-events: none;
}

/* RIGHT: tags, copy, CTAs, compact quote */
.hero-content {
  max-width: 800px;
  padding: 48px 68px 110px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  justify-self: center;
}

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.hero-tags .tag { font-size: 10px; padding: 5px 12px; margin-bottom: 0; }

.hero-title {
  margin: 0 0 24px;
  color: var(--dark);
  line-height: 1.1;
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
}
.hero-title em {
  display: block;
  font-style: italic;
  color: var(--primary);
  line-height: 1.15;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-ctas { display: flex; justify-content: flex-start; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 100px; }

.btn-ghost-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--ease);
}
.btn-ghost-link:hover { color: var(--primary); }
.btn-ghost-link span { color: var(--primary); }

.hero-more-link {
  position: absolute;
  left: 24px;
  bottom: 48px;
  z-index: 3;
  white-space: nowrap;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 22px;
  border-radius: 100px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
}
.hero-more-link:hover {
  background: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.hero-more-link span { color: var(--primary); }

/* Compact Dreikurs quote — thin bar + text, below the CTAs */
.hero-quote-compact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 650px;
  margin-top: auto;
}
.hero-quote-bar {
  width: 2px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 60px;
  background: var(--primary-light);
  border-radius: 2px;
}
.hero-quote-compact .hfc-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}
.hero-quote-compact .hfc-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ----------------------------------------------------------------
   FOR WHOM — editorial image cards
---------------------------------------------------------------- */
#for-whom { background: var(--white); }

.img-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.img-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: default;
  box-shadow: var(--s3);
  transition: transform var(--ease-out), box-shadow var(--ease-out);
}
.img-card-featured { aspect-ratio: 3 / 4; }

.img-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--s4);
}
.img-card:hover img { transform: scale(1.06); }

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}

.img-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(29,10,80,0.96) 0%,
    rgba(45,25,96,0.65) 35%,
    rgba(45,25,96,0.15) 60%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.25rem 2rem;
}

.icard-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--white);
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}

.img-card-overlay h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.img-card-overlay p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.6;
}


/* ----------------------------------------------------------------
   ABOUT
---------------------------------------------------------------- */
#about {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

.about-accent-block {
  position: absolute;
  width: 340px; height: 460px;
  background: linear-gradient(135deg, var(--accent), rgba(196,214,46,0.3));
  border-radius: var(--r-xl);
  top: 80px; left: 40px;
  opacity: 0.12;
  transform: rotate(-6deg);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.65fr 1.55fr;
  align-items: start;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

/* Photo side */
.about-visual {
  position: relative;
  display: flex;
  justify-content: flex-start;
  margin-left: 2.5rem;
}

.about-img-frame {
  position: relative;
  display: inline-block;
}

.about-photo {
  width: 270px;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-lg);
  position: relative;
  z-index: 2;
  box-shadow: var(--s2);
}

/* Footer strip: institution credential badges */
.about-footer-strip {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.about-logos {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 1rem;
}
.cred-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.cred-badge-ucm .cred-badge-text { max-width: 280px; }
.cred-badge-logo {
  height: 38px;
  width: 38px;
  object-fit: contain;
  flex-shrink: 0;
}
.cred-badge-logo-pda { height: 32px; }
.cred-badge-initials {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cred-badge-text { display: flex; flex-direction: column; gap: 0.15rem; }
.cred-badge-text strong { font-size: 0.82rem; font-weight: 700; line-height: 1.3; color: var(--dark); }
.cred-badge-text span   { font-size: 0.76rem; color: var(--text-muted); line-height: 1.3; }
.cred-badge-bold .cred-badge-text span { font-weight: 700; color: var(--dark); }

/* Content side */
.about-content h2  { margin-bottom: 1rem; line-height: 1.1; }
.about-lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.75;
}


/* ----------------------------------------------------------------
   SERVICES / PILLARS
---------------------------------------------------------------- */
#services { background: var(--white); }

/* ----------------------------------------------------------------
   SERVICES GRID
---------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 1.75rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform var(--ease-out), box-shadow var(--ease-out);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--s3);
}

.service-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--ease-out);
}
.service-card:hover .service-img img { transform: scale(1.04); }

.service-body {
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}
.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}
.service-body h3 em {
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
}
.service-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.service-audience { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-audience .tag { font-size: 0.7rem; padding: 0.3rem 0.8rem; margin-bottom: 0; }


/* ----------------------------------------------------------------
   HOW IT WORKS
---------------------------------------------------------------- */
#how {
  background: var(--bg);
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem 1.75rem;
  box-shadow: var(--s1);
  transition: transform var(--ease-out), box-shadow var(--ease-out);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--s3);
}
.step-card-final {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
}
.step-card-final h3, .step-card-final p { color: rgba(255,255,255,0.9); }
.step-card-final .step-num { background: rgba(255,255,255,0.2); color: var(--white); box-shadow: none; }

.step-num-wrap { margin-bottom: 1.25rem; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary-xlight);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(123,79,160,0.2);
}
.step-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 0.375rem;
}
.step-card-final .step-body p { color: rgba(255,255,255,0.7); }

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  opacity: 0.5;
  padding: 0 0.5rem;
  padding-top: 1.5rem;
  width: 70px;
}
.step-connector svg { width: 60px; height: 24px; }


/* ----------------------------------------------------------------
   TESTIMONIALS
---------------------------------------------------------------- */
#testimonials {
  position: relative;
  padding: var(--pad-sec) 0;
  overflow: hidden;
}

.test-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.test-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.test-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(29,10,80,0.94) 0%,
    rgba(45,25,96,0.88) 50%,
    rgba(20,5,60,0.96) 100%
  );
  z-index: 1;
}

.test-tag { background: rgba(196,214,46,0.15); color: var(--accent); border-color: rgba(196,214,46,0.25); }
.test-h2  { color: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  position: relative;
  z-index: 2;
}

.testimonial {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--ease), transform var(--ease-out);
}
.testimonial:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-6px);
}

.testimonial-featured {
  background: rgba(123,79,160,0.45);
  border-color: rgba(157,112,200,0.4);
  box-shadow: 0 8px 40px rgba(123,79,160,0.4);
  transform: translateY(-8px);
}
.testimonial-featured:hover {
  transform: translateY(-14px);
  background: rgba(123,79,160,0.55);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.55;
  color: var(--accent);
  opacity: 0.6;
  font-weight: 700;
}

.quote-text {
  font-size: 0.97rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  flex: 1;
  font-style: italic;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.2);
}
.testimonial-featured .author-avatar { background: var(--accent); color: var(--dark); }

.author-name {
  display: block;
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
}
.author-year {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}


/* ----------------------------------------------------------------
   CONTACT
---------------------------------------------------------------- */
#contact { background: var(--bg-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact-content h2 { margin-bottom: 1.25rem; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.contact-content p  { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.05rem; }

.contact-invite {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--primary) !important;
  margin-bottom: 2rem !important;
  line-height: 1.3;
}

.contact-photo-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--s1);
}
.contact-photo-strip img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--primary-xlight);
  flex-shrink: 0;
}
.contact-photo-text { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-photo-text strong { font-size: 0.92rem; color: var(--dark); }
.contact-photo-text span  { font-size: 0.78rem; color: var(--text-muted); }

.contact-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 2.75rem;
  box-shadow: var(--s4);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid var(--border);
}
.contact-card h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.contact-info { display: flex; flex-direction: column; gap: 0.875rem; margin-bottom: 0.5rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text);
  transition: color var(--ease);
  padding: 0.75rem 1rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: all var(--ease);
}
.contact-item:hover {
  color: var(--primary);
  background: var(--primary-xlight);
  border-color: var(--border);
}
.ci-icon-wrap {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  border: 1px solid var(--border);
  transition: background var(--ease), color var(--ease);
}
.contact-item:hover .ci-icon-wrap {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Divider between quick-contact buttons and the form */
.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glass);
}

/* Honeypot — visually hidden from real users, still present for bots to fill in */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.form-consent input { margin-top: 0.2rem; flex-shrink: 0; }
.form-consent a { color: var(--primary); font-weight: 700; }

.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.form-feedback-success { background: var(--primary-xlight); color: var(--primary-dark); }
.form-feedback-error   { background: rgba(200,60,60,0.1); color: #a83232; }


/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
footer {
  background: var(--dark-deep);
  padding: 4rem 0 2.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.6fr;
  align-items: start;
  gap: 3rem;
}

.footer-brand { display: flex; flex-direction: row; align-items: center; gap: 1.25rem; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.footer-title {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}

.footer-links { display: flex; flex-direction: column; gap: 0.875rem; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--white); }

.footer-legal { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-legal p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-legal a { color: rgba(255,255,255,0.6); transition: color var(--ease); }
.footer-legal a:hover { color: var(--white); }
.footer-credit strong { color: rgba(196,214,46,0.8); }


/* ----------------------------------------------------------------
   WHATSAPP FAB
---------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 900;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(123,79,160,0.5);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}
.whatsapp-fab:hover {
  background: var(--primary-dark);
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 40px rgba(123,79,160,0.6);
}


/* ----------------------------------------------------------------
   COOKIE CONSENT BANNER
---------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 1.5rem; right: 1.5rem; bottom: 1.5rem;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { flex: 1 1 340px; }
.cookie-banner-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.cookie-banner-text p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.cookie-banner-text a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

@media (max-width: 480px) {
  .cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; padding: 1.25rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}


/* ----------------------------------------------------------------
   ENTRANCE ANIMATIONS
---------------------------------------------------------------- */
.animate {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.animate.visible { opacity: 1; transform: translateY(0); }

/* stagger */
.animate:nth-child(2) { transition-delay: 0.1s; }
.animate:nth-child(3) { transition-delay: 0.2s; }
.animate:nth-child(4) { transition-delay: 0.3s; }
.animate:nth-child(5) { transition-delay: 0.4s; }

/* hero loads immediately */
.hero-content > * { animation: heroFadeUp 0.8s cubic-bezier(0.16,1,0.3,1) both; }
.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.24s; }
.hero-content > *:nth-child(3) { animation-delay: 0.33s; }
.hero-content > *:nth-child(4) { animation-delay: 0.42s; }
.hero-content > *:nth-child(5) { animation-delay: 0.51s; }
.hero-photo-panel { animation: heroFadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.2s both; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ----------------------------------------------------------------
   VIEWPORT HEIGHT — short screens (laptops with browser chrome)
---------------------------------------------------------------- */
@media (max-height: 860px) {
  .hero-content { padding-top: 24px; padding-bottom: 100px; }
  .hero-sub { margin-bottom: 20px; }
  .hero-ctas { margin-bottom: 80px; }
}

@media (max-height: 650px) {
  .hero-title { font-size: clamp(1.75rem, 3.5vw, 2.4rem); }
  .hero-sub { margin-bottom: 14px; }
  .hero-ctas { margin-bottom: 56px; }
  .hero-quote-compact .hfc-text { margin-bottom: 0.2rem; }
}

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --pad-sec: 90px; }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
  }
  .step-connector { display: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(1),
  .pillar:nth-child(2),
  .pillar:nth-child(3),
  .pillar:nth-child(4),
  .pillar:nth-child(5) { grid-column: auto; }
}

@media (max-width: 900px) {
  .logo-name { display: none; }
  .nav-cta   { display: none; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    padding: 2rem 2.5rem;
    box-shadow: var(--s3);
    gap: 1.5rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }
  .hero-photo-panel { height: 320px; }
  .hero-photo-panel-fade { display: none; }
  .hero-content { padding: 48px 32px; max-width: none; align-items: center; }
  .hero-tags { justify-content: center; }
  .hero-sub { margin: 0 auto; }
  .hero-ctas { justify-content: center; }
  .hero-quote-compact { max-width: 420px; margin: 0 auto; text-align: left; }

  .img-cards-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .img-card, .img-card-featured { aspect-ratio: 16 / 9; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo { width: 100%; height: 360px; border-radius: var(--r); }
  .about-logos { flex-wrap: wrap; gap: 1.5rem 2rem; }
  .cred-badge { flex: 0 1 auto; max-width: 220px; }

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

  .steps-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-featured { transform: none; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  :root { --nav-h: 68px; --pad-sec: 64px; }
  #navbar { padding: 0 1.25rem; }
  .container { padding: 0 1.25rem; }
  .hero-content { padding: 2rem 1.25rem 2.5rem; }
  .contact-card { padding: 2rem; }
  .btn-lg { padding: 1rem 2rem; }
  .hero-photo-panel { height: 260px; }
}
