/*
Theme Name: Vofio CRM
Theme URI: https://vofio.com
Author: Tao Digital Marketing Ltd
Author URI: https://taodigital.org
Description: The CRM built for UK businesses. Custom WordPress theme replicating the Vofio CRM website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vofio-crm
*/

/* ---- Variables ---- */
:root {
    --midnight:    #0C0C14;
    --midnight-2:  #13131F;
    --midnight-3:  #1A1A2A;
    --midnight-4:  #20202E;
    --orange:      #FF4E1F;
    --orange-dark: #E03D10;
    --orange-glow: rgba(255,78,31,0.12);
    --white:       #FFFFFF;
    --grey-1:      #E8E8F0;
    --grey-2:      #B0B0C4;
    --grey-3:      #6B6B80;
    --border:      rgba(255,255,255,0.07);
    --border-o:    rgba(255,78,31,0.25);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--midnight);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ---- Layout ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; border: none; border-radius: 8px;
    font-size: 15px; font-weight: 600;
    padding: 12px 24px; transition: all 0.2s; cursor: pointer;
}
.btn-lg { padding: 15px 36px; font-size: 16px; border-radius: 10px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,78,31,0.3); }
.btn-ghost { background: transparent; color: var(--grey-1); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: #fff; }
.btn-full { width: 100%; }

/* ================================================================
   NAV
   ================================================================ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(12,12,20,0.88);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }
.nav-brand-name span { color: var(--orange); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--grey-2); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-hamburger { display: none; background: none; border: none; color: #fff; font-size: 22px; }

/* Mega Menu */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex !important; align-items: center !important; gap: 2px !important; }
.mega-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(8px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease !important;
    padding-top: 16px;
    z-index: 300;
}
.nav-dropdown:hover > .mega-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}
.mega-menu-inner {
    background: var(--midnight-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px;
    min-width: 560px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}
.mega-menu-label {
    font-size: 10px; font-weight: 700; color: var(--grey-3);
    text-transform: uppercase; letter-spacing: 1.2px;
    margin-bottom: 12px; padding-left: 12px;
}
.mega-menu-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    transition: background 0.15s;
}
.mega-menu-item:hover { background: var(--midnight-3); }
.mega-menu-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.mega-menu-title { font-size: 14px; font-weight: 600; color: var(--grey-1); margin-bottom: 2px; }
.mega-menu-desc { font-size: 12px; color: var(--grey-3); line-height: 1.4; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    padding: 148px 0 96px;
    position: relative; overflow: hidden;
}
.hero-glow {
    position: absolute; top: -300px; right: -300px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,78,31,0.13) 0%, transparent 65%);
    pointer-events: none;
}
.hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--orange-glow); border: 1px solid var(--border-o);
    padding: 6px 16px; border-radius: 100px;
    font-size: 13px; font-weight: 500; color: var(--orange);
    margin-bottom: 32px;
}
.hero-pill-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.hero h1 {
    font-size: clamp(44px, 5.5vw, 72px);
    font-weight: 900; line-height: 1.03;
    letter-spacing: -2.5px; margin-bottom: 24px;
    max-width: 860px;
}
.hero h1 .accent { color: var(--orange); }
.hero-sub {
    font-size: 18px; color: var(--grey-2); line-height: 1.75;
    max-width: 560px; margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-trust {
    display: flex; align-items: center; gap: 0; flex-wrap: wrap;
}
.hero-trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--grey-3); padding: 0 20px;
    border-right: 1px solid var(--border);
}
.hero-trust-item:first-child { padding-left: 0; }
.hero-trust-item:last-child { border-right: none; }
.hero-trust-item strong { color: var(--grey-1); }

/* Dashboard Mockup */
.hero-mockup-wrap {
    margin-top: 80px; position: relative;
}
.hero-mockup-wrap::before {
    content: '';
    position: absolute; bottom: -1px; left: 0; right: 0; height: 120px;
    background: linear-gradient(to top, var(--midnight), transparent);
    z-index: 2; pointer-events: none;
}
.mockup {
    background: var(--midnight-2);
    border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}
