/* Prestige Detailing Co. — global styles
   Brand: vintage nautical, restrained, printed-feel.
   Register: Ralph Lauren Polo, Brooks Brothers, J.Press — not coastal-tourism.
   No gradients, no drop shadows, no glow. Verdigris rules. */

/* ─── Brand tokens ─────────────────────────────────────────────────────── */
:root {
  --navy:        #0D1F3C;
  --ivory:       #F0EBD8;
  --verdigris:   #4E7B6B;
  --parchment:   #E8D5B0;

  /* Derived */
  --navy-85:     rgba(13, 31, 60, 0.85);
  --navy-60:     rgba(13, 31, 60, 0.60);
  --navy-20:     rgba(13, 31, 60, 0.20);
  --ivory-85:    rgba(240, 235, 216, 0.85);
  --ivory-60:    rgba(240, 235, 216, 0.60);
  --ivory-12:    rgba(240, 235, 216, 0.12);
  --verdigris-40: rgba(78, 123, 107, 0.40);
  --parchment-85: rgba(232, 213, 176, 0.85);

  --font-heading: 'Tradewinds', Georgia, serif;
  --font-body:    'Lato', system-ui, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;

  --max-width:        1200px;
  --gutter:           clamp(20px, 4vw, 56px);
  --section-padding:  clamp(72px, 11vw, 120px);   /* editorial breathing room — was 96 cap */

  --rule:        1px solid var(--verdigris);
  --rule-thin:   1px solid var(--verdigris-40);
}

/* ─── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;                                /* editorial spacing — was 1.6 */
  color: var(--navy);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

/* Selection — keep the printed feel */
::selection { background: var(--verdigris); color: var(--ivory); }

/* ─── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
}
/* +20% across the scale — billboard-weight headings, not brochure. */
h1 { font-size: clamp(48px, 8.4vw, 101px); }
h2 { font-size: clamp(34px, 4.8vw, 53px); }
h3 { font-size: clamp(26px, 2.9vw, 34px); }
h4 { font-size: clamp(22px, 1.9vw, 26px); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow,
.label-small-caps {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;                           /* wider tracking — was 0.15 */
  text-transform: uppercase;
  color: var(--verdigris);
}
.eyebrow-ivory {                                   /* ivory variant for dark backgrounds */
  color: var(--ivory-85);
}
.eyebrow-strong {                                  /* size up — used for hero category label */
  font-size: 13px;
  letter-spacing: 0.24em;
}

.italic-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.01em;
  color: var(--parchment);
}

/* ─── Layout primitives ───────────────────────────────────────────────── */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-padding) 0; }
.section-navy   { background-color: var(--navy);  color: var(--ivory); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--parchment); }
.section-ivory  { background-color: var(--ivory); color: var(--navy); }

/* Aged paper grain — ivory sections.
   Subtle noise via inline SVG data-URI so we ship one file. */
.texture-ivory,
.section-ivory {
  background-color: var(--ivory);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.05 0 0 0 0 0.12 0 0 0 0 0.23 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Navy canvas/linen texture — sparser, deliberately faint */
.section-navy,
.texture-navy {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.94 0 0 0 0 0.92 0 0 0 0 0.85 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23c)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Verdigris rule — section divider used as a brand signature */
.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--verdigris);
  border: 0;
  margin: 0;
  opacity: 0.6;
}
.rule-short {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--verdigris);
  vertical-align: middle;
  margin: 0 14px;
}
.rule-diamond {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--verdigris);
  font-size: 9px;
}
.rule-diamond::before,
.rule-diamond::after {
  content: "";
  width: 56px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.rule-diamond .diamond {
  width: 6px; height: 6px;
  background: var(--verdigris);
  transform: rotate(45deg);
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;                              /* +2px vertical / +4px horizontal */
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;                           /* wider tracking */
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--parchment);
  color: var(--navy);
  border-color: var(--parchment);
}
.btn-primary:hover { background: var(--ivory); border-color: var(--ivory); }

.btn-secondary {
  background: transparent;
  color: var(--ivory);
  border-color: var(--ivory-60);
}
.btn-secondary:hover { color: var(--parchment); border-color: var(--parchment); }

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--ivory); }

.btn-block { width: 100%; }

