/*
 * custom.css — Bright Harbor
 * Accent: #0ea5e9 (sky blue)
 * Theme: light (insurance/recovery)
 */

/* ============================
   CSS Variables
   ============================ */
:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface2: #f0f2f5;
    --text: #1e293b;
    --text-muted: #64748b;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;
    --accent-light: #e0f2fe;
    --border: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --gap: 40px;
    --nav-height: 72px;
    --navy: #0c1a2e;
    --navy-mid: #0d3251;
}

/* ============================
   Typography Overrides
   ============================ */
body {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.9;
    color: var(--text) !important;
    background-color: var(--bg) !important;
}

h1, h2, h3, h4, h5, h6 {
    text-transform: none !important;
    letter-spacing: normal !important;
}

h1 { font-size: 58px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 40px; font-weight: 700; line-height: 1.2; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.4; }
p  { font-size: 18px; line-height: 1.9; }

/* Force all sections to have readable text */
section, .section {
    color: var(--text);
}

/* ============================
   Navigation Overrides
   ============================ */
.navbar {
    padding: 0 5%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: #ffffff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
}

.nav-links {
    gap: 2rem;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    background: var(--accent) !important;
}

.logo {
    font-size: 20px !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
    color: var(--text) !important;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: var(--accent) !important;
    color: #ffffff !important;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* ============================
   Hero Section
   ============================ */
.hero {
    min-height: 640px;
    padding-top: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
}

.hero-content {
    max-width: 780px;
    margin: 0 auto;
}

/* ============================
   Sections
   ============================ */
.section {
    padding: 80px 5%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================
   Cards
   ============================ */
.card,
.panel,
[class*="card"],
[class*="panel"] {
    color: var(--text);
}

/* ============================
   Buttons
   ============================ */
.btn-primary {
    background: var(--accent);
    color: #ffffff !important;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: #ffffff !important;
}

.btn-secondary {
    background: transparent;
    color: var(--text) !important;
    border: 2px solid var(--border);
    padding: 11px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
}

/* CTA secondary — white bg with dark text, accent border */
.cta-secondary {
    background: #ffffff;
    color: #1e293b;
    border: 2px solid var(--accent);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.cta-secondary:hover {
    background: var(--accent);
    color: #ffffff;
}

/* CTA outline — transparent bg, white border (for dark/colored sections) */
.cta-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.cta-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #ffffff;
    color: #ffffff;
}

/* Pricing card button — neutral light bg */
.btn-pricing {
    display: block;
    background: #f0f2f5;
    color: #1e293b;
    text-align: center;
    padding: 13px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease;
}

.btn-pricing:hover {
    background: var(--accent);
    color: #ffffff;
}

/* ============================
   Links
   ============================ */
a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-dark);
}

/* ============================
   Section Label
   ============================ */
.section-label {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 16px;
}

/* ============================
   Blog Grid
   ============================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    display: flex;
    flex-wrap: wrap;
}
.blog-grid > [class*="col-"] {
    display: flex;
}

.blog-card {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.blog-card-img {
    background: var(--surface2);
    color: var(--text-muted);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.blog-card-body {
    padding: 24px;
    flex: 1;
}

.blog-card-body time {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
}

.blog-card-body h3 {
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    margin: 8px 0 10px;
    line-height: 1.4;
}

.blog-card-body p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================
   Team Cards
   ============================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px;
    justify-items: center;
}

.team-card {
    background: var(--surface);
    color: var(--text);
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    max-width: 300px;
    width: 100%;
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 10%;
    margin: 0 auto 20px;
    display: block;
    background: var(--surface2);
}

.team-role {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.team-bio {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.team-email {
    color: var(--accent);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

/* ============================
   Pricing Cards
   ============================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    align-items: start;
}

.pricing-card {
    background: var(--surface);
    color: var(--text);
    border-radius: 16px;
    padding: 36px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.pricing-card.featured {
    background: var(--navy);
    color: #e8eaf0;
    border: 2px solid var(--accent);
    box-shadow: 0 8px 32px rgba(14,165,233,0.2);
    position: relative;
}

/* ============================
   Contact Form
   ============================ */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

/* ============================
   Cookie Banner
   ============================ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #e8eaf0;
    padding: 20px 5%;
    z-index: 9999;
    border-top: 2px solid var(--accent);
}

#cookie-accept {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

#cookie-decline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* ============================
   Footer
   ============================ */
footer {
    background: var(--navy);
    color: #94a3b8;
    padding: 60px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================
   Mobile Responsive
   ============================ */
@media (max-width: 768px) {
    h1 { font-size: 38px; }
    h2 { font-size: 28px; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 20px 5%;
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        gap: 0;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border);
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 20px);
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 36px;
    }

    .two-col-grid,
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .btn-gap {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================
   Article Page
   ============================ */
.article-body {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text);
    font-size: 18px;
    line-height: 1.9;
}

.article-body h2 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text);
}

.article-body h3 {
    font-size: 22px;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--text);
}

.article-body p {
    margin-bottom: 20px;
    color: var(--text);
}

.article-body ul, .article-body ol {
    margin: 0 0 20px 24px;
    color: var(--text);
}

.article-body li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.article-back {
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
}

.article-back:hover {
    color: var(--accent-dark);
}

/* ============================================================
   ARTICLE / LEGAL CONTENT WIDTH (max 720px centered)
   ============================================================ */
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Site Logo */
.site-logo { height: 36px; width: auto; vertical-align: middle; margin-right: 8px; }

/* Nav menu-trigger inline fix */
.navicon { float: none !important; margin-left: auto !important; }
.menu-trigger {
  display: flex !important;
  align-items: center;
  gap: 6px;
  width: auto !important;
  height: auto !important;
}
.menu-trigger .icon {
  font-size: 20px;
  line-height: 1;
}
.menu-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Nav row flex fix */
.navbar .row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
}
.brand { float: none !important; }
