/* =========================================================
   Andean Legacy Consultants — Brand Stylesheet
   Palette: Deep Navy #142845 | Cream #FDFBF7 / #F4F1EA
            Charcoal #2C2C2C | Muted Gold #C5A059
   Type:    Playfair Display (headings) | Inter (body)
   ========================================================= */

:root {
  --navy: #142845;
  --navy-soft: #1D3A64;
  --cream: #FDFBF7;
  --sand: #F4F1EA;
  --charcoal: #2C2C2C;
  --gray: #6b6b66;
  --gold: #C5A059;
  --gold-dark: #a9843f;
  --line: rgba(44, 44, 44, 0.14);
  --line-light: rgba(253, 251, 247, 0.22);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--charcoal);
}

a { color: var(--navy); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--gold-dark); }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Wordmark ---------- */
.wordmark {
  display: inline-block;
  text-align: center;
  line-height: 1.1;
}
.wordmark .wm-main {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: var(--charcoal);
  text-transform: uppercase;
  display: block;
}
.wordmark .wm-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.55rem;
  letter-spacing: 0.52em;
  color: var(--gold-dark);
  text-transform: uppercase;
  display: block;
  margin-top: 0.2rem;
}
.wordmark.wm-light .wm-main { color: var(--cream); }
.wordmark.wm-light .wm-sub { color: var(--gold); }

.wordmark.has-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.wm-badge {
  width: 72px;
  height: 72px;
  display: block;
}
.wm-text {
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(44, 44, 44, 0.07); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.main-nav { display: flex; align-items: center; gap: 2.2rem; }

.main-nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  text-align: center;
  line-height: 1.5;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.35s ease;
  text-align: center;
}
.btn-gold {
  background: var(--gold);
  color: #fff !important;
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--cream) !important;
  border-color: rgba(253, 251, 247, 0.6);
}
.btn-outline:hover {
  background: rgba(253, 251, 247, 0.12);
  border-color: var(--cream);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy) !important;
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--cream) !important;
}
.main-nav .btn { padding: 0.7rem 1.5rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px; height: 26px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--charcoal);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 40, 69, 0.55) 0%, rgba(20, 40, 69, 0.72) 100%);
}

/* Hero carousel */
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.6s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
  animation: heroZoom 9s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
.hero-dots {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.8rem;
}
.hero-dots button {
  width: 34px;
  height: 3px;
  border: none;
  padding: 0;
  background: rgba(253, 251, 247, 0.35);
  cursor: pointer;
  transition: background 0.35s ease;
}
.hero-dots button.active { background: var(--gold); }
.hero-dots button:hover { background: rgba(253, 251, 247, 0.7); }
.hero-dots button.active:hover { background: var(--gold); }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 10rem 0 6rem;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 1.6rem;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  color: rgba(253, 251, 247, 0.88);
  max-width: 620px;
  margin-bottom: 2.6rem;
}
.hero-ctas { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 40, 69, 0.45) 0%, rgba(20, 40, 69, 0.78) 100%);
}
.page-hero .hero-content { padding: 9rem 0 4rem; }
.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--cream);
  margin-bottom: 1rem;
}
.page-hero .lede { margin-bottom: 0.5rem; }

/* ---------- Sections ---------- */
section { padding: 6rem 0; }

.section-heading { max-width: 720px; margin-bottom: 3.5rem; }
.section-heading.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom: 1.1rem;
}
.section-heading p { color: var(--gray); font-size: 1.05rem; }

.bg-sand { background-color: var(--sand); }
.bg-navy { background-color: var(--navy); color: rgba(253, 251, 247, 0.85); }
.bg-navy h2, .bg-navy h3 { color: var(--cream); }

/* Value proposition / quote */
.value-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  max-width: 860px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--navy);
}
.value-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: var(--gray);
  font-size: 1.08rem;
}

/* Pathway cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.pathway-card {
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pathway-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(20, 40, 69, 0.12);
}
.pathway-card .card-img {
  height: 230px;
  overflow: hidden;
}
.pathway-card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.pathway-card:hover .card-img img { transform: scale(1.05); }
.pathway-card .card-body {
  padding: 2rem 1.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pathway-card h3 { font-size: 1.35rem; margin-bottom: 0.9rem; }
.pathway-card p { color: var(--gray); font-size: 0.98rem; flex: 1; }
.card-link {
  margin-top: 1.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.card-link::after {
  content: "\2192";
  margin-left: 0.5rem;
  transition: margin-left 0.3s ease;
}
.pathway-card:hover .card-link::after { margin-left: 0.9rem; }

/* Why us — editorial numbered list */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.why-list { display: flex; flex-direction: column; }
.why-item {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.4rem;
}
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-num {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--gold);
  line-height: 1;
}
.why-item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.why-item p { color: var(--gray); font-size: 0.97rem; }
.why-img {
  height: 100%;
  min-height: 460px;
  overflow: hidden;
}
.why-img img { width: 100%; height: 100%; object-fit: cover; }

