/* =========================================================
   Dreamland Migration Services — Theme: Navy + Gold
   Fonts: Playfair Display (display) + Inter (body)
   ========================================================= */
:root {
  --navy-900: #061629;
  --navy-800: #0a2540;
  --navy-700: #103258;
  --navy-600: #1a4373;
  --gold-500: #d4a437;
  --gold-400: #e7be57;
  --gold-300: #f1d589;
  --ink: #0c1a2b;
  --ink-2: #2b3a4b;
  --muted: #6b7888;
  --line: #e6e9ef;
  --bg: #f7f5ef; /* warm off-white */
  --bg-2: #ffffff;
  --whatsapp: #25d366;
  --shadow-sm: 0 4px 16px rgba(10,37,64,0.08);
  --shadow-md: 0 18px 40px rgba(10,37,64,0.12);
  --shadow-lg: 0 30px 80px rgba(10,37,64,0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--gold-500); color: var(--navy-900); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============== Typography ============== */
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy-800); margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.05; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
.section-title em { font-style: italic; color: var(--gold-500); }
.section-eyebrow {
  display: inline-block; font-family: 'Inter', sans-serif;
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-500); font-weight: 600; margin-bottom: 14px;
}
.section-eyebrow.light { color: var(--gold-400); }
.section-title.light { color: #fff; }
.lead, .section-lead { color: var(--ink-2); font-size: 1.05rem; max-width: 640px; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  border: 1.5px solid transparent; transition: all .25s ease;
  white-space: nowrap;
}
.btn i { font-size: 1.05em; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(212,164,55,0.35); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: #1ebd5a; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(37,211,102,0.35); }
.btn-outline { color: #fff; border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.06); backdrop-filter: blur(8px); }
.btn-outline:hover { background: rgba(255,255,255,0.14); border-color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; justify-content: center; }

/* ============== Topbar ============== */
.topbar { background: var(--navy-900); color: #d6dde8; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #d6dde8; }
.topbar a:hover { color: var(--gold-400); }
.topbar-left, .topbar-right { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-wa { color: var(--whatsapp) !important; font-weight: 600; }

/* ============== Nav ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background .3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.96); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--gold-500); display: grid; place-items: center;
  font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(212,164,55,0.4);
}
.logo-text { line-height: 1.1; font-family: 'Playfair Display', serif; color: var(--navy-800); font-size: 1.15rem; }
.logo-text small { display: block; font-family: 'Inter', sans-serif; font-size: .68rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.logo.logo-light, .logo.logo-light .logo-text { color: #fff; }
.logo.logo-light .logo-text small { color: #c8d2df; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .96rem; position: relative; }
.nav-links a:not(.nav-cta):hover { color: var(--gold-500); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-links a:not(.nav-cta):hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { padding: 11px 22px; font-size: .9rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 10px; }
.hamburger span { width: 26px; height: 2px; background: var(--navy-800); transition: .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============== Hero ============== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1800&q=80') center/cover no-repeat;
  transform: scale(1.05);
  animation: slowZoom 20s ease-in-out infinite alternate;
}
@keyframes slowZoom { to { transform: scale(1.12); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(6,22,41,0.92) 0%, rgba(10,37,64,0.78) 50%, rgba(10,37,64,0.55) 100%);
}
.hero-inner { padding: 120px 24px 100px; width: 100%; }
.hero-content { max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(212,164,55,0.15); border: 1px solid rgba(212,164,55,0.35);
  color: var(--gold-300); padding: 8px 16px; border-radius: 999px;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.hero-title { color: #fff; margin: 22px 0 18px; }
.hero-title em { color: var(--gold-500); font-style: italic; }
.hero-sub { font-size: 1.15rem; color: #dde4ef; max-width: 620px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 700px; }
.hero-stats > div { border-left: 2px solid var(--gold-500); padding-left: 16px; }
.hero-stats strong { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; color: #fff; }
.hero-stats span { color: #c8d2df; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 1.2rem; animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ============== Sections ============== */
.section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-head .section-lead { margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }

/* About */
.section-about { background: var(--bg-2); }
.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list i { color: var(--gold-500); margin-top: 4px; }
.about-visual { position: relative; }
.about-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-badge {
  position: absolute; bottom: -28px; left: -28px;
  background: #fff; padding: 18px 22px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.about-badge i { color: var(--gold-500); font-size: 1.6rem; }
.about-badge strong { display: block; font-family: 'Playfair Display', serif; color: var(--navy-800); }
.about-badge span { font-size: .8rem; color: var(--muted); }

/* Services */
.section-services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.service-card {
  background: #fff; padding: 36px 28px; border-radius: var(--radius-lg);
  border: 1px solid var(--line); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(212,164,55,0.4); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--gold-500); display: grid; place-items: center; font-size: 1.5rem;
  margin-bottom: 22px;
}
.service-card h3 { color: var(--navy-800); }
.service-card p { color: var(--ink-2); font-size: .95rem; }
.service-card ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.service-card ul li::before { content: "→ "; color: var(--gold-500); font-weight: bold; }
.card-link { color: var(--navy-800); font-weight: 600; font-size: .92rem; display: inline-flex; gap: 8px; align-items: center; }
.card-link:hover { color: var(--gold-500); gap: 12px; }

/* Countries */
.section-countries { background: var(--bg-2); }
.countries-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.country-card {
  position: relative; aspect-ratio: 3/4;
  border-radius: var(--radius); overflow: hidden;
  background-image: linear-gradient(180deg, transparent 40%, rgba(6,22,41,0.92) 100%), var(--img);
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; color: #fff;
  transition: transform .4s ease, box-shadow .4s ease;
}
.country-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.country-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,37,64,0.4) 100%);
  opacity: 0; transition: opacity .4s ease;
}
.country-card:hover::after { opacity: 1; }
.country-flag { font-size: 1.8rem; position: absolute; top: 18px; left: 18px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4)); }
.country-card h4 { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.3rem; margin: 0 0 4px; position: relative; z-index: 1; }
.country-card p { margin: 0; font-size: .82rem; color: var(--gold-300); letter-spacing: .04em; position: relative; z-index: 1; }