/* ─── Forms ───────────────────────────────────────────────────────────── */
.field { margin-bottom: 22px; }
.field-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;                           /* wider tracking */
  text-transform: uppercase;
  color: var(--verdigris);
  margin-bottom: 8px;
}
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--ivory);
  border: 1px solid var(--verdigris-40);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--navy);
  transition: border-color 180ms ease, background-color 180ms ease;
  outline: none;
}
.field-input::placeholder,
.field-textarea::placeholder { color: rgba(13, 31, 60, 0.40); }
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--verdigris);
  background: #fff8e8;
}
.field-textarea { min-height: 120px; resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.field-hint {
  font-size: 13px;
  color: var(--navy-60);
  margin-top: 6px;
}

/* ─── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--navy-85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ivory-12);
  height: 72px;
  display: flex;
  align-items: center;
}
.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand img { height: 36px; width: auto; }
@media (min-width: 1024px) { .nav-brand img { height: 40px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;                           /* wider tracking */
  text-transform: uppercase;
  color: var(--ivory-85);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.nav-links a:hover { color: var(--parchment); border-bottom-color: var(--verdigris); }
.nav-links .nav-cta {
  background: var(--parchment);
  color: var(--navy);
  padding: 10px 22px;
  border-bottom: 0;
  letter-spacing: 0.2em;
}
.nav-links .nav-cta:hover { background: var(--ivory); border-bottom: 0; }

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  color: var(--ivory);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 36px 28px 48px;
    transform: translateY(-100%);
    transition: transform 280ms ease;
    visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--ivory-12);
    font-size: 14px;
  }
  .nav-links .nav-cta {
    margin-top: 24px;
    padding: 16px 22px;
    text-align: center;
    border-bottom: 0;
  }
}

/* push body content below the fixed nav */
.has-fixed-nav { padding-top: 72px; }

/* ─── Pattern band — section transition: pattern is the star, briefly ── */
.pattern-band {
  position: relative;
  height: 200px;
  background: var(--navy);
  border-top: 1px solid var(--verdigris-40);
  border-bottom: 1px solid var(--verdigris-40);
  overflow: hidden;
}
.pattern-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("/assets/logos/pattern-official.svg");
  background-size: 240px auto;
  background-repeat: repeat;
  opacity: 0.15;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ─── Footer ──────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  background: var(--navy);
  color: var(--ivory-85);
  padding: 96px 0 40px;                            /* +24px top — editorial spacing */
  border-top: 1px solid var(--verdigris);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("/assets/logos/pattern-official.svg");
  background-size: 220px auto;
  background-repeat: repeat;
  opacity: 0.08;                                   /* per spec */
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}
.footer > .wrap { position: relative; z-index: 1; }
.footer-brand {
  text-align: center;
  margin-bottom: 48px;
}
.footer-brand img { height: 64px; width: auto; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--ivory-12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; } }
.footer-grid h5 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;                           /* wider tracking */
  text-transform: uppercase;
  color: var(--verdigris);
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.footer-grid li a { color: var(--ivory-85); }
.footer-grid li a:hover { color: var(--parchment); }
.footer-copy {
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ivory-60);
}
.footer-copy .italic-quote { display: block; margin-bottom: 8px; font-style: italic; color: var(--parchment-85); }

/* ─── Hero — full-bleed, restrained ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  background: var(--navy);
  color: var(--ivory);
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  /* nautical pattern overlay — visible but never dominant */
  content: "";
  position: absolute; inset: 0;
  background-image: url("/assets/logos/pattern-official.svg");
  background-size: 320px auto;
  background-repeat: repeat;
  opacity: 0.12;                                   /* was 0.06 — perceptible on close inspection */
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 var(--gutter);
  max-width: 760px;
  margin: 0 auto;
}
.hero-logo {
  width: 300px;
  max-width: 80vw;
  margin: 0 auto 36px;                             /* breathing room under the lockup */
}
.hero-category {                                   /* "MARINE & AUTO DETAILING · RHODE ISLAND" */
  margin-bottom: 56px;
}
.hero-eyebrow-line {                               /* "Hand-finished. Every time." above tagline */
  margin-bottom: 18px;
  display: inline-block;
}
.hero-tagline {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(26px, 3.6vw, 38px);             /* +20% */
  line-height: 1.2;
  color: var(--parchment);
  margin-bottom: 0;
}
.hero-divider {
  display: block;
  width: 96px;
  height: 1px;
  border: 0;
  background: var(--verdigris);
  margin: 40px auto;                               /* 40px above and below — per spec */
  opacity: 0.85;
}
.hero-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 0;
}

/* Short hero (for inner pages) */
.hero-short {
  min-height: 360px;
  display: flex; align-items: flex-end;
  padding-bottom: 56px;
  text-align: left;
}
.hero-short .hero-content { max-width: var(--max-width); padding-top: 96px; }
.hero-short h1 { margin-bottom: 12px; }
.hero-short .eyebrow { color: var(--verdigris); }

