/* ============================================================
   GLOBAL CSS – Vomwe Group
   ============================================================ */

/* ============================================================
   LOGO STYLING
   ============================================================ */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    display: block;
    height: 4.6rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .logo-img {
        height: 3.2rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 2.8rem;
    }
}

/* ============================================================
   NAVBAR – GLOBAL (fixed, glassmorphism)
   ============================================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(15, 43, 92, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 2px solid var(--accent-gold);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.7rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 🔥 FIX: Target the UL inside nav-links for horizontal layout */
.nav-links ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.4rem 0;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

/* Nav Right */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.emergency-cta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(223, 183, 108, 0.2);
    padding: 0.45rem 1.2rem 0.45rem 0.8rem;
    border-radius: var(--card-radius);
    transition: var(--transition);
}

.emergency-cta:hover {
    border-color: var(--accent-gold);
    background: rgba(223, 183, 108, 0.08);
    transform: translateY(-1px);
}

.cta-pulse {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.cta-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.8); opacity: 0; }
}

.cta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cta-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 1px;
    font-weight: 700;
}

.cta-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pure-white);
    font-family: var(--font-heading);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn .bar {
    width: 26px;
    height: 2.5px;
    background: var(--pure-white);
    border-radius: 4px;
    transition: var(--transition);
}

.mobile-menu-btn.open .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-btn.open .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.open .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--primary-blue-dark);
    z-index: 9998;
    padding: 6rem 2.5rem 2.5rem 2.5rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer .drawer-links {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    list-style: none;
    margin-bottom: 3rem;
    padding: 0;
}

.mobile-drawer .drawer-links a {
    color: #e2e8f0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.mobile-drawer .drawer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(6px);
}

.mobile-drawer .drawer-contacts {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
}

.mobile-drawer .drawer-contacts p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.mobile-drawer .drawer-contacts a {
    color: var(--pure-white);
    font-weight: 700;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.3rem;
    text-decoration: none;
}

.mobile-drawer .drawer-contacts .drawer-cta {
    margin-top: 1.5rem;
}

.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
}

.drawer-overlay.open {
    display: block;
}

/* Responsive Navbar */
@media (max-width: 992px) {
    .nav-links ul {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .emergency-cta .cta-text .cta-label {
        display: none;
    }
    .emergency-cta {
        padding: 0.45rem 0.8rem;
    }
}

/* ============================================================
   PREMIUM FOOTER
   ============================================================ */

/* ---------- Footer Base ---------- */

.main-footer {
    position: relative;
    overflow: hidden;
    background: var(--primary-blue);
    padding: 4rem 0 0 0;
}

.main-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right,
            rgba(223, 183, 108, 0.08),
            transparent 40%);
    pointer-events: none;
}

.main-footer::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(223, 183, 108, .6),
            transparent);
}

/* ---------- Footer Grid ---------- */

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 4rem;
    padding: 5rem 0 3rem 0;
    position: relative;
    z-index: 2;
}

/* ---------- Brand ---------- */

.footer-brand {
    max-width: 340px;
}

.footer-brand .logo-img {
    height: 4.6rem;
    width: auto;
}

.footer-brand p {
    margin-top: 1.4rem;
    line-height: 1.9;
    color: #94a3b8;
    font-size: .93rem;
}

.legal-note {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1.6rem;
    padding: .75rem 1rem;
    border-radius: 40px;
    background: rgba(223, 183, 108, .08);
    border: 1px solid rgba(223, 183, 108, .12);
    font-size: .78rem;
}

/* ---------- Column Headings ---------- */

.footer-col h5 {
    position: relative;
    margin-bottom: 1.8rem;
    padding-bottom: .8rem;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 700;
    color: #fff;
}

.footer-col h5::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45px;
    height: 2px;
    border-radius: 50px;
    background: var(--accent-gold);
}

