/* ═══════════════════════════════════════════════
   EQ TOWING — MAIN STYLESHEET
   Design system: Navy / White / Gray / Accent blue
   One palette. No colour jumps.
═══════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #fff;
    color: #1a1a2e;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── DESIGN TOKENS ── */
:root {
    --navy:       #1B3A6B;
    --navy2:      #254d8f;
    --navy-bg:    #EEF3FB;
    --accent:     #2563EB;
    --accent-bg:  #EFF4FF;
    --white:      #ffffff;
    --gray:       #F4F6FA;
    --text:       #1a1a2e;
    --muted:      #6B7490;
    --border:     #DDE3EF;
    --ease:       cubic-bezier(.16,1,.3,1);
    --ease2:      cubic-bezier(.4,0,.2,1);
}

/* ── SCROLL REVEAL ── */
.r {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.r.rl { transform: translateX(-20px); }
.r.rr { transform: translateX(20px); }
.r.v  { opacity: 1 !important; transform: none !important; }
/* Simple fade — no translate, used for form sections */
.fade { opacity: 0; transition: opacity .7s var(--ease); }
.fade.v { opacity: 1 !important; }
.d1 { transition-delay: .06s; }
.d2 { transition-delay: .13s; }
.d3 { transition-delay: .20s; }
.d4 { transition-delay: .27s; }
.d5 { transition-delay: .34s; }
.d6 { transition-delay: .41s; }

/* ── NAV ── */
.eqt-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    height: 68px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s var(--ease2);
}
.eqt-nav.sc { box-shadow: 0 2px 24px rgba(27,58,107,.1); }

.eqt-logo {
    font-size: 21px; font-weight: 900; color: var(--navy);
    text-decoration: none; letter-spacing: -.5px;
    display: flex; align-items: baseline; gap: 2px;
    line-height: 1;
}
.eqt-logo-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    margin-bottom: 3px; margin-left: 1px;
    animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.5); opacity: .5; }
}

.eqt-nav-links { display: flex; gap: 32px; list-style: none; }
.eqt-nav-links a {
    font-size: 13px; font-weight: 500; color: var(--muted);
    text-decoration: none; transition: color .2s;
    position: relative; padding-bottom: 2px;
}
.eqt-nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 1.5px; background: var(--navy);
    transform: scaleX(0); transform-origin: left;
    transition: transform .22s var(--ease);
}
.eqt-nav-links a:hover,
.eqt-nav-links li.current-menu-item > a { color: var(--navy); }
.eqt-nav-links a:hover::after,
.eqt-nav-links li.current-menu-item > a::after { transform: scaleX(1); }
.eqt-nav-links li.current-menu-item > a { font-weight: 700; }

