/* =========================================================
   OFF Shore — Design System
   Concept: "Site Plan" — every project reads like an
   annotated blueprint / survey card: dashed measurement
   lines, corner crop-marks, monospace spec labels, a
   rotated completion stamp. Built on paper-grid + ink,
   with a safety-yellow accent pulled from site signage.
   ========================================================= */

:root {
  /* Color */
  --ink:        #15191B;
  --ink-soft:   #262C2F;
  --paper:      #EEEDE6;
  --paper-2:    #E4E2D8;
  --steel:      #2D4A5E;
  --yellow:     #F2B705;
  --concrete:   #83898B;
  --white:      #FFFFFF;

  /* Type */
  --font-display: "Big Shoulders Display", "Archivo Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 2px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--yellow);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0 0 .4em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink);
  transition: background .18s ease, color .18s ease, transform .12s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.btn-solid { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.btn-ghost-light { border-color: var(--paper); color: var(--paper); }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }

/* =========================== Header =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--ink);
  border-bottom: 1px solid rgba(238,237,230,.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--paper);
  letter-spacing: .02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand span { color: var(--yellow); }

.nav-links {
  display: flex;
  gap: 34px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--yellow);
  transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px; height: 24px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--paper);
}
.nav-toggle span { top: 11px; }
.nav-toggle span::before { top: -9px; }
.nav-toggle span::after { top: 9px; }

/* =========================== Hero =========================== */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(21,25,27,.72), rgba(21,25,27,.86)),
    repeating-linear-gradient(0deg, rgba(238,237,230,.06) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(238,237,230,.06) 0 1px, transparent 1px 40px),
    var(--ink);
  color: var(--paper);
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 48px;
  align-items: end;
}
.hero .eyebrow { color: var(--yellow); margin-bottom: 18px; }
.hero h1 { color: var(--paper); }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-lede { max-width: 46ch; color: rgba(238,237,230,.78); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.hero-specs {
  font-family: var(--font-mono);
  font-size: 13px;
  border-left: 2px dashed rgba(242,183,5,.5);
  padding-left: 22px;
}
.hero-specs div { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid rgba(238,237,230,.12); color: rgba(238,237,230,.85); }
.hero-specs div span:last-child { color: var(--yellow); }

/* =========================== Sections =========================== */
.section { padding: 90px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark p { color: rgba(238,237,230,.72); }
.section-dark h2 { color: var(--paper); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head p { max-width: 50ch; margin: 10px 0 0; }

/* =========================== Category filter =========================== */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}
.filter-chip.active, .filter-chip:hover { background: var(--ink); color: var(--yellow); }

/* =========================== Gallery / Spec cards =========================== */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.spec-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(21,25,27,.12);
  padding: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.spec-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(21,25,27,.14); }

/* corner crop-marks, the signature motif */
.spec-card::before, .spec-card::after,
.spec-card .crop-tl, .spec-card .crop-br { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--yellow); z-index: 2; }
.spec-card::before { top: 4px; left: 4px; border-top: 2px solid var(--yellow); border-left: 2px solid var(--yellow); }
.spec-card::after { bottom: 4px; right: 4px; border-bottom: 2px solid var(--yellow); border-right: 2px solid var(--yellow); }

.spec-card figure { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--paper-2); }
.spec-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.spec-card:hover img { transform: scale(1.05); }

.stamp {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--yellow);
  border: 1.5px solid var(--yellow);
  padding: 4px 8px;
  transform: rotate(6deg);
  background: rgba(21,25,27,.55);
  z-index: 3;
}

.spec-body { padding: 18px 8px 8px; }
.spec-body h3 { margin-bottom: 6px; }
.spec-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--concrete);
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed rgba(21,25,27,.2);
  padding-top: 10px;
  margin-top: 10px;
}
.spec-meta strong { color: var(--steel); }

/* =========================== Downloads =========================== */
.doc-list { display: flex; flex-direction: column; gap: 14px; }
.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border: 1px solid rgba(21,25,27,.12);
  border-left: 4px solid var(--steel);
  padding: 20px 24px;
  flex-wrap: wrap;
}
.doc-info { display: flex; align-items: center; gap: 16px; }
.doc-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  border: 1px solid rgba(21,25,27,.12);
  text-transform: uppercase;
}
.doc-meta { font-family: var(--font-mono); font-size: 12px; color: var(--concrete); }

/* =========================== Testimonials =========================== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: var(--ink-soft);
  padding: 30px 26px;
  border-top: 3px solid var(--yellow);
}
.testi-card p { color: rgba(238,237,230,.85); font-style: italic; }
.testi-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }

/* =========================== Contact =========================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.form-group { margin-bottom: 18px; }
.form-group label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; display: block; margin-bottom: 6px; color: var(--steel); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid rgba(21,25,27,.25);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
}
.form-group input:focus, .form-group textarea:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--ink); }

/* =========================== Footer =========================== */
.site-footer { background: var(--ink); color: rgba(238,237,230,.7); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--paper); font-size: .95rem; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(238,237,230,.12); padding-top: 22px; font-family: var(--font-mono); font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* =========================== Live chat widget =========================== */
.chat-bubble {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 60px; height: 60px;
  background: var(--yellow);
  color: var(--ink);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  z-index: 900;
  font-size: 26px;
}
.chat-bubble:hover { transform: scale(1.06); }

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(21,25,27,.72);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--paper);
  max-width: 460px; width: 100%;
  padding: 32px;
  position: relative;
  border-top: 4px solid var(--yellow);
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; font-size: 22px; color: var(--ink);
}
.modal-box h3 { margin-bottom: 10px; }
.modal-box .eyebrow { margin-bottom: 14px; }

.lock-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  background: rgba(45,74,94,.08);
  border: 1px dashed var(--steel);
  padding: 10px 14px;
  margin-bottom: 18px;
}

/* =========================== Lightbox =========================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(21,25,27,.94);
  display: none;
  align-items: center; justify-content: center;
  z-index: 1000;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; max-width: 90vw; object-fit: contain; border: 3px solid var(--paper); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: var(--yellow); color: var(--ink);
  border: none; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

.toast {
  position: fixed; top: 20px; right: 20px;
  background: var(--ink); color: var(--paper);
  padding: 16px 20px; border-left: 4px solid var(--yellow);
  font-family: var(--font-mono); font-size: 13px;
  z-index: 1200; max-width: 320px;
  box-shadow: 0 10px 26px rgba(0,0,0,.3);
}

/* =========================== Responsive =========================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-specs { border-left: none; border-top: 2px dashed rgba(242,183,5,.5); padding-left: 0; padding-top: 20px; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { padding: 16px 24px; border-top: 1px solid rgba(238,237,230,.1); display: block; }
  .nav-toggle { display: block; }
  .grid-cards { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .doc-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
