/* SA Maritime Consultants — "Night Bridge" direction. Tokens come straight from the design. */
:root {
    --bridge-900: #041320;
    --bridge-800: #061A2B;
    --bridge-700: #0A2438;
    --bridge-teal-deep: #0E4C68;
    --teal: #2CC2B6;
    --gold: #DAA01C;
    --text: #E6EDF3;
    --text-soft: #B8C9D6;
    --text-pale: #D5E6EE;
    --text-faint: #8FA3B4;
    --line: rgba(255, 255, 255, 0.12);
    --line-soft: rgba(255, 255, 255, 0.08);
    --radius: 3px;
    --font-sans: Montserrat, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bridge-800);
    min-width: 0;
}

a { color: var(--teal); }
a:hover { color: #fff; }

main { min-height: 60vh; }
.samc-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.samc-mono { font-family: var(--font-mono); }
.samc-gold { color: var(--gold); }
.samc-teal { color: var(--teal); }
.samc-bold { font-weight: 700; }
.samc-xs { font-size: 12px; }

/* header */
.samc-header { position: relative; z-index: 2; background: rgba(6, 26, 43, 0.85); border-bottom: 1px solid var(--line-soft); }
.samc-header-inner { padding-top: 14px; padding-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.samc-brand { display: flex; align-items: center; text-decoration: none; }
.samc-brand img { height: 62px; width: auto; }
.samc-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.samc-nav a { color: var(--text-soft); text-decoration: none; }
.samc-nav a:hover { color: #fff; }
.samc-nav .samc-nav-cta { color: var(--bridge-800); background: var(--teal); padding: 12px 20px; border-radius: var(--radius); }
.samc-nav .samc-nav-cta:hover { color: var(--bridge-800); background: #fff; }

/* hero */
.samc-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 70% 20%, var(--bridge-teal-deep) 0%, var(--bridge-800) 60%); }
.samc-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; }
.samc-hero-body { position: relative; padding-top: 110px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 28px; }
.samc-hero h1 { margin: 0; max-width: 900px; font-size: clamp(38px, 6vw, 62px); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.samc-eyebrow { font-size: 13px; color: var(--teal); letter-spacing: 0.08em; }
.samc-eyebrow-sm { font-size: 12px; letter-spacing: 0.1em; }
.samc-lede { margin: 0; max-width: 640px; font-size: 20px; line-height: 1.55; color: var(--text-soft); }
.samc-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.samc-btn { display: inline-block; background: var(--teal); color: var(--bridge-800); text-decoration: none; font-weight: 700; padding: 16px 28px; border-radius: var(--radius); }
.samc-btn:hover { background: #fff; color: var(--bridge-800); }
.samc-btn-flat { border: 0; font: inherit; font-weight: 700; padding: 14px 28px; cursor: pointer; }
.samc-link-under { color: #fff; text-decoration: none; font-weight: 600; padding: 16px 8px; border-bottom: 2px solid var(--teal); }
.samc-stats { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 980px; }
.samc-stats > div { background: var(--bridge-800); padding: 22px; }
.samc-stat-n { font-size: 30px; color: #fff; }
.samc-stat-l { font-size: 13px; color: var(--text-faint); margin-top: 4px; }

/* sections */
.samc-section { background: var(--bridge-800); }
.samc-section > .samc-wrap { padding-top: 96px; padding-bottom: 96px; }
.samc-alt { background: var(--bridge-700); border-top: 1px solid var(--line-soft); }
.samc-contact { background: var(--bridge-teal-deep); }
.samc-h2 { margin: 0; font-size: 38px; line-height: 1.12; font-weight: 800; }
.samc-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.samc-head-row .samc-h2 { max-width: 620px; }
.samc-body { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-soft); }
.samc-body-pale { color: var(--text-pale); }
.samc-small { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-faint); }
.samc-col { display: flex; flex-direction: column; gap: 18px; }
.samc-col.samc-gap-16 { gap: 16px; }
.samc-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.samc-gap-56 { gap: 56px; }
.samc-gap-48 { gap: 48px; }
.samc-start { align-items: start; }
.samc-stack-40 { display: flex; flex-direction: column; gap: 40px; }
.samc-stack-36 { display: flex; flex-direction: column; gap: 36px; }

/* obligations */
.samc-obligations { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.samc-obligations li { background: var(--bridge-800); border-left: 3px solid var(--teal); padding: 22px 24px; display: grid; grid-template-columns: 56px 1fr; gap: 16px; }
.samc-ob-ref { color: var(--teal); font-size: 14px; }
.samc-ob-title { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.samc-ob-text { font-size: 14px; line-height: 1.6; color: var(--text-soft); }

/* services grid */
.samc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.samc-grid-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.samc-cell { background: var(--bridge-800); padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.samc-cell .samc-mono { font-size: 12px; }
.samc-cell h3 { margin: 0; font-size: 18px; }
.samc-cell p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.samc-cell-cta { background: var(--bridge-teal-deep); justify-content: space-between; }
.samc-cell-cta p { color: var(--text-pale); }
.samc-cell-cta a { color: #fff; font-weight: 700; text-decoration: none; }

/* products */
.samc-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.samc-product { background: var(--bridge-800); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.samc-product-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.samc-product-name { font-size: 28px; font-weight: 800; }
.samc-product p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-soft); }
.samc-product a { align-self: flex-start; color: var(--teal); font-weight: 700; text-decoration: none; }
.samc-product a:hover { color: #fff; }

/* credentials */
.samc-creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.samc-creds > div { background: var(--bridge-800); padding: 20px; font-size: 13px; line-height: 1.5; }
.samc-creds > .samc-wide { grid-column: 1 / -1; }

/* contact */
.samc-address { font-size: 15px; line-height: 1.8; color: #fff; }
.samc-form { background: var(--bridge-800); border: 1px solid var(--line); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; align-content: start; }
.samc-form-done { display: block; }
.samc-form-done h3 { margin: 0 0 8px; font-size: 22px; }
.samc-form-done p { margin: 0; color: var(--text-soft); }
.samc-field { display: flex; flex-direction: column; gap: 6px; }
.samc-full { grid-column: 1 / -1; }
.samc-field label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-faint); }
.samc-field input, .samc-field select, .samc-field textarea {
    background: var(--bridge-700); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius);
    padding: 0 12px; font: inherit; height: 46px;
}
.samc-field textarea { height: auto; padding: 12px; resize: vertical; }
.samc-field input:focus-visible, .samc-field select:focus-visible, .samc-field textarea:focus-visible,
.samc-btn:focus-visible, .samc-nav a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.samc-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.samc-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); }
.samc-err, .validation-message { color: #FF9A8F; font-size: 13px; }
.samc-field input.invalid, .samc-field textarea.invalid { border-color: #FF9A8F; }

/* footer */
.samc-footer { background: var(--bridge-900); color: var(--text-faint); font-size: 13px; }
.samc-footer-inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.samc-footer-id { display: flex; align-items: center; gap: 16px; }
.samc-footer-id img { height: 44px; width: auto; }
.samc-footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.samc-footer a { color: var(--text-faint); }
.samc-footer a:hover { color: #fff; }

@media (max-width: 640px) {
    .samc-hero-body { padding-top: 64px; padding-bottom: 72px; }
    .samc-section > .samc-wrap { padding-top: 64px; padding-bottom: 64px; }
    .samc-h2 { font-size: 30px; }
    .samc-nav { gap: 16px; }
}
