/* ============================================================================
   HARBOR POINT INSURANCE — Custom Demo Site CSS
   "Prestigious Charleston Insurance — Refined Serif Elegance"
   ============================================================================ */

/* ---- Typography & Design Tokens ---- */
:root {
    --hp-font-heading: 'Newsreader', Georgia, serif;
    --hp-font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --hp-radius: 6px;
    --hp-radius-lg: 8px;
    --hp-navy: #1e3a5f;
    --hp-navy-dark: #172554;
    --hp-navy-light: #2563eb;
    --hp-gold: #b45309;
    --hp-gold-light: #d97706;
    --hp-gold-soft: rgba(180, 83, 9, 0.08);
    --hp-gold-border: rgba(180, 83, 9, 0.25);
    --hp-divider: 2px solid var(--hp-gold-border);
    --hp-shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
    --hp-shadow-lg: 0 8px 24px rgba(30, 58, 95, 0.1);
    --hp-shadow-xl: 0 16px 48px rgba(30, 58, 95, 0.12);
}

body {
    font-family: var(--hp-font-body);
}

h1, h2, h3, h4, h5, h6,
.demo-logo__name,
.demo-stats-bar__number {
    font-family: var(--hp-font-heading);
}

h1 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h2 { font-weight: 600; letter-spacing: -0.005em; }
h3 { font-weight: 500; }

/* ---- Header Overrides ---- */
.demo-logo__name {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    color: var(--hp-navy);
}

