@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --ink: #14191e;
  --cobalt: #173e68;
  --cobalt-deep: #0d2238;
  --harbor: #1f6f78;
  --signal: #e4572e;
  --signal-dark: #c2410c;
  --sand: #f3eee6;
  --paper: #fbf8f3;
  --card: #fffcf8;
  --line: #e4d9cb;
  --muted: #5d6a73;
  --ok: #1c7a4d;
  --danger: #9d2430;
  --shadow: 0 24px 60px rgba(16, 28, 40, 0.12);
  --font-sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(228, 87, 46, 0.08), transparent 32%),
    linear-gradient(180deg, #f7f3ec 0%, var(--sand) 280px);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.01em; line-height: 0.95; margin: 0; }
p { margin: 0; }

.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.wrap-wide { width: min(1320px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: 72px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--signal); }
.muted { color: var(--muted); }
.lede { font-size: 1.08rem; color: #314049; max-width: 68ch; }

.site-header { position: sticky; top: 0; z-index: 40; }
.topbar {
  background: var(--cobalt-deep);
  color: #f6f1e8;
  font-size: 0.82rem;
}
.topbar-inner, .nav-inner {
  width: min(1320px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-inner { min-height: 36px; }
.topbar span { opacity: 0.9; }
.nav-bar {
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 25, 30, 0.08);
}
.nav-inner { min-height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--cobalt-deep); color: white;
}
.logo-mark svg { width: 26px; height: 26px; }
.logo strong { display: block; font-family: var(--font-display); font-size: 1.55rem; letter-spacing: 0.04em; line-height: 0.9; }
.logo small { color: var(--muted); letter-spacing: 0.18em; font-size: 0.68rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 600; }
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--signal-dark); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-link, .phone-link, .menu-btn, .btn, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.phone-link { font-weight: 600; }
.cart-link {
  background: var(--ink); color: white; min-height: 42px; padding: 0 14px;
}
.cart-link b {
  background: var(--signal); min-width: 22px; height: 22px; display: grid; place-items: center;
  font-size: 0.78rem;
}
.menu-btn {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: white;
}
.mobile-panel {
  display: none; background: var(--cobalt-deep); color: white; padding: 12px 16px 20px;
}
.mobile-panel a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-panel.open { display: block; }

.btn {
  min-height: 46px; padding: 0 18px; border: 0; font-weight: 700;
  position: relative; background: var(--cobalt); color: white;
}
.btn-signal { background: var(--signal); }
.btn-signal:hover { background: var(--signal-dark); }
.btn-ink { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost-light { background: transparent; color: white; border: 1px solid rgba(255,255,255,.4); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn-signal::after, .cart-link::after {
  content: ""; position: absolute; width: 8px; height: 8px; top: 5px; left: 5px;
  border-top: 2px solid rgba(255,255,255,.8); border-left: 2px solid rgba(255,255,255,.8);
}

.hero {
  position: relative; min-height: 720px; color: white;
  background:
    linear-gradient(90deg, rgba(8,16,26,.9) 0%, rgba(8,16,26,.62) 46%, rgba(8,16,26,.18) 100%),
    url("/images/yard/stacks.jpg") center 30% / cover no-repeat;
  display: grid; align-items: end;
}
.hero-inner { padding: 64px 0 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: end; }
.hero h1 { font-size: clamp(4rem, 8vw, 7.4rem); max-width: 14ch; text-transform: uppercase; }
.hero .lede { color: rgba(255,255,255,.86); margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-plate {
  background: rgba(251, 248, 243, 0.96); color: var(--ink); padding: 22px;
  box-shadow: var(--shadow);
}
.hero-plate strong { font-family: var(--font-display); font-size: 2.4rem; display: block; line-height: 1; }
.hero-plate div + div { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.plate-k { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.marquee { overflow: hidden; background: var(--cobalt-deep); color: #f6f1e8; border-bottom: 4px solid var(--signal); }
.marquee-track { display: flex; gap: 28px; width: max-content; padding: 12px 0; animation: drift 46s linear infinite; font-family: var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.05rem; }
.marquee b { color: var(--signal); font-weight: 500; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-head h2, .page-title h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); text-transform: uppercase; }

.cat-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.cat-card {
  position: relative; min-height: 230px; overflow: hidden; color: white; background: var(--cobalt-deep);
  display: flex; align-items: end;
}
.cat-card:first-child { grid-row: span 2; min-height: 480px; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card div { position: relative; z-index: 1; padding: 18px; width: 100%; background: linear-gradient(transparent, rgba(8,16,26,.88)); }
.cat-card em { font-style: normal; font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.04em; color: var(--signal); }
.cat-card h3 { font-size: 1.7rem; text-transform: uppercase; margin-top: 4px; }
.cat-card p { color: rgba(255,255,255,.8); font-size: 0.92rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.product-card .media { position: relative; aspect-ratio: 4/3; background: #d7dde2; overflow: hidden; }
.product-card img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px; background: white; color: var(--ink);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px;
}
.badge.alt { left: auto; right: 10px; background: var(--signal); color: white; }
.product-card .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-size: 1.35rem; text-transform: uppercase; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 0.82rem; }
.specs span { background: #f3efe8; padding: 3px 7px; }
.price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; }
.price strong { font-family: var(--font-display); font-size: 1.8rem; }
.price small { color: var(--muted); }

.band { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--cobalt-deep); color: white; }
.band img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.band-copy { padding: 56px 48px; }
.band-copy h2 { font-size: clamp(2.8rem, 5vw, 4.4rem); text-transform: uppercase; }
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.points article { border-top: 2px solid var(--signal); padding-top: 10px; }
.points strong { display: block; font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; }

.pay-grid, .steps, .faq, .split, .legal, .form-grid { display: grid; gap: 16px; }
.pay-grid { grid-template-columns: repeat(3, 1fr); }
.pay-card, .step, .panel, .spec-plate, .summary, .faq details, .legal, .notice {
  background: var(--card); border: 1px solid var(--line); padding: 20px;
}
.pay-card b, .step b { font-family: var(--font-display); font-size: 2.2rem; color: var(--signal); display: block; }
.pay-card.disabled { opacity: 0.55; filter: grayscale(0.7); position: relative; }
.steps { grid-template-columns: repeat(3, 1fr); }
.depot { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: stretch; }
.depot iframe { width: 100%; min-height: 360px; border: 0; filter: saturate(0.8); }
.faq details { padding: 0; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 18px 16px; color: #314049; }
.cta-band {
  background:
    linear-gradient(100deg, rgba(13,34,56,.92), rgba(228,87,46,.78)),
    url("/images/yard/port.jpg") center/cover;
  color: white; padding: 64px 0;
}
.cta-band h2 { font-size: clamp(2.8rem, 6vw, 5rem); text-transform: uppercase; max-width: 14ch; }

.page-hero { padding: 42px 0 10px; }
.crumbs { color: var(--muted); font-size: 0.88rem; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.crumbs a:hover { color: var(--signal-dark); }
.layout-catalog { display: grid; grid-template-columns: 270px 1fr; gap: 22px; padding-bottom: 64px; }
.filters { display: grid; gap: 10px; align-content: start; position: sticky; top: 124px; }
.filters label, .form label { display: grid; gap: 6px; font-size: 0.84rem; font-weight: 700; }
input, select, textarea {
  width: 100%; border: 1px solid #d9d0c4; background: white; min-height: 44px; padding: 10px 12px; outline: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(23,62,104,.12); }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: white; }
.pager .on { background: var(--ink); color: white; }

.product-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; padding-bottom: 28px; }
.gallery img.main { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #d5dde3; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs button { width: 84px; height: 64px; padding: 0; border: 2px solid transparent; background: none; }
.thumbs button.on { border-color: var(--signal); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-plate { font-variant-numeric: tabular-nums; background: #10283f; color: #f4efe6; border: 0; }
.spec-plate h2 { font-size: 1.4rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); margin-bottom: 12px; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 0.92rem; }
.buy-box { display: grid; gap: 12px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 42px; height: 42px; border: 1px solid var(--line); background: white; }
.qty input { width: 72px; text-align: center; }
.meter { height: 10px; background: #efe7dc; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--cobalt), var(--signal)); }
.note { background: #fff6ea; border: 1px solid #f0d7bf; padding: 12px 14px; font-size: 0.92rem; }

.cart-table, .admin-table { width: 100%; border-collapse: collapse; background: white; }
.cart-table th, .admin-table th { text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); }
.cart-table td, .admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-line { display: flex; gap: 12px; align-items: center; }
.cart-line img { width: 84px; height: 64px; object-fit: cover; }
.split { grid-template-columns: 1.4fr .8fr; align-items: start; }
.summary { position: sticky; top: 124px; display: grid; gap: 10px; }
.summary-row, .bank-row { display: flex; justify-content: space-between; gap: 12px; }
.total-due { font-family: var(--font-display); font-size: 2.6rem; color: var(--signal-dark); }

.choice { display: grid; gap: 10px; }
.choice label {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  border: 1px solid var(--line); padding: 12px; background: white; font-weight: 600;
}
.choice label.on { border-color: var(--signal); box-shadow: inset 3px 0 0 var(--signal); }
.choice input { width: auto; }
.card-disabled {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
  border: 1px dashed #cfc6ba; padding: 12px; background: #f3f0eb; color: #8a8178; filter: grayscale(1);
}

.confirm-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 18px; padding-bottom: 64px; }
.bank-box { background: var(--cobalt-deep); color: white; padding: 22px; display: grid; gap: 8px; }
.bank-box .iban { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.04em; }
.proof-form { display: grid; gap: 10px; margin-top: 12px; }
.toast {
  position: fixed; bottom: 18px; right: 18px; z-index: 70; background: var(--ink); color: white;
  padding: 12px 16px; box-shadow: var(--shadow);
}
.site-footer { background: #101820; color: #efe8de; padding: 48px 0 20px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1fr; gap: 24px; }
.site-footer a { color: #efe8de; }
.site-footer h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.legal-line { margin-top: 28px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); color: #b7aea3; font-size: 0.85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.login-screen {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr;
  background: var(--cobalt-deep) url("/images/yard/harbor.jpg") center/cover;
}
.login-card { background: var(--paper); margin: auto 8vw auto auto; width: min(440px, 92%); padding: 32px; }
.login-card h1 { font-size: 3.2rem; text-transform: uppercase; }

.dash { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; background: #eef1f3; }
.dash-side { background: #10283f; color: white; padding: 22px 16px; display: flex; flex-direction: column; gap: 8px; }
.dash-side button, .dash-side a {
  text-align: left; background: transparent; color: white; border: 0; padding: 10px 12px; font-weight: 640;
}
.dash-side button.on { background: var(--signal); }
.dash-main { padding: 22px; }
.dash-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: white; padding: 16px; border-top: 3px solid var(--signal); }
.stat b { font-family: var(--font-display); font-size: 2rem; display: block; }
.admin-toolbar, .form-grid { display: grid; gap: 10px; }
.admin-toolbar { grid-template-columns: 1fr 220px auto; margin-bottom: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.span-2 { grid-column: span 2; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: auto; }
.thumb-admin { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-admin figure { width: 110px; margin: 0; background: white; border: 1px solid var(--line); }
.thumb-admin img { width: 110px; height: 78px; object-fit: cover; }
.ok { color: var(--ok); }
.err { color: var(--danger); }
.tag { display: inline-block; padding: 3px 7px; background: #efe7dc; font-size: 0.75rem; font-weight: 700; }

@media (max-width: 980px) {
  .hero-inner, .cat-grid, .product-grid, .band, .pay-grid, .steps, .depot, .layout-catalog, .product-layout, .split, .confirm-grid, .footer-grid, .login-screen, .dash, .stat-grid, .form-grid.two, .form-grid.three, .admin-toolbar {
    grid-template-columns: 1fr;
  }
  .cat-card:first-child { grid-row: auto; min-height: 280px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .phone-link { display: none; }
  .menu-btn { display: inline-flex; }
  .hero { min-height: 620px; }
  .dash-side { position: sticky; top: 0; z-index: 5; }
  .filters { position: static; }
  .login-card { margin: 24px auto; }
}
@media (max-width: 640px) {
  .product-grid, .points { grid-template-columns: 1fr; }
  .topbar-inner span:nth-child(2) { display: none; }
  .hero h1 { font-size: 3.3rem; }
}
@media print {
  .site-header, .site-footer, .no-print, .proof-form { display: none !important; }
  body { background: white; }
}
