/* SAVBOR Tech — site stylesheet */

:root {
  --ink: #12283d;
  --ink-soft: #35506b;
  --steel: #5b6b7c;
  --accent: #c85a22;
  --accent-dark: #a8481a;
  --bg: #f6f7f9;
  --bg-alt: #eceff3;
  --card: #ffffff;
  --line: #dce1e8;
  --radius: 6px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--card);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; border: 1px solid var(--line); }

/* draft marker — shows facts still to be confirmed; remove before launch */
.todo {
  background: #fff3cd; border-bottom: 1px dashed #c85a22; color: #8a4b17;
  font-size: .92em; padding: 0 5px; border-radius: 2px; font-style: italic;
}

/* ---------- header ---------- */

.topbar {
  background: var(--ink);
  color: #cdd8e3;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar.solo .wrap { justify-content: flex-end; }
.topbar a { color: #cdd8e3; }
.topbar strong { color: #fff; font-weight: 600; }

header.site {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand:hover { text-decoration: none; }
@media (max-width: 620px) { .brand-logo { height: 27px; } }

/* direct child only — a plain `nav.main ul` would also hit the nested submenu
   and force it permanently visible */
nav.main > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 26px; align-items: center;
}
nav.main a {
  color: var(--ink); font-size: 15px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.main a:hover { border-bottom-color: var(--accent); text-decoration: none; }
nav.main a[aria-current="page"] { border-bottom-color: var(--accent); }

.has-sub { position: relative; }
.has-sub > a::after {
  content: "▾"; font-size: 10px; color: var(--steel);
  margin-left: 5px; display: inline-block; transition: transform .15s;
}
.has-sub.open > a::after { transform: rotate(180deg); }
.has-sub.open > a { border-bottom-color: var(--accent); }

/* submenu: hidden until the trigger is clicked */
.sub {
  display: none;
  position: absolute; top: calc(100% + 6px); left: -14px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 240px; max-width: calc(100vw - 24px);
  padding: 8px 0; box-shadow: 0 10px 26px rgba(18,40,61,.16);
}
.has-sub.open > .sub { display: block; }
nav.main .sub a { display: block; padding: 9px 18px; font-size: 14px; border: 0; }
nav.main .sub a:hover { background: var(--bg); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 4px; padding: 7px 11px; font-size: 18px; cursor: pointer; color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 22px; }
  nav.main.open { display: block; }
  nav.main > ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  nav.main > ul > li { width: 100%; }
  nav.main a { display: block; padding: 10px 0; }
  /* stays hidden until the trigger is tapped — see .has-sub.open > .sub */
  .sub {
    position: static; border: 0; box-shadow: none;
    padding: 0 0 0 14px; min-width: 0; max-width: none;
  }
  nav.main .sub a { padding: 7px 0; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost { border-color: #ffffff66; color: #fff; }
.btn-ghost:hover { background: #ffffff1a; text-decoration: none; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); text-decoration: none; }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(160deg, #12283d 0%, #1d3d5c 55%, #2b5580 100%);
  color: #fff; padding: 76px 0 68px;
}
.hero h1 { font-size: 40px; line-height: 1.2; margin: 0 0 18px; max-width: 20em; letter-spacing: -.4px; }
.hero p { font-size: 18px; color: #cdd8e3; max-width: 46em; margin: 0 0 28px; }
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; }

.page-head { background: var(--bg-alt); padding: 44px 0 38px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 32px; margin: 0 0 10px; letter-spacing: -.3px; }
.page-head p { margin: 0; color: var(--steel); max-width: 52em; font-size: 17px; }

.crumbs { font-size: 13px; color: var(--steel); margin-bottom: 14px; }
.crumbs a { color: var(--steel); }

/* ---------- sections ---------- */

section { padding: 62px 0; }
section.alt { background: var(--bg); }
section.tight { padding: 44px 0; }

h2 { font-size: 27px; margin: 0 0 14px; letter-spacing: -.2px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.lead { font-size: 17px; color: var(--ink-soft); max-width: 52em; }
.muted { color: var(--steel); }

.grid { display: grid; gap: 22px; }
.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-2 { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1120px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; }
.card-link:hover { border-color: var(--accent); text-decoration: none; }
.card-link .more { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-block; margin-top: 12px; }

.card-num {
  font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .1em;
  display: block; margin-bottom: 10px;
}

/* steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-left: 24px; }

/* checklist / bullets */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid var(--line); }
ul.clean li:last-child { border-bottom: 0; }
ul.clean li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
ul.ticks li { padding-left: 26px; }
ul.ticks li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* tables */
table.spec {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
table.spec th, table.spec td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px;
}
table.spec th { background: var(--bg-alt); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); }
table.spec tr:last-child td { border-bottom: 0; }

/* product grid */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1050px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .prod-grid { grid-template-columns: 1fr; } }

.prod {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
}
.prod-img {
  aspect-ratio: 4 / 3; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: #97a5b4; font-size: 13px; border-bottom: 1px solid var(--line);
}
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 16px 18px 20px; }
.prod-body h3 { font-size: 16px; margin: 0 0 6px; }
.prod-body .sku { font-size: 12px; color: var(--steel); letter-spacing: .04em; }
.prod-body p { font-size: 14px; color: var(--ink-soft); margin: 8px 0 0; }
.prod-body dl { margin: 12px 0 0; font-size: 13px; }
.prod-body dt { color: var(--steel); float: left; clear: left; width: 45%; }
.prod-body dd { margin: 0 0 4px; }

/* notice */
.notice {
  border-left: 3px solid var(--accent); background: #fdf3ec;
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 15px;
}

/* faq */
details.faq {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 12px; background: #fff;
}
details.faq summary { font-weight: 600; cursor: pointer; font-size: 16px; }
details.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* form */
form.inquiry { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #c85a2233; border-color: var(--accent); }
.field .hint { font-size: 13px; color: var(--steel); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }

.contact-side { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.contact-side dl { margin: 0; }
.contact-side dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); margin-top: 16px; }
.contact-side dt:first-child { margin-top: 0; }
.contact-side dd { margin: 4px 0 0; font-weight: 500; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd8e3; max-width: 44em; }

/* footer */
footer.site { background: #0d1f30; color: #93a4b5; padding: 52px 0 26px; font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; }
@media (max-width: 900px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 9px; }
footer.site a { color: #93a4b5; }
footer.site a:hover { color: #fff; }
footer.site .bottom {
  border-top: 1px solid #1d3348; margin-top: 34px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.foot-brand { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.foot-note { color: #6f8497; font-size: 13px; }
