/* =========================================================
   Mavan Services — site stylesheet
   Palette: deep slate + emerald accent
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--emerald-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 18px;
}
h1 { font-size: 2.6rem; letter-spacing: -0.02em; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 14px; }

/* ---------- Theme variables ---------- */
:root {
  --slate:        #0F172A;
  --slate-mid:    #1E293B;
  --slate-deep:   #020617;
  --slate-light:  #F1F5F9;
  --emerald:      #10B981;
  --emerald-dark: #047857;
  --emerald-deep: #064E3B;
  --ink:          #1F2937;
  --grey-700:     #475569;
  --grey-500:     #94A3B8;
  --grey-200:     #E2E8F0;
  --bg-soft:      #F8FAFC;
  --line:         #E5EBF1;
  --radius:       12px;
  --radius-sm:    8px;
  --max-w:        1180px;
  --shadow-sm:    0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --shadow-md:    0 6px 24px rgba(15,23,42,0.08);
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 26px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 26px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--slate-deep);
  color: rgba(255,255,255,0.78);
  font-size: 0.83rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar a { color: rgba(255,255,255,0.88); }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar .links { display: flex; gap: 22px; align-items: center; }
.topbar .links span:empty,
.topbar .links a:empty { display: none; }

/* ---------- Site header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  border-radius: 8px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}
.brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.4rem;
  color: var(--slate); letter-spacing: -0.02em;
}
.brand-dot { color: var(--emerald); }

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  padding: 6px 2px; position: relative;
}
.main-nav a:hover { color: var(--emerald-dark); }
.main-nav a.active { color: var(--emerald-dark); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--emerald); border-radius: 2px;
}
.nav-cta {
  background: var(--slate); color: #fff !important;
  padding: 10px 20px !important; border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--slate-mid); text-decoration: none; }
.nav-cta.active::after { display: none; }

/* nav toggle (mobile) */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; width: 42px; height: 42px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--slate); margin: 5px auto;
  transition: 0.2s ease-in-out;
}
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 16px 26px; gap: 14px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .nav-cta { align-self: flex-start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius-sm);
  background: var(--emerald); color: #fff !important;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 0.97rem; text-decoration: none; border: 1px solid var(--emerald);
  transition: all .15s ease-in-out; cursor: pointer;
}
.btn:hover { background: var(--emerald-dark); border-color: var(--emerald-dark); text-decoration: none; }
.btn-outline { background: transparent; color: var(--slate) !important; border-color: var(--slate); }
.btn-outline:hover { background: var(--slate); color: #fff !important; }
.btn-outline-white { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,0.75); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; text-decoration: none; }
.btn-light { background: #fff; color: var(--slate) !important; border-color: #fff; }
.btn-light:hover { background: var(--slate-light); border-color: var(--slate-light); color: var(--slate) !important; }
.btn-dark { background: var(--slate); border-color: var(--slate); color: #fff !important; }
.btn-dark:hover { background: var(--slate-mid); border-color: var(--slate-mid); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: #fff;
  padding: 90px 0 110px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -150px; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { color: #fff; font-size: 3.2rem; margin-bottom: 22px; }
.hero .lead { font-size: 1.2rem; color: rgba(255,255,255,0.85); max-width: 720px; line-height: 1.6; }
.hero .eyebrow { color: var(--emerald); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--slate); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-title { text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--grey-700); max-width: 720px; margin: 0 auto 50px; font-size: 1.05rem; }
.section-dark .section-sub { color: rgba(255,255,255,0.78); }

.eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--emerald-dark);
  font-size: 0.76rem;
  margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--emerald); }

/* ---------- Capability sections (solutions.html) ---------- */
.capability { padding: 70px 0; scroll-margin-top: 90px; }
.capability-intro { max-width: 760px; margin-bottom: 45px; }
.capability-intro h2 { font-size: 2rem; line-height: 1.25; margin-bottom: 14px; }
.capability-intro p { color: var(--grey-700); font-size: 1.05rem; line-height: 1.65; }
.capability-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 18px; background: var(--bg-soft); border-radius: var(--radius);
  border: 1px solid var(--line);
}
.capability-nav a {
  padding: 8px 16px; border-radius: 999px; background: #fff;
  color: var(--slate); font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 0.92rem; text-decoration: none; border: 1px solid var(--line);
  transition: all .15s ease-in-out;
}
.capability-nav a:hover { background: var(--emerald); color: #fff; border-color: var(--emerald); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all .2s ease-in-out;
  position: relative;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--emerald);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0; transition: opacity .2s ease-in-out;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { opacity: 1; }
