/* ============================================================
   Abalos Migration — high-end migration consultancy site
   Palette: deep navy + warm gold, ivory neutrals
   ============================================================ */

:root {
  --navy-900: #08182f;
  --navy-800: #0a1f3c;
  --navy-700: #102a52;
  --navy-600: #1b3a6b;
  --gold: #c9a227;
  --gold-300: #e3c766;
  --gold-bright: #d8b53e;
  --ivory: #f7f4ee;
  --ivory-200: #efe9df;
  --paper: #ffffff;
  --ink: #1a2230;
  --ink-soft: #4a5567;
  --line: rgba(16, 42, 82, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --radius: 18px;
  --shadow: 0 30px 60px -25px rgba(8, 24, 47, 0.35);
  --shadow-sm: 0 12px 30px -12px rgba(8, 24, 47, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.eyebrow__line { width: 32px; height: 1px; background: var(--gold); opacity: 0.6; }
.eyebrow--center { justify-content: center; color: var(--gold); }
.eyebrow--light { color: var(--gold-300); }
.eyebrow--light .eyebrow__line { background: var(--gold-300); }

.section { padding: 110px 0; }
.section__head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section__title { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy-800); }
.section__title--light { color: var(--ivory); }
.section__sub { margin-top: 18px; font-size: 1.08rem; color: var(--ink-soft); }
.section__sub a { color: var(--navy-700); border-bottom: 1px solid var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  white-space: nowrap;
}
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy-900);
  box-shadow: 0 14px 30px -12px rgba(201, 162, 39, 0.7);
}
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(201, 162, 39, 0.8); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); transform: translateY(-3px); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy-900);
  color: rgba(247, 244, 238, 0.78);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.topbar__note { display: flex; align-items: center; gap: 9px; letter-spacing: 0.02em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,0.25); }
.topbar__contact { display: flex; align-items: center; gap: 12px; }
.topbar__contact a { transition: color .2s; }
.topbar__contact a:hover { color: var(--gold-300); }
.topbar .sep { opacity: 0.4; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 238, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(247,244,238,0.95); border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(8,24,47,0.4); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: var(--gold); font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
  letter-spacing: 0.02em; border: 1px solid rgba(201,162,39,0.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; color: var(--navy-800); letter-spacing: -0.01em; }
.brand__text em { font-style: normal; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.brand--light .brand__text strong { color: var(--ivory); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.95rem; font-weight: 500; color: var(--navy-800); transition: color .2s; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__links a:not(.nav__cta):hover { color: var(--gold); }
.nav__cta { color: var(--navy-900) !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: var(--navy-900); color: var(--ivory); overflow: hidden;
  padding: 80px 0 120px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(27,58,107,0.85), transparent 55%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900) 70%);
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 75% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 80% at 75% 20%, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute; right: -120px; top: 12%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(201,162,39,0.28), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 720px; }
.hero .eyebrow { color: var(--gold-300); }
.hero .eyebrow__line { background: var(--gold-300); }

.hero__title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.03; letter-spacing: -0.02em; font-weight: 500; }
.hero__title .accent {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic; font-weight: 400;
}
.hero__lead { margin-top: 26px; font-size: 1.2rem; max-width: 600px; color: rgba(247,244,238,0.82); }
.hero__actions { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero__badges {
  margin-top: 54px; list-style: none; display: flex; gap: 38px; flex-wrap: wrap;
  border-top: 1px solid var(--line-light); padding-top: 28px;
}
.hero__badges li { font-size: 0.9rem; color: rgba(247,244,238,0.7); }
.hero__badges strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--gold-300); font-weight: 600; letter-spacing: 0; }

.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,0.3); border-radius: 14px; display: grid; place-items: start center; padding-top: 8px; }
.hero__scroll span { width: 3px; height: 8px; background: var(--gold-300); border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { background: var(--navy-800); padding: 0; }
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light);
}
.stat { padding: 46px 24px; text-align: center; color: var(--ivory); border-right: 1px solid var(--line-light); position: relative; }
.stat:last-child { border-right: none; }
.stat__num { font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--gold-300); line-height: 1; }
.stat__suffix { font-family: var(--serif); font-size: 2rem; color: var(--gold-300); }
.stat p { margin-top: 10px; font-size: 0.9rem; color: rgba(247,244,238,0.72); }
.stat sup { color: var(--gold); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--ivory); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-300)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: var(--gold-300);
  margin-bottom: 24px;
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 1.4rem; color: var(--navy-800); margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card__list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.card__list li { position: relative; padding-left: 24px; font-size: 0.92rem; color: var(--navy-700); font-weight: 500; }
.card__list li::before { content: "›"; position: absolute; left: 6px; color: var(--gold); font-weight: 700; }

/* ============================================================
   WHY US
   ============================================================ */
