/* Carolina Carts and Equipment — site styles */
:root {
  --navy: #0f1b2d;
  --navy-2: #172a44;
  --ink: #14202f;
  --muted: #5a6776;
  --sand: #efe4cf;
  --sand-2: #f8f3ea;
  --sea: #2e7d7a;
  --sea-dark: #235f5d;
  --white: #ffffff;
  --line: #e2d7c3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.10);
  --wrap: 1180px;
  --head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand-2);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .18em;
  font-size: .82rem; font-weight: 600; color: var(--sea); margin-bottom: .6rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--head); font-weight: 600; font-size: 1.05rem; letter-spacing: .03em;
  padding: .85rem 1.4rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sea); color: var(--white); }
.btn-primary:hover { background: var(--sea-dark); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn svg { width: 18px; height: 18px; }

/* Announcement */
.announce { background: var(--sea); color: var(--white); text-align: center; font-size: .95rem; padding: .45rem 1rem; }
.announce:empty { display: none; }

/* Header */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 96px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--white); text-decoration: none; }
.brand img { width: auto; height: 80px; padding: 4px 0; }
.brand-footer img { height: 150px; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.35rem; line-height: 1; }
.brand-name small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .32em; margin-top: .3rem; opacity: .85; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: rgba(255,255,255,.88); text-decoration: none; font-family: var(--head); font-weight: 500; font-size: 1.08rem; letter-spacing: .03em; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sand); }
.nav .btn { padding: .6rem 1.1rem; font-size: 1rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: .4rem; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 16px 1.2rem;
    display: none; border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--sand); }
  .nav .btn { margin-top: .9rem; border-bottom: 0; }
  .site-header .wrap { min-height: 76px; }
  .brand img { height: 62px; }
  .brand-footer img { height: 130px; }
}

/* Wave divider */
.wave { display: block; width: 100%; height: 48px; }
.wave path { fill: currentColor; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,27,45,.92) 0%, rgba(15,27,45,.72) 45%, rgba(15,27,45,.25) 100%);
}
.hero-inner { position: relative; padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(4.5rem, 10vw, 7.5rem); max-width: 640px; }
.hero .eyebrow { color: var(--sand); }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.9); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2rem; font-size: .98rem; color: rgba(255,255,255,.85); }
.hero-badges span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-badges svg { width: 18px; height: 18px; color: var(--sand); }
.hero + .wave-wrap { margin-top: -47px; position: relative; color: var(--sand-2); }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head p { margin: 0; max-width: 38em; }
.rope { height: 10px; background: repeating-linear-gradient(135deg, #c9b58f 0 6px, #e7d8b8 6px 12px); border-radius: 10px; opacity: .7; width: 120px; margin: 1rem 0 0; }

/* Cart cards */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid #efe7d8;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15,27,45,.16); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #dfe6ea; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.tag {
  position: absolute; top: 12px; left: 12px; font-family: var(--head); font-weight: 600; font-size: .85rem;
  letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px;
  background: var(--white); color: var(--navy);
}
.tag-available { background: var(--sea); color: var(--white); }
.tag-pending { background: #d99a2b; color: var(--white); }
.tag-sold { background: #8b2f2f; color: var(--white); }
.card.is-sold .card-media img { filter: grayscale(.6); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body h3 { margin: 0; }
.price { font-family: var(--head); font-weight: 700; font-size: 1.7rem; color: var(--navy); line-height: 1.1; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: .35rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .2rem; }
.chip { font-size: .85rem; background: var(--sand-2); border: 1px solid var(--line); padding: .2rem .6rem; border-radius: 999px; color: #3c4a59; }
.card-cta { margin-top: auto; padding-top: .8rem; font-family: var(--head); font-weight: 600; color: var(--sea-dark); display: inline-flex; align-items: center; gap: .35rem; }
.empty { background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius); padding: 2.5rem; text-align: center; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1.8rem; }
.filters label { font-size: .9rem; color: var(--muted); display: flex; flex-direction: column; gap: .25rem; }
.filters select {
  font: inherit; font-size: 1rem; padding: .55rem 2rem .55rem .8rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); min-width: 160px;
}
.count { margin-left: auto; color: var(--muted); font-size: .95rem; }

/* Features */
.features { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid #efe7d8; }
.feature .icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(46,125,122,.12); color: var(--sea); display: grid; place-items: center; margin-bottom: .9rem; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: .35rem; }
.feature p { margin: 0; color: var(--muted); }

/* Split */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1.05fr 1fr; align-items: center; }
.split-media { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--navy); color: var(--white); border-radius: 22px; padding: clamp(2rem, 5vw, 3.2rem); display: grid; gap: 1.5rem; grid-template-columns: 1.3fr 1fr; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(239,228,207,.18); box-shadow: 0 0 0 26px rgba(239,228,207,.05); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* Page header */
.page-hero { background: var(--navy); color: var(--white); padding: clamp(2.8rem, 6vw, 4.2rem) 0 clamp(3.2rem, 6vw, 4.6rem); }
.page-hero .eyebrow { color: var(--sand); }
.page-hero p { color: rgba(255,255,255,.85); max-width: 40em; margin: 0; font-size: 1.1rem; }
.page-hero + .wave-wrap { margin-top: -47px; position: relative; color: var(--sand-2); }

/* Detail */
.crumbs { font-size: .95rem; margin-bottom: 1.2rem; color: var(--muted); }
.crumbs a { color: var(--sea-dark); text-decoration: none; }
.detail { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1.25fr 1fr; align-items: start; }
@media (max-width: 920px) { .detail { grid-template-columns: 1fr; } }
.gallery-main { position: relative; border-radius: 16px; overflow: hidden; background: #d8dfe3; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #111c2b; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); border: 0; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.gallery-nav svg { width: 22px; height: 22px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem; margin-top: .8rem; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; aspect-ratio: 1; background: #ddd; }
.thumbs button[aria-current="true"] { border-color: var(--sea); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--white); border-radius: 16px; padding: 1.6rem; box-shadow: var(--shadow); border: 1px solid #efe7d8; }
.panel .price { font-size: 2.3rem; }
.panel .actions { display: grid; gap: .6rem; margin: 1.2rem 0 1rem; }
.panel .actions .btn { width: 100%; }
.panel .note { font-size: .95rem; color: var(--muted); margin: 0; }
.specs { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 1rem; }
.specs th, .specs td { text-align: left; padding: .6rem 0; border-bottom: 1px solid #efe7d8; vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 42%; padding-right: 1rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--sea); margin-top: .2rem; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .98rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: .8rem .9rem; border: 1px solid #d9ccb3; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 130px; resize: vertical; }
.hidden { display: none; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1.2fr; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(46,125,122,.12); color: var(--sea); display: grid; place-items: center; }
.info-list .icon svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-family: var(--head); font-size: 1.1rem; }
.info-list a { color: var(--ink); text-decoration: none; }
.map { border: 0; width: 100%; height: 320px; border-radius: 16px; margin-top: 1.5rem; box-shadow: var(--shadow); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 1.1rem; margin-bottom: .8rem; letter-spacing: .05em; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-brand p { margin-top: 1rem; max-width: 26em; }
.pre-footer { color: var(--navy); background: var(--sand-2); }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom)); background: rgba(15,27,45,.96); z-index: 60; }
  .callbar .btn { padding: .75rem; }
  body { padding-bottom: 72px; }
}
