/* ============================================================
   Brightwork Marine Co. — styles
   Classical yacht-club light theme: a pale bay-blue ground, cream
   paper panels, deep navy ink, one burgundy signal-flag accent.
   There is no yellow or gold anywhere in this file, by decision.
   ============================================================ */

/* ---- Design tokens ----
   Every ratio below was computed with the WCAG relative-luminance
   formula before being written down. Body pairs clear AAA (7:1). */
:root {
  --sea:       #CFE0EE;  /* page ground — pale bay blue */
  --sea-pale:  #DCE9F2;  /* alternating section tint */
  --paper:     #FBFAF7;  /* cards and panels */
  --cream:     #F4F1EA;  /* secondary panel */
  --navy:      #12283F;  /* primary ink — 11.1:1 on sea, 14.4:1 on paper */
  --navy-soft: #1D3E5C;  /* headings on tinted panels */
  /* Secondary copy. On a light ground a genuinely pale grey cannot reach AAA,
     so "muted" here means a touch lighter than the ink rather than actually
     faint — 7.6:1 on the deepest surface, for readers in their sixties and
     seventies reading on a sunny dock. */
  --muted:     #2F4257;
  --burgundy:  #7C1F24;  /* the single accent — 7.5:1 on sea, 9.7:1 on paper */

  --rule:  #7FA3C0;  /* decorative hairlines only — never a control edge */
  --line:  #50708D;  /* functional borders: inputs, buttons, calendar */

  --font-caps: "Cinzel", "Times New Roman", serif;   /* inscriptional capitals */
  --font-text: "EB Garamond", Georgia, serif;        /* the reading face */

  /* spacing scale — every gap on the page comes from this list */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.75rem;
  --s4: 3rem;
  --s5: 5.5rem;

  --measure: 36rem;  /* max width for running text */
}

/* ---- Reset-ish ---- */
* { box-sizing: border-box; margin: 0; }
:root { color-scheme: light; }

body {
  background: var(--sea);
  color: var(--navy);
  font-family: var(--font-text);
  /* EB Garamond runs small for its point size, so the base is 19px rather
     than 16px — the readability floor for the 50-75 audience. */
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }

/* Focus states — visible, and in the accent rather than the browser blue */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

/* ---- Type roles ---- */
h1, h2, h3 { font-family: var(--font-text); font-weight: 600; text-wrap: balance; line-height: 1.15; }

.label {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 0.875rem;      /* 14px floor for all small capitals */
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
}

/* The engraved double rule, borrowed from club letterhead */
.rule-double {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  height: 4px;
  width: 100%;
  max-width: 9rem;
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--sea) 96%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

/* The telephone bar. Navy, not gold — and the number is the largest
   thing in the header, because for this audience it is the real CTA. */
.callbar {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.55rem clamp(1rem, 4vw, 3rem);
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
}
.callbar-label {
  font-family: var(--font-caps);
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.callbar-num {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  letter-spacing: 0.04em;
}
.callbar:hover { background: var(--navy-soft); }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) clamp(1rem, 4vw, 3rem);
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy); }
.brand-burgee { width: 42px; height: 24px; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav nav { display: flex; gap: clamp(0.9rem, 2.4vw, 1.9rem); align-items: center; }
.nav nav a {
  font-family: var(--font-caps);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav nav a:hover { border-bottom-color: var(--burgundy); }
.nav nav a.nav-cta {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.45em 1.15em;
  color: var(--navy);
}
.nav nav a.nav-cta:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }

/* ============ HERO ============ */
.hero {
  padding: var(--s5) clamp(1rem, 6vw, 5rem);
  display: flex;
  justify-content: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s3);
  max-width: 46rem;
}
.eyebrow {
  font-family: var(--font-caps);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; color: var(--navy-soft); }
.hero-sub { max-width: var(--measure); color: var(--muted); font-size: 1.2rem; }

.hero-actions { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--navy);
  color: var(--paper);
  border: 1px solid var(--navy);
  text-decoration: none;
  padding: 0.95em 2.2em;
  cursor: pointer;
  border-radius: 0;
}
.btn:hover { background: var(--burgundy); border-color: var(--burgundy); }

