/* File: style.css */
/* Mobile-first design with updated contact form styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #f9f9f9;
}

.top-header .container {
    width: 95%;
    max-width: 980px;
    margin: 0 auto;
    font-weight: 600;
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 32px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info a {
    text-decoration: none;
    color: black;
}

.contact-info img {
    margin-right: 5px;
    vertical-align: middle;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.main-nav {
    height: 80px;
    background: #fff;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    height: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Navigation links container */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-links li {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Professional Button Styles for Nav Links */
.nav-links a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    height: 20px;
    white-space: nowrap;
    background: transparent;
    border: 2px solid transparent;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 15px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

/* Active Link State */
.nav-links a.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown > a {
    padding-right: 32px;
}

.dropdown > a::after {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    transition: transform 0.3s ease;
    opacity: 0.2;
}

.dropdown:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.30);
    padding: 10px 0;
    z-index: 1000;
    animation: dropdownFade 0.2s ease;
    border: 1px solid #eee;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown:hover ul {
    display: block;
}

.dropdown ul li {
    width: 100%;
    height: auto;
}

.dropdown ul a {
    padding: 12px 20px;
    border-radius: 0;
    height: auto;
    color: #333;
    background: transparent;
    box-shadow: none;
    font-size: 15px;
    border: none;
}

.dropdown ul a:hover {
    background: #f8f8f8;
    color: var(--primary);
    transform: none;
    box-shadow: none;
    border: none;
}

/* Search Container Alignment */
.search-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.search-toggle:hover {
    background: #f0f0f0;
    transform: scale(1.05);
    color: var(--primary);
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}

.search-dropdown.active {
    display: block;
}

#searchInput {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    outline: none;
}

.search-results {
    max-height: 340px;
    overflow-y: auto;
    padding: 8px 0;
}

.search-result-item {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    display: block;
    transition: background 0.12s;
}

.search-result-item:hover,
.search-result-item:focus {
    background: #f5faff;
    outline: none;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #0066cc;
}

.search-result-snippet {
    font-size: 0.92rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

.search-result-snippet mark {
    background: #fff59d;
    padding: 1px 3px;
    border-radius: 2px;
}

.no-results {
    padding: 16px;
    color: #777;
    text-align: center;
    font-style: italic;
}

/* ===== UPDATED CONTACT FORM STYLES (to match image) ===== */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-form h2 {
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 500;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #444;
    margin-bottom: -0.4rem; /* reduces gap to input */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: #4CAF50;
}

.contact-form textarea {
    min-height: 120px;
}

/* recaptcha container spacing */
.g-recaptcha {
    margin: 0.5rem 0;
}

/* Send Message button */
.contact-form .btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
    align-self: flex-start; /* left-aligned like image */
    border: none;
    box-shadow: none;
}

.contact-form .btn:hover {
    background: #388e3c;
}

/* Emergency Contact section (optional styling) */
.emergency {
    text-align: center;
    margin: 2rem auto;
    padding: 1rem;
    background: #f2f2f2;
    border-radius: 6px;
}

.emergency h2 {
    color: #d32f2f;
    margin-bottom: 0.5rem;
}

