/* ============================================================
   SPEEDY SITES — PROFESSIONAL THEME
   Trust-and-authority design for tax, legal, financial, accounting.
   Playfair Display serif headings + Outfit sans body.
   Navy + green + gold over warm neutrals.
   ============================================================ */

:root {
    --navy:        #012367;
    --navy-dark:   #001544;
    --navy-mid:    #0a3080;
    --green:       #0daa6f;
    --green-dark:  #0a8a59;
    --green-light: #e6f9f3;
    --gold:        #c9a84c;
    --gold-light:  #f5e9c4;

    --cream:       #fafaf7;
    --warm-white:  #f5f4ef;
    --text:        #1a1f35;
    --muted:       #64748b;
    --border:      #e2e8f0;
    --soft:        #f8fafc;

    --max-width:   1180px;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--navy); text-decoration: none; transition: color .15s; }
a:hover { color: var(--green); }

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin-bottom: 1em; }
em { font-style: italic; color: var(--green); }

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

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

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce-bar {
    background: var(--navy-dark);
    color: #fff;
    text-align: center;
    padding: 9px 24px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.announce-bar a { color: var(--gold); font-weight: 600; }
.announce-bar a:hover { color: #fff; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { max-width: 260px; display: block; }
.nav-logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}
.nav-logo:hover .nav-logo-text { color: var(--navy-mid); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    transition: all .15s;
}
.nav-links a:hover { color: var(--navy); background: var(--soft); }
.nav-links a.is-active { color: var(--navy); background: var(--soft); font-weight: 600; }

.nav-hamburger {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform .2s;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(1,21,68,0.4);
    z-index: 90;
}

@media (max-width: 840px) {
    .nav-hamburger { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(280px, 80vw);
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 24px;
        transform: translateX(100%);
        transition: transform .25s;
        z-index: 95;
    }
    .nav-links a { padding: 12px 14px; font-size: 15px; }
    body.nav-open .nav-links { transform: translateX(0); }
    body.nav-open .nav-overlay { display: block; }
    body.nav-open { overflow: hidden; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 26px;
    border-radius: var(--r-pill);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.btn-primary:hover {
    background: var(--green-dark);
    color: #fff;
    border-color: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 170, 111, 0.3);
}
.btn-ghost {
    background: transparent;
    color: var(--navy);
    border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
body.is-homepage .hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
body.is-homepage .hero .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.btn-primary-on-dark {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
}
.btn-primary-on-dark:hover {
    background: #fff;
    color: var(--navy-dark);
    border-color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(255,255,255,0.15);
}

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.hero {
    background: var(--navy-dark);
    color: #fff;
    padding: 60px 24px 24px;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(13, 170, 111, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 10% 80%, rgba(10, 48, 128, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 88% 14%, rgba(201, 168, 76, 0.14) 0%, transparent 50%),
        linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-mid) 100%);
}
/* Subtle grid pattern — 60px squares, faint white lines. */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
/* Concentric ring decoration in the top-right corner. */
.hero-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(13, 170, 111, 0.15);
    top: -100px;
    right: -100px;
    box-shadow:
        0 0 0 80px rgba(13, 170, 111, 0.04),
        0 0 0 160px rgba(13, 170, 111, 0.025);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    align-items: center;
    gap: 60px;
}

/* Centered variant — no side card. */
.hero--centered .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
}
.hero--centered .hero-title,
.hero--centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero--centered .hero-actions { justify-content: center; }
.hero--centered .hero-stats { margin-left: auto; margin-right: auto; }

/* Two-column variant — content left, card right. */
.hero--two-col .hero-inner {
    grid-template-columns: 1.4fr 1fr;
    text-align: left;
}
.hero--two-col .hero-title,
.hero--two-col .hero-sub { margin-left: 0; margin-right: 0; }
.hero--two-col .hero-actions { justify-content: flex-start; }
.hero--two-col .hero-stats { margin-left: 0; }