.why { background: var(--ivory-200); }
.why__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 64px; align-items: center; }
.why__card {
  background: linear-gradient(155deg, var(--navy-700), var(--navy-900));
  color: var(--ivory); border-radius: 24px; padding: 48px 42px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.why__card::after {
  content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,162,39,0.25), transparent 70%);
}
.why__seal {
  width: 92px; height: 92px; border-radius: 50%;
  border: 2px solid var(--gold); display: grid; place-content: center; text-align: center;
  margin-bottom: 30px; position: relative;
}
.why__seal span { font-family: var(--serif); font-weight: 600; color: var(--gold-300); font-size: 1.1rem; letter-spacing: 0.05em; }
.why__seal small { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247,244,238,0.7); }
.why__card blockquote { font-family: var(--serif); font-size: 1.35rem; font-style: italic; line-height: 1.45; position: relative; z-index: 1; }
.why__sign { margin-top: 22px; font-size: 0.9rem; color: var(--gold-300); letter-spacing: 0.02em; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 36px; }
.feature { display: flex; gap: 16px; }
.feature__ico {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold-300); display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700; margin-top: 2px;
}
.feature h4 { font-size: 1.1rem; color: var(--navy-800); margin-bottom: 4px; }
.feature p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--ivory); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.step__num {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--gold);
  display: inline-block; margin-bottom: 18px;
}
.step::after {
  content: ""; position: absolute; top: 50px; right: -13px; width: 22px; height: 1px;
  background: var(--gold); opacity: 0.5;
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.22rem; color: var(--navy-800); margin-bottom: 10px; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ============================================================
   RESULTS / TESTIMONIALS
   ============================================================ */
.results { background: var(--navy-900); position: relative; overflow: hidden; }
.results::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background: radial-gradient(80% 60% at 50% 0%, rgba(27,58,107,0.7), transparent 60%);
}
.results .container { position: relative; z-index: 1; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote {
  background: rgba(255,255,255,0.035); border: 1px solid var(--line-light);
  border-radius: var(--radius); padding: 36px 32px; backdrop-filter: blur(4px);
  transition: transform .4s var(--ease), background .4s;
}
.quote:hover { transform: translateY(-5px); background: rgba(255,255,255,0.06); }
.quote__stars { color: var(--gold-300); letter-spacing: 3px; margin-bottom: 18px; font-size: 0.95rem; }
.quote blockquote { font-family: var(--serif); font-size: 1.08rem; font-style: italic; color: rgba(247,244,238,0.92); line-height: 1.55; }
.quote figcaption { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-light); }
.quote figcaption strong { display: block; color: var(--ivory); font-family: var(--sans); font-size: 0.98rem; }
.quote figcaption span { font-size: 0.82rem; color: var(--gold-300); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--ivory); }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq__intro { position: sticky; top: 110px; }
.accordion { display: flex; flex-direction: column; gap: 14px; }
.acc {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 26px; transition: border-color .3s, box-shadow .3s;
}
.acc[open] { border-color: rgba(201,162,39,0.5); box-shadow: var(--shadow-sm); }
.acc summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 1.05rem;
  color: var(--navy-800); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; font-size: 1.5rem; color: var(--gold); font-weight: 400; flex: none;
  transition: transform .3s var(--ease);
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc p { padding: 0 0 22px; color: var(--ink-soft); font-size: 0.96rem; max-width: 60ch; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ivory-200); }
.contact__head { max-width: 680px; margin: 0 auto; text-align: center; }
.contact__actions {
  margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.contact__btn span { font-size: 1.1em; line-height: 0; }
.btn--outline {
  background: var(--paper); color: var(--navy-800); border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold); }
.contact__meta {
  list-style: none; margin-top: 38px; display: flex; gap: 14px 40px; justify-content: center;
  flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--line);
}
.contact__meta li { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.95rem; }
.contact__meta span { color: var(--gold); font-size: 1.15rem; }
.form__success {
  background: rgba(201,162,39,0.12); border: 1px solid var(--gold); color: var(--navy-800);
  padding: 14px 16px; border-radius: 11px; font-size: 0.92rem; text-align: center; font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: rgba(247,244,238,0.7); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); }
.footer__brand p { margin-top: 20px; font-size: 0.92rem; max-width: 34ch; line-height: 1.7; }
.footer__col h5 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 18px; }
.footer__col a, .footer__col span { display: block; font-size: 0.92rem; margin-bottom: 11px; transition: color .2s; }
.footer__col a:hover { color: var(--gold-300); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; flex-wrap: wrap; font-size: 0.8rem; }
.footer__legal { max-width: 60ch; opacity: 0.7; }
.footer__legal sup { color: var(--gold); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll span { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .why__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .faq__intro { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 78px 0; }
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }

  .nav__links {
    position: fixed; inset: 118px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--ivory); padding: 10px 26px 28px; align-items: stretch;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .4s var(--ease); z-index: 99;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links a:not(.nav__cta)::after { display: none; }
  .nav__cta { margin-top: 16px; border: none; text-align: center; }
  .nav__toggle { display: flex; }

  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__badges { gap: 24px; }
  .contact__form, .why__card { padding: 30px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
