/*
Theme Name: Rooted Mind Psychiatric Services
Description: Custom theme for Rooted Mind Psychiatric Services
Version: 1.0
Author: Your Name
*/

/* ===== WORDPRESS THEME CSS ===== */
:root {
    --primary-green: #5a7d4a;
    --light-green: #8fb57f;
    --earth-brown: #8b6f47;
    --light-brown: #d4c4b0;
    --cream: #fefefe;
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #5a5a5a;
    --primary-blue: #4A90E2;
    --light-blue: rgba(74, 144, 226, 0.1);
    --accent-yellow: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, serif;
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 45px;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-blue);
    line-height: 1.2;
}

/* ===== NAVIGATION ===== */
.site-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 4px 0;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.site-navigation.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 3px 0;
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 95px;
    width: auto;
    border-radius: 50px;
    background-color: white;
    padding: 3px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    margin: 0 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.site-navigation.scrolled .nav-menu a {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    border: 2px solid rgba(143, 181, 127, 0.3);
}

.nav-menu a:hover {
    color: var(--white);
    background-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 15px;
    right: 15px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

/* ===== HAMBURGER MENU STYLES ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation when open */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    background-image: url('https://www.rootedmindpsych.com/wp-content/themes/rooted-mind-theme/images/hero-bg.jpg');
    background-size: 120% auto;
    background-position: 20% center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0px;
    filter: brightness(1.4);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.site-title {
    font-size: 4rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9), 0 0 20px rgba(255,255,255,0.5);
    color: var(--white);
    background-color: rgba(90, 125, 74, 0.7);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.tagline {
    font-size: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9), 0 0 20px rgba(255,255,255,0.6);
    margin-bottom: 40px;
    background-color: rgba(90, 125, 74, 0.9);
    padding: 8px 18px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 20px;
    backdrop-filter: blur(5px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons a {
    background-color: var(--primary-blue) !important;
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: none;
    border: 2px solid var(--primary-blue) !important;
    filter: brightness(0.71) !important;
}

.hero-buttons a:hover {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

/* ===== SHARED BUTTON STYLES ===== */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-blue);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
}

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

/* ===== SECTIONS ===== */
.content-section {
    padding: 80px 0;
    background-color: var(--white);
}

/* About section specific - restore proper navigation spacing */
#about {
    padding: 120px 0 80px 0 !important; /* Much more top padding so heading is fully visible when clicking About link */
}

.content-section:nth-child(even) {
    background-color: #f8fbff;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px; /* Reduced from 50px */
    padding-top: 0px; /* Remove extra top padding since sections now have proper padding */
}

/* About section specific heading spacing */
#about h2 {
    margin-bottom: 25px !important; /* Reasonable spacing after About Me heading */
    padding-top: 0px !important; /* Remove top padding since section has proper padding */
}

/* Services section specific styling */
#services {
    padding: 120px 0 80px 0 !important; /* Much more top padding so heading is fully visible when clicking Services link */
}

/* Book section specific styling */
#book {
    padding: 120px 0 80px 0 !important; /* Much more top padding so heading is fully visible when clicking Book link */
}

/* FAQ section specific styling */
#faq {
    padding: 120px 0 80px 0 !important; /* Much more top padding so heading is fully visible when clicking FAQ link */
}

/* Contact section specific styling */
#contact {
    padding: 100px 0 30px 0 !important; /* Reduced from 120px to 100px to decrease space above heading */
}

#contact h2 {
    padding-top: 0 !important; /* Remove top padding for contact heading */
    margin-bottom: 30px !important; /* Space below heading */
}

/* Mobile-specific Contact section fix */
@media (max-width: 768px) {
    #contact {
        padding: 140px 0 30px 0 !important; /* Even more top padding on mobile for proper navigation visibility */
    }
    
    #contact h2 {
        padding-top: 20px !important; /* Some top padding on mobile so heading is definitely visible */
        margin-bottom: 25px !important;
    }
}

/* ===== ABOUT SECTION ===== */
.about-layout {
    display: block; /* Changed from grid to block layout */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.about-left {
    float: left;
    width: 350px;
    margin: -50px 40px 20px 0; /* Moved image and text down further by reducing negative margin from -80px to -50px */
    text-align: center;
}

.about-left img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.credentials {
    text-align: left;
    max-width: 350px;
    margin: 0 auto;
}

.credentials h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-green);
    line-height: 1.2; /* Allow text to wrap */
    white-space: normal; /* Remove nowrap to allow wrapping */
}

