/* ─────────────────────────────────────────────
   PAULO CORTEZ — DESIGN SYSTEM
   Aesthetic: Editorial × Premium B2B
   Reference: Neolith-level craft, Apple pace
   Stack: Native CSS + GSAP (scroll-driven)
───────────────────────────────────────────── */

/* FONTS ──────────────────────────────────── */
@font-face {
  font-family: "Space Grotesk";
  src: url("../assets/fonts/space-grotesk-latin-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* TOKENS ────────────────────────────────── */
:root {
  /* Colour */
  --ink:          #0F2A33;
  --ink-soft:     #3D5860;
  --ink-light:    #59717B;
  --teal:         #0099B0;
  --teal-deep:    #006478;
  --teal-dark:    #013D49;
  --gold:         #946818;
  --gold-light:   #C8902A;
  --paper:        #FFFFFF;
  --paper-warm:   #F6F9FA;
  --paper-edge:   #E4EDF0;

  /* Type */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.75rem;
  --text-6xl:  5rem;
  --text-7xl:  6.5rem;

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Radius */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

/* RESET ─────────────────────────────────── */
*, *::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(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
svg { display: block; }

/* LAYOUT HELPERS ────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-32); }
.section--lg { padding-block: clamp(4rem, 10vw, 8rem); }

/* TYPOGRAPHY UTILITIES ──────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

.display {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* VISIBILITY / ANIMATION ────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 1.25rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease,
              padding 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  padding-block: 0.875rem;
  box-shadow: 0 1px 0 var(--paper-edge);
}

#header.dark {
  --header-color: rgba(255,255,255,0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.header-logo img {
  height: 36px;
  width: auto;
}
.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header-logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: color 0.3s;
}
.header-logo-sub {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  transition: color 0.3s;
}

#header.hero-active .header-logo-name,
#header.hero-active .header-logo-sub { color: rgba(255,255,255,0.9); }

nav.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.header-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--ink); }

#header.hero-active .header-nav a { color: rgba(255,255,255,0.72); }
#header.hero-active .header-nav a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }

/* CTA primary */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-md);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(148,104,24,0.28);
}
.btn-primary:hover {
  background: #7d570f;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(148,104,24,0.36);
}
.btn-primary:active { transform: translateY(0); }

/* CTA secondary */
.btn-sec {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1.5px solid var(--paper-edge);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-md);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
  background: #fff;
}
.btn-sec:hover { border-color: var(--teal); color: var(--teal-deep); }

/* CTA ghost (on dark) */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }

/* Hamburger */
.header-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  width: 36px;
}
.header-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}
#header.hero-active .header-menu-toggle span { background: #fff; }
.header-menu-toggle span:nth-child(2) { width: 70%; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--teal-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Gradient overlay */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(1,61,73,0.62) 0%,
    rgba(1,61,73,0.32) 18%,
    rgba(1,61,73,0.55) 50%,
    rgba(1,61,73,0.9) 100%
  );
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.06);
  transition: transform 8s var(--ease-out);
}

.hero-bg-img.loaded { transform: scale(1); }

/* Subtle teal accent shape */
.hero-accent {
  position: absolute;
  right: -10%;
  top: 15%;
  width: 55vw;
  max-width: 800px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,153,176,0.18) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: 7rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: flex-end;
}

.hero-left { max-width: 640px; }

.hero-eyebrow {
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-6);
}
.hero-eyebrow::before { background: rgba(0,153,176,0.8); }

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--space-6);
}

.hero-headline em {
  font-style: italic;
  color: rgba(0,180,200,0.9);
}

.hero-sub {
  font-size: clamp(var(--text-base), 1.3vw, var(--text-lg));
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: var(--space-10);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: var(--space-6);
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: var(--space-6);
}

.hero-stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2.4s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.9; }
}

/* ═══════════════════════════════════════════
   TRUST STRIP (logo wall)
═══════════════════════════════════════════ */
#trust {
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--paper-edge);
  overflow: hidden;
}

.trust-label {
  text-align: center;
  margin-bottom: var(--space-8);
}

.trust-track-wrapper { overflow: hidden; position: relative; }
.trust-track-wrapper::before,
.trust-track-wrapper::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 8rem;
  z-index: 1;
  pointer-events: none;
}
.trust-track-wrapper::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.trust-track-wrapper::after { right: 0; background: linear-gradient(to left, var(--paper), transparent); }

.trust-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  animation: marquee 36s linear infinite;
  width: max-content;
}

.trust-track:hover { animation-play-state: paused; }

.trust-logo {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: filter 0.3s, opacity 0.3s;
  flex-shrink: 0;
}
.trust-logo:hover { filter: none; opacity: 1; }
.trust-logo.lg { height: 46px; max-width: 140px; }

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