/* ─── Sections — generic blocks ───────────────────────────────────────── */
.section-head { margin-bottom: 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { max-width: 760px; margin: 0 auto; }

.split-two {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 48px;
  align-items: start;
}
.split-two > .vert-rule {
  background: var(--verdigris);
  opacity: 0.55;
  align-self: stretch;
}
@media (max-width: 880px) {
  .split-two { grid-template-columns: 1fr; gap: 56px; }
  .split-two > .vert-rule { width: 100%; height: 1px; opacity: 0.55; }
}

.category-block .category-icon { width: 80px; margin-bottom: 22px; }   /* was 60 */
.category-block h3 { margin-bottom: 8px; }
.category-block .category-sub {                  /* italic subtitle under the H3 */
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  color: var(--navy-60);
  margin: 0 0 24px;
  max-width: 36ch;
}
.section-navy .category-block .category-sub { color: var(--parchment-85); }
.category-block ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; gap: 14px;
}
.category-block li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px dotted var(--verdigris-40);
}
.category-block li:last-child { border-bottom: 0; }
.category-block li .svc-name { font-weight: 500; font-size: 16px; }
.category-block li .svc-price {
  font-family: Georgia, serif; font-style: italic;
  color: var(--verdigris); font-size: 16px;
  white-space: nowrap;
}

.link-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--verdigris);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid var(--verdigris-40);
  transition: color 200ms ease, border-color 200ms ease;
}
.link-quiet:hover { color: var(--navy); border-bottom-color: var(--navy); }
.section-navy .link-quiet { color: var(--parchment); border-bottom-color: var(--parchment-85); }
.section-navy .link-quiet:hover { color: var(--ivory); border-bottom-color: var(--ivory); }

/* ─── Three-column "why" with diamond separators ──────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  text-align: center;
}
.why-grid .why-item h3 {
  font-size: clamp(20px, 1.8vw, 24px);
  color: var(--parchment);
  margin-bottom: 14px;
}
.why-grid .why-item p {
  font-size: 15px;
  color: var(--ivory-85);
  max-width: 30ch;
  margin: 0 auto;
}
.why-grid .why-divider {
  position: relative;
  height: 100%;
  min-height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--verdigris);
}
.why-grid .why-divider .diamond {
  width: 6px; height: 6px;
  background: currentColor;
  transform: rotate(45deg);
}
@media (max-width: 880px) {
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-grid .why-divider { display: none; }
}

/* ─── Gallery preview grid ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-card {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--navy);
  border: 1px solid var(--verdigris-40);
  overflow: hidden;
}
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms ease, opacity 280ms ease;
}
.gallery-card:hover img { transform: scale(1.03); opacity: 0.85; }
.gallery-card .gallery-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent 0%, var(--navy-85) 100%);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  border: 1px dashed var(--verdigris-40);
  color: var(--navy-60);
  font-family: Georgia, serif; font-style: italic;
}

/* ─── Big CTA band ────────────────────────────────────────────────────── */
.cta-band { text-align: center; padding: var(--section-padding) 0; }
.cta-band h2 { margin-bottom: 14px; color: var(--parchment); }
.cta-band .lead { color: var(--ivory-85); margin-bottom: 32px; font-size: 17px; }
.cta-band .phone { display: block; margin-top: 18px; color: var(--verdigris); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ─── Contact strip ───────────────────────────────────────────────────── */
.contact-strip {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 24px;
  padding: 32px var(--gutter);
  background: var(--ivory);
  border-top: 1px solid var(--verdigris-40);
  border-bottom: 1px solid var(--verdigris-40);
}
.contact-strip .item { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: 0.06em; }
.contact-strip .item .label { font-weight: 600; color: var(--verdigris); text-transform: uppercase; font-size: 11px; letter-spacing: 0.2em; }
.contact-strip .sep { width: 6px; height: 6px; background: var(--verdigris); transform: rotate(45deg); opacity: 0.7; }

/* ─── Filter row (gallery) ────────────────────────────────────────────── */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.filter-row button {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 18px;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--verdigris-40);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.filter-row button:hover { border-color: var(--verdigris); }
.filter-row button.is-active {
  background: var(--verdigris);
  color: var(--ivory);
  border-color: var(--verdigris);
}

/* ─── Service-area list ──────────────────────────────────────────────── */
.area-list {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 40px;
  justify-content: center;
  margin: 24px auto 0;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--parchment);
}
@media (max-width: 540px) { .area-list { grid-template-columns: 1fr; text-align: center; } }

/* ─── Messages ────────────────────────────────────────────────────────── */
.msg { padding: 14px 16px; border: 1px solid var(--verdigris-40); font-size: 14px; margin-top: 18px; }
.msg.ok  { border-color: var(--verdigris); color: var(--navy); background: rgba(78, 123, 107, 0.08); }
.msg.err { border-color: #9b3232; color: #9b3232; background: rgba(155, 50, 50, 0.06); }

/* ─── Utility ─────────────────────────────────────────────────────────── */
.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;
}
.center-text { text-align: center; }
.muted { color: var(--navy-60); }
.spacer-sm { height: 24px; }
.spacer-md { height: 48px; }
.spacer-lg { height: 80px; }
