/* Cravco — global stylesheet
   Design constraint: single stylesheet, no webfonts, system font stack only.
   Target Core Web Vitals: LCP <= 2.5s, CLS <= 0.1, DOM nodes < 800 per page. */

:root {
  --c-navy: #0f2a44;
  --c-navy-deep: #0a1c2e;
  --c-blue: #14508c;
  --c-blue-soft: #eaf2fa;
  --c-orange: #d9622b;
  --c-orange-dark: #b64d1c;
  --c-ink: #1d2733;
  --c-body: #4a586a;
  --c-muted: #6b7b8f;
  --c-line: #dde4ec;
  --c-bg: #ffffff;
  --c-bg-alt: #f5f8fb;
  --radius: 6px;
  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-body);
  background: var(--c-bg);
}

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

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--c-navy);
  line-height: 1.3;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }

a { color: var(--c-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }

strong { color: var(--c-ink); }

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

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

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}
.head-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--c-navy); letter-spacing: .5px;
  flex-shrink: 0;
}
.logo span { color: var(--c-orange); }
.logo:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav > ul > li { margin: 0; position: relative; }
.nav a {
  display: block; padding: 10px 12px; font-size: .92rem; font-weight: 600;
  color: var(--c-ink); border-radius: 4px; white-space: nowrap;
}
.nav a:hover { background: var(--c-bg-alt); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--c-blue); }

.nav-toggle {
  display: none;
  background: var(--c-navy); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600;
  padding: 10px 14px; border-radius: var(--radius);
}