/* ---------- Links ---------- */

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-col ul a {
    position: relative;
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul a::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gold);
    opacity: 0;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: #fff;
    padding-left: 14px;
}

.footer-col ul a:hover::before {
    opacity: 1;
}

/* ---------- Counties ---------- */

.county-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
}

.county-grid span {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: #94a3b8;
    transition: var(--transition);
}

.county-grid span:hover {
    color: #fff;
    transform: translateX(4px);
}

.county-grid i {
    color: var(--accent-gold);
    font-size: .8rem;
}

/* ---------- Contact Cards ---------- */

.footer-contact-col .contact-detail {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.footer-contact-col .contact-detail:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.04);
    border-color: rgba(223,183,108,.25);
}

.footer-contact-col .contact-detail:last-child {
    margin-bottom: 0;
}

.contact-detail .label {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .5rem;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    color: #fff;
}

.contact-detail .label i {
    width: 18px;
    color: var(--accent-gold);
    font-size: .85rem;
}

.contact-detail .address {
    line-height: 1.7;
    color: #94a3b8;
    font-size: .9rem;
}

.contact-detail a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.contact-detail a:hover {
    color: var(--accent-gold);
}

/* ---------- Social Icons ---------- */

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    text-decoration: none;
    color: #94a3b8;
    background: linear-gradient(
        145deg,
        rgba(255,255,255,.05),
        rgba(255,255,255,.015)
    );
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    transition: var(--transition);
}

.footer-social .social-link:hover {
    color: var(--primary-blue);
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-5px) rotate(6deg);
    box-shadow: 0 12px 30px rgba(223,183,108,.22);
}

/* ---------- Developer Credit ---------- */

.developer-credit {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed rgba(255,255,255,.08);
    font-size: .73rem;
    letter-spacing: .08em;
    color: #64748b;
}

.developer-credit a {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.developer-credit a:hover {
    color: var(--accent-gold-light);
}

/* ---------- Sub Footer ---------- */

.sub-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.8rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.06);
    position: relative;
    z-index: 2;
}

.sub-footer span {
    color: #94a3b8;
    font-size: .85rem;
}

.sub-links {
    display: flex;
    gap: 2rem;
}

.sub-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.sub-links a:hover {
    color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-col h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .county-grid {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }

    .county-grid span {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .developer-credit {
        text-align: center;
    }

    .sub-footer {
        flex-direction: column;
        text-align: center;
    }

    .sub-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}

/* ============================================================
   GLOBAL TYPOGRAPHY OVERRIDES (Premium Corporate Scale)
   ============================================================ */

/* ---- Headings (Max weight: 500) ---- */
h1 {
    font-size: 34px;
    font-weight: 500;
    line-height: 1.2;
}

h2 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.25;
}

h3,
h4,
h5 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
}

h6 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
}

/* ---- Paragraphs (Weight: 300) ---- */
p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
}

/* ---- Optional: Fine-tune specific elements for consistency ---- */
.hero h1 {
    font-size: 34px; /* Keeps hero headline in check */
}

.featured-content h2 {
    font-size: 28px; /* Matches H2 global rule */
}

.service-card h3,
.blog-card h3,
.offer-card h3 {
    font-size: 24px; /* Matches H3-H5 global rule */
}

/* ============================================================
   RESPONSIVE TYPOGRAPHY – Mobile Adjustments
   ============================================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 24px;
    }
    h3,
    h4,
    h5 {
        font-size: 20px;
    }
    h6 {
        font-size: 18px;
    }
    p {
        font-size: 14px; /* 14px is still comfortable on mobile */
    }

    /* Hero specific mobile */
    .hero h1 {
        font-size: 28px;
    }
    .featured-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 20px;
    }
    h3,
    h4,
    h5 {
        font-size: 18px;
    }
    h6 {
        font-size: 16px;
    }
    p {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 24px;
    }
    .featured-content h2 {
        font-size: 20px;
    }
}