/* ═══════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════ */
#services { background: var(--paper-warm); }

.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: end;
  margin-bottom: var(--space-16);
}

.services-head-left .section-title {
  font-family: var(--font-head);
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl));
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: var(--space-4);
}

.services-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--space-6);
  padding-bottom: 0.35rem;
}

.services-head-right p {
  font-size: var(--text-base);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 420px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--paper-edge);
  border: 1px solid var(--paper-edge);
}

.service-card {
  background: var(--paper);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  cursor: pointer;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.service-card:hover { background: var(--paper-warm); }
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: rgba(0,153,176,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--teal-deep);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-num {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-light);
}

.service-title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.65;
  flex: 1;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal-deep);
  margin-top: var(--space-2);
  transition: gap 0.2s;
}
.service-card:hover .service-link { gap: 0.625rem; }

.service-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Topics (temas) */
.topics-wrapper {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--paper-edge);
}

.topics-label {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-6);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.topic-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-lg);
  padding: var(--space-4) var(--space-4);
  min-height: 76px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  font-family: var(--font-body);
}

.topic-chip:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(0,153,176,0.1);
  transform: translateY(-2px);
}

.topic-chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(0,153,176,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.topic-chip-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal-deep);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-chip-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════
   ABOUT (BENTO-STYLE)
═══════════════════════════════════════════ */
#about { background: var(--paper); }

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

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-lg);
}

.about-photo-badge {
  position: absolute;
  bottom: 2rem;
  right: -1.5rem;
  background: var(--teal-dark);
  color: #fff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-lg);
  box-shadow: 0 16px 48px rgba(1,61,73,0.35);
  display: block;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  cursor: pointer;
}
.about-photo-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 56px rgba(1,61,73,0.45);
}

.about-badge-num {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.about-badge-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.about-content { padding-left: var(--space-4); }

.about-title {
  font-family: var(--font-head);
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin: var(--space-4) 0 var(--space-6);
}

.about-bio {
  font-size: var(--text-base);
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.about-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--teal-deep);
  background: rgba(0,153,176,0.07);
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid var(--paper-edge);
}

.about-stat-num {
  font-family: var(--font-head);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
  line-height: 1;
}

.about-stat-label {
  font-size: var(--text-sm);
  color: var(--ink-light);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
#testimonials { background: var(--ink); overflow: hidden; }

.testimonials-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-12);
}

.testimonials-head .eyebrow { color: rgba(255,255,255,0.4); }
.testimonials-head .eyebrow::before { background: rgba(255,255,255,0.2); }

.testimonials-title {
  font-family: var(--font-head);
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #fff;
  margin-top: var(--space-3);
}

.testimonials-nav {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.t-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.t-nav-btn:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.t-nav-btn:disabled { opacity: 0.3; cursor: default; }
.t-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.testimonials-viewport { overflow: hidden; }

.testimonials-track {
  display: flex;
  gap: var(--space-6);
  transition: transform 0.55s var(--ease-out);
}

.t-card {
  flex: 0 0 calc((100% - 2 * var(--space-6)) / 3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.t-quote-mark {
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 0.7;
  color: rgba(0,153,176,0.35);
  font-weight: 700;
  user-select: none;
}

.t-text {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  flex: 1;
}

.t-author {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-4);
}

.t-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: #fff;
}

.t-role {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  margin-top: 0.15rem;
}

.t-dots {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.t-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.t-dot.active { background: var(--teal); width: 24px; border-radius: 3px; }

/* ═══════════════════════════════════════════
   PARTNERS
═══════════════════════════════════════════ */
#partners { background: var(--paper-warm); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-edge);
  border: 1px solid var(--paper-edge);
  margin-top: var(--space-12);
}

.partner-card {
  background: var(--paper);
  padding: 2.5rem 2rem;
  transition: background 0.25s;
}

.partner-card:hover { background: var(--paper-warm); }

.partner-logo-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  margin-bottom: var(--space-6);
}

.partner-logo {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s, opacity 0.3s;
}
.partner-card:hover .partner-logo { filter: none; opacity: 1; }

