/* ==========================================================================
   Juliano's Marine Services — shared styles
   Palette: deep navy, brass/gold, sea-fog, chrome steel, white
   Display type: Oswald (condensed, industrial — matches marina signage)
   Body type: Inter
   ========================================================================== */

:root {
  --navy: #204468;
  --navy-deep: #16324f;
  --navy-deep-rgb: 22, 50, 79;
  --navy-light: #4779a3;
  --sky: #6b9fcc;
  --sky-pale: #dfecf4;
  --gold: #f2b705;
  --gold-deep: #c98f00;
  --maroon: #803034;
  --maroon-deep: #5e2226;
  --white: #ffffff;
  --fog: #eef4f8;
  --fog-deep: #d9e8f0;
  --steel: #c7d1d9;
  --ink: #26282d;
  --ink-soft: #55606b;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --max: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}

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

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Visually hidden (screen-reader only) ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(201, 143, 0, 0.4);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark {
  height: 46px;
  width: auto;
  flex: none;
  object-fit: contain;
}
.brand-text {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.brand-text .top { display: block; font-size: 15px; font-weight: 600; color: var(--navy); }
.brand-text .bottom { display: block; font-size: 11px; color: var(--gold-deep); font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.main-nav a {
  text-decoration: none;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--navy-deep); border-color: var(--gold-deep); }
.main-nav .btn, .main-nav .btn:hover { border-bottom-color: transparent; }
.main-nav .btn-gold, .main-nav .btn-gold:hover { color: var(--navy-deep); }
.main-nav .btn-outline { color: var(--navy); border-color: var(--navy); }
.main-nav .btn-outline:hover { color: var(--white); background: var(--navy); }

.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy-deep); }
.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: -76px;
  padding-top: 76px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(var(--navy-deep-rgb),.62) 0%, rgba(var(--navy-deep-rgb),.42) 55%, rgba(var(--navy-deep-rgb),.68) 100%),
    url("assets/hero-marina.jpg");
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 64px;
  background: var(--fog);
  clip-path: polygon(0 60%, 6% 40%, 14% 60%, 22% 35%, 30% 60%, 38% 42%, 46% 60%, 54% 38%, 62% 60%, 70% 42%, 78% 60%, 86% 40%, 94% 60%, 100% 45%, 100% 100%, 0 100%);
  opacity: .9;
}
.hero-inner {
  padding: 88px 24px 96px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 13px;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: 0.01em;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lede {
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--fog);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section band (colored header bar) ---------- */
.band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 22px 24px;
}
.band h2 {
  letter-spacing: 0.12em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

section { padding: 72px 0; }
.section-fog { background: var(--fog); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { color: var(--gold-deep); }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 6px 0 12px;
  color: var(--navy);
}
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.1rem; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, var(--navy-light), var(--navy-deep));
  box-shadow: 0 1px 3px rgba(11,37,69,.15);
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(11,37,69,.25); }
.service-card .photo-placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px),
    linear-gradient(200deg, var(--navy-light), var(--navy-deep));
}
.service-card .photo-placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.service-card .card-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.service-card-body {
  position: relative;
  z-index: 2;
  padding: 22px;
  width: 100%;
  background: linear-gradient(0deg, rgba(var(--navy-deep-rgb),.92) 0%, rgba(var(--navy-deep-rgb),0) 100%);
}
.service-card-body h3 {
  font-size: 1.25rem;
  margin: 0 0 4px;
  letter-spacing: .02em;
}
.service-card-body span.cta {
  font-size: 13px;
  color: var(--fog);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Before/after slider (signature element) ---------- */
.ba-slider {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(11,37,69,.2);
  max-width: 560px;
}
.ba-slider .layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--white);
}
.ba-slider .before {
  background: var(--steel);
}
.ba-slider .after {
  background: var(--fog);
  clip-path: inset(0 0 0 50%);
}
.ba-slider .handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 4px; background: var(--gold);
  transform: translateX(-2px);
  cursor: ew-resize;
}
.ba-slider .handle::after {
  content: "◂▸";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  letter-spacing: .1em;
}
.ba-slider input[type="range"] {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ba-label {
  position: absolute;
  top: 12px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(var(--navy-deep-rgb),.75);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
}
.ba-label.before-label { left: 12px; }
.ba-label.after-label { right: 12px; }

/* ---------- Recipe / brand story ---------- */
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.recipe-grid p { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; }
.recipe-grid strong { color: var(--navy); }

.sauce-badge {
  margin-top: 20px;
}
.sauce-badge img {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Who we are ---------- */
.story {
  background: var(--white);
}
.story .wrap { max-width: 760px; text-align: center; }
.story p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--fog-deep);
  border-radius: var(--radius);
  padding: 26px;
}
.review-card .stars { color: var(--maroon); font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
.review-card p.quote { font-style: italic; color: var(--ink-soft); margin: 0 0 14px; }
.review-card .who { font-family: var(--font-display); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); }
.review-placeholder-note {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--fog);
  border: 1px dashed var(--steel);
  padding: 14px 18px;
  border-radius: var(--radius);
}