.mockup-bar {
    background: var(--midnight-3); border-bottom: 1px solid var(--border);
    padding: 12px 18px; display: flex; align-items: center; gap: 7px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #FF5F57; } .dot-y { background: #FFBD2E; } .dot-g { background: #28C840; }
.mockup-url {
    margin-left: 14px; background: var(--midnight-4);
    border-radius: 6px; padding: 5px 14px;
    font-size: 11px; color: var(--grey-3);
}
.mockup-body { display: grid; grid-template-columns: 210px 1fr; min-height: 360px; }
.mock-sidebar { border-right: 1px solid var(--border); padding: 16px 0; }
.mock-nav-item {
    padding: 10px 18px; font-size: 12px; color: var(--grey-3);
    display: flex; align-items: center; gap: 10px;
}
.mock-nav-item.active {
    color: #fff; background: var(--orange-glow);
    border-right: 2px solid var(--orange);
}
.mock-icon { width: 14px; height: 14px; background: currentColor; border-radius: 3px; opacity: 0.5; flex-shrink: 0; }
.mock-icon.orange { background: var(--orange); opacity: 1; border-radius: 50%; }
.mock-main { padding: 24px; }
.mock-header { font-size: 14px; font-weight: 600; margin-bottom: 20px; color: var(--grey-1); }
.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; }
.mock-stat {
    background: var(--midnight-3); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px;
}
.mock-stat-label { font-size: 10px; color: var(--grey-3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.mock-stat-val { font-size: 22px; font-weight: 700; }
.mock-stat-change { font-size: 10px; color: #4CAF50; margin-top: 3px; }
.mock-stat-change.orange { color: var(--orange); }
.mock-inbox { background: var(--midnight-3); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mock-inbox-header { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--grey-3); text-transform: uppercase; letter-spacing: 0.5px; }
.mock-row { padding: 11px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.03); }
.mock-row:last-child { border: none; }
.mock-av {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700;
}
.mock-name { font-size: 11px; font-weight: 600; color: var(--grey-1); }
.mock-preview { font-size: 10px; color: var(--grey-3); }
.mock-tag {
    margin-left: auto; font-size: 9px; padding: 2px 8px;
    border-radius: 100px; font-weight: 600; flex-shrink: 0;
}
.tag-email { background: rgba(100,180,255,0.15); color: #64B4FF; }
.tag-wa    { background: rgba(76,175,80,0.15);  color: #4CAF50; }
.tag-new   { background: var(--orange-glow);    color: var(--orange); }

/* ================================================================
   CLIENTS STRIP
   ================================================================ */
.clients-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}
.clients-label {
    font-size: 11px; font-weight: 600; color: var(--grey-3);
    text-transform: uppercase; letter-spacing: 1.2px;
    text-align: center; margin-bottom: 20px;
}
.clients-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.client-chip {
    padding: 7px 18px; background: var(--midnight-2);
    border: 1px solid var(--border); border-radius: 100px;
    font-size: 13px; font-weight: 500; color: var(--grey-3);
}

/* ================================================================
   SHARED SECTION TYPOGRAPHY
   ================================================================ */
section { padding: 104px 0; }
.section-eyebrow {
    font-size: 11px; font-weight: 700; color: var(--orange);
    text-transform: uppercase; letter-spacing: 1.8px; margin-bottom: 16px;
}
.section-title {
    font-size: clamp(30px, 3.8vw, 50px); font-weight: 900;
    letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 20px;
}
.section-sub { font-size: 17px; color: var(--grey-2); line-height: 1.75; max-width: 540px; }

/* ================================================================
   FEATURES
   ================================================================ */
.features-intro { margin-bottom: 64px; }
.features-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 1px; background: var(--border);
    border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.feat {
    background: var(--midnight-2); padding: 36px 30px;
    transition: background 0.25s; position: relative; overflow: hidden;
}
.feat::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--orange);
    transform: scaleY(0); transform-origin: top; transition: transform 0.3s;
}
.feat:hover { background: var(--midnight-3); }
.feat:hover::after { transform: scaleY(1); }
.feat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--orange-glow); border: 1px solid var(--border-o);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 20px;
}
.feat-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feat-desc { font-size: 14px; color: var(--grey-2); line-height: 1.75; }

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.hiw { background: var(--midnight-2); }
.hiw-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; margin-top: 72px; position: relative; }
.hiw-steps::before {
    content: ''; position: absolute;
    top: 28px; left: 18%; right: 18%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-o), var(--orange), var(--border-o), transparent);
}
.hiw-step { text-align: center; position: relative; }
.hiw-num {
    width: 56px; height: 56px; border-radius: 50%; background: var(--orange);
    font-size: 20px; font-weight: 900; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; position: relative; z-index: 1;
    box-shadow: 0 0 0 8px rgba(255,78,31,0.12);
}
.hiw-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.hiw-desc { font-size: 15px; color: var(--grey-2); line-height: 1.75; }

