/* Ferry Construction & Excavation — site styles. Plain CSS, no build step.
   Brand colors come from the logo: burnt orange on near-black. */

:root {
  --brand: #e35f14;        /* logo orange: accents, icons, on-dark text */
  --brand-ink: #b8490b;    /* darker orange: buttons/links on white (AA contrast with white text) */
  --brand-ink-hover: #963a07;
  --ink: #16171a;          /* logo black: headings, dark bands */
  --text: #2b2d31;
  --text-soft: #5b6068;
  --line: #e4e1dc;
  --bg: #ffffff;
  --bg-alt: #f6f3ef;       /* warm off-white for alternating sections */
  --max: 1160px;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); }
a:hover { color: var(--brand-ink-hover); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
p + p { margin-top: 14px; }
.section p, .section li { max-width: 72ch; }
.section ul, .section ol { padding-left: 1.2em; margin-top: 12px; }
.section li + li { margin-top: 6px; }
h2 + p, h3 + p { margin-top: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--brand-ink); margin-bottom: 8px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand-ink); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: var(--radius); border: 2px solid var(--brand-ink); transition: background .15s, border-color .15s; }
.btn:hover { background: var(--brand-ink-hover); border-color: var(--brand-ink-hover); color: #fff; }
.btn--lg { padding: 15px 28px; font-size: 1.05rem; }
.btn--ghost { background: transparent; color: var(--brand-ink); }
.btn--ghost:hover { background: var(--brand-ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--bg-alt); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 3px solid var(--brand); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.nav__logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.02rem; line-height: 1.2; }
.nav__logo strong { color: var(--brand); font-weight: 800; }
.nav__logo:hover { color: #fff; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a { display: block; color: #f1eee9; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 6px; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--brand); }
.nav__call { background: var(--brand-ink); color: #fff !important; margin-left: 6px; }
.nav__call:hover { background: var(--brand-ink-hover); }
.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; list-style: none; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { color: var(--ink); padding: 9px 12px; }
.dropdown a:hover { background: var(--bg-alt); color: var(--brand-ink); }
.nav__toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.3); color: #fff; font-size: 1.4rem; border-radius: 6px; padding: 4px 12px; cursor: pointer; }

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink); padding: 8px 20px 20px; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav__links.open { display: flex; }
  .dropdown { display: block; position: static; box-shadow: none; background: transparent; padding: 0 0 0 14px; }
  .dropdown a { color: #cfcac2; font-weight: 500; }
  .dropdown a:hover { background: transparent; }
  .nav__call { margin: 10px 0 0; text-align: center; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,15,17,.88) 0%, rgba(14,15,17,.62) 55%, rgba(14,15,17,.3) 100%); }
.hero__inner { position: relative; padding-top: clamp(64px, 11vw, 132px); padding-bottom: clamp(64px, 11vw, 132px); }
.hero--small .hero__inner { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); }
.hero h1 { color: #fff; max-width: 21ch; }
.hero__eyebrow { color: var(--brand); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .82rem; margin-bottom: 12px; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 56ch; margin-top: 16px; color: #ebe7e1; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #e8e4de; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--tight { padding: clamp(32px, 4vw, 48px) 0; }
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 64ch; }
.center { text-align: center; }
.center .lead, .center p { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

.grid { display: grid; gap: 22px; margin-top: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section--alt .card { border-color: transparent; box-shadow: var(--shadow); }
.card p { color: var(--text-soft); }

/* Service cards with photos */
.svc-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .15s; }
.svc-card:hover { transform: translateY(-3px); color: var(--text); }
.svc-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.svc-card__body { padding: 18px 20px 22px; }
.svc-card h3 { margin-bottom: 6px; }
.svc-card p { color: var(--text-soft); font-size: .97rem; }
.svc-card__more { display: inline-block; margin-top: 10px; color: var(--brand-ink); font-weight: 700; }

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.shot { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot--tall img { aspect-ratio: 3 / 4; }
.shot figcaption { padding: 10px 14px 12px; font-size: .92rem; color: var(--text-soft); line-height: 1.45; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.before-after .shot img { aspect-ratio: 3 / 4; }
.tag { display: inline-block; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; margin-right: 6px; }
@media (max-width: 520px) { .before-after { grid-template-columns: 1fr; } }

/* Project blocks (Our Work page) */
.project { padding: 36px 0; border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; }
.project__meta { color: var(--text-soft); font-size: .95rem; margin-bottom: 6px; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 28px; }
.steps li { counter-increment: step; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin: 0 !important; max-width: none; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 10px; }
.steps strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* Check list */
.checks { list-style: none; padding: 0 !important; display: grid; gap: 10px 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.checks li { position: relative; padding-left: 28px; margin: 0 !important; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }

/* Town / link lists */
.linklist { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 20px; }
.linklist li { margin: 0 !important; }
.linklist a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; text-decoration: none; font-weight: 600; color: var(--ink); }
.linklist a:hover { border-color: var(--brand); color: var(--brand-ink); }
.linklist small { display: block; font-weight: 400; color: var(--text-soft); }

/* Stat / fact strip (only real facts) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.facts div { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; }
.facts strong { display: block; color: #fff; font-size: 1.1rem; }
.facts span { color: #cfcac2; font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-ink); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p, .faq details > div { margin-top: 10px; color: var(--text-soft); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: clamp(48px, 6vw, 72px) 0; text-align: center; border-top: 4px solid var(--brand); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d9d4cd; max-width: 60ch; margin: 0 auto; }
.cta-band__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* Forms */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cfc9c1; border-radius: 6px; background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-ink); outline: 2px solid rgba(227,95,20,.25); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-weight: 600; color: var(--ink); min-height: 1.4em; }
.contact-list { list-style: none; padding: 0 !important; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.contact-list strong { display: block; color: var(--ink); }

/* Long-form text pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 36px; font-size: 1.5rem; }
.prose h3 { margin-top: 24px; }

/* Footer */
.site-footer { background: #0f1012; color: #bdb7ae; padding: 56px 0 96px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 10px; }
.footer-h { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #e2ddd5; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-towns { margin-top: 32px; padding-top: 24px; border-top: 1px solid #2a2b2f; }
.footer-towns ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #2a2b2f; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Sticky call bar (phones) */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); border-top: 3px solid var(--brand); padding-bottom: env(safe-area-inset-bottom); }
  .callbar a { color: #fff; text-align: center; font-weight: 800; text-decoration: none; padding: 14px 4px; }
  .callbar a:first-child { background: var(--brand-ink); }
  .callbar a + a { border-left: 1px solid #2a2b2f; }
}

/* Mixed portrait + landscape galleries crop everything to 4:3 so rows line up;
   an all-portrait gallery keeps its tall shape. */
.gallery:has(.shot:not(.shot--tall)) .shot--tall img { aspect-ratio: 4 / 3; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .gallery--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery--3 { grid-template-columns: 1fr; } }

.hero__trust { margin-top: 16px; font-size: .92rem; font-weight: 600; color: #e6e1da; letter-spacing: .01em; }
.hero__trust::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: middle; }
.footer-cred { margin-top: 10px; color: #fff; font-weight: 600; }
