/* =========================================================
   Active Marine Services — stylesheet
   Design concept: the homepage borrows the structure of a
   marine survey report — a title block, numbered findings,
   plain hairline rules — rather than generic web-template
   chrome. The tribute page drops the report framing for a
   quieter, personal layout.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Color */
    --paper: #f4f1e8;
    --paper-deep: #ece7d8;
    --rule: #cec4a8;
    --ink: #16262d;
    --ink-soft: #3c4d54;
    --navy: #1c3f52;
    --navy-deep: #0d2531;
    --sea: #3c6e85;
    --brass: #a9763a;
    --brass-deep: #8a5f2c;

    /* Type */
    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper-deep);
    line-height: 1.55;
}

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

a {
    color: var(--navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--navy-deep);
}

p {
    margin: 0 0 1em;
    max-width: 62ch;
}

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

/* ---------- Header / Nav ---------- */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 40;
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy-deep);
}

.brand img {
    height: 46px;
    width: auto;
}

.brand-text {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.18rem;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.brand-text small {
    display: block;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.65rem;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav.main-nav a {
    font-size: 0.96rem;
    text-decoration: none;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
    border-bottom-color: var(--brass);
    color: var(--navy-deep);
}

nav.main-nav a.tribute-link {
    color: var(--brass-deep);
    font-family: var(--serif);
    font-style: italic;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--rule);
    padding: 8px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--navy-deep);
}

@media (max-width: 820px) {
    .nav-toggle {
        display: inline-block;
    }

    nav.main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 6px 28px 18px;
        display: none;
    }

    nav.main-nav.open {
        display: flex;
    }

    nav.main-nav a {
        width: 100%;
        padding: 11px 0;
        border-bottom: 1px solid var(--paper-deep);
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 12px 22px;
    border: 1px solid var(--navy-deep);
    color: var(--navy-deep);
    background: transparent;
    cursor: pointer;
}

.btn:hover {
    background: var(--navy-deep);
    color: var(--paper);
}

.btn-solid {
    background: var(--brass);
    border-color: var(--brass);
    color: #fff;
}

.btn-solid:hover {
    background: var(--brass-deep);
    border-color: var(--brass-deep);
    color: #fff;
}

/* ---------- Hero (title-block styling) ---------- */
.hero {
    border-bottom: 1px solid var(--rule);
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 56px;
    padding-bottom: 0px;
}

.hero-art {
    border: 1px solid var(--rule);
    background: #fff;
    padding: 18px;
}

.hero-copy .kicker {
    font-family: var(--serif);
    font-style: italic;
    color: var(--sea);
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    max-width: 15ch;
}

.hero-copy p.lede {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 46ch;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

@media (max-width: 820px) {
    .hero .wrap {
        grid-template-columns: 1fr;
        padding-top: 32px;
        padding-bottom: 36px;
    }

    .hero-art {
        order: -1;
        max-width: 360px;
    }
}

/* ---------- Waterline strip ---------- */
.waterline {
    background: var(--navy-deep);
    color: var(--paper);
    border-bottom: 1px solid var(--brass);
}

.waterline .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 0.92rem;
}

.waterline strong {
    color: #fff;
}

/* ---------- Report-style section list ---------- */
.report-section {
    padding: 58px 0;
    border-bottom: 1px solid var(--rule);
}

.report-section .section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 30px;
}

.section-ref {
    font-family: var(--serif);
    font-style: italic;
    color: var(--brass-deep);
    font-size: 1.1rem;
    white-space: nowrap;
}

.report-section h2 {
    margin: 0;
}

.finding {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 24px;
    padding: 26px 0;
    border-top: 1px solid var(--rule);
}

.finding:first-of-type {
    border-top: 1px solid var(--ink);
}

.finding .ref {
    font-family: var(--serif);
    font-style: italic;
    color: var(--sea);
    font-size: 1.15rem;
    padding-bottom: 0px;
    min-width: 100px;
}

.finding h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.finding p:last-child {
    margin-bottom: 0;
}

.finding a.more {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brass-deep);
    text-decoration: none;
    border-bottom: 1px solid var(--brass-deep);
}

