/* =============================================
   SAFE HARBOR COMPLIANCE GROUP LLC
   Brand colors from logo + capabilities statement:
   Harbor Navy #1a3850 / Signal Red #b8322e / Parchment Cream #fbf1dc
   ============================================= */

:root {
    --primary: #1a3850;          /* harbor navy (cap statement) */
    --primary-light: #2b4d68;
    --primary-dark: #102536;
    --accent: #b8322e;           /* signal red */
    --accent-dark: #962724;
    --secondary: #b8322e;
    --secondary-dark: #962724;
    --gold: #e9c46a;             /* lighthouse beam highlight */

    --cream: #fbf1dc;            /* logo background */
    --white: #ffffff;
    --gray-100: #f4f1ea;
    --gray-200: #e4ddcf;
    --gray-400: #8d95a0;
    --gray-600: #4f5b66;
    --gray-800: #16222d;

    --font-body: 'Inter', Tahoma, -apple-system, sans-serif;
    --font-heading: 'Montserrat', Tahoma, sans-serif;
    --section-pad: 5rem 0;
    --nav-height: 164px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--gray-800); background: var(--white); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: var(--primary); }
a { color: inherit; text-decoration: none; }

.section-kicker {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-kicker.light { color: var(--gold); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-right { opacity: 0; transform: translateX(50px); transition: opacity 0.6s ease, transform 0.6s ease; }
.slide-left.visible, .slide-right.visible { opacity: 1; transform: translateX(0); }

/* ==========================================
   NAVIGATION - cream header (matches logo background) with BIG logo
   ========================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--cream);
    border-bottom: 4px solid var(--primary);
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.16); }
.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* BIG, prominent logo - required to be large and visible */
.logo-container { display: flex; align-items: center; flex-shrink: 0; }
.logo-container img {
    height: 140px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}
/* Fallback text logo shown until logo.png is uploaded */
.logo-container .logo-text {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 800;
    font-size: 1.9rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.logo-container .logo-text span { color: var(--accent); }

.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    transition: color 0.2s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Capabilities Statement CTA button */
.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.75rem 1.35rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--accent); }

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 86vh;
    margin-top: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 37, 54, 0.5) 0%, rgba(16, 37, 54, 0.8) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 940px;
}
.hero-eyebrow {
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.hero-tagline {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.2rem;
    max-width: 720px;
    margin: 0 auto 2rem;
}
.hero-creds { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cred-pill {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 30px;
    padding: 0.6rem 1.3rem;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}
.cred-pill a { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* Section color band */
.section-band {
    background: var(--accent);
    color: var(--white);
    padding: 1.1rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================
   ABOUT
   ========================================== */
.about { padding: var(--section-pad); background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: center; }
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { color: var(--gray-600); margin-bottom: 1rem; }

.target-market { margin-top: 2rem; }
.target-market h3 { font-size: 1rem; color: var(--primary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.target-market ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }
.target-market li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--gray-800); font-size: 0.95rem; }
.target-market li::before { content: '\2693'; color: var(--accent); font-size: 0.85rem; margin-top: 0.15rem; }

.stat-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stat-block {
    background: var(--primary);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 14px 34px rgba(16, 37, 54, 0.25);
}
.stat-block:nth-child(2), .stat-block:nth-child(3) { background: var(--primary-dark); }
.stat-block .number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-block .label { color: rgba(255,255,255,0.9); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================
   JURISDICTIONS
   ========================================== */
.service-area { padding: var(--section-pad); background: var(--cream); text-align: center; }
.service-area h2 { margin-bottom: 0.5rem; }
.service-area > .container > div > p { color: var(--gray-600); margin-bottom: 2.5rem; }
.state-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.state-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1.75rem;
    border-top: 4px solid var(--primary);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.state-card h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 0.5rem; }
.state-card h3 i { color: var(--accent); margin-right: 0.35rem; }
.state-card p { color: var(--gray-600); font-weight: 500; }

/* ==========================================
   COMPETENCIES
   ========================================== */
.competencies { padding: var(--section-pad); background: var(--white); }
.comp-header { text-align: center; margin-bottom: 3rem; }
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.comp-card {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}
.comp-card:hover {
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-bottom-color: var(--accent);
}
.comp-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.comp-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 0.75rem; }
.comp-card p { color: var(--gray-600); font-size: 0.9rem; }

/* ==========================================
   DIFFERENTIATORS
   ========================================== */
.differentiators { padding: var(--section-pad); background: var(--primary); position: relative; overflow: hidden; }
.diagonal-stripes {
    position: absolute;
    top: 0; left: 0;
    width: 320px; height: 320px;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 10px, transparent 10px, transparent 20px);
    pointer-events: none;
}
.diff-content { max-width: 1050px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.diff-content h2 { color: var(--white); margin-bottom: 3rem; }
.diff-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: left; }
.diff-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 1.5rem;
}
.diff-list li i { color: var(--gold); font-size: 1.5rem; margin-top: 0.1rem; }
.diff-list li strong { display: block; margin-bottom: 0.3rem; color: var(--white); font-family: var(--font-heading); }