/* ---------- Contact CTA (home page) ---------- */
.contact-cta {
  background: linear-gradient(160deg, var(--navy), var(--navy-deep));
  color: var(--white);
  text-align: center;
}
.contact-cta h2 { font-size: clamp(1.6rem,3vw,2.2rem); margin: 0 0 12px; }
.contact-cta p { color: var(--fog); max-width: 480px; margin: 0 auto 28px; font-size: 1.1rem; }
.contact-quick {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  margin-top: 30px; font-family: var(--font-display); letter-spacing: .04em;
}
.contact-quick a { text-decoration: none; color: var(--gold); }
.contact-quick a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--steel);
  padding: 40px 0 26px;
  font-size: 14px;
}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.footer-grid .brand-text .top { color: var(--white); }
.footer-links { display: flex; gap: 22px; list-style: none; padding: 0; }
.footer-links a { text-decoration: none; color: var(--steel); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px;
  color: var(--steel);
}

/* ---------- Service detail pages ---------- */
.service-hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0;
}
.service-hero .eyebrow { color: var(--gold); }
.service-hero h1 { font-size: clamp(1.8rem,4vw,2.8rem); margin: 8px 0 0; }
.breadcrumb { font-size: 13px; color: var(--fog); margin-bottom: 14px; }
.breadcrumb a { color: var(--fog); text-decoration: underline; text-underline-offset: 3px; }

.detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.detail-grid .photo-placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--fog-deep) 0 2px, var(--fog) 2px 16px);
  border: 1px dashed var(--steel);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 13px; text-align: center; padding: 16px;
}
.detail-grid .detail-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--fog-deep); }
.checklist li::before { content: "✓"; color: var(--gold-deep); font-weight: 700; }

.other-services { margin-top: 20px; }
.other-services a { display: block; padding: 10px 0; text-decoration: none; color: var(--navy); font-family: var(--font-display); text-transform: uppercase; font-size: 13px; letter-spacing: .04em; border-bottom: 1px solid var(--fog-deep); }
.other-services a:hover { color: var(--gold-deep); }

/* ---------- Contact page form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--steel); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; background: var(--white); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold-deep); }
.contact-info-card { background: var(--fog); border-radius: var(--radius); padding: 28px; }
.contact-info-card h3 {
  font-size: 1rem;
  letter-spacing: .03em;
  color: var(--navy);
  margin: 0 0 14px;
}
.contact-info-card .line { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.contact-info-card a { color: var(--navy); text-decoration: none; font-weight: 600; }
.contact-info-card a:hover { color: var(--gold-deep); }
.form-status { margin-top: 14px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav ul { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: transparent; border: 1px solid var(--navy);
    border-radius: var(--radius); color: var(--navy); cursor: pointer;
  }
  body.nav-open .main-nav ul {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(255,255,255,0.97); padding: 12px 24px 20px; border-bottom: 1px solid rgba(201,143,0,0.4);
  }
  body.nav-open .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--fog-deep); }
  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .recipe-grid, .detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card, .btn { transition: none; }
}
