/* VOX Telecom — main stylesheet */
:root {
  --bg: #ffffff;
  --fg: #0d0d0d;
  --muted-fg: #5f5f5f;
  --primary: #7fd959;
  --primary-hover: #6cc947;
  --primary-fg: #000000;
  --primary-ink: #2f7a14;          /* green dark enough for text on white */
  --muted: #f3f8f0;
  --accent: #e6f5df;
  --border: #e2e8f0;
  --footer-bg: #030712;
  --footer-fg: #f3f4f6;
  --footer-muted: #9ca3af;
  --radius: .5rem;
  --radius-lg: 1rem;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10);
  --container: 1200px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--fg); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--primary-ink); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #000; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon--sm { width: 1rem; height: 1rem; vertical-align: -2px; }
.icon--check { color: var(--primary-ink); width: 1.1rem; height: 1.1rem; margin-top: .2rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem; border-radius: var(--radius); border: 1px solid transparent;
  font: 500 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: var(--primary-fg); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--outline { background: #fff; border-color: var(--border); color: var(--fg); }
.btn--outline:hover { background: var(--muted); border-color: var(--primary); }
.btn--ghost-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost-light:hover { background: rgba(255,255,255,.22); }
.btn--sm { padding: .5rem .9rem; font-size: .875rem; }
.btn--lg { padding: .9rem 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand img { height: 40px; width: auto; }
@media (min-width: 768px) { .brand img { height: 48px; } }

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { display: block; padding: .5rem .85rem; border-radius: var(--radius);
  text-decoration: none; font-size: .925rem; font-weight: 500; color: var(--fg); }
.site-nav a:not(.btn):hover { background: var(--muted); }
.site-nav a.is-active { background: var(--accent); color: var(--primary-ink); }

.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--border); border-radius: var(--radius);
  padding: .5rem; cursor: pointer; color: var(--fg); }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--open { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }
.nav-open .site-nav { display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--border); padding: .75rem 1rem 1.25rem; box-shadow: var(--shadow-lg); }
.nav-open .site-nav__cta { margin-top: .75rem; width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .nav-open .site-nav { display: flex; align-items: center; gap: 1rem; position: static; padding: 0;
    box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; gap: .25rem; }
  .nav-open .site-nav__cta { width: auto; margin: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; text-align: center; display: flex; align-items: center;
  min-height: calc(100svh - 72px); padding: 5rem 0;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url("../img/hero-mobile.webp") center/cover no-repeat; }
@media (min-width: 900px) { .hero { background-image: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url("../img/hero.webp"); } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin-bottom: 1rem; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40rem; margin: 0 auto 2rem; color: rgba(255,255,255,.92); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

.page-hero { background: linear-gradient(180deg, var(--muted), #fff); padding: 4rem 0 2.5rem; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
.page-hero p { color: var(--muted-fg); font-size: 1.125rem; max-width: 42rem; margin: 0 auto; }
.page-hero--image { color: #fff; background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)), url("../img/hero2.webp") center/cover; padding: 5rem 0 4rem; }
.page-hero--image p { color: rgba(255,255,255,.9); }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.section--muted { background: var(--muted); }
.section__head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.section__head h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.section__head p { color: var(--muted-fg); font-size: 1.1rem; margin: 0; }
.group-title { font-size: 1.5rem; margin: 3rem 0 .35rem; }
.group-title:first-child { margin-top: 0; }
.group-title + .plans { margin-top: 1.5rem; }
.group-sub { color: var(--muted-fg); margin: 0 0 1.5rem; }
.note { color: var(--muted-fg); font-size: .9rem; text-align: center; margin-top: 2rem; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--muted-fg); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card__icon { width: 3.5rem; height: 3.5rem; border-radius: .9rem; background: var(--accent); color: var(--primary-ink);
  display: grid; place-items: center; margin-bottom: 1.25rem; }
.card__icon .icon { width: 1.6rem; height: 1.6rem; }
.card--plain { box-shadow: none; padding: 1.75rem; }
.card--plain h3 { font-size: 1.15rem; }
.card--plain p { margin: 0; }

.values { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--muted); }
.value .card__icon { margin: 0; width: 3rem; height: 3rem; background: #fff; }
.value h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.value p { margin: 0; color: var(--muted-fg); font-size: .95rem; }

/* ---------- Plans ---------- */
.plans { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .plans--3 { grid-template-columns: repeat(3, 1fr); } .plans--4 { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan--rec { border: 2px solid var(--primary); box-shadow: 0 10px 30px rgba(127,217,89,.25); }
.plan__badge { position: absolute; top: -.8rem; left: 50%; transform: translateX(-50%); background: var(--primary);
  color: #000; font-size: .75rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; white-space: nowrap; }
.plan__name { font-size: 1.25rem; margin-bottom: .25rem; }
.plan__sub, .plan__speed { color: var(--muted-fg); font-size: .925rem; margin-bottom: .75rem; }
@media (min-width: 1000px) { .plans--4 .plan__sub { min-height: 2.9em; } }
.plan__speed { color: var(--primary-ink); font-weight: 500; }
.plan__price { display: flex; align-items: flex-end; gap: .4rem; margin: .5rem 0 1.25rem; }
.plan__amount { font-size: 2.5rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.plan__unit { color: var(--muted-fg); font-size: .85rem; line-height: 1.2; }
.plan__unit small { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.plan__list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; font-size: .95rem; }
.plan__list li { display: flex; gap: .55rem; align-items: flex-start; }
.plan .btn { margin-top: auto; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 900px) { .stats--4 { grid-template-columns: repeat(4, 1fr); } .stats--3 { grid-template-columns: repeat(3, 1fr); } }
.stat { padding: 1.75rem 1rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.stat__num { display: block; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; color: var(--primary-ink); line-height: 1.1; }
.stat__label { color: var(--muted-fg); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta { background: var(--footer-bg); color: #fff; border-radius: var(--radius-lg); padding: 3rem 1.5rem; text-align: center; }
.cta h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
.cta p { color: #d1d5db; max-width: 36rem; margin: 0 auto 1.75rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }
.form-card { background: var(--muted); border-radius: var(--radius-lg); padding: 1.75rem; }
@media (min-width: 640px) { .form-card { padding: 2.25rem; } }
.form-card h2 { font-size: 1.6rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 500; font-size: .925rem; margin-bottom: .35rem; }
.field .opt { color: var(--muted-fg); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--fg); background: #fff;
  border: 1px solid #cfd8e3; border-radius: var(--radius); padding: .7rem .85rem; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-ink); box-shadow: 0 0 0 3px rgba(127,217,89,.35); }
.field--error input, .field--error select, .field--error textarea { border-color: #c62828; }
.field__err { color: #c62828; font-size: .85rem; margin: .3rem 0 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: 1.5rem; }
.alert--ok { background: #e8f7e1; border: 1px solid #9ed886; }
.alert--err { background: #fdecea; border: 1px solid #f5b4ae; }
.alert h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.alert p { margin: 0; }
.form-small { color: var(--muted-fg); font-size: .85rem; margin: 1rem 0 0; }

.info-list { display: grid; gap: 1rem; }
.info { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.info .card__icon { margin: 0; width: 3rem; height: 3rem; }
.info h3 { font-size: 1rem; margin-bottom: .15rem; }
.info p { margin: 0; color: var(--muted-fg); font-size: .925rem; }
.info a { font-weight: 500; color: var(--fg); }

.faq { max-width: 52rem; margin: 0 auto; display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.35rem; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.35rem; line-height: 1; color: var(--primary-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; color: var(--muted-fg); }

/* ---------- Legal pages ---------- */
.legal { max-width: 52rem; margin: 0 auto; }
.legal .updated { color: var(--muted-fg); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.legal h2 { font-size: 1.4rem; margin-top: 2.25rem; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.legal p, .legal li { color: #333; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .4rem; }
.toc { background: var(--muted); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin: 1.5rem 0 1rem; }
.toc h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2 16rem; }
.toc a { color: var(--primary-ink); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 6rem 0; }
.notfound .big { font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1.3fr 1fr; } }
.brand--footer img { height: 44px; }
.site-footer__blurb { color: var(--footer-muted); margin-top: 1rem; max-width: 22rem; font-size: .95rem; }
.site-footer__h { font-size: 1rem; margin-bottom: .9rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .95rem; }
.site-footer a { color: var(--footer-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__list span { color: var(--footer-muted); }
.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: rgba(255,255,255,.08); }
.social a:hover { background: var(--primary); color: #000; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem; padding-top: 1.5rem; font-size: .875rem; color: var(--footer-muted); }
.site-footer__bottom p { margin: 0; }