.emergency p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Contact Details section (to match image style) */
.contact-details {
    max-width: 600px;
    margin: 0 auto 2rem;
    padding: 1.5rem 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-details h2 {
    margin-bottom: 1rem;
    color: #333;
    font-weight: 500;
}

.contact-details p {
    margin: 0.4rem 0;
    color: #555;
}

/* Map embed styling */
.map {
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.map iframe {
    width: 100%;
    height: 350px;
    display: block;
}

/* ===== END CONTACT FORM UPDATES ===== */

.hero {
    position: relative;
}

.hero img {
    width: 100%;
    height: auto;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 300px;
    margin: 10px;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Calm palette: blues, greens */
:root {
    --primary: #4CAF50;
    --secondary: #2196F3;
}

/* Accessibility: High contrast, large fonts */
h1, h2, h3 {
    color: var(--primary);
}

/* Hamburger Menu Button Styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 15px;
    color: #333;
    transition: color 0.3s ease;
}

.hamburger-menu:hover {
    color: var(--primary);
}

/* Responsive adjustments for larger screens */
@media (max-width: 1100px) {
    .nav-links a {
        padding: 8px 14px;
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .nav-links a {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .main-nav .container {
        flex-wrap: wrap;
        position: relative;
    }
    
    .hamburger-menu {
        display: block;
        order: 2;
    }
    
    .logo {
        height: 50px;
        order: 1;
    }
    
    .search-container {
        order: 3;
        margin-left: 0;
    }
    
    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000;
        height: auto;
        gap: 5px;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-links li {
        width: 100%;
        height: auto;
        margin: 5px 0;
    }
    
    .nav-links a {
        width: 100%;
        justify-content: center;
        height: 50px;
        padding: 12px 18px;
    }
    
    /* Dropdown adjustments for mobile */
    .dropdown ul {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 20px;
        margin-top: 5px;
        background: #f9f9f9;
        border-radius: 8px;
        width: 100%;
    }
    
    .dropdown:hover ul {
        display: none;
    }
    
    .dropdown.active ul {
        display: block;
    }
    
    .dropdown > a::after {
        content: '▼';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .search-dropdown {
        width: 280px;
        right: -10px;
    }

    /* Contact form mobile adjustments */
    .contact-form .btn {
        align-self: stretch; /* full width on small screens if desired, but keep left? */
        text-align: center;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .top-header-content {
        flex-direction: column;
        height: auto;
        gap: 10px;
        padding: 10px 0;
    }
    
    .contact-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .search-dropdown {
        width: 240px;
        right: -20px;
    }

    .contact-details,
    .contact-form,
    .map {
        width: 95%;
    }
}

.ftco-section {
  padding: 7em 0; 
}

.contact-section-card {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 20px 20px 20px 20px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0; /* Remove gap for seamless card */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Form Wrapper (Left Side) */
.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    padding: 50px;
    background: #fff;
}

.contact-form-wrapper h1 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2.2rem;
    font-weight: 500;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #444;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
    font-family: Arial, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #4CAF50;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    font-size: 1rem;
    font-weight: 300;
}

/* reCAPTCHA spacing */
.g-recaptcha {
    margin: 25px 0 15px;
}

.submit-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.submit-btn:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

/* Contact Info Wrapper (Right Side) */
.contact-info-wrapper {
    flex: 1;
    min-width: 300px;
    background: #f5f5f5;
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.map-container {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.map-error {
    background: #fff9e6;
    color: #8a6d3b;
    padding: 15px 18px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    border-left: 4px solid #f0ad4e;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.map-error p {
    margin: 0;
    line-height: 1.5;
}

.map-error strong {
    font-weight: 700;
}

.contact-info-details p {
    margin: 12px 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    display: flex;
    align-items: baseline;
}

.dash {
    color: #4CAF50;
    font-weight: 700;
    margin-right: 10px;
    font-size: 1.2rem;
}

.contact-info-details strong {
    color: #333;
    min-width: 70px;
    display: inline-block;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 35px 25px;
    }
    
    .contact-form-wrapper h1 {
        font-size: 1.8rem;
    }
    
    .submit-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 25px 20px;
    }
    
    .contact-info-details p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dash {
        display: none;
    }
}

/* Emergency Contact */
.emergency {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #f2f2f2;
    border-radius: 8px;
    text-align: center;
}

.emergency h2 {
    color: #d32f2f;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.emergency p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Remove/override old contact styles */
.contact-form,
.contact-details,
.map {
    /* These are now replaced by the new styles */
    display: none;
}
/* Success/Error message styles */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    font-weight: 500;
}
/* Footer Styles - Green Background */
.site-footer {
    background-color: #2E7D32; /* Dark green - you can adjust the shade */
    color: #fff;
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 30px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

/* Contact Info Styles */
.contact-info p {
    margin: 0 0 15px 0;
    color: #fff;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.email-address a {
    color: #fff;
    text-decoration: none;
    word-break: break-word;
}

.email-address a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.phone-numbers {
	color: #fff;
    font-size: 1rem;
    line-height: 1.8;
	text-decoration: none;
}
.phone-numbers a {
    color: #fff;
    text-decoration: none;
    word-break: break-word; /* Prevents long email from breaking layout */
}

.phone-numbers a:hover {
    opacity: 0.8;
    text-decoration: underline;
}


/* Hours Styles */
.hours-info p {
    margin: 0 0 15px 0;
    line-height: 1.8;
}

.hours-info p:last-child {
    margin-bottom: 0;
}

/* Resources Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #1B5E20; /* Even darker green for bottom bar */
    padding: 15px 0;
    font-size: 0.9rem;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
	text-decoration: none;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 5px;
}

.footer-bottom-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-col {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-col:last-child {
        margin-bottom: 0;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-bottom-links {
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .footer-bottom-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .separator {
        display: none; /* Hide separators on very small screens */
    }
    
    .footer-bottom-links a {
        margin: 0 8px;
    }
}
/* Make all footer links white */
.site-footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.amount-group {
    max-width: 25%; /* Makes the amount field 25% width */
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    z-index: 1;
}

.amount-input {
    width: 100%;
    padding: 12px 12px 12px 30px !important; /* Left padding creates space for R symbol */
    -moz-appearance: textfield; /* Removes spinners in Firefox */
}

/* Style for the number input spinners (increment/decrement arrows) */
.amount-input::-webkit-inner-spin-button, 
.amount-input::-webkit-outer-spin-button {
    opacity: 1; /* Makes arrows fully visible */
    height: 24px;
    margin-left: 5px;
    cursor: pointer;
}

.amount-input::-webkit-inner-spin-button:hover,
.amount-input::-webkit-outer-spin-button:hover {
    background-color: #4CAF50;
    border-radius: 4px;
}

/* For Firefox, we need a different approach for visible arrows */
.amount-input {
    appearance: textfield;
    -moz-appearance: spinner-textfield; /* Shows spinners in Firefox */
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .amount-group {
        max-width: 50%; /* 50% on tablets */
    }
}

@media (max-width: 480px) {
    .amount-group {
        max-width: 100%; /* Full width on mobile */
    }
}