:root {
  --brand: #0488cc;
  --brand-dark: #04488b;
  --gold: #f9ce0c;
  --gold-fg: #04488b;
  --slate: #4e565e;
  --soft-blue: #f0f7fc;
  --bg: #ffffff;
  --text: #3a414a;
  --muted: #6b7480;
  --border: #e6ebf0;
  --card: #ffffff;
  --radius: 0.85rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: "Sora", system-ui, sans-serif; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

.gradient-brand { background-image: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.gradient-gold { background-image: linear-gradient(135deg, var(--gold), #ecb800); }
.text-gold { color: var(--gold); }
.text-light { color: #fff; }
.bg-white { background: var(--bg); }
.bg-soft { background: var(--soft-blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; font-weight: 700; font-size: .9rem;
  padding: .65rem 1.4rem; cursor: pointer; border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-lg { padding: .9rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: var(--gold-fg); box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.btn-gold.btn-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.btn-gold.btn-lg:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.btn-brand { background-image: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.btn-brand .lucide { transition: transform .2s ease; }
.btn-brand:hover .lucide { transform: translateX(4px); }
.btn-outline-brand { border: 1px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-outline-white { border: 1px solid rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.1); }
.btn-outline-white:hover { background: rgba(255,255,255,.2); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: #fff;
  transition: background .3s ease, box-shadow .3s ease;
}
.navbar.scrolled { background: rgba(255,255,255,.92); box-shadow: 0 2px 12px rgba(0,0,0,.08); backdrop-filter: blur(12px); }
.nav { height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo img { height: 2.25rem; width: auto; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--slate); transition: color .2s; }
.nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; gap: .75rem; }
.nav-toggle { display: none; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 8px; color: var(--brand-dark); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle.open .ico-menu { display: none; }
.nav-toggle.open .ico-close { display: block; }
.nav-mobile { display: none; flex-direction: column; gap: .25rem; padding: 1rem 1.5rem; background: #fff; border-top: 1px solid var(--border); }
.nav-mobile a:not(.btn) { padding: .6rem .75rem; border-radius: .6rem; font-weight: 500; color: var(--slate); }
.nav-mobile a:not(.btn):hover { background: var(--soft-blue); color: var(--brand); }
.nav-mobile .btn { margin-top: .4rem; }
.nav-mobile.open { display: flex; }

@media (max-width: 980px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Glows ---------- */
.glow { position: absolute; border-radius: 999px; filter: blur(80px); pointer-events: none; }
.glow-a { top: -6rem; left: -6rem; width: 20rem; height: 20rem; background: rgba(249,206,12,.2); }
.glow-b { bottom: -8rem; right: 0; width: 24rem; height: 24rem; background: rgba(4,136,204,.4); }
.glow-c { top: 2.5rem; right: -5rem; width: 18rem; height: 18rem; background: rgba(249,206,12,.2); }
.glow-d { bottom: 0; left: -6rem; width: 20rem; height: 20rem; background: rgba(255,255,255,.1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 9rem 0 6rem; color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; }
.pill { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.15); padding: .375rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 500; backdrop-filter: blur(6px); }
.dot-gold { color: var(--gold); }
.hero-title { margin-top: 1.5rem; font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -.02em; }
.hero-text { margin-top: 1.5rem; max-width: 36rem; color: rgba(255,255,255,.85); font-size: 1.05rem; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stat { margin-top: 2.5rem; font-size: .9rem; color: rgba(255,255,255,.8); }
.hero-stat strong { color: #fff; }
.hero-images { position: relative; }
.hero-img-main { border-radius: 1.5rem; overflow: hidden; border: 4px solid rgba(255,255,255,.2); box-shadow: 0 25px 50px rgba(0,0,0,.25); }
.hero-img-main img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
.hero-img-sub { position: absolute; bottom: -2rem; left: -1.5rem; width: 14rem; transform: rotate(-4deg); border-radius: 1rem; overflow: hidden; border: 4px solid #fff; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.hero-img-sub img { aspect-ratio: 4/3; width: 100%; object-fit: cover; }
@media (max-width: 880px) { .hero-grid, .contact-grid, .credential-grid { grid-template-columns: 1fr; } .hero-img-sub { display: none; } }

@keyframes float-slow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.animate-float { animation: float-slow 6s ease-in-out infinite; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }
.section-head { max-width: 48rem; margin: 0 auto; text-align: center; }
.eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--brand); }
.section-head h2 { margin-top: .75rem; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; color: var(--brand-dark); }
.section-head p { margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- Stats ---------- */
.stats { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; border-radius: 1.5rem; padding: 2rem; text-align: center; }
.stat-num { font-family: "Sora"; font-size: clamp(2.25rem,4vw,3rem); font-weight: 800; color: var(--brand-dark); }
.stats p { margin-top: .25rem; font-weight: 600; color: rgba(4,72,139,.8); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Grids & cards ---------- */
.grid-3 { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { margin-top: 3rem; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.roles-grid { max-width: 64rem; margin-left: auto; margin-right: auto; }
.grid-5 { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(5,1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.75rem; box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.card h3 { margin-top: 1.1rem; font-size: 1.1rem; font-weight: 700; color: var(--brand-dark); }
.card p { margin-top: .5rem; font-size: .9rem; color: var(--muted); }

.icon-soft, .icon-brand, .icon-round { display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.icon-soft { width: 3rem; height: 3rem; border-radius: .75rem; background: var(--soft-blue); color: var(--brand); }
.icon-brand { position: relative; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background-image: linear-gradient(135deg, var(--brand-dark), var(--brand)); box-shadow: 0 6px 16px rgba(4,136,204,.3); color: #fff; }
.icon-round { width: 4rem; height: 4rem; border-radius: 999px; background: var(--soft-blue); color: var(--brand); margin: 0 auto; }
.icon-soft svg { width: 1.5rem; height: 1.5rem; }
.icon-brand svg { width: 1.65rem; height: 1.65rem; }
.icon-round svg { width: 2rem; height: 2rem; }
.ci-row .icon-brand svg { width: 1.35rem; height: 1.35rem; }
.btn svg { width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
.success-icon svg { width: 2.2rem; height: 2.2rem; }
.role-card, .doc-card { text-align: center; }
.role-card .icon-round, .doc-card .icon-brand { margin-left: auto; margin-right: auto; }
.badge-num { position: absolute; top: -.5rem; right: -.5rem; width: 1.5rem; height: 1.5rem; border-radius: 999px; background: var(--gold); color: var(--gold-fg); font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- Credential ---------- */
.credential-section { position: relative; overflow: hidden; color: #fff; }
.credential-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; }
.credential-card { transform: rotate(-3deg); border-radius: 1rem; overflow: hidden; border: 4px solid rgba(255,255,255,.3); box-shadow: 0 25px 50px rgba(0,0,0,.3); transition: transform .3s ease; }
.credential-card:hover { transform: rotate(0); }
.credential-card svg { display: block; width: 100%; height: auto; }
.credential-title { margin-top: 1.25rem; font-size: clamp(1.75rem,3vw,2.25rem); font-weight: 800; }
.credential-text { margin-top: 1.25rem; max-width: 36rem; color: rgba(255,255,255,.85); }
.price-box { margin-top: 1.75rem; display: inline-flex; align-items: baseline; gap: .75rem; background: rgba(255,255,255,.1); padding: 1rem 1.5rem; border-radius: 1rem; backdrop-filter: blur(6px); }
.price-box span { font-size: .9rem; color: rgba(255,255,255,.8); }
.price-box strong { font-size: clamp(1.75rem,3vw,2.25rem); color: var(--gold); }
.check-list { list-style: none; margin-top: 1.75rem; }
.check-list li { font-size: .9rem; color: rgba(255,255,255,.85); }

/* ---------- Gallery ---------- */
.gallery { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 200px; gap: 1rem; }
.g-item { position: relative; overflow: hidden; border-radius: 1rem; box-shadow: 0 6px 16px rgba(0,0,0,.1); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.1); }
.g-big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(2,1fr); } .g-big { grid-column: span 2; grid-row: span 1; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-grid .eyebrow { display: block; }
.contact-grid h2 { margin-top: .75rem; font-size: clamp(1.75rem,3vw,2.25rem); font-weight: 800; color: var(--brand-dark); }
.contact-lead { margin-top: 1rem; max-width: 28rem; color: var(--muted); }
.contact-info { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.ci-row { display: flex; gap: 1rem; }
.ci-row .icon-brand { width: 2.75rem; height: 2.75rem; font-size: 1.2rem; flex-shrink: 0; }
.ci-row strong { color: var(--brand-dark); }
.ci-row p { font-size: .9rem; color: var(--muted); margin-top: .15rem; }
.ci-row a { color: var(--brand); }
.contact-grid > div:first-child > .btn { margin-top: 2rem; }

.form-card { min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; padding: 2.25rem; box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--brand-dark); margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: .6rem; padding: .6rem .75rem; font: inherit; font-size: .9rem; outline: none; transition: border-color .2s; }
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.err { color: #dc2626; font-size: .75rem; margin-top: .25rem; min-height: 1rem; }
#contactForm .btn { margin-top: .5rem; padding: .875rem 1.75rem; font-size: 1rem; }
.form-success { text-align: center; padding: 3rem 1rem; }
.success-icon { width: 4rem; height: 4rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.form-success h3 { margin-top: 1rem; font-size: 1.5rem; color: var(--brand-dark); }
.form-success p { margin-top: .5rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 1.5rem 0; }
.footer-logo { display: inline-flex; background: #fff; padding: .75rem 1rem; border-radius: .75rem; }
.footer-logo img { height: 2.5rem; }
.footer-brand p { margin-top: 1.25rem; max-width: 22rem; font-size: .9rem; color: rgba(255,255,255,.8); }
.footer-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--gold); }
.footer-links { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a, .footer-mail { font-size: .9rem; color: rgba(255,255,255,.8); transition: color .2s; }
.footer-links a:hover, .footer-mail:hover { color: var(--gold); }
.footer-mail { display: inline-flex; gap: .5rem; margin-top: 1rem; }
.footer-bottom { margin-top: 3rem; padding: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); text-align: center; font-size: .75rem; color: rgba(255,255,255,.7); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Inline text icons ---------- */
.ico-inline { width: 1.05em; height: 1.05em; vertical-align: -0.18em; display: inline-block; }
.hero-stat { display: inline-flex; align-items: center; gap: .5rem; }
.check-list li { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- Card hover parity with React ---------- */
.icon-soft { transition: background .25s ease, color .25s ease; }
.hl-card:hover { border-color: rgba(4,136,204,.4); }
.hl-card:hover .icon-soft { background: var(--brand); color: #fff; }

.benefit { position: relative; overflow: hidden; }
.benefit::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 6rem; height: 6rem; border-radius: 999px;
  background: rgba(249,206,12,.1);
  transform: translate(2.5rem, -2.5rem);
  transition: transform .3s ease; pointer-events: none; z-index: 0;
}
.benefit:hover::before { transform: translate(2.5rem, -2.5rem) scale(1.5); }
.benefit > * { position: relative; z-index: 1; }

/* ---------- Role card hover parity with React ---------- */
.role-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.role-card .icon-round { transition: background .25s ease, color .25s ease; }
.role-card:hover { border-color: var(--gold); }
.role-card:hover .icon-round { background-image: linear-gradient(135deg, var(--gold), #ecb800); background-color: transparent; color: var(--gold-fg); }

/* ---------- Credential mobile order (text first, card below) ---------- */
@media (max-width: 880px) {
  .credential-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .credential-card-wrap { order: 2; min-width: 0; width: 100%; }
}

/* ---------- Mobile contact fixes ---------- */
@media (max-width: 880px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .contact-grid > * {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contact-grid {
    gap: 2rem;
  }

  .contact-lead {
    max-width: none;
  }

  .form-card {
    width: 100%;
    border-radius: 1rem;
    padding: 1.25rem;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .85rem;
  }

  .field,
  .field.full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .ci-row {
    gap: .75rem;
  }

  .ci-row .icon-brand {
    width: 2.5rem;
    height: 2.5rem;
  }

  .form-card {
    padding: 1rem;
  }
}
