/*
Theme Name: Business Rates Expert
Theme URI: https://businessratesexpert.co.uk
Author: Business Rates Expert
Description: Custom theme for Business Rates Expert - Pharmacy Specialist. SEO optimized, fast loading, mobile responsive.
Version: 2.2.20
License: GNU General Public License v2 or later
Text Domain: flavor-developer-developer
*/

/* ============================================
   CSS VARIABLES - Easy to customize
   ============================================ */
:root {
    /* Colors */
    --color-primary: #003D58;
    --color-secondary: #00A67E;
    --color-accent: #C9A227;
    --color-light: #F8F9FA;
    --color-dark: #333333;
    --color-white: #FFFFFF;
    --color-grey: #4B5563; /* Darker for better contrast - WCAG AA compliant */
    --color-border: #dee2e6;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-base: 18px;
    --font-size-sm: 14px;
    --font-size-lg: 20px;
    --font-size-h1: 48px;
    --font-size-h2: 36px;
    --font-size-h3: 28px;
    --font-size-h4: 24px;
    --line-height: 1.7;

    /* Spacing */
    --section-padding: 80px;
    --container-width: 1200px;
    --gap: 24px;

    /* Effects */
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* Prevent horizontal overflow */
*, *::before, *::after {
    max-width: 100%;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Word break for long text */
p, h1, h2, h3, h4, h5, h6, li, td, th, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

/* Links in body text should have underlines for accessibility */
p a, .about-text a, .faq-answer a, .footer-brand a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

p a:hover, .about-text a:hover, .faq-answer a:hover {
    text-decoration-thickness: 2px;
}

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

p {
    margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.text-accent { color: var(--color-accent); }
.text-secondary { color: var(--color-secondary); }

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-light {
    background-color: var(--color-light);
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

.grid {
    display: grid;
    gap: var(--gap);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: #b8922a;
    border-color: #b8922a;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

/* Inner pages (not front page) - solid header */
body:not(.home) .site-header {
    background-color: var(--color-primary);
}

body:not(.home) .site-header .nav-link {
    color: var(--color-white);
}

body:not(.home) .site-header .logo-light {
    display: block;
}

body:not(.home) .site-header .logo-dark {
    display: none;
}

body:not(.home) .site-header.scrolled {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
}

body:not(.home) .site-header.scrolled .nav-link {
    color: var(--color-dark);
}

body:not(.home) .site-header.scrolled .logo-light {
    display: none;
}

body:not(.home) .site-header.scrolled .logo-dark {
    display: block;
}

.site-header.scrolled {
    background-color: var(--color-white);
    box-shadow: var(--shadow);
}

.site-header.scrolled .nav-link {
    color: var(--color-dark);
}

.site-header.scrolled .logo-light {
    display: none;
}

.site-header.scrolled .logo-dark {
    display: block;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    max-width: 200px;
}

.logo-dark {
    display: none;
}

.logo img {
    height: 50px;
    width: auto;
}

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

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-accent);
}

.site-header.scrolled .nav-link:hover {
    color: var(--color-primary);
}

.header-cta .btn {
    padding: 10px 24px;
    font-size: 14px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    margin: 6px 0;
    transition: var(--transition);
}

.site-header.scrolled .menu-toggle span {
    background-color: var(--color-dark);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,61,88,0.9) 0%, rgba(0,61,88,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero h1 {
    color: var(--color-white);
    font-size: 52px;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 20px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero .btn-group {
    justify-content: center;
    margin-bottom: 48px;
}

/* Trust Badges in Hero */
.hero-trust {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-accent);
    display: block;
}

.trust-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   TRUST INDICATORS SECTION
   ============================================ */
.trust-bar {
    background-color: var(--color-light);
    padding: 40px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-card {
    text-align: center;
    padding: 24px;
}

.trust-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--color-primary);
}

.trust-icon svg {
    width: 100%;
    height: 100%;
}

.trust-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.trust-card p {
    font-size: 14px;
    color: var(--color-grey);
    margin: 0;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--color-grey);
    font-size: 18px;
}

/* ============================================
   RIGHTS / WHY REVIEW SECTION
   ============================================ */
.rights-intro {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

.rights-intro p {
    font-size: 18px;
    line-height: 1.8;
}

.reason-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.reason-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.reason-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.reason-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--color-secondary);
}

.reason-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.reason-card p {
    color: var(--color-grey);
    font-size: 16px;
    margin: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--color-primary);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--color-secondary);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--color-grey);
    font-size: 16px;
    margin: 0;
}

/* ============================================
   WHY CHOOSE US SECTION
   ============================================ */
.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 64px;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--color-accent);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-grey);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.expertise-card {
    background: var(--color-light);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.expertise-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow);
}