/* ---- Nav Overrides ---- */
.demo-nav a,
.demo-nav__trigger {
    font-family: var(--hp-font-body);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

/* ---- Link Colors ---- */
a { color: var(--hp-navy); }
a:hover { color: var(--hp-navy-dark); }
.demo-link { color: var(--hp-navy); font-weight: 600; }
.demo-link:hover { color: var(--hp-gold); }

/* ---- Button Overrides ---- */
.demo-btn {
    font-family: var(--hp-font-body);
    border-radius: var(--hp-radius);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.demo-btn--primary {
    background: var(--hp-navy);
}

.demo-btn--primary:hover {
    background: var(--hp-navy-dark);
}

.demo-btn--secondary {
    color: var(--hp-navy);
    border-color: var(--hp-navy);
}

.demo-btn--secondary:hover {
    background: rgba(30, 58, 95, 0.04);
    color: var(--hp-navy);
}

.hp-btn--gold {
    background: var(--hp-gold);
    color: #fff;
    border: none;
}

.hp-btn--gold:hover {
    background: var(--hp-gold-light);
    color: #fff;
}

/* ---- Card Radius Override ---- */
.demo-service-card,
.demo-why-card,
.demo-testimonial,
.demo-area-card {
    border-radius: var(--hp-radius-lg);
}

.demo-service-card__image {
    border-radius: var(--hp-radius-lg) var(--hp-radius-lg) 0 0;
}

/* ---- Split Hero ---- */
.hp-hero {
    padding: 0;
    text-align: left;
    background: linear-gradient(135deg, var(--hp-navy-dark) 0%, var(--hp-navy) 60%, #1e4a7f 100%);
    min-height: 520px;
}

.hp-hero .demo-hero__overlay {
    background: linear-gradient(135deg, rgba(23, 37, 84, 0.92), rgba(30, 58, 95, 0.78));
}

.hp-hero__grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: center;
    padding: 80px 0 72px;
    position: relative;
    z-index: 2;
}

.hp-hero__content h1 {
    font-family: var(--hp-font-heading);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #fff;
}

.hp-hero__content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 520px;
    color: #fff;
}

.hp-hero__props {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.hp-hero__props li {
    font-size: 1rem;
    line-height: 1.6;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-hero__props li::before {
    content: "\2713";
    color: var(--hp-gold-light);
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.hp-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hp-hero__actions .demo-btn--primary {
    background: var(--hp-gold);
    color: #fff;
    font-size: 1rem;
    padding: 14px 28px;
}

.hp-hero__actions .demo-btn--primary:hover {
    background: var(--hp-gold-light);
    color: #fff;
}

.hp-hero__actions .demo-btn--secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 1rem;
    padding: 14px 28px;
}

.hp-hero__actions .demo-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* ---- Hero Form ---- */
.hp-hero-form {
    background: #fff;
    border-radius: var(--hp-radius-lg);
    padding: 32px 28px;
    box-shadow: var(--hp-shadow-xl);
}

.hp-hero-form__title {
    font-family: var(--hp-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hp-navy);
    margin-bottom: 4px;
    text-align: center;
}

.hp-hero-form__subtitle {
    font-size: 0.875rem;
    color: var(--demo-text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.hp-hero-form .demo-form {
    gap: 10px;
}

.hp-hero-form .demo-form input,
.hp-hero-form .demo-form select,
.hp-hero-form .demo-form textarea {
    font-size: 0.9375rem;
    padding: 11px 14px;
    border: 1px solid var(--demo-border);
    border-radius: var(--hp-radius);
    font-family: var(--hp-font-body);
    color: var(--demo-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hp-hero-form .demo-form input:focus,
.hp-hero-form .demo-form select:focus,
.hp-hero-form .demo-form textarea:focus {
    border-color: var(--hp-navy);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
    outline: none;
}

.hp-hero-form .demo-form textarea {
    resize: vertical;
    min-height: 72px;
}

.hp-hero-form .demo-btn {
    width: 100%;
    background: var(--hp-gold);
    color: #fff;
    font-size: 1rem;
    padding: 13px 24px;
    font-weight: 600;
    border: none;
    border-radius: var(--hp-radius);
    transition: background 0.2s;
}

.hp-hero-form .demo-btn:hover {
    background: var(--hp-gold-light);
}

/* ---- Page Hero Overrides (Interior) ---- */
.demo-page-hero--image .demo-page-hero__overlay,
.demo-page-hero__overlay {
    background: linear-gradient(135deg, rgba(23, 37, 84, 0.88), rgba(30, 58, 95, 0.75));
}

.demo-page-hero h1,
.demo-page-hero--image h1 {
    font-family: var(--hp-font-heading);
    font-weight: 600;
}

/* ---- Gold Divider ---- */
.hp-divider {
    width: 60px;
    height: 2px;
    background: var(--hp-gold);
    margin: 0 auto 24px;
}

.hp-divider--left {
    margin: 0 0 24px;
}

/* ---- Section Overrides ---- */
.demo-section h2 {
    font-family: var(--hp-font-heading);
    font-weight: 600;
    color: var(--hp-navy);
}

.demo-section__subtitle {
    font-family: var(--hp-font-body);
}

/* ---- Why Harbor Point / Trust Cards ---- */
.hp-trust-section {
    padding: 64px 0;
}

.hp-trust-card {
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: var(--hp-radius-lg);
    border: 1px solid var(--demo-border);
    border-bottom: 3px solid var(--hp-gold);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-trust-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hp-shadow-lg);
}

.hp-trust-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hp-gold-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
    color: var(--hp-navy);
}

.hp-trust-card h3 {
    font-family: var(--hp-font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--hp-navy);
    margin-bottom: 8px;
}

.hp-trust-card p {
    font-size: 0.9375rem;
    color: var(--demo-text-muted);
    line-height: 1.6;
}

/* ---- Coverage Comparison Table ---- */
.hp-coverage-section {
    padding: 64px 0;
}

.hp-coverage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

.hp-coverage-tier {
    background: #fff;
    border: 1px solid var(--demo-border);
    border-radius: var(--hp-radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.hp-coverage-tier:hover {
    transform: translateY(-3px);
    box-shadow: var(--hp-shadow-lg);
}

.hp-coverage-tier--highlight {
    border: 2px solid var(--hp-gold);
    box-shadow: var(--hp-shadow-lg);
    transform: scale(1.03);
    z-index: 1;
}

.hp-coverage-tier--highlight:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: var(--hp-shadow-xl);
}

.hp-coverage-badge {
    display: inline-block;
    background: var(--hp-gold);
    color: #fff;
    font-family: var(--hp-font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hp-coverage-tier__name {
    font-family: var(--hp-font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--hp-navy);
    margin-bottom: 8px;
}

.hp-coverage-tier__desc {
    font-size: 0.9375rem;
    color: var(--demo-text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.hp-coverage-tier__divider {
    width: 40px;
    height: 2px;
    background: var(--hp-gold-border);
    margin: 0 auto 24px;
}

.hp-coverage-tier--highlight .hp-coverage-tier__divider {
    background: var(--hp-gold);
}

.hp-coverage-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.hp-coverage-features li {
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--demo-text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--demo-bg-alt);
    line-height: 1.5;
}

.hp-coverage-features li:last-child {
    border-bottom: none;
}

.hp-coverage-features li::before {
    content: "\2713";
    color: var(--hp-gold);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.hp-coverage-cta {
    margin-top: 24px;
}

.hp-coverage-cta .demo-btn {
    width: 100%;
}

.hp-coverage-tier--highlight .hp-coverage-cta .demo-btn {
    background: var(--hp-gold);
    color: #fff;
}

.hp-coverage-tier--highlight .hp-coverage-cta .demo-btn:hover {
    background: var(--hp-gold-light);
}

/* ---- Service Card Overrides ---- */
.hp-service-card {
    border: 1px solid var(--demo-border);
    border-bottom: 3px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hp-service-card:hover {
    border-bottom-color: var(--hp-gold);
    box-shadow: var(--hp-shadow-lg);
    transform: translateY(-3px);
}

.hp-service-card h3 a {
    color: var(--hp-navy);
    font-family: var(--hp-font-heading);
    font-weight: 500;
}

.hp-service-card h3 a:hover {
    color: var(--hp-gold);
}

/* ---- Testimonial Overrides ---- */
.hp-testimonial {
    border-bottom: 3px solid var(--hp-gold-border);
    padding-top: 32px;
}

.hp-testimonial .demo-testimonial__icon {
    font-family: var(--hp-font-heading);
    color: var(--hp-gold);
    opacity: 0.2;
    font-size: 3.5rem;
    top: -4px;
}

.hp-testimonial .demo-testimonial__quote {
    font-family: var(--hp-font-heading);
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--demo-text);
}

.hp-testimonial .demo-testimonial__avatar {
    background: var(--hp-navy);
}

.hp-testimonial .demo-star {
    color: var(--hp-gold);
}

/* ---- Area Tags Overrides ---- */
.demo-area-tag:hover {
    background: var(--hp-navy);
    border-color: var(--hp-navy);
    color: #fff;
}

/* ---- Stats Bar Override ---- */
.hp-stats-bar {
    background: var(--hp-navy);
}

.hp-stats-bar .demo-stats-bar__number {
    font-family: var(--hp-font-heading);
    font-weight: 600;
    color: var(--hp-gold-light);
}

.hp-stats-bar .demo-stats-bar__label {
    font-family: var(--hp-font-body);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8125rem;
    opacity: 0.85;
}

/* ---- CTA Bar Override ---- */
.hp-cta-bar {
    position: relative;
}

.hp-cta-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--hp-gold);
}

.hp-cta-bar.demo-cta-bar {
    background: var(--hp-navy);
}

.hp-cta-bar.demo-cta-bar--image .demo-cta-bar__overlay {
    background: rgba(23, 37, 84, 0.85);
}

.hp-cta-bar .demo-cta-bar__content h2 {
    font-family: var(--hp-font-heading);
    font-weight: 600;
}

.hp-cta-bar .demo-cta-bar__content p {
    font-family: var(--hp-font-body);
}

.hp-cta-bar .demo-cta-bar__actions .demo-btn--primary {
    background: var(--hp-gold);
    color: #fff;
}

.hp-cta-bar .demo-cta-bar__actions .demo-btn--primary:hover {
    background: var(--hp-gold-light);
    color: #fff;
}

.hp-cta-bar .demo-cta-bar__actions .demo-btn--secondary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.hp-cta-bar .demo-cta-bar__actions .demo-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* ---- Form Overrides (contact page, etc.) ---- */
.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
    border-color: var(--hp-navy);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

/* ---- Footer Overrides ---- */
.demo-footer::before {
    background: linear-gradient(90deg, var(--hp-navy), var(--hp-gold), var(--hp-navy-light));
}

/* ---- Content Checklist Override ---- */
.demo-content li::before {
    color: var(--hp-gold);
}

.demo-checklist li::before {
    color: var(--hp-gold);
}

/* ---- Process Override ---- */
.demo-process__number {
    background: var(--hp-navy);
    font-family: var(--hp-font-heading);
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.2);
}

.demo-process__step h3 {
    font-family: var(--hp-font-heading);
}

/* ---- Emergency Sidebar (service pages) ---- */
.hp-service-sidebar {
    background: #fff;
    border: 1px solid var(--demo-border);
    border-top: 3px solid var(--hp-gold);
    border-radius: var(--hp-radius-lg);
    padding: 24px;
    position: sticky;
    top: 80px;
}

.hp-service-sidebar__header {
    font-family: var(--hp-font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--hp-navy);
    text-align: center;
    margin-bottom: 16px;
}

.hp-service-sidebar__phone {
    display: block;
    text-align: center;
    font-family: var(--hp-font-heading);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--hp-navy);
    text-decoration: none;
    margin-bottom: 12px;
    padding: 12px;
    border: 2px solid var(--hp-navy);
    border-radius: var(--hp-radius);
    transition: all 0.2s;
}

.hp-service-sidebar__phone:hover {
    background: var(--hp-navy);
    color: #fff;
}

.hp-service-sidebar__hours {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--demo-text-muted);
    margin-bottom: 20px;
}

.hp-service-sidebar .demo-form {
    gap: 10px;
}

.hp-service-sidebar .demo-form input,
.hp-service-sidebar .demo-form textarea {
    font-size: 0.875rem;
    padding: 10px 12px;
}

.hp-service-sidebar .demo-btn--primary {
    background: var(--hp-gold);
    width: 100%;
}

.hp-service-sidebar .demo-btn--primary:hover {
    background: var(--hp-gold-light);
}

/* ---- Gold Accent Dots (decorative) ---- */
.hp-accent-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hp-gold);
    margin: 0 8px;
    vertical-align: middle;
}

/* ---- Section Gold Divider Lines ---- */
.demo-section + .demo-section:not(.demo-section--alt) {
    border-top: none;
    position: relative;
}

.hp-section-divider {
    text-align: center;
    padding-top: 8px;
    margin-bottom: -8px;
}

.hp-section-divider::before {
    content: '';
    display: inline-block;
    width: 60px;
    height: 2px;
    background: var(--hp-gold);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hp-hero__grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 60px 0 48px;
    }

    .hp-hero__content {
        text-align: center;
    }

    .hp-hero__content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hp-hero__props {
        display: inline-block;
        text-align: left;
    }

    .hp-hero__actions {
        justify-content: center;
    }

    .hp-hero-form {
        max-width: 420px;
        margin: 0 auto;
    }

    .hp-coverage-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .hp-coverage-tier--highlight {
        transform: none;
    }

    .hp-coverage-tier--highlight:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .hp-hero {
        min-height: auto;
    }

    .hp-hero__grid {
        padding: 48px 0 40px;
    }

    .hp-hero__content h1 {
        font-size: 1.875rem;
    }

    .demo-hero__actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hp-hero-form {
        padding: 24px 20px;
    }

    .hp-coverage-grid {
        gap: 16px;
    }

    .hp-trust-card {
        padding: 24px 20px;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    .hp-trust-card,
    .hp-service-card,
    .hp-coverage-tier,
    .hp-testimonial {
        transition: none;
    }
}