.btn-quiet {
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.btn-quiet:hover { color: var(--burgundy); border-bottom-color: var(--burgundy); }

/* ---- The estimate card ----
   Stands in for the walk-around: the site quotes so nobody has to meet. */
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--s3);
  width: 100%;
  max-width: 27rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.quote-head {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: var(--burgundy);
  padding-bottom: var(--s1);
  border-bottom: 1px solid var(--rule);
}
.quote-label {
  font-family: var(--font-caps);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.quote-input { display: flex; align-items: baseline; gap: 0.6rem; }
.quote-input input {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line);
  color: var(--navy);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 2.8rem;
  width: 4.5ch;
  padding: 0 0 0.05em;
  border-radius: 0;
  font-variant-numeric: tabular-nums;
}
.quote-input input:focus { border-bottom-color: var(--burgundy); outline: none; }
.quote-unit { font-size: 1.1rem; font-style: italic; color: var(--muted); }

.quote-out { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.quote-line { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.quote-line dt { color: var(--muted); font-size: 1rem; }
.quote-line dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-primary {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
}
.quote-primary dt { color: var(--navy); }
.quote-primary dd { font-size: 1.6rem; color: var(--burgundy); }
.quote-note { font-size: 0.9375rem; color: var(--muted); font-style: italic; }

/* ---- Signal flags: one decorative strip, no yellow flags used ---- */
.flags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 clamp(1rem, 6vw, 5rem) var(--s2);
}
.flag { width: 34px; height: 23px; border: 1px solid var(--rule); }
.flag-p { background: var(--paper); box-shadow: inset 0 0 0 7px var(--navy); }
.flag-s { background: var(--navy); box-shadow: inset 0 0 0 7px var(--paper); }
.flag-n {
  background:
    conic-gradient(var(--navy) 25%, var(--paper) 0 50%, var(--navy) 0 75%, var(--paper) 0)
    0 0 / 50% 50%;
}
.flag-h { background: linear-gradient(90deg, var(--paper) 50%, var(--burgundy) 50%); }
.flag-b { background: var(--burgundy); }

/* ============ SECTIONS ============ */
.section {
  padding: var(--s5) clamp(1rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s2);
}
.section-tint { background: var(--sea-pale); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-title { font-size: clamp(2rem, 4.6vw, 2.9rem); font-weight: 500; }
.section-line { color: var(--muted); max-width: var(--measure); font-size: 1.15rem; margin-bottom: var(--s2); }

/* ---- The work: photographs as engraved plates ---- */
.plates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--s3);
  width: 100%;
  max-width: 74rem;
}
.plate { margin: 0; background: var(--paper); padding: 0.6rem; border: 1px solid var(--rule); }
.plate img {
  width: 100%;
  height: auto;         /* without this the width/height attributes fix the box */
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---- Rate cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--s3);
  width: 100%;
  max-width: 68rem;
  align-items: stretch;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  text-align: center;
}
.card-feature { border: 2px solid var(--navy); }
.card-flag {
  font-family: var(--font-caps);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.card h3 { font-size: 1.6rem; font-weight: 500; }
.card p { color: var(--muted); font-size: 1.05rem; }
.card-price {
  margin-top: auto;
  padding-top: var(--s2);
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
/* .card p.card-price beats the plain .card p colour rule above — the same
   specificity trap that once turned the old site's prices grey. */
.card p.card-price .figure {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.card p.card-price .per {
  font-family: var(--font-caps);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- The referral notice ---- */
.intro {
  border: 2px solid var(--burgundy);
  background: var(--paper);
  padding: var(--s4) var(--s3);
  max-width: 46rem;
  margin-top: var(--s4);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.intro-label {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--burgundy);
}
/* The single loudest sentence on the page after the headline — this offer is
   the business's main way of finding new customers, so it is set at display
   size rather than tucked into body copy. */
.intro-head {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.14;
}
.intro-copy { font-size: 1.15rem; color: var(--muted); }
.intro-copy strong { font-weight: 600; color: var(--navy); }
.intro-fine { font-size: 0.9375rem; font-style: italic; color: var(--muted); }

.fineprint {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--muted);
  max-width: 44rem;
  margin-top: var(--s2);
}

/* ---- Process ---- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--s4);
  width: 100%;
  max-width: 68rem;
}
.steps li { display: flex; flex-direction: column; align-items: center; gap: var(--s1); text-align: center; }
.step-no {
  font-family: var(--font-caps);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--burgundy);
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  margin-bottom: var(--s1);
}
.steps h3 { font-size: 1.45rem; font-weight: 500; }
.steps p { color: var(--muted); font-size: 1.05rem; max-width: 22rem; }

.needs {
  border-left: 3px solid var(--burgundy);
  background: var(--cream);
  padding: var(--s2) var(--s3);
  max-width: 44rem;
  text-align: left;
  margin-top: var(--s3);
}
.needs p { font-size: 1.05rem; }
.needs strong { font-weight: 600; }

/* ---- Booking ----
   The telephone number is the single largest thing in this section, on
   purpose: this audience skews 50-75 and a good share of them will reach for
   the number rather than any button. It is a link on every device, so a tap
   opens a message and a click on a laptop still shows the number plainly. */
.bignum {
  display: inline-block;
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 3px solid var(--burgundy);
  padding-bottom: 0.08em;
  margin-top: var(--s1);
}
.bignum:hover { color: var(--burgundy); }

.booknow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s2);
}
.btn-book { font-size: 1.05rem; padding: 1.1em 2.8em; }
.booknow-note { font-size: 0.9375rem; font-style: italic; color: var(--muted); }
.booknow-or { font-size: 1.05rem; color: var(--muted); margin-top: var(--s1); }
.booknow-or a { color: var(--burgundy); text-decoration: none; border-bottom: 1px solid var(--rule); }
.booknow-or a:hover { border-bottom-color: var(--burgundy); }

/* The four things to include, numbered so they read as a checklist */
.tellme { margin: var(--s1) 0 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 0.3rem; }
.tellme li { font-size: 1.05rem; }

/* ---- The company ---- */
.company {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s5);
  max-width: 62rem;
  margin-top: var(--s2);
}
.company-copy { max-width: var(--measure); text-align: left; display: flex; flex-direction: column; gap: var(--s2); }
.company-copy em { font-style: italic; color: var(--burgundy); }
.seal { width: 230px; height: 230px; flex: none; }
/* No letter-spacing here on purpose: textLength + lengthAdjust="spacing" in the
   markup does the tracking, and a CSS letter-spacing would fight it. */