.hero-eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding: 6px 16px;
    border: 1px solid rgba(201,168,76,0.4);
    border-radius: var(--r-pill);
    background: rgba(201,168,76,0.08);
}
.hero-title {
    /* Override the global h1 (Playfair Display) — sans-serif here for
       readability at hero scale, especially for long company names. */
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 18px;
    max-width: 720px;
}
.hero-title em {
    color: var(--gold);
    font-style: italic;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
}
.hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    max-width: 580px;
    margin: 0 0 36px;
    line-height: 1.55;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 560px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 6px;
}
.hero-stat-label {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* Hero card (glassmorphic, sits on the right in two-col layout) */
.hero-card-wrap { width: 100%; display: flex; justify-content: flex-end; }
.hero-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.hero-card-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}
.service-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    transition: all .15s;
    cursor: pointer;
}
.service-pill:hover {
    background: rgba(13, 170, 111, 0.12);
    border-color: rgba(13, 170, 111, 0.3);
    color: #fff;
    transform: translateX(2px);
}
.service-pill-icon  { font-size: 20px; line-height: 1; flex-shrink: 0; }
.service-pill-text  { font-size: 14px; color: rgba(255,255,255,0.88); font-weight: 500; flex: 1; }
.service-pill-arrow { color: rgba(255,255,255,0.35); font-size: 18px; font-weight: 300; line-height: 1; }
.service-pill:hover .service-pill-arrow { color: var(--green); }

.hero-card-cta {
    display: block;
    margin-top: 16px;
    background: var(--green);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: 0;
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.hero-card-cta:hover {
    background: var(--green-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(13, 170, 111, 0.3);
}

@media (max-width: 900px) {
    .hero--two-col .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero--two-col .hero-title,
    .hero--two-col .hero-sub { margin-left: auto; margin-right: auto; }
    .hero--two-col .hero-actions { justify-content: center; }
    .hero--two-col .hero-stats { margin-left: auto; margin-right: auto; }
    .hero-card-wrap { justify-content: center; }
    .hero-card { max-width: 420px; }
}

@media (max-width: 600px) {
    .hero { padding: 48px 20px 20px; }
    .hero-stats { grid-template-columns: 1fr; gap: 22px; padding-top: 24px; }
    .hero-stat-num { font-size: 32px; }
    .hero-card { padding: 22px; }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.trust-bar .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 36px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 500;
}
.trust-emoji { font-size: 18px; }
@media (max-width: 600px) {
    .trust-bar .wrap { gap: 18px; }
    .trust-item { font-size: 12.5px; }
}

/* ============================================================
   INNER-PAGE HERO (non-homepage)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: #fff;
    padding: 70px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 100%, rgba(201,168,76,0.12) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero h1 { color: #fff; position: relative; }
.page-hero .lede {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    max-width: 640px;
    margin: 18px auto 0;
    line-height: 1.6;
    position: relative;
}

/* ============================================================
   PAGE BODY
   ============================================================ */
.page-body {
    padding: 28px 0;
    background: #fff;
}
.page-body .wrap { max-width: 820px; }
.page-body h2 { margin: 1em 0 0.4em; }
.page-body h3 { margin: 1em 0 0.4em; }
.page-body p { font-size: 17px; line-height: 1.75; color: var(--text); }
.page-body ul, .page-body ol { margin: 0 0 1em 1.4em; }
.page-body li { margin-bottom: 0.4em; line-height: 1.7; }
.page-body img { border-radius: var(--r-md); margin: 1em 0; }
/* Kill the top margin on the very first child so content sits flush against
   the .page-body's own padding-top — no triple-stacked gaps. */
.page-body .wrap > *:first-child { margin-top: 0; }
.page-body blockquote {
    border-left: 4px solid var(--green);
    padding: 4px 0 4px 22px;
    margin: 1.5em 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--navy);
    font-size: 1.18em;
}

body.is-homepage .page-body { padding: 28px 0; background: var(--cream); }
body.is-homepage .page-body .wrap { max-width: var(--max-width); }

/* Homepage body content gets wider treatment + supports custom layouts. */
body.is-homepage .page-body > .wrap > * { max-width: 820px; margin-left: auto; margin-right: auto; }
body.is-homepage .page-body > .wrap > .full { max-width: none; }
body.is-homepage .page-body > .wrap > *:first-child { margin-top: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 32px 24px 24px;
    font-size: 14px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {}
.footer-site-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 13.5px; line-height: 1.6; }
.footer-col-title {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}
.footer-row { margin-bottom: 7px; }
.footer-row a { color: rgba(255,255,255,0.75); }
.footer-row a:hover { color: #fff; }
.footer-address, .footer-hours { line-height: 1.7; }

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 12.5px;
}
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { color: #fff; }
.footer-built { font-size: 12px; }

@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}