.eqt-nav-cta {
    background: var(--navy); color: #fff;
    font-size: 14px; font-weight: 700;
    padding: 11px 22px; border-radius: 8px;
    text-decoration: none;
    display: flex; align-items: center; gap: 8px;
    transition: background .2s, transform .18s, box-shadow .2s;
    box-shadow: 0 2px 10px rgba(27,58,107,.2);
    white-space: nowrap;
}
.eqt-nav-cta:hover {
    background: var(--navy2); color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27,58,107,.28);
}
/* Force SVG phone icon white in nav CTA */
.eqt-nav-cta svg { color: #fff; stroke: #fff; }

/* ── PAGE HERO (inner pages) ── */
.eqt-page-hero {
    background: var(--navy);
    padding: 120px 48px 72px;
    position: relative; overflow: hidden;
}
.eqt-ph-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 52px 52px;
    animation: gridDrift 18s linear infinite;
}
@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 52px 52px; }
}
.eqt-ph-glow {
    position: absolute; top: -80px; right: -60px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.16), transparent 65%);
    animation: glowPulse 7s ease-in-out infinite alternate;
}
@keyframes glowPulse {
    from { opacity: .7; transform: scale(1); }
    to   { opacity: 1; transform: scale(1.1); }
}
.eqt-ph-inner { max-width: 700px; position: relative; z-index: 2; }
.eqt-ph-eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: #93c5fd; margin-bottom: 14px;
}
.eqt-page-hero h1 {
    font-size: 48px; font-weight: 900; color: #fff;
    line-height: 1.08; letter-spacing: -2px; margin-bottom: 14px;
}
.eqt-page-hero h1 em { font-style: normal; color: #93c5fd; }
.eqt-page-hero p {
    font-size: 17px; color: rgba(255,255,255,.6);
    line-height: 1.7; max-width: 520px;
}

/* ── BREADCRUMB ── */
.eqt-breadcrumb {
    background: var(--gray);
    padding: 14px 48px;
    border-bottom: 1px solid var(--border);
    font-size: 12px; color: var(--muted);
}
.eqt-breadcrumb a { color: var(--navy); text-decoration: none; font-weight: 600; }
.eqt-breadcrumb a:hover { text-decoration: underline; }
.eqt-breadcrumb .sep { margin: 0 8px; color: var(--border); }

/* ── CALL STRIP ── */
.eqt-call-strip {
    background: var(--navy2);
    padding: 26px 48px;
    display: flex; align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}
.eqt-cs-left { display: flex; align-items: center; gap: 16px; }
.eqt-cs-icon {
    font-size: 34px;
    animation: shake 4s ease-in-out infinite;
}
@keyframes shake {
    0%,82%,100% { transform: rotate(0); }
    85%  { transform: rotate(-10deg); }
    89%  { transform: rotate(10deg); }
    93%  { transform: rotate(-7deg); }
    97%  { transform: rotate(7deg); }
}
.eqt-cs-label {
    font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.4); margin-bottom: 2px;
}
.eqt-cs-title { font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.3px; }
.eqt-cs-sub   { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 2px; }
.eqt-cs-phone {
    font-size: 30px; font-weight: 900; color: #fff;
    letter-spacing: -1px; text-decoration: none;
    display: flex; align-items: center; gap: 12px;
    transition: opacity .2s;
}
.eqt-cs-phone:hover { opacity: .8; color: #fff; }
.eqt-cs-phone-icon {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    animation: ring 4s ease-in-out infinite;
}
.eqt-cs-phone-icon svg { stroke: #fff; color: #fff; }
@keyframes ring {
    0%,80%,100% { transform: rotate(0); }
    83% { transform: rotate(-12deg); }
    87% { transform: rotate(12deg); }
    91% { transform: rotate(-7deg); }
    95% { transform: rotate(7deg); }
}

/* ── SHARED SECTION ── */
.eqt-sec    { padding: 88px 48px; }
.eqt-sec-sm { padding: 68px 48px; }
.eqt-bg-gray  { background: var(--gray); }
.eqt-bg-white { background: #fff; }
.eqt-bg-navy  { background: var(--navy); }
.eqt-sec-eyebrow {
    font-size: 11px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
}
.eqt-sec-title {
    font-size: 34px; font-weight: 900; color: var(--navy);
    letter-spacing: -1px; line-height: 1.1; margin-bottom: 10px;
}
.eqt-sec-sub {
    font-size: 15px; color: var(--muted); line-height: 1.7;
}

/* ── BUTTONS ── */
.eqt-btn-navy {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--navy); color: #fff;
    font-size: 15px; font-weight: 700;
    padding: 14px 26px; border-radius: 9px;
    text-decoration: none;
    transition: background .2s, transform .18s, box-shadow .2s;
    box-shadow: 0 3px 12px rgba(27,58,107,.2);
}
.eqt-btn-navy:hover {
    background: var(--navy2); color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(27,58,107,.28);
}
.eqt-btn-outline {
    display: inline-flex; align-items: center; gap: 9px;
    background: #fff; color: var(--navy);
    font-size: 15px; font-weight: 700;
    padding: 14px 26px; border-radius: 9px;
    text-decoration: none; border: 2px solid var(--border);
    transition: border-color .2s, color .2s;
}
.eqt-btn-outline:hover { border-color: var(--navy); color: var(--navy); }

/* ── CTA BANNER ── */
.eqt-cta-banner {
    background: var(--navy); padding: 80px 48px;
    display: grid; grid-template-columns: 1fr auto;
    gap: 48px; align-items: center;
    position: relative; overflow: hidden;
}
.eqt-cta-banner::after {
    content: ''; position: absolute; bottom: -80px; right: 200px;
    width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.1), transparent 70%);
}
.eqt-cb-title {
    font-size: 36px; font-weight: 900; color: #fff;
    letter-spacing: -1px; line-height: 1.1; margin-bottom: 8px;
}
.eqt-cb-title span { color: #93c5fd; }
.eqt-cb-sub { font-size: 15px; color: rgba(255,255,255,.45); }
.eqt-cb-right {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 10px;
}
.eqt-cb-phone {
    font-size: 30px; font-weight: 900; color: #fff;
    letter-spacing: -1px; text-decoration: none;
    display: flex; align-items: center; gap: 12px;
    transition: opacity .2s;
}
.eqt-cb-phone:hover { opacity: .8; color: #fff; }
.eqt-cb-phone svg { stroke: #fff; fill: none; flex-shrink: 0; }
.eqt-cb-note { font-size: 12px; color: rgba(255,255,255,.3); text-align: right; }

/* ── FORMS ── */
.eqt-form-panel {
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 18px; padding: 40px;
    box-shadow: 0 4px 24px rgba(27,58,107,.07);
}
.eqt-fp-title { font-size: 20px; font-weight: 900; color: var(--navy); margin-bottom: 4px; }
.eqt-fp-sub   { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.eqt-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.eqt-fg   { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.eqt-flbl { font-size: 11px; font-weight: 700; color: #374151; letter-spacing: .04em; text-transform: uppercase; }
.eqt-fi, .eqt-fsel, .eqt-fta {
    border: 1.5px solid var(--border); border-radius: 9px;
    padding: 13px 14px; font-size: 14px; font-family: inherit;
    color: var(--text); background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none; width: 100%;
}
.eqt-fi:focus, .eqt-fsel:focus, .eqt-fta:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27,58,107,.08);
}
.eqt-fta { resize: vertical; min-height: 100px; }
.eqt-fsel {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 36px;
}
.eqt-fsub {
    width: 100%; padding: 15px; border-radius: 9px; border: none;
    background: var(--navy); color: #fff;
    font-size: 15px; font-weight: 800; font-family: inherit;
    cursor: pointer; margin-top: 6px;
    transition: background .2s, transform .15s, box-shadow .2s;
}
.eqt-fsub:hover {
    background: var(--navy2); transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(27,58,107,.25);
}
.eqt-fnote { font-size: 11px; color: var(--muted); text-align: center; margin-top: 12px; }
.eqt-fnote a { color: var(--navy); font-weight: 700; }

/* ── FOOTER ── */
.eqt-footer { background: #0f2040; }
.eqt-ft-top {
    padding: 60px 48px 48px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.eqt-ft-logo {
    font-size: 20px; font-weight: 900; color: #fff;
    text-decoration: none; letter-spacing: -.5px;
    display: block; margin-bottom: 12px;
}
.eqt-ft-logo em { color: #93c5fd; font-style: normal; }
.eqt-ft-brand { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.75; max-width: 220px; }
.eqt-ft-col-h {
    font-size: 10px; font-weight: 700; letter-spacing: .13em;
    text-transform: uppercase; color: rgba(255,255,255,.6);
    margin-bottom: 16px;
}
.eqt-ft-links { display: flex; flex-direction: column; gap: 10px; }
.eqt-ft-links a { font-size: 13px; color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.eqt-ft-links a:hover { color: #fff; }
.eqt-ft-crow { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.eqt-ft-cicon { display: flex; align-items: center; flex-shrink: 0; margin-top: 2px; }
.eqt-ft-ctxt { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.5; }
.eqt-ft-ctxt a { color: #93c5fd; text-decoration: none; font-weight: 700; }
.eqt-ft-socials { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.eqt-ft-soc {
    font-size: 12px; font-weight: 700;
    padding: 9px 16px; border-radius: 22px;
    text-decoration: none; color: #fff;
    display: inline-flex; align-items: center; gap: 7px;
    transition: opacity .2s, transform .18s;
}
.eqt-ft-soc:hover { opacity: .85; transform: translateY(-1px); color: #fff; }
.eqt-ft-ig { background: #E1306C; }
.eqt-ft-fb { background: #1877F2; }
/* SVG icons in footer — white */
.eqt-ft-cicon svg { stroke: rgba(255,255,255,.75); fill: none; flex-shrink: 0; }
.eqt-ft-bottom {
    padding: 18px 48px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.eqt-ft-bottom p {
    font-size: 12px; color: rgba(255,255,255,.6);
    line-height: 1.6;
}
.eqt-ft-bottom a { color: #93c5fd; }

/* ── WP CORE RESET ── */
.wp-block-group { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }

/* ── TOUCH / TAP IMPROVEMENTS ── */
/* Remove tap highlight on mobile for interactive elements */
a, button { -webkit-tap-highlight-color: transparent; }
/* Ensure inputs are not zoomed on iOS (font-size >= 16px prevents zoom) */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="datetime-local"],
select,
textarea { font-size: 16px !important; }

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE — Full fixes
   All breakpoints targeting ≤ 768px
══════════════════════════════════════════ */
@media (max-width: 960px) {

    /* ── NAV ── */
    .eqt-nav { padding: 0 20px; overflow: visible; }
    .eqt-nav-links { display: none; }
    /* Hide the call CTA button in nav on mobile — hamburger takes over */
    .eqt-nav-cta { display: none; }

    /* ── PAGE HERO (inner pages) ── */
    .eqt-page-hero { padding: 96px 20px 56px; }
    .eqt-page-hero h1 { font-size: 32px; letter-spacing: -1px; }

    /* ── BREADCRUMB ── */
    .eqt-breadcrumb { padding: 12px 20px; }

    /* ── CALL STRIP ── */
    .eqt-call-strip {
        padding: 22px 20px;
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .eqt-cs-left { justify-content: center; }
    .eqt-cs-phone { font-size: 22px; justify-content: center; }

    /* ── SHARED SECTION PADDING ── */
    .eqt-sec, .eqt-sec-sm { padding: 48px 20px; }

    /* ── CTA BANNER ── */
    .eqt-cta-banner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 48px 20px;
    }
    .eqt-cb-right { align-items: flex-start; }
    .eqt-cb-title { font-size: 28px; }
    .eqt-cb-phone { font-size: 24px; }

    /* ── FORMS ── */
    .eqt-frow { grid-template-columns: 1fr; }
    .eqt-form-panel { padding: 24px 20px; }

    /* ── FOOTER ── Issue 10: brighter footer text ── */
    .eqt-ft-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        padding: 36px 20px 28px;
    }
    .eqt-ft-bottom { padding: 14px 20px; }
    /* Brighter footer text on mobile */
    .eqt-ft-brand  { color: rgba(255,255,255,.75); }
    .eqt-ft-col-h  { color: rgba(255,255,255,.6); }
    .eqt-ft-links a { color: rgba(255,255,255,.8); }
    .eqt-ft-ctxt   { color: rgba(255,255,255,.8); }
    .eqt-ft-bottom p { color: rgba(255,255,255,.35); }
}

/* ── HOMEPAGE-SPECIFIC MOBILE FIXES ── */
@media (max-width: 768px) {

    /* Kill all horizontal slide animations on mobile — pure fade only */
    .r.rl, .r.rr { transform: translateY(16px) !important; }
    .r.rl.v, .r.rr.v { transform: none !important; }

    /* Issue 1: Hero h1 — each line on its own line, no overflow */
    .eqt-hero h1 {
        font-size: 40px !important;
        letter-spacing: -1.5px !important;
        line-height: 1.1 !important;
        word-break: keep-all;
    }
    .eqt-hero h1 br { display: block; }

    /* Hero buttons stack vertically */
    .eqt-hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .eqt-hero-btns a { width: 100%; justify-content: center; }

    /* Hero stats — 2x2 grid */
    .eqt-hero-stats {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px 0;
    }

    /* Issue 2: 800+ Reviews banner — stack to 1 col, stats 2 per row */
    .eqt-rev-banner-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding: 48px 20px !important;
    }
    .eqt-rev-stat-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
    .eqt-rev-stat-span2 {
        grid-column: span 2 !important;
    }

    /* Ticker bar */
    .eqt-ticker-bar { padding: 10px 0; }

    /* Issue 3: Reviews — 1 col on mobile (2 per visible row via scroll or 1 col) */
    .eqt-reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Issue 4: Suburbs — 2 per row on mobile (was going off screen) */
    .eqt-suburbs-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        overflow: hidden;
    }
    .eqt-suburbs-grid > div {
        min-width: 0;
        word-break: break-word;
    }

    /* Issue 5: Services — 2 per row */
    .eqt-services-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    /* Issue 6: Why us — stack to 1 col */
    .eqt-why-layout {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    /* Issue 7: Pricing — 1 col on mobile with comfortable spacing */
    .eqt-pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Issue 8: Book form — stack left/right to 1 col */
    .eqt-book-layout {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    /* Issue 9: Referral — stack to 1 col */
    .eqt-referral-layout {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    /* Issue 4+11: overflow hidden on sections containing suburb grid */
    .eqt-suburbs-section { overflow: hidden; }

    /* How it works — 2 per row */
    .eqt-steps-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px !important;
    }
    .eqt-steps-grid::before { display: none; }
}

/* Very small phones */
@media (max-width: 380px) {
    .eqt-hero h1 { font-size: 34px !important; }
    .eqt-services-grid { grid-template-columns: 1fr !important; }
    .eqt-suburbs-grid  { grid-template-columns: 1fr 1fr !important; }
    .eqt-ft-top { grid-template-columns: 1fr; }
    /* Stats strip — always 2 cols even at tiny width */
    .eqt-stats-strip-grid { grid-template-columns: 1fr 1fr !important; }
    /* Gallery — 2 cols on small phones */
    .eqt-gallery-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ── HAMBURGER (mobile) ── */
.eqt-hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 4px;
}
.eqt-hamburger span {
    display: block; width: 24px; height: 2px;
    background: var(--navy); border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
@media (max-width: 960px) {
    .eqt-hamburger { display: flex; }
    .eqt-mobile-menu {
        display: none; position: fixed;
        top: 68px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        padding: 20px 24px; flex-direction: column; gap: 4px;
        box-shadow: 0 8px 32px rgba(27,58,107,.12);
        z-index: 998;
    }
    .eqt-mobile-menu.open { display: flex; }
    .eqt-mobile-menu a {
        font-size: 15px; font-weight: 600; color: var(--navy);
        text-decoration: none; padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
    .eqt-mobile-menu a:last-child { border-bottom: none; }
}
