/* Harbor Pilot Communications */
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-ExtraBold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/OpenSans.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
}

:root {
  --deep-lake: #1E5A62;
  --dune-grass: #5F7044;
  --sunset-clay: #B04A2A;
  --sunset-clay-dark: #8F3B21;
  --driftwood: #2E2823;
  --dune-sand: #F6EFE3;
  --white: #ffffff;
  --sand-deep: #EDE3D2;
  --border: #D9CDB8;
  --focus: #1E5A62;

  --color-bg: var(--dune-sand);
  --color-text: var(--driftwood);
  --color-heading: var(--deep-lake);
  --color-link: var(--deep-lake);
  --color-cta: var(--sunset-clay);

  --font-heading: "Alegreya Sans", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 12px;
  --max-width: 1120px;
  --space: clamp(3rem, 7vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.15; margin: 0 0 .55em; color: var(--color-heading); }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--driftwood); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: var(--color-link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }

.container { width: min(100% - 2.5rem, var(--max-width)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Accessibility */
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--deep-lake); color: var(--white); padding: .6rem 1rem; border-radius: var(--radius); z-index: 100; font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible, .btn-primary:focus-visible { outline-color: var(--driftwood); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(246, 239, 227, .97); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; padding: 0; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; margin: 0; padding: 0; font-size: .95rem; }
.nav-list a { color: var(--driftwood); text-decoration: none; padding: .25rem 0; }
.nav-list a:hover { color: var(--deep-lake); text-decoration: underline; }
.nav-list .nav-cta { color: var(--sunset-clay); font-weight: 700; }

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 0; font-size: 1rem; cursor: pointer; font-family: inherit; line-height: 1.3; }
.btn-primary { background: var(--color-cta); color: var(--white); }
.btn-primary:hover { background: var(--sunset-clay-dark); }
.text-link { font-weight: 700; color: var(--driftwood); }

/* Sections */
section { padding: var(--space) 0; }
.section-intro { max-width: 62ch; font-size: 1.1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--deep-lake); margin-bottom: .75rem; }

.hero { padding-top: clamp(3.5rem, 9vw, 7rem); }
.hero h1 { max-width: 19ch; }
.lead { font-size: clamp(1.1rem, 2vw, 1.25rem); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.75rem 0 2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 600; color: var(--dune-grass); }
.hero-points li::before { content: "✓"; margin-right: .4rem; }
/* Decorative boat (official logo cut, same file as the pilot band) fills the empty right side on wide screens only */
.hero { position: relative; }
.hero-boat { display: none; }
@media (min-width: 1100px) {
  .hero-boat { display: block; position: absolute; top: 50%; right: max(1.25rem, calc((100% - var(--max-width)) / 2)); width: clamp(260px, 25vw, 360px); height: auto; transform: translateY(-50%); pointer-events: none; }
}

.problems { background: var(--white); }
.problem-list { list-style: none; padding: 0; margin: 1.5rem 0 2.25rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.problem-list li { border-top: 4px solid var(--dune-grass); padding: 1rem 1.1rem; background: var(--dune-sand); border-radius: 0 0 var(--radius) var(--radius); }
.problem-list strong { display: block; margin-bottom: .35rem; font-family: var(--font-heading); font-size: 1.2rem; color: var(--driftwood); }
.belief { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.3; max-width: 46ch; color: var(--deep-lake); margin: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 2.25rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--deep-lake); color: var(--white); font-weight: 700; margin-bottom: .85rem; font-family: var(--font-heading); font-size: 1.2rem; }
.steps p { margin: 0; }

.services { background: var(--sand-deep); }
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.25rem; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
@media (min-width: 900px) { .services-grid { grid-template-columns: 3fr 2fr; } }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; margin: 0; }
.card-featured { border-top: 6px solid var(--deep-lake); }
.card-sub { font-weight: 600; color: var(--dune-grass); margin-top: -.4rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--driftwood); border: 1px dashed var(--driftwood); border-radius: 999px; padding: .1rem .65rem; margin-bottom: .75rem; }
.check-list { padding: 0; list-style: none; margin: 0 0 1rem; }
.check-list li { padding-left: 1.6rem; position: relative; margin-bottom: .4rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--dune-grass); font-weight: 700; }
.placeholder-text { font-style: italic; background: #FFF6D6; border: 1px dashed #A08A4A; padding: .25rem .5rem; border-radius: 6px; display: inline-block; }
.promise { margin-top: 2rem; background: var(--white); border-left: 6px solid var(--dune-grass); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.promise ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }

.about-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .about-grid { grid-template-columns: 1fr 300px; gap: 3.5rem; } }
.credentials { list-style: none; padding: 1.25rem 1.5rem; margin: 1.5rem 0; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); display: grid; gap: .5rem; }
.credentials li { padding-left: 1.4rem; position: relative; }
.credentials li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--dune-grass); }

