/* ============================================
   Fabian Consulting -- Brand CSS
   Palette: "Two Languages, One Table" -- confident,
   warm, Caribbean-vibrant, professional (not touristy)
   ============================================ */

:root {
  --navy: #10202E;       /* ink -- headings, primary text on light */
  --steel: #B2532E;      /* warm clay -- hover/secondary accent */
  --blue: #12928A;       /* deep turquoise -- primary interactive accent */
  --blue-soft: #35B3AA;  /* lighter turquoise -- hover state */
  --blue-light: #E3F5F2; /* pale turquoise tint -- backgrounds */
  --coral: #E4573F;      /* hibiscus coral -- secondary accent */
  --marigold: #E8952E;   /* sun marigold -- tertiary accent */
  --slate: #4A5A5C;
  --gray: #79908F;
  --gray-light: #F3EFE3; /* warm sand tint */
  --white: #FFFDF9;      /* warm paper white, not stark */
  --border: #E4DFCF;
  --shadow: rgba(16, 32, 46, 0.08);
  --shadow-md: rgba(16, 32, 46, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  /* guards against the off-canvas mobile nav (position:fixed + transform)
     being counted into document scrollWidth on some Chromium builds */
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--steel); }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  font-family: 'Sora', system-ui, sans-serif;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

.accent-script {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: var(--coral);
}

/* ---------- layout ---------- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--gray-light);
}

.section--blue {
  background: var(--blue-light);
}

/* ---------- wave divider ---------- */

.wave-divider {
  display: block;
  width: 100%;
  height: 28px;
  line-height: 0;
}

.wave-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  height: 34px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Figtree';
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--marigold), var(--coral));
}

/* language toggle (nav) */
.lang-toggle {
  display: inline-flex;
  border: 1.5px solid var(--navy);
  border-radius: 20px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-toggle button {
  background: transparent;
  border: none;
  padding: 6px 13px;
  cursor: pointer;
  font: inherit;
  color: var(--navy);
  transition: background 0.2s, color 0.2s;
}

.lang-toggle button.active {
  background: var(--navy);
  color: var(--white);
}

.lang-toggle button:hover:not(.active) {
  background: var(--blue-light);
}

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 64px;
    right: -340px;
    bottom: 0;
    width: min(320px, 88vw);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 32px var(--shadow);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 148px 0 108px;
  background:
    radial-gradient(ellipse 620px 420px at 14% 8%, rgba(232, 149, 46, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 560px 480px at 88% 22%, rgba(18, 146, 138, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 50% 100%, rgba(228, 87, 63, 0.08) 0%, transparent 60%),
    var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-kicker {
  font-family: 'Figtree';
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .last {
  color: var(--coral);
}

/* ---- animated bilingual cycler (decorative, aria-hidden) ---- */

.lang-cycle {
  position: relative;
  min-height: 1.5em;
  max-width: 620px;
  margin: 0 auto 14px;
  overflow: hidden;
  font-family: 'Sora';
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.lang-cycle .slot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.lang-cycle .slot.visible {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.lang-cycle .slot.leaving {
  opacity: 0;
  transform: translateY(-14px);
}

.lang-cycle .flag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lang-cycle .slot[data-lang="en"] { color: var(--blue); }
.lang-cycle .slot[data-lang="en"] .flag-dot { background: var(--blue); }
.lang-cycle .slot[data-lang="es"] { color: var(--coral); }
.lang-cycle .slot[data-lang="es"] .flag-dot { background: var(--coral); }

@media (prefers-reduced-motion: reduce) {
  .lang-cycle { position: static; min-height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
  .lang-cycle .slot { position: static; opacity: 1; transform: none; }
}

.hero-tagline {
  font-family: 'Figtree';
  font-weight: 400;
  font-size: 1.14rem;
  color: var(--slate);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-portrait {
  width: 228px;
  height: 288px;
  border-radius: 114px 114px 16px 16px;
  object-fit: cover;
  object-position: 50% 4%;
  border: 5px solid var(--white);
  box-shadow: 0 14px 40px var(--shadow-md), 0 0 0 3px var(--marigold);
  margin: 0 auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: 30px;
  font-family: 'Figtree';
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 16px var(--shadow);
}

.hero-cta:hover {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow-md);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
}

/* ---------- feature cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 32px var(--shadow);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}

/* rotate accent colors across the three-up card grid so the page reads
   multi-hued without any single card looking mismatched */
.card-grid .card:nth-child(3n+2) .card-icon { background: rgba(228, 87, 63, 0.12); color: var(--coral); }
.card-grid .card:nth-child(3n+3) .card-icon { background: rgba(232, 149, 46, 0.15); color: var(--marigold); }
.card-grid .card:nth-child(3n+2):hover { border-color: var(--coral); }
.card-grid .card:nth-child(3n+3):hover { border-color: var(--marigold); }

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  color: var(--navy);
}

.card p {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------- section headers ---------- */

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header .kicker {
  font-family: 'Figtree';
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* ---------- divider ---------- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}

.divider .line {
  height: 1px;
  width: 48px;
  background: var(--border);
}

.divider .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- two-col ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.two-col img {
  border-radius: 20px 20px 20px 60px;
}

/* ---------- timeline ---------- */

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--marigold), var(--coral), var(--blue));
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-light);
}

.timeline-item:nth-child(2)::before { background: var(--marigold); }
.timeline-item:nth-child(3)::before { background: var(--blue); }

.timeline-year {
  font-family: 'Figtree';
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.92rem;
  color: var(--gray);
  margin-bottom: 0;
}

/* ---------- contact ---------- */

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 12px 40px var(--shadow);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--slate);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.contact-link:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--navy);
  transform: translateY(-1px);
}

.contact-link .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--steel);
}

.contact-link .ico svg {
  width: 18px;
  height: 18px;
}

.contact-link .txt {
  text-align: left;
  line-height: 1.3;
}

.contact-link .txt small {
  font-family: 'Figtree';
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 700;
  display: block;
}

/* ---------- footer ---------- */

.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray);
  background: var(--navy);
  color: rgba(255, 253, 249, 0.7);
}

.footer a {
  color: rgba(255, 253, 249, 0.7);
}

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

.footer .sep {
  margin: 0 10px;
  color: rgba(255, 253, 249, 0.3);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 28px;
  font-family: 'Figtree';
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn--primary:hover {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--navy);
}

/* ---------- utilities ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* ---------- animations ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- responsive ---------- */

@media (max-width: 480px) {
  .hero { padding: 128px 0 64px; }
  .section { padding: 60px 0; }
  .container { padding: 0 20px; }
  .contact-card { padding: 32px 22px; }
}