.seal-text {
  font-family: var(--font-caps);
  font-size: 13px;
  font-weight: 600;
  fill: var(--navy);
}
.seal-est {
  font-family: var(--font-caps);
  font-size: 11px;
  letter-spacing: 0.2em;
  fill: var(--muted);
}

/* ============ FOOTER ============ */
.footer {
  padding: var(--s4) clamp(1rem, 6vw, 5rem) var(--s3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--s3);
  width: 100%;
  max-width: 62rem;
}
.foot-brand {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.foot-line { font-size: 1rem; color: var(--muted); }
.footer a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--rule); }
.footer a:hover { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.small { font-size: 0.9375rem; font-style: italic; color: var(--muted); }

/* ============ MOBILE ============ */
@media (max-width: 40rem) {
  body { font-size: 1.125rem; }
  .hero { padding-top: var(--s4); }
  .nav nav a:not(.nav-cta) { display: none; }  /* phone: brand + Book only */
  .brand-sub { display: none; }
  .quote-input input { font-size: 2.2rem; }
  .company { gap: var(--s3); }
  }

/* ============ MOTION ============
   One quiet entrance, and nothing at all if the reader prefers stillness. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-inner > * {
    opacity: 0;
    animation: settle 700ms ease forwards;
  }
  .hero-inner > *:nth-child(1) { animation-delay: 60ms; }
  .hero-inner > *:nth-child(2) { animation-delay: 180ms; }
  .hero-inner > *:nth-child(3) { animation-delay: 300ms; }
  .hero-inner > *:nth-child(4) { animation-delay: 380ms; }
  .hero-inner > *:nth-child(5) { animation-delay: 480ms; }
  .hero-inner > *:nth-child(6) { animation-delay: 580ms; }
  @keyframes settle { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ============ PRINT ============
   The page is already light, so paper mostly needs the furniture removed. */
@media print {
  body { background: #fff; font-size: 11pt; }
  .header { position: static; }
  .callbar { background: transparent; color: var(--navy); border-bottom: 1px solid var(--navy); }
  .section-tint, .card, .quote-card, .plate, .needs { background: transparent; }
  .flags, .nav nav, .btn, .btn-quiet { display: none; }
  .section { padding: var(--s3) 0; page-break-inside: avoid; }
}