/* ==========================================
   CERTIFICATIONS
   ========================================== */
.certifications { padding: var(--section-pad); background: var(--cream); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cert-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1.75rem;
    text-align: center;
    border-top: 4px solid var(--accent);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
.cert-card i { font-size: 2rem; color: var(--primary); margin-bottom: 0.75rem; }
.cert-card h4 { color: var(--primary); font-size: 1.05rem; margin-bottom: 0.35rem; }
.cert-card p { color: var(--gray-600); font-size: 0.9rem; }

/* ==========================================
   PAST PERFORMANCE
   ========================================== */
.performance { padding: var(--section-pad); background: var(--white); }
.perf-header { text-align: center; max-width: 800px; margin: 0 auto 3rem; }
.perf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.perf-card {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-top: 4px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.perf-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.perf-card .perf-value {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.perf-card h4 { font-size: 1.2rem; color: var(--primary); margin-bottom: 0.25rem; }
.perf-card .perf-client { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 1rem; }
.perf-card .perf-scope { color: var(--gray-600); font-size: 0.92rem; margin-bottom: 1rem; }
.perf-card .perf-impact { color: var(--gray-800); font-size: 0.95rem; }
.perf-card .perf-impact strong { color: var(--primary); }

/* ==========================================
   NAICS CODES
   ========================================== */
.codes { padding: var(--section-pad); background: var(--cream); }
.codes-header { text-align: center; margin-bottom: 3rem; }
.codes-header h2 { margin-bottom: 0.75rem; }
.codes-header .creds-link { color: var(--accent); font-weight: 600; text-decoration: underline; }
.codes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.code-card {
    background: var(--white);
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
    position: relative;
    transition: all 0.3s ease;
}
.code-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.code-card.primary { background: var(--primary); }
.code-card.primary .code { color: var(--gold); }
.code-card.primary .desc { color: rgba(255,255,255,0.88); }
.code-tag {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}
.code-card .code { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 0.5rem; }
.code-card .desc { color: var(--gray-600); font-size: 0.9rem; }

/* ==========================================
   CONTACT
   ========================================== */
.contact { padding: var(--section-pad); background: var(--white); }
.contact h2 { text-align: center; margin-bottom: 0.5rem; }
.contact-subtitle { text-align: center; color: var(--gray-600); margin-bottom: 3rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.35rem; color: var(--primary); margin-bottom: 1.5rem; }
.contact-info h3 i { color: var(--accent); }
.contact-details { margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.contact-item i {
    width: 40px; height: 40px;
    background: var(--cream);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
.contact-item a, .contact-item span { color: var(--gray-800); }
.contact-item a:hover { color: var(--accent); }

.contact-market h4 { font-size: 1rem; color: var(--primary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-market ul { list-style: none; }
.contact-market li { padding: 0.4rem 0; color: var(--gray-600); }
.contact-market li strong { color: var(--gray-800); }

.credentials-panel { background: var(--gray-100); border-radius: 16px; padding: 2.25rem; box-shadow: 0 10px 30px rgba(0,0,0,0.06); border-top: 4px solid var(--primary); }
.credentials-panel h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 1.5rem; }
.cred-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.cred-box, .credentials-panel .cred-full { background: var(--white); border-radius: 10px; padding: 1rem; }
.credentials-panel .cred-full { margin-bottom: 1rem; }
.cred-box .label, .credentials-panel .cred-full .label { display: block; font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.25rem; }
.cred-box .value { display: block; font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.credentials-panel .cred-full .value { display: block; font-size: 0.95rem; font-weight: 600; color: var(--primary); }
.credentials-panel .sba-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; color: var(--accent); font-weight: 600; text-decoration: underline; font-size: 0.9rem; }
.download-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.2s ease;
}
.download-btn:hover { background: var(--primary); }

/* ==========================================
   FOOTER
   ========================================== */
.footer { background: var(--primary-dark); padding: 2rem 1rem; text-align: center; border-top: 4px solid var(--accent); }
.footer p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 0.25rem 0; }
.footer p.disclaimer { max-width: 820px; margin: 0.75rem auto; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: var(--white); text-decoration: underline; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1150px) {
    .nav-links { gap: 1.25rem; }
    .codes-grid { grid-template-columns: repeat(2, 1fr); }
    .perf-cards { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .comp-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
}
@media (max-width: 768px) {
    :root { --nav-height: 112px; }
    .logo-container img { height: 92px; max-width: 120px; }
    .logo-container .logo-text { font-size: 1.3rem; }
    .nav-container { padding: 0.5rem 1rem; }
    .nav-cta { padding: 0.55rem 0.8rem; font-size: 0.8rem; }
    .comp-grid, .cert-grid, .codes-grid, .state-grid, .diff-list, .cred-row, .target-market ul { grid-template-columns: 1fr; }
    .container { padding: 0 1rem; }
}