.expertise-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--color-primary);
}

.expertise-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.expertise-card p {
    font-size: 14px;
    color: var(--color-grey);
    margin: 0;
}

/* ============================================
   PROCESS / HOW IT WORKS SECTION
   ============================================ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -12px;
    width: calc(100% - 80px);
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 15px;
    color: var(--color-grey);
}

/* Fee Box */
.fee-box {
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    color: var(--color-white);
}

.fee-box h3 {
    color: var(--color-white);
    font-size: 28px;
    margin-bottom: 24px;
}

.fee-amount {
    font-size: 24px;
    margin-bottom: 16px;
}

.fee-amount strong {
    font-size: 36px;
    color: var(--color-accent);
}

.fee-note {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    background-size: cover;
    background-position: center;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,61,88,0.95);
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-size: 24px;
    font-style: italic;
    line-height: 1.8;
    color: var(--color-white);
    margin-bottom: 32px;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 120px;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-accent);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Inline quote marks */
.quote-mark {
    font-size: 1.1em;
    color: var(--color-accent);
    font-weight: 600;
}

.quote-mark.open {
    margin-right: 2px;
}

.quote-mark.close {
    margin-left: 2px;
}

.testimonial-author {
    color: var(--color-accent);
    font-size: 20px;
    font-weight: 600;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: var(--color-white);
    border: none;
    padding: 20px 24px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--color-light);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 24px;
    color: var(--color-grey);
    line-height: 1.8;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
}

.contact-form {
    background: var(--color-white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,61,88,0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-info {
    padding: 48px;
}

.contact-info h3 {
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-text strong {
    display: block;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.contact-text a {
    color: var(--color-primary);
    font-size: 18px;
}

.contact-text a:hover {
    color: var(--color-secondary);
}

/* Form Validation & Messages */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #dc3545;
}

.field-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
}

.required {
    color: #dc3545;
}

.form-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
}

.form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message svg {
    flex-shrink: 0;
}

/* Loading Spinner */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

#bre-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 64px 0 24px;
}

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

.footer-brand p {
    opacity: 0.8;
    margin-top: 16px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.8);
    padding: 6px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 8px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    opacity: 0.9;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    opacity: 0.7;
    font-size: 14px;
}

/* ============================================
   MOBILE STICKY CTA
   ============================================ */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 12px 20px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-white);
    font-weight: 600;
    font-size: 16px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --font-size-h1: 40px;
        --font-size-h2: 32px;
        --section-padding: 64px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .grid-4,
    .trust-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3,
    .reason-cards,
    .services-grid,
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image::after {
        display: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-step::after {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 32px;
        --font-size-h2: 28px;
        --font-size-h3: 24px;
        --font-size-base: 16px;
        --section-padding: 48px;
    }

    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    section {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .hero-trust {
        flex-direction: column;
        gap: 24px;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Mobile Navigation */
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link {
        font-size: 24px;
        color: var(--color-white);
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Mobile: White logo when NOT scrolled */
    .site-header .logo-light {
        display: block !important;
    }

    .site-header .logo-dark {
        display: none !important;
    }

    /* Mobile: Dark logo when scrolled (same as desktop) */
    .site-header.scrolled .logo-light {
        display: none !important;
    }

    .site-header.scrolled .logo-dark {
        display: block !important;
    }

    .site-header.scrolled .menu-toggle span {
        background-color: var(--color-dark) !important;
    }

    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-6,
    .trust-grid,
    .reason-cards,
    .services-grid,
    .expertise-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .footer-brand,
    .footer-column {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-contact p {
        justify-content: center !important;
        text-align: center !important;
    }

    .footer-social {
        justify-content: center !important;
    }

    .footer-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-links a {
        text-align: center !important;
    }

    .contact-form,
    .contact-info {
        padding: 24px 16px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-wrapper {
        gap: 24px;
        max-width: 100%;
        overflow: hidden;
    }

    .contact-form input,
    .contact-form textarea {
        max-width: 100%;
        box-sizing: border-box;
    }

    .fee-box {
        padding: 32px 24px;
    }

    .testimonial-quote {
        font-size: 20px;
    }

    /* Show mobile CTA */
    .mobile-cta {
        display: block;
    }

    body {
        padding-bottom: 60px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .trust-number {
        font-size: 28px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.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;
}

.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 2rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

/* Contact Form 7 Styling */
.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 14px;
    margin-top: 4px;
}

.wpcf7-response-output {
    margin: 24px 0 0;
    padding: 16px;
    border-radius: var(--radius);
}

.wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpcf7-validation-errors {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Ensure images don't break layout */
.wp-block-image img {
    height: auto;
}

/* Print styles */
@media print {
    .site-header,
    .mobile-cta,
    .btn {
        display: none !important;
    }
}