@media (max-width: 620px) {
    .finding {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* ---------- Vessel type strip ---------- */
.vessel-strip {
    background: var(--paper-deep);
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
}

.vessel-strip h2 {
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.vessel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 0.98rem;
    color: var(--ink-soft);
}

.vessel-list li::before {
    content: "—";
    color: var(--brass);
    margin-right: 8px;
}

/* ---------- Trust / heritage band ---------- */
.heritage {
    padding: 60px 0;
    border-bottom: 1px solid var(--rule);
}

.heritage .wrap {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: center;
}

.heritage img {
    border: 1px solid var(--rule);
}

.heritage .cred-list {
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.heritage .cred-list li {
    padding: 9px 0;
    border-top: 1px solid var(--rule);
    display: flex;
    gap: 10px;
}

.heritage .cred-list li:last-child {
    border-bottom: 1px solid var(--rule);
}

.heritage .cred-list img {
    height: 30px;
    width: auto;
    flex-shrink: 0;
}

@media (max-width: 820px) {
    .heritage .wrap {
        grid-template-columns: 1fr;
    }
}

/* ---------- Service area ---------- */
.area-section {
    padding: 58px 0;
    background: var(--navy-deep);
    color: var(--paper);
    border-bottom: 1px solid var(--brass);
}

.area-section h2 {
    color: #fff;
}

.area-section a {
    color: var(--paper);
}

.area-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 28px 0 32px;
}

.area-columns h3 {
    color: var(--paper);
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(244,241,232,0.35);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.area-columns p {
    color: rgba(244,241,232,0.82);
    font-size: 0.94rem;
}

@media (max-width: 720px) {
    .area-columns {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* ---------- Generic page header (About/Services/Contact) ---------- */
.page-head {
    padding: 46px 0 40px;
    border-bottom: 1px solid var(--rule);
}

.page-head .section-ref {
    display: block;
    margin-bottom: 10px;
}

.page-head p.lede {
    font-size: 1.08rem;
    color: var(--ink-soft);
    max-width: 60ch;
}

/* ---------- Two column content blocks ---------- */
.content-block {
    padding: 50px 0;
    border-bottom: 1px solid var(--rule);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
}

@media (max-width: 800px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    border: 1px solid var(--rule);
    background: #fff;
    padding: 28px;
}

.contact-card dt {
    font-weight: 600;
    color: var(--navy-deep);
    font-size: 0.85rem;
    margin-top: 16px;
}

.contact-card dt:first-child {
    margin-top: 0;
}

.contact-card dd {
    margin: 3px 0 0;
    font-size: 1.05rem;
}

.contact-card a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
}

.contact-card a:hover {
    border-color: var(--brass);
}

form.inquiry {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

form.inquiry label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--navy-deep);
    display: block;
    margin-bottom: 6px;
}

form.inquiry input,
form.inquiry select,
form.inquiry textarea {
    width: 100%;
    font-family: var(--sans);
    font-size: 1rem;
    padding: 11px 12px;
    border: 1px solid var(--rule);
    background: #fff;
    color: var(--ink);
}

form.inquiry textarea {
    min-height: 130px;
    resize: vertical;
}

form.inquiry .row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 560px) {
    form.inquiry .row-2 {
        grid-template-columns: 1fr;
    }
}

.form-note {
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 4px;
}

/* ---------- Services page detail rows ---------- */
.service-detail {
    padding: 54px 0;
    border-bottom: 1px solid var(--rule);
}

.service-detail .wrap {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
}

.service-detail .ref {
    font-family: serif;
    font-weight: 900;
    color: var(--sea);
    font-size: 24px;
}

.service-detail ul {
    margin: 14px 0 0;
    padding-left: 20px;
}

.service-detail li {
    margin-bottom: 6px;
}

@media (max-width: 620px) {
    .service-detail .wrap {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ---------- Footer ---------- */
footer.site-footer {
    background: var(--navy-deep);
    color: rgba(244,241,232,0.85);
    padding: 44px 0 28px;
}

footer.site-footer .wrap {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
}

footer.site-footer h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

footer.site-footer a {
    color: rgba(244,241,232,0.85);
    text-decoration: none;
    font-size: 0.92rem;
    display: block;
    margin-bottom: 8px;
}

footer.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

footer.site-footer .foot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

footer.site-footer .foot-brand img {
    height: 38px;
}

footer.site-footer .foot-brand span {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: #fff;
}

.foot-bottom {
    max-width: var(--max);
    margin: 30px auto 0;
    padding: 18px 28px 0;
    border-top: 1px solid rgba(244,241,232,0.18);
    font-size: 0.8rem;
    color: rgba(244,241,232,0.6);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 700px) {
    footer.site-footer .wrap {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    footer.site-footer .wrap {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Tribute page — quieter, personal, no report framing
   ========================================================= */
body.tribute {
    background: #f7f4ec;
}

.tribute-header {
    padding: 60px 0 20px;
}

.tribute-header .wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 42px;
    align-items: end;
}

.tribute-header .portrait img {
    border: 1px solid var(--rule);
    width: 100%;
}

.tribute-header .names .eyebrow {
    font-family: var(--serif);
    font-style: italic;
    color: var(--sea);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.tribute-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    margin-bottom: 6px;
}

.tribute-header .years {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

@media (max-width: 700px) {
    .tribute-header .wrap {
        grid-template-columns: 160px 1fr;
        align-items: start;
    }
}

.tribute-rule {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 44px 0;
}

.tribute-section {
    padding: 10px 0 46px;
}

.tribute-section h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--brass);
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 22px;
}

.who-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.who-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.who-grid li {
    padding: 12px 0;
    border-top: 1px solid var(--rule);
    font-size: 0.96rem;
}

.who-grid li:last-child {
    border-bottom: 1px solid var(--rule);
}

@media (max-width: 760px) {
    .who-grid {
        grid-template-columns: 1fr;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery figure {
    margin: 0;
    border: 1px solid var(--rule);
    background: #fff;
}

.gallery figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery figcaption {
    font-size: 0.82rem;
    color: var(--ink-soft);
    padding: 8px 10px;
    border-top: 1px solid var(--rule);
}

.gallery .wide {
    grid-column: span 3;
}

.gallery .wide img {
    max-height: 480px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 760px) {
    .gallery {
        grid-template-columns: 1fr 1fr;
    }

    .gallery .wide {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery .wide {
        grid-column: span 1;
    }
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 26px;
}

.before-after figure {
    margin: 0;
    border: 1px solid var(--rule);
    background: #fff;
}

.before-after img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.before-after figcaption {
    font-family: var(--serif);
    font-style: italic;
    padding: 8px 10px;
    color: var(--navy-deep);
    border-top: 1px solid var(--rule);
}

@media (max-width: 620px) {
    .before-after {
        grid-template-columns: 1fr;
    }
}

.quote-block {
    border-left: 3px solid var(--brass);
    padding: 4px 0 4px 26px;
    margin: 0;
}

.quote-block p {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--navy-deep);
    max-width: 52ch;
}

.quote-block cite {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.letter {
    background: #fff;
    border: 1px solid var(--rule);
    padding: 32px;
    max-width: 68ch;
}

.letter p:last-child {
    margin-bottom: 0;
}

.letter .sign-off {
    margin-top: 22px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--navy-deep);
}

.quiet-close {
    text-align: center;
    padding: 50px 0 70px;
}

.quiet-close p {
    margin: 0 auto 20px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.tribute-footer {
    background: var(--navy-deep);
    color: rgba(244,241,232,0.8);
    padding: 30px 0;
    text-align: center;
    font-size: 0.88rem;
}

.tribute-footer a {
    color: var(--paper);
}

.box {
    display: flex;
    background-color: var(--sea);

    /* Activates Flexbox layout */
    align-items: center;

    /* Vertically aligns the image and text items */
    gap: 15px;

    /* Creates clean spacing between image and text */
    padding: 15px 30px;

    /* Optional padding inside the box */
    border: 1px solid #ccc;

    /* Optional border to visualize the box */
    max-width: 100%;

    /* Optional maximum width constraint */
}

.box-image {
    flex-shrink: 0;

    /* Prevents the image from squeezing/distorting */
    width: 80px;

    /* Set your preferred image width */
    height: auto;

    /* Maintains proper image proportions */
}

.box-text {
    flex-grow: 1;
    color: #ccc;
    width: 80%;

    /* Allows the text container to fill remaining space */
}