/* Process */
.section-process { background: var(--navy-800); color: #fff; padding: 100px 0; position: relative; overflow: hidden; }
.section-process::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(212,164,55,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(212,164,55,0.08) 0%, transparent 50%);
}
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.process-step { padding: 28px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); background: rgba(255,255,255,0.04); backdrop-filter: blur(6px); transition: border-color .3s, transform .3s; }
.process-step:hover { border-color: var(--gold-500); transform: translateY(-4px); }
.step-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--gold-500); display: block; margin-bottom: 12px; }
.process-step h4 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { color: #c8d2df; font-size: .92rem; margin: 0; }

/* Testimonials */
.section-testimonials { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial { margin: 0; background: #fff; padding: 36px 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); position: relative; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.quote-icon { color: var(--gold-300); font-size: 1.8rem; margin-bottom: 14px; }
.testimonial blockquote { margin: 0 0 24px; font-size: 1.02rem; color: var(--ink-2); font-style: italic; line-height: 1.7; }
.testimonial figcaption { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.testimonial figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption strong { display: block; color: var(--navy-800); font-family: 'Playfair Display', serif; }
.testimonial figcaption span { font-size: .82rem; color: var(--muted); }
.stars { color: var(--gold-500); letter-spacing: 2px; }

/* Contact */
.section-contact { background: var(--bg-2); }
.grid-2-contact { gap: 60px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; color: var(--ink-2); }
.contact-list i { color: var(--gold-500); width: 20px; font-size: 1.05rem; }
.contact-list a:hover { color: var(--gold-500); }
.map-wrap { margin-top: 18px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }

.contact-form { background: linear-gradient(180deg, #fff 0%, #fbf8ef 100%); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.contact-form h3 { font-family: 'Playfair Display', serif; color: var(--navy-800); margin-bottom: 22px; font-size: 1.45rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .04em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(212,164,55,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-status { font-size: .9rem; margin: 14px 0 0; min-height: 1.3em; }
.form-status.success { color: #15803d; }
.form-status.error { color: #b91c1c; }
.form-note { display: block; margin-top: 10px; color: var(--muted); font-size: .78rem; text-align: center; }
.btn-loading { display: inline-flex; align-items: center; gap: 8px; }
[hidden] { display: none !important; }

/* ============== Footer ============== */
.footer { background: var(--navy-900); color: #c8d2df; padding: 70px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer h5 { color: #fff; font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.footer ul a { color: #c8d2df; }
.footer ul a:hover { color: var(--gold-400); }
.footer-about { color: #a3afc1; font-size: .92rem; margin: 18px 0; max-width: 320px; }
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.06); display: grid; place-items: center; color: #c8d2df;
  transition: background .3s, color .3s, transform .3s;
}
.socials a:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-3px); }
.footer-contact i { color: var(--gold-500); margin-right: 8px; width: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: .85rem; color: #94a1b3; flex-wrap: wrap; gap: 10px; }

/* ============== Floating Buttons ============== */
.fab-whatsapp, .fab-call {
  position: fixed; right: 22px; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 1.5rem;
  z-index: 100; box-shadow: var(--shadow-md); transition: transform .25s ease;
}
.fab-whatsapp { bottom: 22px; background: var(--whatsapp); }
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--whatsapp); z-index: -1;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.fab-call { bottom: 92px; background: var(--gold-500); color: var(--navy-900); display: none; }

/* ============== Scroll Reveal ============== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============== Responsive ============== */
@media (max-width: 1080px) {
  .countries-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 24px;
    gap: 14px;

    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);

    transform: translateY(-120%);
    transition: transform .35s ease;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);

    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 10px 4px;
  }

  .nav-cta {
    width: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 10px 18px;
    font-size: .9rem;
    text-align: center;

    margin: 0;
  }

  .hamburger {
    display: flex;
  }

  .grid-2,
  .grid-2-contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .countries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .topbar-left {
    gap: 12px;
    font-size: .78rem;
  }

  .topbar-right span {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .fab-call {
    display: grid;
  }

  .about-badge {
    left: 12px;
    bottom: -20px;
    padding: 14px 16px;
  }

  .contact-form {
    padding: 28px 22px;
  }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .topbar-left a:nth-child(2) { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