.partner-title {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.partner-desc {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.partner-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.partner-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  color: var(--ink-soft);
}

.partner-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   MATERIALS / FREE TOOLS
═══════════════════════════════════════════ */
#materials { background: var(--paper); }

.materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.material-card {
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  background: var(--paper);
  box-shadow: 0 4px 24px rgba(15,42,51,0.04);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.material-tag {
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.material-tag--pdf { background: rgba(0,100,120,0.08); color: var(--teal-deep); }
.material-tag--tool { background: rgba(148,104,24,0.1); color: var(--gold); }

.material-title {
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.material-desc {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.7;
}

.material-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.material-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.material-bullet::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 0.45em;
}

/* Form within card */
.material-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.material-form input {
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.material-form input:focus { border-color: var(--teal); }

.material-submit {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.875rem;
  border-radius: var(--r-md);
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.material-submit:hover { background: var(--teal-dark); }

.material-note {
  font-size: var(--text-xs);
  color: var(--ink-light);
  text-align: center;
}

.material-cta-wrap { margin-top: auto; }

.material-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--teal-deep);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.875rem;
  border-radius: var(--r-md);
  transition: background 0.2s;
  font-family: var(--font-body);
}
.material-cta-btn:hover { background: var(--teal-dark); }

.material-cta-note {
  font-size: var(--text-xs);
  color: var(--ink-light);
  text-align: center;
  margin-top: var(--space-3);
}

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
#faq { background: var(--paper-warm); }

.faq-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-16);
  align-items: start;
  margin-top: var(--space-12);
}

.faq-left .faq-title {
  font-family: var(--font-head);
  font-size: clamp(var(--text-3xl), 3vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin-top: var(--space-4);
}

.faq-left p {
  font-size: var(--text-base);
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: var(--space-6);
}

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--paper-edge);
}

.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: 1.375rem;
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-q:hover { color: var(--teal-deep); }

.faq-chevron {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }

.faq-a-inner {
  overflow: hidden;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.75;
  padding-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════ */
#cta {
  background: var(--teal-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}

#cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0,153,176,0.25), transparent);
  pointer-events: none;
}

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

.cta-eyebrow { color: rgba(255,255,255,0.45); justify-content: center; }
.cta-eyebrow::before { background: rgba(255,255,255,0.2); }

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(var(--text-3xl), 4.5vw, var(--text-6xl));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: #fff;
  margin: var(--space-4) 0 var(--space-4);
  max-width: 720px;
  margin-inline: auto;
}

.cta-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
}

.footer-top {
  padding-block: var(--space-16);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand-logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
  margin-bottom: var(--space-4);
}

.footer-brand-desc {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  color: rgba(255,255,255,0.45);
}
.footer-social-link:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.footer-social-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-4);
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col-links a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  padding-block: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.footer-copy { font-size: var(--text-xs); }

.footer-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-rating:hover { color: rgba(255,255,255,0.75); }

.footer-stars { color: #F59E0B; letter-spacing: 0.05em; }

/* ═══════════════════════════════════════════
   TOPIC MODAL
═══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(1,61,73,0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--paper);
  border-radius: var(--r-lg);
  max-width: 600px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.28s var(--ease-out);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.modal-close:hover { background: var(--paper-edge); }
.modal-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal-banner {
  height: 120px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-banner-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-banner-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-body { padding: 1.75rem 2rem 2rem; }

.modal-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: var(--space-2);
}

.modal-title {
  font-family: var(--font-head);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: var(--space-6);
}

.modal-section { margin-bottom: var(--space-6); }

.modal-section h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: var(--space-3);
}

.modal-section p { font-size: var(--text-sm); color: var(--ink-soft); line-height: 1.7; }

.modal-modules {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.modal-module {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.55;
}

.modal-module::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 0.45em;
}

.modal-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--paper-edge);
}

/* WhatsApp float */
.wpp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wpp-float:hover { transform: scale(1.08); box-shadow: 0 10px 32px rgba(37,211,102,0.55); }
.wpp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ═══════════════════════════════════════════
   SECTION HEADERS (reusable)
═══════════════════════════════════════════ */
.section-header { margin-bottom: var(--space-12); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin-top: var(--space-3);
}

.section-title--light { color: #fff; }

/* ═══════════════════════════════════════════
   MOBILE NAV (slide-down)
═══════════════════════════════════════════ */
#mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  padding: 5.5rem var(--gutter) 2rem;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 16px 40px rgba(15,42,51,0.12);
}
#mobile-nav.open { transform: translateY(0); display: flex; }

.mobile-nav-link {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--paper-edge);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--teal-deep); }

.mobile-nav-cta { margin-top: var(--space-4); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .services-head { grid-template-columns: 1fr; gap: var(--space-6); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 480px; margin-inline: auto; }
  .about-photo-badge { right: 0; }
  .about-content { padding-left: 0; }
  .partners-grid { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-top { grid-template-columns: 1fr; }
  .t-card { flex: 0 0 calc(100vw - 4 * var(--gutter)); }
  nav.header-nav { display: none; }
  .header-menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .testimonials-head { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
}
