/* =====================================================================
   Sunberg Ltd — Corporate Identity Stylesheet
   Palette: Navy #0A1428 · Gold #C9A227 · Ivory #FBF9F4
   No external CDNs / trackers. System font stacks only.
   ===================================================================== */

:root {
    --navy:        #0A1428;
    --navy-soft:   #14213D;
    --gold:        #C9A227;
    --gold-soft:   #E4C766;
    --ivory:       #FBF9F4;
    --ivory-dim:   #F2EEE4;
    --ink:         #1B2333;
    --muted:       #4A5568;
    --line:        #E0D9C8;
    --maxw:        1080px;
    --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
    --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border-top: 4px solid var(--gold);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: .2px;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .6rem; }
h3 { font-size: 1.15rem; letter-spacing: .3px; }

p { color: var(--ink); }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.eyebrow {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--gold);
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 68px 0; }
section.tight { padding: 44px 0; }

/* Gold hairline divider */
.rule {
    width: 72px; height: 2px; border: 0;
    background: var(--gold);
    margin: 22px 0;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(180deg, #0D1A33, #0A1428);
    border-bottom: 1px solid rgba(201, 162, 39, .38);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; display: block; }
.brand .name {
    font-family: var(--serif); font-weight: 600; font-size: 1.25rem;
    color: #F6F3EA; letter-spacing: .5px;
}
.brand .name small {
    display: block; font-family: var(--sans); font-size: .6rem;
    letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
    font-size: .8rem; text-transform: uppercase; letter-spacing: .16em;
    font-weight: 600; color: #E7EBF2; padding: 6px 0; position: relative;
}
.nav-links a::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
    background: var(--gold); transition: width .22s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--gold); }

/* ---------- Hero (matches the letterhead: navy band, seal as a rising sun) ---------- */
.hero {
    position: relative;
    text-align: center;
    padding: 76px 0 66px;
    background: radial-gradient(120% 92% at 50% 20%, #16264A 0%, #0C1730 55%, #0A1428 100%);
    color: #E8ECF3;
    overflow: hidden;
    border-bottom: 1.5px solid var(--gold);
}
/* radiating gold rays emanating from the seal, as on the letterhead */
.hero-emblem { position: relative; width: 190px; height: 190px; margin: 0 auto 24px; }
.hero-emblem .rays {
    position: absolute; inset: -150px; z-index: 0; pointer-events: none;
    background: repeating-conic-gradient(from 0deg at 50% 50%,
        rgba(233,195,74,.20) 0deg, rgba(233,195,74,.20) 1.3deg,
        transparent 1.3deg, transparent 9deg);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 8%, rgba(0,0,0,.5) 26%, transparent 62%);
            mask-image: radial-gradient(circle at 50% 50%, #000 8%, rgba(0,0,0,.5) 26%, transparent 62%);
}
.hero .logo {
    position: relative; z-index: 1;
    width: 176px; height: 176px; margin: 0 auto; display: block;
    filter: drop-shadow(0 8px 26px rgba(233,195,74,.30));
}
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { color: #FCFAF3; margin-bottom: 10px; }
.hero .tagline {
    font-family: var(--serif); font-style: italic;
    font-size: 1.35rem; color: #E4C766; margin-top: 6px;
}
.hero .lead { color: #C9D2E0; }
.hero .rule { background: var(--gold); }

/* ---------- Cards ---------- */
.cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px;
}
.card {
    background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
    border-radius: 4px;
    padding: 26px 24px 28px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(201,162,39,.18); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--muted); }
.card .tick { color: var(--gold); font-size: 1.4rem; line-height: 1; }

/* ---------- Panels / alt background ---------- */
.band { background: var(--ivory-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* warm "sunrise" colour band — brings back the cheerful gold, tastefully */
.band-sun {
    background: linear-gradient(135deg, #F7E093 0%, #E9C34A 55%, #E0B534 100%);
    border-top: 1px solid #D7AC30; border-bottom: 1px solid #D7AC30;
}
.band-sun .eyebrow { color: var(--navy); opacity: .75; }
.band-sun h2, .band-sun p, .band-sun .lead { color: var(--navy); }
.band-sun .rule { background: var(--navy); opacity: .45; }

/* ---------- Fact table ---------- */
.facts { width: 100%; border-collapse: collapse; margin-top: 8px; max-width: 640px; }
.facts th, .facts td {
    text-align: left; padding: 13px 6px; border-bottom: 1px solid var(--line);
    vertical-align: top; font-size: .98rem;
}
.facts th {
    width: 40%; color: var(--muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; padding-top: 16px;
}
.facts td { color: var(--navy); font-weight: 500; }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1rem; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { margin: .6rem 0 0 1.1rem; }
.prose li { margin: .35rem 0; color: var(--ink); }

/* ---------- Contact block ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; }
.contact-grid address { font-style: normal; color: var(--navy); line-height: 1.9; }
.btn {
    display: inline-block; margin-top: 18px; padding: 12px 26px;
    background: var(--navy); color: var(--ivory); border-radius: 3px;
    font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
    transition: background .2s ease;
}
.btn:hover { background: var(--gold); color: var(--navy); }

.notice {
    background: #fff; border-left: 3px solid var(--gold);
    padding: 16px 20px; margin-top: 22px; color: var(--muted); font-size: .92rem; border-radius: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: auto; background: var(--navy); color: #C7CEDA;
    padding: 44px 0 28px; font-size: .86rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 {
    color: var(--gold-soft); font-family: var(--sans); font-size: .72rem;
    text-transform: uppercase; letter-spacing: .2em; margin-bottom: 12px; font-weight: 600;
}
/* FIX: global `p{color:ink}` was overriding the footer, causing dark-on-dark text */
.site-footer p,
.site-footer address,
.site-footer li { color: #D3DAE6; }
.site-footer a { color: #D3DAE6; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.site-footer .fbrand img { width: 46px; height: 46px; }
.site-footer .fbrand span { font-family: var(--serif); font-size: 1.2rem; color: var(--ivory); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px;
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: .78rem; color: #A6B0C2;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .cards { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .nav-links { gap: 16px; }
    .brand .name { font-size: 1.1rem; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    section { padding: 52px 0; }
    .nav { flex-direction: column; align-items: flex-start; gap: 12px; }
    .nav-links { flex-wrap: wrap; gap: 14px; }
    .hero { padding: 56px 0 44px; }
    .hero .logo { width: 132px; height: 132px; }
    .footer-bottom { flex-direction: column; }
}