.proof { background: var(--white); }
.proof-headline { background: var(--deep-lake); color: var(--dune-sand); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: .5rem 2rem; align-items: center; margin: 1.25rem 0 2.5rem; }
@media (min-width: 760px) { .proof-headline { grid-template-columns: auto 1fr; } }
.proof-headline p { margin: 0; font-size: 1.1rem; }
.big-number { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem) !important; line-height: 1; white-space: nowrap; }
.quote-group-title { font-size: 1.15rem; margin: 2rem 0 0; color: var(--dune-grass); text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-body); font-weight: 700; }
.placeholder-card { border: 2px dashed #A08A4A; background: #FFF9E6; }
.placeholder-card blockquote { margin: 0 0 1rem; font-style: italic; }
.placeholder-card figcaption { font-style: italic; }

.stakes-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.25rem; }
.stakes-grid > div { background: var(--white); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--border); }
.stakes-grid > div:last-child { border-top: 6px solid var(--dune-grass); }
.stakes-grid p { margin: 0; }

.contact { background: var(--sand-deep); }
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }
.contact-form { background: var(--white); padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--border); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.optional { font-weight: 400; }
.field input, .field textarea { width: 100%; padding: .75rem .85rem; font: inherit; border: 1px solid #7A6E60; border-radius: 8px; background: var(--white); color: var(--driftwood); }
.hidden-field { position: absolute; left: -9999px; }

.site-footer { background: var(--driftwood); color: var(--dune-sand); padding: 2rem 0; font-size: .95rem; }
.footer-inner p { margin: 0 0 .3rem; }
.price-note { margin: 0 0 .75rem; }

/* Full-width testimonial blocks (one per person) */
.quote-block { margin: 0 0 1.5rem; background: var(--dune-sand); border-left: 6px solid var(--deep-lake); border-radius: var(--radius); padding: clamp(1.4rem, 3.5vw, 2.25rem); }
.quote-block-quotes { display: grid; gap: 1.25rem 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .quote-block-quotes { grid-template-columns: 1fr 1fr; } }
.quote-block blockquote { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.6; }
.quote-block blockquote p { margin: 0; }
.quote-block figcaption { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.quote-name { display: block; font-weight: 700; color: var(--deep-lake); }
.quote-note { display: block; font-size: .9rem; margin-top: .2rem; }
.proof .quote-group-title { margin-top: 2.5rem; }

/* Headshot card with Sunset Clay offset block */
.about-photo { --photo-offset: var(--sunset-clay); justify-self: center; width: 100%; max-width: 280px; padding: 0 16px 16px 0; }
@media (max-width: 819px) { .about-photo { order: -1; } }
@media (min-width: 820px) { .about-photo { max-width: 316px; justify-self: end; margin-top: .5rem; } }
.photo-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.photo-card::before { content: ""; position: absolute; inset: 0; transform: translate(14px, 14px); background: var(--photo-offset); border-radius: 12px; z-index: -1; }
.photo-card picture, .photo-card img { display: block; width: 100%; height: auto; }
.photo-card img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 6px; background: var(--sand-deep); }
.about .container { position: relative; z-index: 0; }

/* Logo: padding adds clear space; minimum width 240px, compact brand below 310px viewports */
.brand { display: inline-block; text-decoration: none; line-height: 0; border-radius: 6px; padding: 15px 15px 15px 0; }
.brand .logo { display: block; width: 250px; max-width: none; height: auto; }
.brand-compact { display: none; align-items: center; gap: .55rem; line-height: 1.1; padding: .75rem 0; }
.brand-icon { width: 46px; height: auto; flex: none; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; color: var(--deep-lake); }
.header-inner nav { padding: .5rem 0; }
@media (max-width: 639px) {
  .site-header { position: static; }
  .brand { padding: 14px 14px 10px 0; }
  .brand .logo { width: 240px; }
  .header-inner nav { padding: 0 0 .75rem; }
}
@media (max-width: 309px) {
  .brand { padding: 0; }
  .brand .logo { display: none; }
  .brand-compact { display: inline-flex; }
}

/* Footer */
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.footer-brand { display: inline-block; line-height: 0; padding: 15px 15px 15px 0; border-radius: 6px; }
.footer-logo { display: block; width: 250px; max-width: none; height: auto; }
.footer-text { flex: 1 1 260px; }
@media (max-width: 309px) { .footer-brand { display: none; } }
.site-footer :focus-visible { outline-color: var(--dune-sand); }

/* Investment note */
.investment { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: .5rem; }
.investment .price-note { margin-bottom: .5rem; }
.investment-note { margin: 0 0 1rem; }

/* Why a harbor pilot */
.pilot-band { background: var(--dune-sand); border-top: 1px solid var(--border); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.pilot-inner { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 2rem; align-items: start; }
.pilot-icon { width: 88px; height: auto; margin-top: .35rem; }
.pilot-copy h2 { color: var(--deep-lake); margin-bottom: .6rem; }
.pilot-copy p { max-width: 68ch; font-size: 1.1rem; margin: 0; }
@media (max-width: 639px) {
  .pilot-inner { grid-template-columns: 1fr; }
  .pilot-icon { width: 64px; margin-top: 0; }
}

.site-footer a { color: var(--dune-sand); }
.form-note { margin: 1rem 0 0; font-size: .95rem; }

/* Simple pages (thank-you, 404, privacy) */
.page-simple { padding: clamp(3rem, 8vw, 6rem) 0; }
.page-simple .container { max-width: 760px; }
.page-simple .lead { margin-bottom: 1.75rem; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-top: 2.25rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.draft-note { background: #FFF6D6; border: 2px dashed #A08A4A; border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 2rem; }
.draft-note p { margin: 0; }
.page-meta { font-size: .95rem; }