.card h3 { color: var(--slate); margin-bottom: 10px; }
.card p { color: var(--grey-700); font-size: 0.95rem; margin: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(16,185,129,0.1);
  color: var(--emerald-dark);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem; font-weight: 700; color: var(--emerald);
  line-height: 1;
}
.stat .num span { font-size: 1.4rem; }
.stat .label { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin-top: 8px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sector / value cards ---------- */
.sector {
  padding: 22px 22px 22px 26px;
  background: #fff; border-radius: var(--radius);
  border-left: 3px solid var(--emerald);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sector h3 { font-size: 1.05rem; margin-bottom: 8px; }
.sector p { color: var(--grey-700); font-size: 0.93rem; margin: 0; }

.value-prop {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.value-prop .icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  background: var(--slate); color: var(--emerald);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
}
.value-prop h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-prop p { font-size: 0.93rem; color: var(--grey-700); margin: 0; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: #fff; border-radius: var(--radius);
  padding: 26px 24px; border-top: 3px solid var(--emerald);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.testimonial p { font-style: italic; color: var(--slate); margin-bottom: 14px; }
.testimonial .who { font-size: 0.88rem; color: var(--grey-700); }
.testimonial .who strong { color: var(--slate); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--emerald-deep) 100%);
  color: #fff; text-align: center; padding: 70px 0;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 620px; margin: 0 auto 24px; }

/* ---------- Page header ---------- */
.page-header {
  background: linear-gradient(135deg, var(--slate) 0%, var(--slate-deep) 100%);
  color: #fff; padding: 70px 0 60px;
}
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.8); max-width: 700px; font-size: 1.05rem; }
.breadcrumb {
  font-size: 0.85rem; color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }

/* ---------- Pricing cards ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; position: relative;
  display: flex; flex-direction: column;
}
.price-card h3 { margin-bottom: 10px; }
.price-card > p { color: var(--grey-700); font-size: 0.95rem; margin-bottom: 22px; min-height: 48px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.price-card li {
  padding: 8px 0 8px 28px; position: relative;
  font-size: 0.94rem; color: var(--ink);
  border-bottom: 1px dashed var(--line);
}
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  color: var(--emerald); font-weight: 700;
}
.price-card li.no { color: var(--grey-500); }
.price-card li.no::before { content: "—"; color: var(--grey-500); }
.price-card.featured {
  background: var(--slate); color: #fff;
  border-color: var(--slate); transform: scale(1.03);
}
.price-card.featured h3 { color: #fff; }
.price-card.featured > p { color: rgba(255,255,255,0.78); }
.price-card.featured li { color: rgba(255,255,255,0.92); border-bottom-color: rgba(255,255,255,0.12); }
.price-card.featured::after {
  content: "Most Common"; position: absolute; top: -12px; right: 22px;
  background: var(--emerald); color: #fff; font-size: 0.72rem;
  font-weight: 700; padding: 4px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 1px;
  font-family: 'Space Grotesk', sans-serif;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--emerald);
}
.t-item { position: relative; padding: 0 0 32px 18px; }
.t-item::before {
  content: ""; position: absolute; left: -26px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--emerald); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--emerald);
}
.t-item h3 { margin-bottom: 6px; font-size: 1.1rem; }
.t-item p { color: var(--grey-700); font-size: 0.95rem; margin: 0; }

/* ---------- Contact rows ---------- */
.contact-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  background: var(--slate); color: var(--emerald);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-row strong {
  display: block; font-family: 'Space Grotesk', sans-serif;
  color: var(--slate); margin-bottom: 4px;
}
.contact-row span { color: var(--grey-700); }
.contact-row[hidden] { display: none !important; }

/* ---------- Content grid (about page) ---------- */
.content-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start;
}
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; gap: 30px; } }
.content-grid h2 { margin-bottom: 18px; }
.content-grid p { color: var(--grey-700); font-size: 1rem; }

/* ---------- Legal pages ---------- */
.legal { font-size: 1rem; color: var(--ink); }
.legal h2 {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 1.4rem;
}
.legal h3 { margin-top: 24px; font-size: 1.1rem; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal table {
  width: 100%; border-collapse: collapse; margin: 14px 0 22px;
  font-size: 0.94rem;
}
.legal th, .legal td {
  border: 1px solid var(--line); padding: 10px 14px;
  text-align: left; vertical-align: top;
}
.legal th { background: var(--bg-soft); font-family: 'Space Grotesk', sans-serif; color: var(--slate); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-deep); color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.site-footer .container {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px; padding-bottom: 50px;
}
@media (max-width: 900px) { .site-footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer .container { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 0.92rem; }
.site-footer li[hidden] { display: none; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--emerald); text-decoration: none; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { font-size: 0.92rem; margin: 16px 0 0; line-height: 1.6; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0; font-size: 0.85rem;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0; padding-bottom: 0;
  grid-template-columns: none;
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom a { margin: 0 4px; }

/* ---------- Misc ---------- */
.region-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 800px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }
.region-pill {
  background: rgba(255,255,255,0.06); color: #fff;
  padding: 18px 22px; border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  text-align: center; border: 1px solid rgba(255,255,255,0.1);
}
.region-pill small { display: block; font-weight: 400; color: rgba(255,255,255,0.65); margin-top: 6px; font-size: 0.78rem; }

details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }
details summary::before {
  content: "+"; display: inline-block; margin-right: 10px;
  color: var(--emerald); font-weight: 700;
}
details[open] summary::before { content: "−"; }

@media print {
  .topbar, .site-header, .site-footer, .cta-banner, .nav-toggle { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