/* ================================================================
   PRICING
   ================================================================ */
.pricing-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-top: 64px; align-items: start;
}
.price-card {
    background: var(--midnight-2); border: 1px solid var(--border);
    border-radius: 16px; padding: 36px 30px;
}
.price-card.featured {
    background: var(--midnight-3); border-color: var(--orange);
    position: relative;
}
.price-featured-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--orange); color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 14px; border-radius: 100px; white-space: nowrap;
}
.price-eyebrow { font-size: 11px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.price-name { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.price-desc { font-size: 14px; color: var(--grey-3); line-height: 1.6; margin-bottom: 28px; }
.price-amount { margin-bottom: 32px; }
.price-num { font-size: 52px; font-weight: 900; letter-spacing: -2.5px; line-height: 1; }
.price-per { font-size: 13px; color: var(--grey-3); margin-top: 6px; }
.price-list { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 11px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--grey-1); line-height: 1.5; }
.price-list li .check { color: var(--orange); font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.price-list li .dim { color: var(--grey-3); }
.price-list li .dim .check { color: var(--grey-3); }
.pricing-note {
    margin-top: 32px; padding: 24px 28px;
    background: var(--midnight-2); border: 1px solid var(--border);
    border-radius: 12px; display: flex; gap: 18px; align-items: flex-start;
}
.pricing-note-icon { font-size: 24px; flex-shrink: 0; }
.pricing-note-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.pricing-note-body { font-size: 14px; color: var(--grey-2); line-height: 1.7; }

/* ================================================================
   ABOUT
   ================================================================ */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.about-stat {
    background: var(--midnight-2); border: 1px solid var(--border);
    border-radius: 12px; padding: 22px;
}
.about-stat .num { font-size: 32px; font-weight: 900; color: var(--orange); letter-spacing: -1px; line-height: 1; margin-bottom: 6px; }
.about-stat .lbl { font-size: 13px; color: var(--grey-2); line-height: 1.5; }
.about-card {
    background: var(--midnight-2); border: 1px solid var(--border);
    border-radius: 16px; padding: 32px;
}
.about-card-hd { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.about-av {
    width: 48px; height: 48px; border-radius: 50%; background: var(--orange);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.about-name { font-size: 15px; font-weight: 700; }
.about-role { font-size: 13px; color: var(--grey-3); margin-top: 2px; }
.about-quote { font-size: 15px; color: var(--grey-1); line-height: 1.8; font-style: italic; margin-bottom: 20px; }
.about-loc { font-size: 13px; color: var(--grey-3); display: flex; gap: 6px; }
.about-divider { margin: 22px 0; border: none; border-top: 1px solid var(--border); }
.about-co-label { font-size: 11px; color: var(--grey-3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.about-co-detail { font-size: 13px; color: var(--grey-2); line-height: 1.9; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials { background: var(--midnight-2); }
.t-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 64px; }
.t-card {
    background: var(--midnight); border: 1px solid var(--border);
    border-radius: 16px; padding: 32px;
}
.t-stars { color: var(--orange); font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.t-text { font-size: 15px; color: var(--grey-1); line-height: 1.75; margin-bottom: 24px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-av {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.t-name { font-size: 14px; font-weight: 600; }
.t-co { font-size: 12px; color: var(--grey-3); }

/* ================================================================
   FAQ
   ================================================================ */
.faq-wrap { max-width: 720px; margin: 64px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%; background: none; border: none; color: #fff;
    text-align: left; padding: 22px 0; font-size: 17px; font-weight: 600;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q:hover { color: var(--grey-1); }
.faq-ico {
    width: 26px; height: 26px; flex-shrink: 0; background: var(--orange-glow);
    border: 1px solid var(--border-o); border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: var(--orange); font-size: 18px; transition: transform 0.2s;
}
.faq-a { font-size: 15px; color: var(--grey-2); line-height: 1.75; padding-bottom: 22px; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-ico { transform: rotate(45deg); }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-section { position: relative; overflow: hidden; }
.cta-glow {
    position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 400px;
    background: radial-gradient(ellipse, rgba(255,78,31,0.16) 0%, transparent 65%);
    pointer-events: none;
}
.cta-inner {
    background: var(--midnight-2); border: 1px solid var(--border);
    border-radius: 24px; padding: 80px 48px; text-align: center; position: relative;
}
.cta-inner::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 55%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
}
.cta-inner h2 { font-size: clamp(32px,4vw,54px); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 16px; }
.cta-inner p { font-size: 17px; color: var(--grey-2); margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   CONTACT
   ================================================================ */
#contact { background: var(--midnight-2); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 64px; align-items: start; }
.contact-items { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; }
.contact-ico {
    width: 42px; height: 42px; flex-shrink: 0;
    background: var(--orange-glow); border: 1px solid var(--border-o);
    border-radius: 11px; display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.ci-label { font-size: 11px; color: var(--grey-3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.ci-val { font-size: 15px; color: var(--grey-1); line-height: 1.7; }
.ci-val a { color: var(--orange); }
.contact-co {
    margin-top: 8px; padding: 18px 20px;
    background: var(--midnight); border: 1px solid var(--border-o);
    border-radius: 12px;
}
.contact-co-name { font-size: 13px; font-weight: 700; color: var(--orange); margin-bottom: 6px; }
.contact-co-detail { font-size: 13px; color: var(--grey-2); line-height: 1.8; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 500; color: var(--grey-2); }
.form-input, .form-textarea {
    background: var(--midnight); border: 1px solid var(--border);
    border-radius: 8px; padding: 12px 16px;
    color: #fff; font-family: 'Inter', sans-serif; font-size: 14px;
    transition: border-color 0.2s; outline: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--orange); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--grey-3); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12px; color: var(--grey-3); text-align: center; }

/* ================================================================
   FOOTER
   ================================================================ */
footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand-name { font-size: 16px; font-weight: 800; }
.footer-brand-name span { color: var(--orange); }
.footer-tagline { font-size: 14px; color: var(--grey-3); line-height: 1.7; max-width: 260px; }
.footer-col-title { font-size: 11px; font-weight: 700; color: var(--grey-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: var(--grey-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--grey-1); }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 28px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--grey-3); flex-wrap: wrap; gap: 10px;
}

/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
    .features-grid { grid-template-columns: repeat(2,1fr); }
    .hiw-steps { grid-template-columns: 1fr; gap: 36px; }
    .hiw-steps::before { display: none; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; margin-left: auto; margin-right: auto; }
    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .t-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .mockup-body { grid-template-columns: 1fr; }
    .mock-sidebar { display: none; }
}
@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr !important; max-width: 460px !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 38px; }
    .form-row { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    section { padding: 72px 0; }
}

/* ================================================================
   SCROLL ANIMATIONS
   ================================================================ */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Orange decorative circle */
.circle-deco {
    position: absolute; border-radius: 50%;
    background: var(--orange); opacity: 0.06;
    pointer-events: none;
}

/* ================================================================
   PLUMBER / GOOGLE MAPS PAGE RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
    .hero [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns: repeat(5"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 640px) {
    [style*="grid-template-columns: repeat(5"] {
        grid-template-columns: 1fr !important;
    }
}

/* ================================================================
   GRAVITY FORMS — DARK THEME OVERRIDE
   ================================================================ */
.gf-contact-wrap .gform_wrapper { max-width: 100%; }
.gf-contact-wrap { margin-top: 0; padding-top: 0; }
.gf-contact-wrap .gform_wrapper { margin-top: 0 !important; padding-top: 0 !important; }
.gf-contact-wrap .gform_wrapper .gform_body { padding-top: 0 !important; margin-top: 0 !important; }
.gf-contact-wrap .gform_wrapper form { margin-top: 0 !important; }
.gform_wrapper .gfield { margin-bottom: 16px; }
.gform_wrapper .gfield_label,
.gform_wrapper label {
    font-size: 13px !important; font-weight: 500 !important;
    color: var(--grey-2) !important; margin-bottom: 6px !important;
}
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper select,
.gform_wrapper textarea {
    background: var(--midnight) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    transition: border-color 0.2s !important;
    outline: none !important;
    -webkit-appearance: none !important;
}
.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
    border-color: var(--orange) !important;
}
.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
    color: var(--grey-3) !important;
}
.gform_wrapper textarea { min-height: 120px !important; resize: vertical !important; }
.gform_wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B80' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 40px !important;
}
.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"] {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    width: 100% !important;
    background: var(--orange) !important; color: #fff !important;
    border: none !important; border-radius: 10px !important;
    font-size: 16px !important; font-weight: 600 !important;
    padding: 15px 36px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-family: 'Inter', sans-serif !important;
}
.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover {
    background: var(--orange-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px rgba(255,78,31,0.3) !important;
}
.gform_wrapper .gfield_required {
    color: var(--orange) !important;
}
.gform_wrapper .validation_error,
.gform_wrapper .gfield_error .validation_message {
    color: #ef4444 !important;
    background: rgba(239,68,68,0.1) !important;
    border: 1px solid rgba(239,68,68,0.25) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
}
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error select,
.gform_wrapper .gfield_error textarea {
    border-color: #ef4444 !important;
}
.gform_wrapper .gform_confirmation_message {
    color: #4CAF50 !important; font-weight: 600 !important;
    padding: 16px !important; text-align: center !important;
}
/* Hide Gravity Forms default footer text */
.gform_wrapper .gform_footer { padding: 0 !important; margin-top: 16px !important; }

/* ================================================================
   DEMO MODAL
   ================================================================ */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; }
.modal-content {
    background: var(--midnight-2); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px; max-width: 480px; width: 100%;
    position: relative; max-height: 90vh; overflow-y: auto;
    transform: translateY(20px); transition: transform 0.25s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none; color: var(--grey-3);
    font-size: 28px; cursor: pointer; line-height: 1;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--grey-1); }

/* WordPress admin bar fix */
body.admin-bar .nav {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .nav {
        top: 46px;
    }
}

/* ================================================================
   MOBILE FIXES — 2026-04-28
   The earlier @media rules used selectors like
   [style*="grid-template-columns: 1fr 1fr"] (with a space after the
   colon). Every inline style in the templates was written without
   that space, so the rules never matched. These additions use the
   no-space form so they actually apply, plus a few extra mobile
   refinements (hero padding, nav cleanup, button-row wrap).
   ================================================================ */

@media (max-width: 960px) {
    .nav-actions { display: none; }

    section.hero[style*="padding:148px"] {
        padding-top: 110px !important;
        padding-bottom: 48px !important;
    }

    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    [style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns:repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    [style*="grid-template-columns:repeat(5"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    [style*="display:flex"][style*="gap:12px"],
    [style*="display:flex"][style*="gap:16px"] {
        flex-wrap: wrap;
    }

    .mockup { max-width: 100% !important; }
}

@media (max-width: 640px) {
    section.hero[style*="padding:148px"] {
        padding-top: 92px !important;
        padding-bottom: 32px !important;
    }
    [style*="grid-template-columns:repeat(5"] {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns:repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}

/* ================================================================
   MOBILE FIXES — PASS 2 — 2026-04-28
   Targeted fixes after first round of mobile testing.
   ================================================================ */

@media (max-width: 960px) {
    /* Inline margin-left:auto on right-column mockups was misaligning
       them once grids collapse to one column */
    [style*="margin-left:auto"] {
        margin-left: 0 !important;
    }

    /* Tighter What's Included / feature cards */
    .feat { padding: 24px 22px !important; }

    /* Show the orange accent line by default on mobile (no hover) */
    .feat::after { transform: scaleY(1) !important; opacity: 0.7 !important; }

    /* CTAs wrap full-width when their flex row wraps */
    [style*="display:flex"][style*="gap:12px"] > .btn,
    [style*="display:flex"][style*="gap:16px"] > .btn {
        flex: 1 1 100%;
    }
}

/* Plumber 5-tier strip → 1 column at tablet, not just phone */
@media (max-width: 768px) {
    [style*="grid-template-columns:repeat(5"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .hero h1 { letter-spacing: -1.2px !important; line-height: 1.05 !important; }

    /* Bigger tap targets in the open mobile menu */
    #mobile-menu li > a,
    #mobile-menu li > button {
        padding-top: 16px !important; padding-bottom: 16px !important;
    }

    /* Even tighter feature cards on phone */
    .feat { padding: 22px 20px !important; }

    /* Case-study metric tile rows: keep 3 across, shrink padding */
    [style*="margin-bottom:12px"][style*="display:flex"][style*="gap:12px"] {
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }
    [style*="margin-bottom:12px"][style*="display:flex"][style*="gap:12px"] > div {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 6px !important;
    }
}