.head-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; text-align: center; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-orange); color: #fff; border-color: var(--c-orange); }
.btn-primary:hover { background: var(--c-orange-dark); border-color: var(--c-orange-dark); }
.btn-ghost { background: transparent; color: var(--c-navy); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-navy); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--c-navy-deep) 0%, var(--c-navy) 45%, #17406b 100%);
  color: #fff; padding: 64px 0 56px;
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { font-size: 1.1rem; color: #cfe0f0; max-width: 62ch; margin-bottom: 1.6rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5rem; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 0; padding: 0; }
.hero-stats li { margin: 0; }
.hero-stats b { display: block; font-size: 1.6rem; color: #fff; line-height: 1.2; }
.hero-stats span { font-size: .84rem; color: #9fbcd8; }

.hero-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section-alt { background: var(--c-bg-alt); }
.section-head { max-width: 70ch; margin-bottom: 32px; }
.section-head p { font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-orange); margin-bottom: 8px;
}
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-body { padding: 22px; }
.card h3 { margin-bottom: .4rem; font-size: 1.08rem; }
.card p:last-child { margin-bottom: 0; }
.card-media { aspect-ratio: 16 / 10; background: var(--c-bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-product { text-decoration: none; color: inherit; }
.card-product:hover { border-color: var(--c-blue); text-decoration: none; }
.card-product h3 { color: var(--c-navy); }

/* ---------- Image placeholder block (replace with real photos) ---------- */
.ph {
  background: repeating-linear-gradient(135deg, #e9eff6 0 12px, #e2eaf3 12px 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted); font-size: .8rem; text-align: center; padding: 12px;
  aspect-ratio: 4 / 3; border: 1px dashed #c3d0de;
}
.ph-16x10 { aspect-ratio: 16 / 10; }
.ph-1x1 { aspect-ratio: 1 / 1; }

/* ---------- Spec table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec { width: 100%; border-collapse: collapse; font-size: .94rem; background: #fff; }
table.spec caption {
  caption-side: top; text-align: left; font-size: .84rem; color: var(--c-muted);
  padding-bottom: 8px;
}
table.spec th, table.spec td { border: 1px solid var(--c-line); padding: 11px 14px; text-align: left; vertical-align: top; }
table.spec thead th { background: var(--c-navy); color: #fff; font-weight: 700; }
table.spec tbody th { background: var(--c-bg-alt); color: var(--c-ink); width: 38%; font-weight: 600; }
table.spec tbody tr:nth-child(even) td { background: #fbfdfe; }

/* ---------- Split content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }

.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: .6rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--c-orange);
}

/* ---------- FAQ (native details/summary, zero JS) ---------- */
.faq { border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 15px 20px; font-weight: 700; color: var(--c-navy);
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-orange); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 20px 16px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-blue-soft); border-top: 3px solid var(--c-orange); padding: 50px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: .3rem; }
.cta-inner p { margin: 0; max-width: 60ch; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .82rem; padding: 14px 0; color: var(--c-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--c-line); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--c-navy); color: #fff; padding: 44px 0; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { color: #c6d8ea; margin: 0; max-width: 70ch; }
.page-hero .crumbs { color: #9fbcd8; padding-bottom: 10px; }
.page-hero .crumbs a { color: #d3e4f4; }

/* ---------- Footer ---------- */
.site-foot { background: var(--c-navy-deep); color: #a9c0d6; padding: 48px 0 24px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-foot h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 7px; }
.site-foot a { color: #a9c0d6; }
.site-foot a:hover { color: #fff; }
.foot-logo { font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 10px; display: block; }
.foot-logo span { color: var(--c-orange); }
.foot-bottom {
  border-top: 1px solid #1e3550;
  margin-top: 32px; padding-top: 18px; font-size: .82rem; color: #7e97b1;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

.note {
  background: #fff8f0; border-left: 4px solid var(--c-orange);
  padding: 14px 18px; font-size: .9rem; color: #6b4a2f; border-radius: 0 var(--radius) var(--radius) 0;
}
.note p:last-child { margin-bottom: 0; }

.disclaimer {
  background: var(--c-bg-alt); border: 1px solid var(--c-line);
  padding: 18px 20px; font-size: .86rem; color: var(--c-muted);
  border-radius: var(--radius); margin-top: 32px;
}
.disclaimer h3 { font-size: .95rem; margin-bottom: .4rem; }
.disclaimer p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--c-ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: .95rem;
  border: 1px solid #c8d3e0; border-radius: var(--radius); background: #fff; color: var(--c-ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--c-blue); outline-offset: 1px; border-color: var(--c-blue);
}
.field textarea { min-height: 110px; resize: vertical; }

/* ---------- Floating contact (non-blocking, dismissible) ---------- */
.float-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-btn {
  display: flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; font-weight: 700; font-size: .88rem;
  padding: 11px 16px; border-radius: 30px; box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.float-btn:hover { text-decoration: none; filter: brightness(.94); }
.float-btn.mail { background: var(--c-navy); }
.float-close {
  background: rgba(0,0,0,.55); color: #fff; border: 0; cursor: pointer;
  font-size: 11px; padding: 4px 10px; border-radius: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { max-width: none; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .head-bar { min-height: 60px; }
  .nav-toggle { display: block; }
  .head-cta { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    box-shadow: 0 10px 20px rgba(0,0,0,.07); padding: 8px 0; max-height: 70vh; overflow-y: auto;
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li > a { padding: 12px 20px; border-radius: 0; }
  .hero { padding: 44px 0 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .form-row { grid-template-columns: 1fr; }
  table.spec tbody th { width: 46%; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .float-btn span.label { display: none; }
}

@media print {
  .site-head, .float-bar, .cta-band { display: none; }
}

/* ---------- Long-form article (blog) ---------- */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 18px; }
.prose h2 {
  font-size: 1.4rem; line-height: 1.25; margin-top: 44px;
  padding-bottom: 8px; border-bottom: 1px solid var(--c-line);
}
.prose h3 { font-size: 1.1rem; margin-top: 30px; }
.prose p, .prose li { font-size: 1rem; line-height: 1.75; color: var(--c-text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--c-ink); }
.prose figure { margin: 26px 0; }
.prose figcaption { font-size: .85rem; color: var(--c-mute); margin-top: 8px; }
.prose .key-line {
  border-left: 3px solid var(--c-brand); background: var(--c-soft);
  padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 1rem;
}
.prose .key-line p { margin: 0; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: .85rem; color: var(--c-mute); margin-top: 14px;
}
.toc { background: var(--c-soft); border: 1px solid var(--c-line); border-radius: 10px; padding: 18px 22px; }
.toc h2 { font-size: 1rem; margin: 0 0 10px; border: 0; padding: 0; }
.toc ol { padding-left: 20px; font-size: .92rem; }
.toc li + li { margin-top: 6px; }
.post-card { display: block; }
.post-card .card-body p:last-child { margin-bottom: 0; }
.post-meta { font-size: .8rem; color: var(--c-mute); display: block; margin-bottom: 8px; }
@media (max-width: 760px) {
  .prose h2 { margin-top: 34px; font-size: 1.22rem; }
}
