/* ============================================================
   Bamvera — style.css
   Palette: Silver + Metallic + Blue + Dark Blue
   ============================================================ */

:root {
  /* Color palette */
  --c-darkblue: #0d1b2a;
  --c-darkblue-2: #1b263b;
  --c-blue: #2a4d8f;
  --c-blue-bright: #3a7bd5;
  --c-metallic: #5c6b7a;
  --c-silver: #c7ced6;
  --c-silver-light: #e9edf1;
  --c-white: #ffffff;
  --c-bg: #f5f7fa;
  --c-text: #1f2a37;
  --c-text-soft: #4b5868;
  --c-border: #d6dde5;

  /* Effects */
  --metallic-gradient: linear-gradient(135deg, #e9edf1 0%, #c7ced6 35%, #9aa6b2 70%, #c7ced6 100%);
  --blue-gradient: linear-gradient(135deg, #1b263b 0%, #2a4d8f 60%, #3a7bd5 100%);
  --shadow-sm: 0 1px 3px rgba(13, 27, 42, 0.08);
  --shadow-md: 0 6px 24px rgba(13, 27, 42, 0.12);
  --shadow-lg: 0 18px 48px rgba(13, 27, 42, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --header-h: 72px;

  /* Typography */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-blue-bright); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--c-blue-bright);
  outline-offset: 2px;
}

ul { list-style: none; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--c-darkblue); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -.3px; }
h3 { font-size: 1.25rem; }
p { color: var(--c-text-soft); }

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

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tint { background: var(--c-silver-light); }
.section__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 12px;
}
.section__lead { max-width: 680px; margin-top: 14px; font-size: 1.05rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-darkblue);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
  text-align: center;
}
.btn--primary {
  background: var(--blue-gradient);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--c-darkblue);
  border-color: var(--c-metallic);
}
.btn--ghost:hover { background: var(--c-silver-light); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--c-darkblue); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 247, 250, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .5px;
  color: var(--c-darkblue);
}
.brand:hover { color: var(--c-darkblue); }
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--metallic-gradient);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.brand__mark::after {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue-gradient);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__links a {
  color: var(--c-text);
  font-weight: 500;
  font-size: .96rem;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  background: var(--c-silver-light);
  color: var(--c-blue);
}
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--c-darkblue);
  position: relative;
  transition: .25s;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(13,27,42,.92) 0%, rgba(27,38,59,.82) 45%, rgba(42,77,143,.55) 100%);
}
.hero__inner {
  padding: clamp(72px, 13vw, 150px) 0;
  max-width: 660px;
}
.hero h1 { color: #fff; }
.hero p {
  color: var(--c-silver-light);
  font-size: 1.12rem;
  margin: 18px 0 30px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .82rem;
  letter-spacing: .5px;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-silver); }

/* ---------- Page header (interior pages) ---------- */
.page-head {
  background: var(--blue-gradient);
  color: #fff;
  padding: clamp(48px, 9vw, 90px) 0;
}
.page-head h1 { color: #fff; }
.page-head p { color: var(--c-silver-light); max-width: 640px; margin-top: 12px; }
.breadcrumb { font-size: .85rem; color: var(--c-silver); margin-bottom: 14px; }
.breadcrumb a { color: var(--c-silver-light); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  gap: 26px;
  margin-top: 42px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--metallic-gradient);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--c-darkblue);
  font-size: 1.4rem;
  font-weight: 800;
}
.card h3 { margin-bottom: 10px; }

/* ---------- Product section ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.product__visual {
  background: var(--metallic-gradient);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}
.product__visual img { max-height: 360px; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(13,27,42,.25)); }
.product__tag {
  display: inline-block;
  background: var(--c-darkblue);
  color: var(--c-silver-light);
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.product__meta {
  list-style: none;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}
.product__meta li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--c-text-soft);
}
.product__meta li::before {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 4px;
  border-radius: 5px;
  background: var(--blue-gradient);
}

/* ---------- Split media ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 260px;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text { align-self: center; }

/* ---------- Disclaimer snippet ---------- */
.notice {
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-blue);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}
.notice strong { color: var(--c-darkblue); }
.notice p { font-size: .95rem; margin-top: 6px; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--blue-gradient);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 60px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: var(--c-silver-light); max-width: 560px; margin: 12px auto 26px; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 820px; }
.prose h2 { margin: 40px 0 14px; }
.prose h3 { margin: 26px 0 10px; color: var(--c-blue); }
.prose p, .prose li { color: var(--c-text-soft); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 8px; }
.prose .updated { font-size: .85rem; color: var(--c-metallic); margin-bottom: 30px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 40px;
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 7px;
  color: var(--c-darkblue);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--c-blue-bright);
  box-shadow: 0 0 0 3px rgba(58,123,213,.15);
  outline: none;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-error {
  display: none;
  color: #b3261e;
  font-size: .85rem;
  margin-top: 6px;
}
.form-field.invalid input,
.form-field.invalid textarea { border-color: #b3261e; }
.form-field.invalid .form-error { display: block; }
.form-note { font-size: .85rem; color: var(--c-metallic); margin-top: 8px; }

.info-card {
  background: var(--c-darkblue);
  color: var(--c-silver-light);
  border-radius: var(--radius);
  padding: 32px;
}
.info-card h3 { color: #fff; margin-bottom: 18px; }
.info-card dl { display: grid; gap: 16px; }
.info-card dt {
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-silver);
}
.info-card dd a { color: #fff; }
.info-card dd { font-size: 1rem; }

/* ---------- Success page ---------- */
.success-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 60px);
  box-shadow: var(--shadow-md);
}
.success-box .check {
  width: 76px; height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--metallic-gradient);
  display: grid;
  place-items: center;
}
.success-box .check svg { width: 38px; height: 38px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-darkblue);
  color: var(--c-silver);
  padding: 56px 0 26px;
  font-size: .94rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: var(--c-silver); }
.site-footer a:hover { color: #fff; }
.site-footer ul li { margin-bottom: 9px; }
.footer-brand p { color: var(--c-silver); margin-top: 14px; font-size: .92rem; }
.footer-contact address {
  font-style: normal;
  line-height: 1.8;
  color: var(--c-silver);
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: var(--c-metallic);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 18px; right: 18px; bottom: 18px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--c-darkblue-2);
  color: var(--c-silver-light);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 1500;
  transform: translateY(150%);
  transition: transform .4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { color: var(--c-silver-light); font-size: .9rem; flex: 1 1 280px; }
.cookie-banner p a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 10px 20px; font-size: .9rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .product, .split, .contact-grid { grid-template-columns: 1fr; }
  .product__visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    padding: 12px 22px 20px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow-md);
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 14px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
