/* ==========================================================================
   SaltTrail — brand stylesheet
   Brand: SaltTrail (operated by Cendrex LLC)
   Palette: deep salt-water navy, warm sand, rust accent
   ========================================================================== */

:root {
  --navy: #0d2233;
  --navy-soft: #17384f;
  --navy-line: #24506c;
  --sand: #e9dcc6;
  --sand-deep: #d5c2a1;
  --accent: #c2603c;
  --accent-dark: #a44e2e;
  --ink: #14212b;
  --muted: #5c6b76;
  --line: #e4e1d9;
  --bg: #fbfaf7;
  --bg-alt: #f4f2ec;
  --white: #ffffff;
  --radius: 4px;
  --wrap: 1140px;
  --shadow-sm: 0 1px 2px rgba(13, 34, 51, .06);
  --shadow-md: 0 6px 24px -8px rgba(13, 34, 51, .18);
}

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

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

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

img, svg { max-width: 100%; display: block; }
a { color: var(--navy-soft); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -.015em;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }

/* ---------- announcement ---------- */
.announce {
  background: var(--navy);
  color: var(--sand);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy);
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.brand:hover { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--navy); border-bottom-color: var(--accent); }
.nav .cta-link {
  border: 1px solid var(--navy);
  border-radius: 2px;
  padding: 8px 16px;
  border-bottom-width: 1px;
}
.nav .cta-link:hover { background: var(--navy); color: #fff; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: .95rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sand); color: var(--navy); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 17px 40px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(194, 96, 60, .22), transparent 62%),
    linear-gradient(160deg, #0d2233 0%, #17384f 55%, #24506c 100%);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 1px, transparent 1px 46px);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 92px; max-width: 940px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow {
  display: inline-block;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand-deep);
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, .84);
  max-width: 52ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- trust bar ---------- */
.trustbar { background: var(--navy-soft); border-top: 1px solid var(--navy-line); }
.trustbar ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 46px;
}
.trustbar li {
  color: rgba(255,255,255,.88);
  font-size: .87rem;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.trustbar li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, #0d2233, #1b4059);
  color: #fff;
  padding: 62px 0 56px;
}
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: rgba(255,255,255,.78); max-width: 60ch; margin: 0; }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--bg-alt), var(--sand));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.card-media svg { width: 100%; height: 100%; }
.card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .35em; font-size: 1.04rem; }
.card-body .desc { color: var(--muted); font-size: .92rem; margin-bottom: 16px; flex: 1; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.price .now { font-size: 1.22rem; font-weight: 700; color: var(--navy); }
.price .was { font-size: .92rem; color: var(--muted); text-decoration: line-through; }
.price .save {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--sand);
  color: var(--navy);
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 600;
}

/* ---------- feature cols ---------- */
.feature { padding-right: 8px; }
.feature .num {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature h3 { font-size: 1.05rem; margin-bottom: .5em; }
.feature p { color: var(--muted); font-size: .94rem; }

/* ---------- story band ---------- */
.story {
  background: linear-gradient(120deg, #10293d, #1d4560 60%, #295a78);
  color: #fff;
  border-radius: var(--radius);
  padding: 62px clamp(26px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.story::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,220,198,.16), transparent 68%);
}
.story h2 { color: #fff; }
.story p { color: rgba(255,255,255,.82); max-width: 62ch; }
.story .links { margin-top: 26px; }
.story .links a { color: var(--sand); font-weight: 600; }
.story .links a:hover { color: #fff; }

/* ---------- product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.pdp-media {
  background: linear-gradient(150deg, var(--bg-alt), var(--sand));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 46px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-media svg { width: 100%; height: 100%; }
.pdp h1 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); margin-bottom: .4em; }
.pdp .price { margin: 18px 0 20px; }
.pdp .price .now { font-size: 1.6rem; }
.pdp .short { color: var(--muted); font-size: 1.02rem; }
.bullets { list-style: none; padding: 0; margin: 22px 0; }
.bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  font-size: .95rem;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: .58em;
  width: 9px; height: 2px;
  background: var(--accent);
}
.buybox {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 26px;
}
.buybox .note { font-size: .84rem; color: var(--muted); margin: 12px 0 0; }
.spec-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}
.spec-list li span:first-child { color: var(--muted); }

/* ---------- prose (policy pages) ---------- */
.prose { max-width: 760px; }
.prose h2 {
  font-size: 1.24rem;
  margin: 42px 0 14px;
  padding-top: 4px;
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.02rem; margin: 26px 0 10px; }
.prose p, .prose li { color: #2b3a44; font-size: .97rem; }
.prose ul { padding-left: 20px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 8px; }
.prose .updated {
  color: var(--muted);
  font-size: .87rem;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}
.prose .contact-block {
  margin-top: 40px;
  padding: 22px 24px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  font-size: .94rem;
}

/* ---------- blog ---------- */
.post-meta {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-block { border-top: 2px solid var(--navy); padding-top: 20px; margin-bottom: 34px; }
.info-block h3 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.info-block a { font-weight: 600; font-size: 1.05rem; }
address { font-style: normal; line-height: 1.75; font-size: .97rem; }

/* ---------- flash message ---------- */
.flash {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 15px 24px;
  border-radius: 3px;
  font-size: .9rem;
  max-width: min(92vw, 520px);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 200;
}
.flash.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.flash a { color: var(--sand); text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 62px 0 30px;
  font-size: .9rem;
  margin-top: 0;
}
.site-footer a { color: rgba(255,255,255,.82); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--navy-line);
}
.footer-brand {
  font-size: 1.24rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.footer-brand span { color: var(--accent); }
.footer-grid address { color: rgba(255,255,255,.7); margin-bottom: 16px; }
.footer-note { font-size: .86rem; color: rgba(255,255,255,.62); max-width: 40ch; }
.footer-col h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  font-size: .82rem;
  color: rgba(255,255,255,.58);
}

/* ---------- utilities ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .section { padding: 62px 0; }
  .hero .wrap { padding-top: 68px; padding-bottom: 68px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a.active { border-bottom-color: var(--line); }
  .nav .cta-link { border: 0; padding: 13px 0; }
  .nav .cta-link:hover { background: none; color: var(--accent); }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 50px 0; }
  .trustbar ul { gap: 10px 26px; }
  .trustbar li { font-size: .82rem; }
  .card-media { aspect-ratio: 16 / 11; }
}

@media print {
  .site-header, .announce, .site-footer, .buybox { display: none; }
  body { background: #fff; }
}
