/* ===================================================
   Mercilio — Brand Tokens
   Emerald #0F5C4D · Ivory #F4F0E8 · Gold #C6A15B · Charcoal #171A1A
=================================================== */
:root {
  --emerald: #0F5C4D;
  --emerald-dark: #0A3F35;
  --emerald-light: #E6F0EC;
  --ivory: #F4F0E8;
  --ivory-soft: #FBF9F5;
  --gold: #C6A15B;
  --gold-light: #F1E4CB;
  --charcoal: #171A1A;
  --charcoal-70: rgba(23, 26, 26, 0.7);
  --charcoal-50: rgba(23, 26, 26, 0.5);
  --white: #FFFFFF;

  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 20px 50px -20px rgba(15, 92, 77, 0.25);
  --shadow-card: 0 12px 30px -14px rgba(23, 26, 26, 0.18);

  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--charcoal);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--charcoal-70); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--emerald);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(15, 92, 77, 0.55);
}
.btn-primary:hover { background: var(--emerald-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(23,26,26,0.25);
}
.btn-outline:hover { border-color: var(--charcoal); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
}
.btn-ghost:hover { color: var(--emerald); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald);
  margin: 0 0 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 232, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(23, 26, 26, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand-logo { height: 32px; width: auto; }
.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--charcoal-70);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover { color: var(--emerald); border-color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(198,161,91,0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(15,92,77,0.10), transparent 55%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--emerald); }
.hero-sub {
  font-size: 1.08rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 36px;
}
.hero-trust {
  display: flex;
  gap: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(23,26,26,0.12);
  flex-wrap: wrap;
}
.trust-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--emerald);
}
.trust-label {
  font-size: 0.82rem;
  color: var(--charcoal-50);
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  min-height: 420px;
}
.hero-blob {
  position: absolute;
  inset: 8% 6%;
  background: linear-gradient(145deg, var(--emerald), var(--emerald-dark));
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  box-shadow: var(--shadow-soft);
}
.hero-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  transform: translate(-50%, -54%);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18));
}
.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  z-index: 2;
}
.card-float-1 {
  top: 6%;
  left: -4%;
  width: 230px;
}
.card-float-2 {
  bottom: 8%;
  right: -2%;
  width: 210px;
  border-top: 3px solid var(--gold);
}
.card-title { font-weight: 700; font-size: 0.88rem; margin: 2px 0 2px; color: var(--charcoal); }
.card-sub { font-size: 0.78rem; color: var(--charcoal-50); margin: 0; }
.card-big { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--emerald); margin: 2px 0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-bottom: 6px; }
.dot-live { background: #2ECC71; box-shadow: 0 0 0 4px rgba(46,204,113,0.2); }

/* ---------- Market strip ---------- */
.market-strip { background: var(--emerald); padding: 16px 0; }
.market-strip-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.market-strip-inner p {
  color: var(--ivory);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}
.market-flags {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.market-flags span {
  color: var(--ivory);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.92;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--ivory-soft); }
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.section-sub { font-size: 1.02rem; }

/* ---------- Service grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(23,26,26,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(23,26,26,0.22); }
.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald-light);
  border-radius: 14px;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { font-size: 0.93rem; margin-bottom: 0; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  position: relative;
  border: 1px solid rgba(23,26,26,0.06);
}
.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold);
  background: var(--gold-light);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Clients ---------- */
.clients-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin: 0 0 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(23,26,26,0.1);
}
.clients-stats .trust-item { text-align: center; }
.clients-stats .trust-label { display: block; margin-top: 2px; }

.brand-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
}
.brand-chip {
  background: var(--white);
  border: 1px solid rgba(23,26,26,0.08);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--charcoal-70);
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.brand-chip:hover { border-color: var(--emerald); color: var(--emerald); transform: translateY(-1px); }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(23,26,26,0.05);
  border-top: 3px solid var(--gold);
}
.quote-mark {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin: 0 0 8px;
}
.testimonial-quote {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 18px;
}
.testimonial-role { font-weight: 700; font-size: 0.88rem; margin: 0; color: var(--charcoal); }
.testimonial-company { font-size: 0.82rem; color: var(--charcoal-50); margin: 0; }

/* ---------- Why us ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card {
  padding: 26px 22px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(23,26,26,0.06);
  border-top: 3px solid var(--emerald);
}
.why-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(23,26,26,0.08);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.3rem;
  color: var(--emerald);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 14px 0 0; font-size: 0.93rem; }

/* ---------- Contact ---------- */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-meta {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.contact-meta strong { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--charcoal); }
.contact-meta a { color: var(--emerald); font-weight: 600; }
.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(23,26,26,0.06);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(23,26,26,0.15);
  background: var(--ivory-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(15,92,77,0.12);
}
.form-note { text-align: center; font-size: 0.88rem; margin: 14px 0 0; min-height: 1.2em; color: var(--emerald); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.72); padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 28px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.88rem; max-width: 260px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom { padding: 20px 0; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ===================================================
   Responsive
=================================================== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; order: -1; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 761px) {
  .nav-cta-mobile { display: none; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ivory);
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(23,26,26,0.08);
    gap: 4px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .main-nav.open a { padding: 10px 0; }
  .nav-cta-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(23,26,26,0.1);
  }
  .grid-3, .steps, .grid-4, .footer-inner, .testimonials { grid-template-columns: 1fr; }
  .clients-stats { gap: 32px; }
  .hero { padding: 56px 0 48px; }
  .hero-trust { gap: 20px; }
  .section { padding: 60px 0; }
  .card-float-1, .card-float-2 { position: static; width: 100%; margin-bottom: 14px; }
  .hero-visual { min-height: auto; }
  .hero-blob, .hero-symbol { display: none; }
}