.credentials ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credentials li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 1rem;
    font-style: italic;
}

.credentials li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2em;
}

.about-right {
    overflow: hidden; /* This creates the text wrap around the floated image */
    padding-top: 0;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.about-right p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Clear float after about section */
.about-layout::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 33px; /* Reduced from 50px by about 1/3 to tighten spacing */
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-green);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px 0;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.services-cta {
    text-align: center;
    margin-top: 30px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BOOK SECTION ===== */
.book-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.book-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.ready-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-green);
    font-weight: bold;
}

.book-content img {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin: 25px auto;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.faq-item {
    margin-bottom: 12px;
    background: #f8fbff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 15px;
}

.faq-item h3 {
    color: var(--primary-green);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.3;
}

.faq-item p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.crisis-support {
    margin-top: 15px;
    padding: 15px;
    background-color: #f0f8ff;
    border-left: 3px solid var(--primary-green);
    border-radius: 5px;
}

.crisis-title {
    margin: 0;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-green);
    font-size: 1.2rem;
}

.crisis-info {
    margin: 0;
    line-height: 1.4;
    font-size: 1rem;
    font-weight: bold;
}

/* ===== CONTACT SECTION ===== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 0; /* Remove bottom margin to reduce space after form */
    padding-bottom: 0; /* Ensure no bottom padding */
    text-align: center; /* Center the form content */
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 8px; /* Further reduced from 10px to make spacing tighter */
    border: 1px solid var(--light-brown);
    border-radius: 5px;
    font-family: inherit;
    text-align: left; /* Keep text in fields left-aligned */
}

/* Make textarea smaller */
.contact-form textarea,
.wpcf7-form textarea {
    height: 120px !important; /* Smaller textarea height */
    max-height: 120px !important;
    min-height: 120px !important;
    resize: vertical; /* Allow vertical resize only */
}

.contact-form button {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 0; /* No margin after button */
    margin-top: 5px; /* Small gap above button */
    display: inline-block; /* Center the button */
}

.contact-form button:hover {
    background-color: var(--light-green);
}

/* Remove any horizontal lines/borders in contact form area */
.contact-form hr,
.wpcf7-form hr {
    display: none;
}

/* Additional Contact Form 7 spacing adjustments */
.wpcf7-form .wpcf7-response-output {
    margin: 5px 0 0 0 !important; /* Very tight spacing around disclaimer text */
}

.wpcf7-form br {
    display: none; /* Remove line breaks that might create extra spacing */
}

/* Reduce space after submit button */
.wpcf7-form p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    text-align: center; /* Center the submit button */
}

/* Make the entire form container tight */
.wpcf7-form > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.wpcf7-form {
    padding-bottom: 0; /* Remove any bottom padding */
    margin-bottom: 0; /* Remove any bottom margin */
    text-align: center; /* Center form elements */
}

/* Center form labels and inputs */
.wpcf7-form p {
    text-align: left; /* Keep labels left-aligned */
    margin-bottom: 8px;
}

.wpcf7-form input,
.wpcf7-form textarea {
    text-align: left; /* Keep input text left-aligned */
}

/* Center submit button specifically */
.wpcf7-form input[type="submit"] {
    display: inline-block !important;
    margin: 5px auto 0 auto !important;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0px 0; /* Remove all top/bottom padding to eliminate blue space */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px; /* Keep tight gap for compactness */
    padding: 6px 0; /* Increased by 1/4 from 2px to 6px (2px + 4px = 6px) */
}

.footer-logo img {
    height: 53px; /* Reduced by 1/3 from 80px to 53px */
    width: auto;
    border-radius: 50px;
    background-color: white;
    padding: 2px; /* Keep reduced padding for compactness */
    cursor: pointer;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin: 1px 0; /* Keep minimal margin for tight spacing */
    font-size: 1rem; /* RESTORED to original font size */
    line-height: 1.3; /* Slightly tighter than original but readable */
}

