/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-y: scroll;
}

/* Hide scrollbar but keep scrolling functionality */
body::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.homepage-body,
.contact-body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header */
.header-floating {
    position: fixed;
    top: 2rem;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-border-radius: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 1rem 2rem;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.header-floating .header-container {
    padding: 0;
    max-width: none;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: inline-block;
}

.logo {
    height: 60px;
    width: auto;
}

.navigation {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    min-width: 110px;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: #f0f0f0;
}

.nav-link:focus {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
}

.nav-link.active {
    background-color: #4caf50;
    color: #fff;
}

/* Hero Section Fullscreen */
.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 2;
}

.hero-overlay-dark {
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.hero-logo-mobile,
.hero-logo-desktop {
    display: none;
    max-width: 300px;
    height: auto;
    margin: 0 auto 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.hero-contact-button {
    display: none;
    background-color: #4caf50;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-contact-button:hover {
    background-color: #2e7d32;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.hero-contact-button:focus {
    outline: 3px solid rgba(76, 175, 80, 0.5);
    outline-offset: 2px;
}

/* Contact Hero Section */
.contact-hero {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.contact-hero-image {
    width: 100%;
    height: 100%;
}

.contact-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.contact-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Contact Main Content */
.contact-main {
    padding: 4rem 0;
    background-color: #fff;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-container > * {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 calc(50% - 1.5rem);
    flex: 1 1 calc(50% - 1.5rem);
    min-width: 280px;
}

@supports (display: grid) {
    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        -ms-flex-wrap: none;
        flex-wrap: nowrap;
    }
    
    .contact-container > * {
        -webkit-box-flex: initial;
        -ms-flex: initial;
        flex: initial;
        min-width: initial;
    }
}

.contact-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-social-card {
    background-color: #fff;
    -webkit-border-radius: 16px;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.contact-social-column {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.contact-section {
    margin-bottom: 1rem;
}

.contact-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.contact-subheading {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.contact-text {
    margin-bottom: 0.75rem;
    color: #555;
}

.contact-address {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.contact-info {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.contact-link {
    color: #4caf50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #2e7d32;
    text-decoration: underline;
}

.contact-link:focus {
    outline: 2px solid #4caf50;
    outline-offset: 2px;
    border-radius: 2px;
}


.contact-social-column .contact-social {
    position: sticky;
    top: 2rem;
}

.contact-social .social-icons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-social .social-icons > * {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 calc(50% - 0.5rem);
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 140px;
}

@supports (display: grid) {
    .contact-social .social-icons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
    
    .contact-social .social-icons > * {
        -webkit-box-flex: initial;
        -ms-flex: initial;
        flex: initial;
        min-width: initial;
    }
}

.contact-social .social-icons a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    background-color: transparent;
    border: 1px solid #e8e8e8;
    box-shadow: none;
}

.contact-social .social-icons a:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
}

.contact-social .social-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #4caf50;
}


/* Footer */
.footer {
    background-color: #f5f5f5;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}


.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}


.social-icons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 32px;
    height: 32px;
    color: #4caf50;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #2e7d32;
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}

.footer-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.footer-text {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #555;
}

.footer-link {
    color: #4caf50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #2e7d32;
    text-decoration: underline;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    -webkit-transition: background-color 0.3s ease, -webkit-transform 0.3s ease;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #2e7d32;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}

.scroll-to-top.show {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-floating .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    /* On contact page, keep nav items next to logo */
    body:not(.homepage-body) .header-floating .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .logo {
        height: 50px;
    }

    .navigation {
        width: 100%;
        justify-content: center;
    }

    /* On contact page, navigation should not take full width */
    body:not(.homepage-body) .navigation {
        width: auto;
        justify-content: flex-end;
    }

    .header-floating {
        top: 1rem;
        width: calc(100% - 2rem);
        padding: 0.75rem 1.5rem;
    }

    /* Hide header on mobile/tablet for homepage */
    .homepage-body .header-floating {
        display: none;
    }

    /* Show mobile logo and contact button on mobile/tablet */
    .hero-logo-mobile {
        display: block;
        max-width: 140px;
        margin-bottom: 2.5rem;
    }

    .hero-logo-desktop {
        display: none;
    }

    .hero-contact-button {
        display: inline-block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-slogan {
        font-size: 1.25rem;
    }

    .contact-hero {
        height: 350px;
    }

    .contact-hero-title {
        font-size: 2rem;
    }

    .contact-container {
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    @supports (display: grid) {
        .contact-container {
            grid-template-columns: 1fr;
        }
    }

    .contact-social-card {
        padding: 2rem;
    }

    .contact-social-column .contact-social {
        position: static;
    }

    .contact-social .social-icons {
        -ms-flex-direction: row;
        flex-direction: row;
    }
    
    @supports (display: grid) {
        .contact-social .social-icons {
            grid-template-columns: 1fr 1fr;
        }
    }

    .contact-social .social-icons a {
        padding: 0.875rem;
        font-size: 0.9rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .header-floating {
        top: 0.5rem;
        width: calc(100% - 1rem);
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }

    .header-floating .logo {
        height: 40px;
    }

    /* On contact page, keep nav items next to logo on small screens too */
    body:not(.homepage-body) .header-floating .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    body:not(.homepage-body) .navigation {
        width: auto;
        justify-content: flex-end;
    }

    body:not(.homepage-body) .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .contact-social .social-icons {
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    @supports (display: grid) {
        .contact-social .social-icons {
            grid-template-columns: 1fr;
        }
    }

    .contact-social .social-icons a {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    /* Hide header on mobile for homepage */
    .homepage-body .header-floating {
        display: none;
    }

    /* Show mobile logo and contact button on mobile */
    .hero-logo-mobile {
        display: block;
        max-width: 120px;
        margin-bottom: 2rem;
    }

    .hero-contact-button {
        display: inline-block;
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-slogan {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-hero {
        height: 300px;
    }

    .contact-hero-title {
        font-size: 1.75rem;
    }

    .contact-container {
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    @supports (display: grid) {
        .contact-container {
            grid-template-columns: 1fr;
        }
    }

    .contact-social-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .contact-heading {
        font-size: 1.5rem;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

