/* ===================================================================
   MB Regal Solutions — styles.css
   Mobile-first. Palette in :root custom properties.
   =================================================================== */

:root {
  --navy: #0D1B2A;
  --navy-2: #13263a;
  --teal: #00D4AA;
  --electric: #00C2FF;
  --gold: #F5A623;
  --bg: #F7F9FC;
  --surface: #ffffff;
  --text: #1A1A2E;
  --text-soft: #4a5568;
  --text-on-dark: #ffffff;
  --text-on-dark-soft: #c7d2e0;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.06);
  --shadow: 0 8px 28px rgba(13, 27, 42, 0.10);
  --maxw: 1140px;
  --gradient: linear-gradient(120deg, var(--navy) 0%, #0e3a4d 50%, var(--teal) 130%);
  --gradient-btn: linear-gradient(120deg, var(--electric), var(--teal));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Sora", system-ui, sans-serif;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1rem; }
a { color: #0a6c8a; }

img, svg { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--electric); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: "Sora", sans-serif; font-weight: 600;
  padding: 13px 24px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; font-size: 1rem; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--gradient-btn); color: #06222b; box-shadow: 0 6px 18px rgba(0, 196, 255, .28); }
.btn-accent:hover { box-shadow: 0 10px 24px rgba(0, 196, 255, .38); }
.btn-gold { background: var(--gold); color: #3a2700; box-shadow: 0 6px 18px rgba(245, 166, 35, .3); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--navy); white-space: nowrap; }
.brand-light .brand-name { color: #fff; }
.brand-mark { flex: none; }
.brand-img { display: block; height: 40px; width: auto; }
@media (max-width: 480px) { .brand-img { height: 34px; } }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: none; }
.primary-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px 20px; box-shadow: var(--shadow); }
.primary-nav ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.primary-nav a { display: block; padding: 10px 6px; text-decoration: none; color: var(--navy); font-weight: 500; border-radius: 8px; }
.primary-nav a:hover { background: var(--bg); color: #0a6c8a; }
.nav-cta { display: block; }

@media (min-width: 920px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex !important; position: static; align-items: center; gap: 22px; padding: 0; box-shadow: none; border: 0; background: none; }
  .primary-nav ul { flex-direction: row; gap: 4px; margin: 0; }
  .primary-nav a { padding: 8px 12px; }
  .nav-cta { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient);
  color: var(--text-on-dark);
  position: relative; overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .5; pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.hero-headline { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gold); margin: 4px 0 16px; }
.hero-sub { font-size: 1.1rem; color: var(--text-on-dark-soft); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-cta .btn-ghost:hover { background: #fff; color: var(--navy); }
.hero-trust { font-size: .9rem; color: var(--text-on-dark-soft); margin: 0; }
.hero-visual img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.15); background: #0b1622; width: 100%; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { text-align: center; }
.section-intro { text-align: center; max-width: 760px; margin: 0 auto 2.4rem; color: var(--text-soft); font-size: 1.08rem; }
.section-outro { text-align: center; color: var(--text-soft); margin-top: 1.8rem; font-weight: 500; }
.narrow h2 { text-align: center; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 22px; }
.cols-3, .cols-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) {
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.section-alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 1.9rem; display: block; margin-bottom: 12px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--text-soft); margin: 0; }
.service-card { display: flex; flex-direction: column; }
.micro-cta { margin-top: 14px; font-weight: 600; font-family: "Sora", sans-serif; text-decoration: none; color: #0a6c8a; }
.micro-cta:hover { text-decoration: underline; }
.feature-card h3 { font-size: 1.12rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 24px 24px; box-shadow: var(--shadow-sm);
}
.section .step { background: var(--surface); }
.step-num {
  position: absolute; top: -18px; left: 24px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient-btn); color: #06222b; font-family: "Sora", sans-serif; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0,196,255,.3);
}
.step h3 { margin-top: 6px; }
.step p { color: var(--text-soft); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.testimonial blockquote { margin: 0; font-size: 1.05rem; color: var(--text); }
.testimonial blockquote::before { content: "\201C"; font-size: 2.4rem; line-height: 0; color: var(--teal); margin-right: 4px; vertical-align: -0.4em; }
.testimonial figcaption { color: var(--text-soft); font-size: .92rem; }
.testimonial figcaption span { font-weight: 600; color: var(--navy); }

/* ---------- About ---------- */
.values { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 10px; }
.values li { padding-left: 28px; position: relative; color: var(--text-soft); }
.values li::before { content: "▸"; position: absolute; left: 4px; color: var(--teal); font-weight: 700; }
.values strong { color: var(--navy); }
.about-loc { font-size: .98rem; margin-top: 1.4rem; }

/* ---------- CTA banner ---------- */
.cta-banner { background: var(--navy); color: #fff; text-align: center; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.cta-banner h2 { color: #fff; position: relative; }
.cta-banner p { color: var(--text-on-dark-soft); max-width: 580px; margin: 0 auto 1.8rem; position: relative; }
.cta-banner .btn { position: relative; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); overflow: hidden; }
.section-alt .faq-item { background: var(--bg); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h4 { margin: 0; }
.faq-toggle { flex: none; width: 14px; height: 14px; position: relative; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; background: var(--teal); border-radius: 2px; transition: transform .2s ease; }
.faq-toggle::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-toggle::after { left: 6px; top: 0; width: 2px; height: 14px; }
.faq-item[open] .faq-toggle::after { transform: scaleY(0); }
.faq-item > p { margin: 0; padding: 0 22px 20px; color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.contact-copy h2 { text-align: left; }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: var(--text-soft); }
.contact-list a { color: var(--navy); text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; color: var(--text); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--electric); outline: none; box-shadow: 0 0 0 3px rgba(0,196,255,.18); }
.field textarea { resize: vertical; }
.req { color: #d33; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.field-consent { display: flex; align-items: flex-start; gap: 10px; }
.field-consent input { width: auto; margin-top: 4px; flex: none; }
.field-consent label { font-weight: 400; font-size: .9rem; color: var(--text-soft); }
.form-status { font-size: .92rem; min-height: 1.2em; margin: 0 0 12px; }
.form-status.error { color: #c0392b; }
.form-status.ok { color: #1f8a4c; }

/* ---------- Ad slot ---------- */
.ad-slot { margin: 30px auto; min-height: 90px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--text-on-dark-soft); padding: 54px 0 28px; }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-tag { margin-top: 12px; max-width: 280px; font-size: .95rem; }
.footer-h { font-size: 1rem; color: #fff; font-family: "Sora", sans-serif; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-on-dark-soft); text-decoration: none; }
.footer-col a:hover { color: var(--teal); text-decoration: underline; }
.footer-legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.gdpr-notice { font-size: .82rem; color: #93a4b8; max-width: 900px; }
.gdpr-notice a { color: var(--teal); }
.copyright { font-size: .85rem; color: #93a4b8; margin: 8px 0 0; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: var(--navy-2); color: #fff; border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 12px 40px rgba(0,0,0,.4);
  display: flex; flex-direction: column; gap: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: .92rem; color: #d7e0ea; }
.cookie-banner a { color: var(--teal); }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: .92rem; }
@media (min-width: 760px) {
  .cookie-banner { left: auto; right: 20px; bottom: 20px; max-width: 480px; flex-direction: column; }
}

/* ---------- Legal pages ---------- */
.legal-page { padding: clamp(40px, 6vw, 72px) 0; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { margin-bottom: .4rem; }
.legal-page .updated { color: var(--text-soft); font-size: .92rem; margin-bottom: 2rem; }
.legal-page h2 { text-align: left; font-size: 1.3rem; margin-top: 2rem; }
.legal-page p, .legal-page li { color: var(--text-soft); }
.legal-page ul { padding-left: 22px; }
.back-home { display: inline-block; margin-top: 2.4rem; font-weight: 600; font-family: "Sora", sans-serif; text-decoration: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
