/* AceHOA Agency — Shared Stylesheet */

/* ── Variables ── */
:root {
    --navy: #1F5080;
    --navy-dark: #163a5d;
    --teal: #00A896;
    --bg-light: #F8F9FA;
    --charcoal: #333333;
    --gray-med: #666666;
    --gray-light: #EEEEEE;
    --white: #FFFFFF;
    --navy-gradient: linear-gradient(135deg, #1F5080 0%, #163a5d 100%);
    --featured-gradient: linear-gradient(135deg, #1F5080 0%, #00A896 100%);
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 16px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--charcoal); line-height: 1.6; margin: 0; font-size: 16px; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, button, select { font-family: inherit; font-size: inherit; }

/* ── Container ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
h1 { font-size: 48px; font-weight: 800; color: var(--navy); margin: 0 0 20px; letter-spacing: -1px; line-height: 1.15; }
h2 { font-size: 36px; font-weight: 700; color: var(--navy); margin: 0 0 24px; line-height: 1.2; }
h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
h4 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.small-text { font-size: 14px; color: var(--gray-med); }
.lead { font-size: 20px; color: var(--charcoal); }
.section-label { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }

/* ── Buttons ── */
.btn-primary {
    background: var(--navy-gradient);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,168,150,0.35); }

.btn-secondary {
    background: transparent;
    color: var(--navy);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    border: 2px solid var(--navy);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-teal {
    background: var(--teal);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,168,150,0.35); }

.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ── Header / Nav ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    color: var(--navy);
    flex-shrink: 0;
}
.logo img { height: 80px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-links > li { position: relative; }

.nav-links > li > a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nav-links > li > a:hover { color: var(--navy); background: var(--bg-light); }
.nav-links > li.active > a { color: var(--navy); }

/* Dropdown */
.nav-links .has-dropdown > a::after { content: ' ▾'; font-size: 10px; }

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 230px;
    padding: 8px;
    padding-top: 16px;
}
.has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    border-radius: 8px;
    transition: background 0.15s;
}
.dropdown li a:hover { background: var(--bg-light); color: var(--navy); }

.badge-soon {
    background: #E0F2F1;
    color: var(--teal);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.nav-cta { margin-left: auto; flex-shrink: 0; padding: 10px 20px; font-size: 14px; }

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--navy);
    margin-left: auto;
    padding: 4px;
}

/* ── Footer ── */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand .logo img { height: 100px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }

.footer-col h4 { color: var(--white); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.7); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-bg { background: var(--bg-light); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.section-header p { font-size: 18px; color: var(--gray-med); }

/* ── Hero ── */
.page-hero { padding: 80px 0 64px; text-align: center; }
.page-hero h1 { max-width: 760px; margin: 0 auto 20px; }
.page-hero .lead { max-width: 600px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Cards ── */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 32px; border: 1px solid var(--gray-light); }
.card-icon { font-size: 32px; margin-bottom: 16px; }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: center; }
.pricing-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 40px 30px; border: 1px solid var(--gray-light); position: relative; }
.pricing-card.featured { background: var(--featured-gradient); color: var(--white); border: none; transform: scale(1.06); box-shadow: var(--shadow-lg); }
.pricing-card.featured h3, .pricing-card.featured .price { color: var(--white); }
.pricing-card.featured .feature-list li { color: rgba(255,255,255,0.9); }
.badge-popular { background: var(--teal); color: var(--white); padding: 5px 16px; border-radius: 20px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.price { font-size: 44px; font-weight: 800; color: var(--navy); margin: 16px 0 8px; line-height: 1; }
.price span { font-size: 16px; font-weight: 400; }
.price-note { font-size: 13px; color: var(--gray-med); margin-bottom: 24px; }
.feature-list { margin: 20px 0 28px; }
.feature-list li { font-size: 14px; color: var(--charcoal); padding: 6px 0; border-bottom: 1px solid var(--gray-light); display: flex; align-items: center; gap: 8px; }
.feature-list li::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* ── Forms ── */
.form-wrap { max-width: 560px; margin: 0 auto; }
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 48px; border: 1px solid var(--gray-light); }

label { display: block; font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; margin-top: 20px; }
label:first-child { margin-top: 0; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    color: var(--charcoal);
    background: var(--white);
    transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); }
textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.submit-btn {
    width: 100%;
    margin-top: 28px;
    padding: 16px;
    background: var(--navy-gradient);
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(31,80,128,0.3); }

/* ── Misc components ── */
.source-tag { background: #E0F2F1; color: var(--teal); padding: 4px 12px; border-radius: 4px; font-weight: 700; font-size: 13px; display: inline-block; }

.divider { height: 1px; background: var(--gray-light); margin: 0; border: none; }

.check-list { list-style: none; padding: 0; }
.check-list li { padding: 8px 0; font-size: 15px; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--gray-light); }
.check-list li:last-child { border-bottom: none; }
.check-list li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

.cta-banner { background: var(--navy-gradient); color: var(--white); border-radius: var(--radius-lg); padding: 56px 48px; text-align: center; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 18px; margin-bottom: 32px; }
.cta-banner .btn-primary { background: var(--white); color: var(--navy); }
.cta-banner .btn-primary:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.tier-badge { display: inline-block; background: var(--bg-light); color: var(--navy); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--gray-light); margin-bottom: 16px; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: var(--gray-light); }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--teal); }
.timeline-week { font-size: 12px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    .grid-2, .grid-3, .grid-4, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: scale(1); }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { gap: 32px; }

    .nav-links, .nav-cta { display: none; }
    .mobile-menu-toggle { display: block; }

    .main-nav.open .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-light);
        padding: 16px 24px 24px;
        gap: 4px;
        box-shadow: var(--shadow-md);
    }
    .main-nav.open .nav-cta { display: inline-block; margin: 16px 24px 0; }
    .main-nav.open { flex-wrap: wrap; position: relative; }
    .has-dropdown .dropdown { display: none !important; }

    .cta-banner { padding: 40px 24px; }
    .form-card { padding: 32px 24px; }
}

@media (max-width: 600px) {
    h1 { font-size: 30px; }
    .page-hero { padding: 56px 0 40px; }
    .section { padding: 56px 0; }
    .hero-ctas { flex-direction: column; align-items: center; }
}
