/* ═══════════════════════════════════════════════
   Camel Towing — global.css
   Nav, footer, buttons, typography, shared utilities.
   Loaded on every page.
   ═══════════════════════════════════════════════ */

/* ─── CSS Variables (defaults — overridden by Customizer via inline <style>) ─── */
:root {
    --pink: #E91E8C;
    --pink-dark: #C4006E;
    --pink-light: #FFF0F7;
    --pink-subtle: #FFF7FB;
    --dark: #1A1A1A;
    --text: #2D2D2D;
    --muted: #6B6B6B;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
    --max-w: 1360px;
    --pad: 48px;
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100vw; }
img, iframe, video, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─── Typography ─── */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--dark);
}
img { display: block; }

/* ─── Accessibility ─── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed; top: 10px; left: 10px; z-index: 10000;
    background: var(--pink); color: #fff; padding: 12px 24px;
    border-radius: 8px; clip: auto; width: auto; height: auto;
}

/* ─── Section Tags / Eyebrows ─── */
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 16px;
}

/* ─── Container ─── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pink);
    color: #fff;
    border: none;
    padding: 18px 38px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    text-align: center;
    line-height: 1;
}
.btn-primary:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(233,30,140,0.25);
}
.btn-primary.btn-sm { padding: 12px 28px; font-size: 14px; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--dark);
    background: transparent;
    color: var(--dark);
    padding: 16px 34px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}
.btn-outline:hover { background: var(--dark); color: #fff; }

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--pink-dark);
    border: none;
    padding: 18px 40px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    height: 72px;
    gap: 32px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
/* the_custom_logo() outputs: <a class="custom-logo-link"><img class="custom-logo"></a> */
.nav-logo .custom-logo-link { display: flex; align-items: center; }
.nav-logo .custom-logo,
.nav-logo .custom-logo-link img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
.logo-icon {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--pink);
    display: grid; place-items: center;
    color: #fff;
    font-family: 'Archivo Black', sans-serif;
    font-size: 12px;
    letter-spacing: -0.5px;
    line-height: 1;
}
.logo-text {
    font-family: 'Archivo Black', sans-serif;
    font-size: 20px;
    color: var(--dark);
}
.logo-text span { color: var(--pink); }

/* Menu */
.nav-menu-wrap { flex: 1; }
.nav-menu-primary {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: center;
}
.nav-menu-primary li {
    position: relative;
}
.nav-menu-primary li a {
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    transition: color 0.3s;
    letter-spacing: 0.3px;
    padding: 8px 0;
    display: block;
}
.nav-menu-primary li a:hover,
.nav-menu-primary li.current-menu-item > a,
.nav-menu-primary li.current_page_item > a,
.nav-menu-primary li.current-menu-ancestor > a {
    color: var(--pink);
}

/* Dropdown sub-menus */
.nav-menu-primary li .sub-menu,
.nav-menu-primary li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 999;
    list-style: none;
}
.nav-menu-primary li:hover > .sub-menu,
.nav-menu-primary li:hover > ul {
    display: block;
}
.nav-menu-primary .sub-menu li,
.nav-menu-primary ul ul li {
    position: relative;
}
.nav-menu-primary .sub-menu li a,
.nav-menu-primary ul ul li a {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.nav-menu-primary .sub-menu li a:hover,
.nav-menu-primary ul ul li a:hover {
    background: var(--pink-light);
    color: var(--pink);
}

/* Right side group */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-phone-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}
.nav-phone-link span { color: var(--dark); font-weight: 700; font-size: 15px; }
.nav-phone-link svg { color: var(--pink); }

/* Mobile CTA in header — hidden on desktop */
.nav-cta-mobile { display: none; }

/* Mobile menu footer (phone + CTA inside opened menu) — hidden on desktop */
.nav-menu-footer { display: none; }

/* Hamburger — hidden on desktop */
.nav-toggle-input { display: none; }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s;
    border-radius: 2px;
}

/* Mobile CTA bar — hidden on desktop */
.mobile-cta-bar { display: none; }


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 80px var(--pad) 40px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
}

/* Brand col */
.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}
.footer-brand .footer-logo .custom-logo-link { display: flex; align-items: center; }
.footer-brand .footer-logo .custom-logo,
.footer-brand .footer-logo .custom-logo-link img {
    height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    /* Invert to white for dark footer — adjust if logo is already white */
    filter: brightness(0) invert(1);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
    color: rgba(255,255,255,0.5);
}
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    display: grid;
    place-items: center;
    color: rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.footer-social a:hover {
    background: var(--pink);
    color: #fff;
}

/* Link cols */
.footer-col h4 {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 20px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}
.footer-col a,
.footer-col .footer-address {
    display: block;
    font-size: 15px;
    margin-bottom: 12px;
    opacity: 0.6;
    transition: opacity 0.3s, color 0.3s;
}
.footer-col a:hover { opacity: 1; color: var(--pink); }

/* Bottom bar */
.footer-bottom {
    max-width: var(--max-w);
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.3); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--pink); }


/* ═══════════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════════ */

/* Trust bar */
.trust-bar {
    padding: 48px var(--pad);
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.trust-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--pink-light);
    display: grid; place-items: center;
    color: var(--pink);
    flex-shrink: 0;
}
.trust-item .value { font-weight: 700; font-size: 15px; color: var(--dark); }
.trust-item .label { font-size: 13px; color: var(--muted); }

/* FAQ accordion — uses <details>/<summary>, no JS */
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.06); }
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-toggle-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--pink-light);
    display: grid; place-items: center;
    flex-shrink: 0;
    color: var(--pink);
    transition: all 0.3s;
}
.faq-toggle-icon svg { transition: transform 0.3s; }
.faq-item[open] .faq-toggle-icon {
    background: var(--pink);
    color: #fff;
}
.faq-item[open] .faq-toggle-icon svg { transform: rotate(45deg); }
.faq-answer {
    padding: 0 0 22px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
}

/* Forms */
.form-row { margin-bottom: 16px; }
.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--light-gray);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    color: var(--dark);
    font-size: 16px;  /* 16px prevents iOS zoom */
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: #aaa; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--pink);
    background: #fff;
}
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit {
    width: 100%;
    margin-top: 8px;
    background: var(--pink);
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: background 0.3s;
}
.btn-submit:hover { background: var(--pink-dark); }

/* Quote form card (reusable across pages) */
.quote-form-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 44px;
    box-shadow: var(--shadow-lg);
}
.quote-form-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
    text-transform: none;
    color: var(--dark);
}
.quote-form-card .form-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
}

/* Form success/error messages */
.form-message {
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 16px;
    display: none;
}
.form-message.success {
    display: block;
    background: #e6f9e6;
    color: #1a7a1a;
    border: 1px solid #b3e6b3;
}
.form-message.error {
    display: block;
    background: #fce8e8;
    color: #c41a1a;
    border: 1px solid #f0b3b3;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