.footer-divider {
    margin: 6px 0; /* Increased from 1px to 6px to match the 6px padding above the logo */
    border: none;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem; /* Reduced from 1rem for smaller copyright text */
    padding-bottom: 2px; /* Keep minimal padding */
}

/* ===== ENHANCED MOBILE RESPONSIVE DESIGN ===== */

/* Improve touch targets for all interactive elements */
a, button, input, textarea, select {
    min-height: 44px;
    min-width: 44px;
}

/* Better focus states for mobile accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
}

/* Improve Contact Form 7 mobile styling */
.wpcf7-form input,
.wpcf7-form textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 15px !important;
    border-radius: 8px !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 90px; /* Less space needed with hamburger menu */
    }

    /* Contact section mobile spacing - fix navigation visibility */
    #contact {
        padding: 140px 0 30px 0 !important; /* Even more top padding on mobile for proper navigation visibility */
    }

    #contact h2 {
        padding-top: 20px !important; /* Some top padding on mobile so heading is definitely visible */
        margin-bottom: 25px !important;
        font-size: 2rem;
    }

    .nav-container {
        flex-direction: row; /* Keep logo and hamburger side by side */
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
    
    .logo-link img {
        height: 70px; /* Smaller logo on mobile */
    }
    
    /* Show hamburger button on mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide navigation menu by default on mobile */
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 0;
        text-align: center;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        padding: 20px 0;
    }
    
    /* Show navigation menu when active */
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
        min-height: 44px;
        width: 100%;
        margin: 0;
        border-radius: 0;
        background-color: transparent;
        box-shadow: none;
        border: none;
        color: var(--primary-green);
    }
    
    .nav-menu a:hover {
        background-color: var(--primary-blue);
        color: var(--white);
        transform: none;
        box-shadow: none;
    }
    
    /* Hero section improvements */
    .hero-section {
        background-size: cover;
        background-position: center;
        background-attachment: scroll; /* Fixed backgrounds can cause issues on mobile */
        min-height: 70vh; /* Shorter on mobile */
        padding: 20px;
    }
    
    .site-title {
        font-size: 2.2rem;
        line-height: 1.1;
        padding: 10px 15px;
        margin-bottom: 15px;
    }
    
    .tagline {
        font-size: 1.2rem;
        padding: 8px 15px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 15px 20px;
        font-size: 16px;
        min-height: 44px;
    }
    
    /* Content sections */
    .content-section {
        padding: 50px 0;
    }

    /* About section mobile - keep lifted heading */
    #about {
        padding: 30px 0 50px 0 !important; /* Reduced top padding on mobile too */
        scroll-margin-top: 110px; /* Adjust scroll margin for mobile header */
    }
    
    .section-container {
        padding: 0 15px;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 30px;
        padding-top: 40px;
        line-height: 1.2;
    }

    /* About section mobile heading */
    #about h2 {
        margin-bottom: 15px !important; /* Keep tight spacing on mobile too */
        padding-top: 0px !important; /* Keep lifted heading on mobile */
    }
    
    /* About section mobile improvements */
    .about-layout {
        display: block;
    }
    
    .about-left {
        float: none; /* Remove float on mobile */
        width: 100%;
        margin: 30px 0 40px 0; /* Proper spacing: space above image, more space below before credentials */
        text-align: center;
    }
    
    .about-left img {
        max-width: 300px; /* Smaller on mobile */
        margin-bottom: 25px; /* Space between image and credentials */
    }
    
    .about-right {
        overflow: visible; /* Remove overflow hidden on mobile */
        text-align: left;
    }
    
    .intro-text,
    .about-right p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .credentials {
        max-width: 100%;
        margin-top: 0px; /* Remove top margin since image now has proper spacing */
        margin-bottom: 30px; /* Add bottom margin to separate from about text */
    }
    
    .credentials h3 {
        text-align: center; /* Center credentials heading on mobile */
    }
    
    .credentials li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Services grid mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 22px; /* Reduced on mobile too - about 1/3 less than 30px */
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Button improvements for mobile */
    .btn-primary,
    .btn-secondary {
        padding: 15px 25px;
        font-size: 16px;
        min-height: 44px;
        width: 100%;
        max-width: 300px;
        text-align: center;
        display: inline-block;
        box-sizing: border-box;
    }
    
    /* FAQ section mobile */
    .faq-item {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .faq-item h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .faq-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .crisis-support {
        padding: 15px;
        margin-top: 15px;
    }
    
    .crisis-info {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Contact form mobile improvements */
    .contact-form {
        padding: 0 10px;
        margin-bottom: 0; /* Ensure no bottom margin on mobile */
        padding-bottom: 0; /* Ensure no bottom padding on mobile */
        text-align: center; /* Center form on mobile */
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 15px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        margin-bottom: 8px; /* Tight spacing on mobile */
        text-align: left; /* Keep input text left-aligned */
    }
    
    .contact-form textarea,
    .wpcf7-form textarea {
        height: 100px !important; /* Slightly smaller on mobile */
        max-height: 100px !important;
        min-height: 100px !important;
    }
    
    .contact-form button,
    .wpcf7-form input[type="submit"] {
        width: auto !important; /* Don't make full width on mobile */
        max-width: 250px !important;
        padding: 15px 30px !important;
        font-size: 16px !important;
        min-height: 44px !important;
        margin: 5px auto 0 auto !important;
        display: block !important;
    }
    
    .wpcf7-form {
        max-width: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
        text-align: center; /* Center form on mobile */
    }
    
    .wpcf7-form input,
    .wpcf7-form textarea {
        margin-bottom: 8px !important; /* Tight spacing on mobile */
        text-align: left !important; /* Keep input text left-aligned */
    }
    
    .wpcf7-form p {
        text-align: left !important; /* Keep labels left-aligned on mobile */
    }
    
    .wpcf7-form p:last-child {
        margin-bottom: 0 !important; /* No space after submit button on mobile */
        padding-bottom: 0 !important;
        text-align: center !important; /* Center submit button on mobile */
    }

    .wpcf7-response-output {
        margin: 5px 0 0 0 !important;
        padding: 10px !important;
        text-align: left !important; /* Keep disclaimer text left-aligned */
    }
    
    /* Footer mobile improvements */
    .site-footer {
        padding: 0px 0; /* Remove footer padding on mobile too */
    }
    
    .footer-content {
        flex-direction: column; /* Changed back to column for better mobile visibility */
        text-align: center;
        gap: 8px; /* Increased gap for better visibility */
        padding: 8px 0; /* Increased padding by 1/4 for mobile (6px + 2px = 8px) */
        justify-content: center; /* Center everything */
        align-items: center; /* Center align */
    }
    
    .footer-logo {
        order: 1; /* Logo first */
        margin-bottom: 5px; /* Small space below logo */
    }
    
    .footer-logo img {
        height: 40px; /* Keep reduced size */
    }
    
    .footer-info {
        text-align: center; /* Center contact info */
        order: 2; /* Contact info second */
        margin-bottom: 5px; /* Space below contact info */
    }
    
    .footer-info p {
        font-size: 0.9rem; /* Increased from 0.85rem for better mobile readability */
        line-height: 1.4; /* More spacing for readability */
        margin: 2px 0; /* Increased margin for visibility */
    }
    
    .footer-divider {
        margin: 5px 0; /* Increased spacing for visibility */
        width: 100%; /* Ensure divider spans full width */
        order: 3; /* Place divider third */
    }
    
    .footer-copyright {
        padding-bottom: 8px; /* Increased padding to ensure full visibility */
        font-size: 0.85rem; /* Increased from 0.8rem for better readability */
        width: 100%; /* Full width for copyright */
        order: 4; /* Place copyright last */
        text-align: center; /* Center copyright text */
        line-height: 1.3; /* Better line height for long text */
    }
}

/* Additional mobile improvements for smaller screens */
@media (max-width: 480px) {
    .site-title {
        font-size: 1.8rem;
        padding: 8px 12px;
    }
    
    .tagline {
        font-size: 1rem;
        padding: 6px 12px;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .service-card {
        padding: 20px 15px;
    }
    
    .nav-menu a {
        font-size: 15px;
        padding: 10px 15px;
    }
    
    .section-container {
        padding: 0 10px;
    }
}

/* ===== ACCESSIBILITY ===== */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-navigation,
    .site-footer {
        display: none;
    }
    
    body {
        padding-top: 0;
    }
}