/* Packages */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}
.price-card {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 2.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(20, 40, 69, 0.12);
}
.price-card.featured {
  background: var(--navy);
  border-color: var(--navy);
}
.price-card.featured h3,
.price-card.featured .price { color: var(--cream); }
.price-card.featured li, .price-card.featured p { color: rgba(253, 251, 247, 0.82); }
.price-card .tier {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}
.price-card.featured .tier { color: var(--gold); }
.price-card h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.price-card .price {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.price-card .price small {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--gray);
}
.price-card.featured .price small { color: rgba(253, 251, 247, 0.6); }
.price-card ul {
  list-style: none;
  margin: 1.6rem 0 2rem;
  flex: 1;
}
.price-card li {
  padding: 0.55rem 0 0.55rem 1.7rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--gray);
  border-top: 1px solid var(--line);
}
.price-card.featured li { border-top-color: var(--line-light); }
.price-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.pricing-note {
  max-width: 780px;
  margin: 2.8rem auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray);
}

/* Global corridor — split section */
.corridor { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.corridor-panel {
  padding: 5.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.corridor-inbound { background: var(--sand); }
.corridor-outbound { background: var(--navy); color: rgba(253, 251, 247, 0.85); }
.corridor-panel .eyebrow { margin-bottom: 1.2rem; }
.corridor-inbound .eyebrow { color: var(--gold-dark); }
.corridor-panel h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  margin-bottom: 1.2rem;
}
.corridor-outbound h3 { color: var(--cream); }
.corridor-panel p { margin-bottom: 2.2rem; max-width: 480px; }
.corridor-inbound p { color: var(--gray); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  color: var(--cream);
  margin-bottom: 1.2rem;
}
.cta-band p {
  max-width: 560px;
  margin: 0 auto 2.4rem;
  color: rgba(253, 251, 247, 0.8);
}

/* Clarity session strip */
.clarity-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}
.clarity-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.clarity-inner h3 { font-size: 1.5rem; }
.clarity-inner p { color: var(--gray); max-width: 560px; }

/* ---------- Content pages ---------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.8rem; margin: 3rem 0 1.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 2rem 0 0.8rem; }
.prose p { margin-bottom: 1.2rem; color: var(--gray); }
.prose ul { margin: 0 0 1.4rem 1.3rem; color: var(--gray); }
.prose li { margin-bottom: 0.55rem; }
.prose strong { color: var(--charcoal); font-weight: 500; }

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

/* Service detail rows */
.service-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}
.service-row:last-of-type { border-bottom: 1px solid var(--line); }
.service-row .num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
}
.service-row h3 { font-size: 1.45rem; margin-bottom: 0.8rem; }
.service-row p { color: var(--gray); max-width: 760px; }
.service-row ul { margin: 1rem 0 0 1.2rem; color: var(--gray); }
.service-row li { margin-bottom: 0.4rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4.5rem;
}
.contact-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 1.6rem 0 0.5rem;
  color: var(--charcoal);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid var(--line);
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .btn { margin-top: 2rem; width: 100%; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-aside h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.contact-aside p { color: var(--gray); margin-bottom: 1.6rem; }
.contact-detail {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.contact-detail:last-child { border-bottom: 1px solid var(--line); }
.contact-detail .label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.3rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(253, 251, 247, 0.72);
  padding: 4.5rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-light);
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: rgba(253, 251, 247, 0.72); }
.site-footer a:hover { color: var(--gold); }
.footer-tagline { margin-top: 1.2rem; max-width: 300px; font-style: italic; font-family: var(--font-serif); color: rgba(253, 251, 247, 0.6); }
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(253, 251, 247, 0.45);
  margin: 2rem 0 1.4rem;
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(253, 251, 247, 0.5);
}
.footer-bottom a { color: rgba(253, 251, 247, 0.6); margin-left: 1.4rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid, .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .why-grid, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .why-img { min-height: 320px; order: -1; }
  .corridor { grid-template-columns: 1fr; }
  .corridor-panel { padding: 4rem 2.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Collapse the nav to the hamburger while the full menu can't fit beside the wordmark */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav a { font-size: 1rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 760px) {
  section { padding: 4rem 0; }
  .hero { min-height: 78vh; }
  .hero-content { padding: 8rem 0 4rem; }
  .service-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom a { margin-left: 0; margin-right: 1.4rem; }
}

/* ---------- Language switch (flags) ---------- */
.lang-switch { display: flex; align-items: center; gap: 0.55rem; }
.lang-switch a {
  display: inline-flex;
  line-height: 0;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 3px;
  opacity: 0.45;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
.lang-switch a svg {
  width: 26px;
  height: 17px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(44, 44, 44, 0.12);
}
.lang-switch a:hover { opacity: 0.85; }
.lang-switch a.active { opacity: 1; border-color: var(--gold); }
