/* CSS File (style.css) */

/* === Global reset === */
* {
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

.logo-container {
    background-color: #FCF8F2;
    text-align: center;
    padding: 110px 0 30px 0; /* ⭐ Increased top and bottom padding */
    min-height: 200px; /* ⭐ Slightly taller minimum height */
}

.logo-container img {
    max-width: 280px; /* Adjust logo size as needed */
    height: auto;
}

.navbar {
    background-color: #fcf8f2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 40px; /* Increased padding for larger height */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    position: absolute;
    right: 80px;
}

.navbar .menu li {
    margin: 0;
}

.navbar .menu li a {
    text-decoration: none;
    color: #053f27;
    font-size: 18px;
    transition: color 0.3s;
}

.navbar .menu li a:hover {
    color: #f1b118;
    text-decoration: underline; /* ⭐ Adds an underline on hover */
}

.hero {
    width: 100%;
    height: 550px; /* or whatever fixed height you prefer */
    overflow: hidden;
    position: relative;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    z-index: 5;
    font-family: 'Poppins', sans-serif;
    /* ⭐ No padding here! */
}

.hero-text h1 {
    font-size: 46px;
    margin-bottom: 25px; /* ⭐ Adds nice space under heading */
}

.hero-text p {
    font-size: 20px;
    margin-top: 10px;  /* ⭐ Adds breathing room above paragraph */
    margin-bottom: 0;  /* ⭐ No extra space below paragraph */
}

.hero-text .highlight {
    color: #f1b118; /* Deep yellow (same as your brand color) */
    font-weight: bold; /* Optional: makes it stand out even more */
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ⭐ Consistent visual window */
    object-position: center;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider img.active {
    opacity: 1;
}

.title-section h2 {
    text-align: center;
    width: 80%;
    margin: 30px auto;
    padding: 20px 0; /* ⭐ 20px top and bottom padding */
    font-size: 25px;
    colour: #053f27;
}

.title-section h2 .highlight {
    color: #f1b118; /* Deep yellow (same as your brand color) */
    font-weight: bold; /* Optional: makes it stand out even more */
}

.about {
    width: 65%;
    margin: 30px auto; /* Center the block itself */
    text-align: left;  /* ⭐ Left-align the text inside */
    font-size: 19px;
    color: #333333;
    line-height: 1.6; /* ⭐ Adds nice breathing room between lines */
}

.services-section {
    text-align: center;
    margin: 50px auto;
    width: 80%;
}

.services-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ⭐ 3 items per row */
    gap: 30px; /* ⭐ space between rows and columns */
    justify-items: center; /* ⭐ center each item inside the grid cell */
}


.services-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    color: #333333;
    text-align: center;
}



.circle {
    width: 50px;
    height: 50px;
    border: 2px solid #053f27; /* Dark green outline */
    border-radius: 50%; /* Make it a perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px; /* Space between icon and text */
}

.service-icon {
    width: 35px; /* Smaller icon inside circle */
    height: 35px;
}

.signs-section {
    text-align: center;
    font-size: 20px;
    color: #333333; /* Charcoal */
    margin: 50px auto;
    width: 80%;
    max-width: 900px;
}

.signs-section h2 {
    font-size: 30px;
    color: #053f27; /* Dark Green for heading */
    margin-bottom: 20px;
}

.signs-section p {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 auto;
}

.pest-signs-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* ⭐ Only 2 boxes per row now */
    gap: 30px;
    width: 90%;
    max-width: 1200px; /* Optional: caps width for better centering */
    margin: 50px auto;
    text-align: left;
}


.pest-box {
    background-color: #D5E3D0;
    padding: 20px;
    border-radius: 10px;
    color: #333333;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pest-box h3 {
    color: #053f27;
    font-size: 22px;
    margin-bottom: 10px;
}

.pest-box p {
    font-size: 18px;
    margin-bottom: 15px;
}

.pest-box ul {
    list-style: disc outside;
    padding-left: 20px;
}

.pest-box ul li {
    margin-bottom: 8px;
    font-size: 15px;
}

.soft-divider {
    border: none;
    border-top: 2px solid #c0c0c0; /* Slightly darker grey */
    margin: 40px auto; /* Space above and below */
    width: 60%; /* Make the line shorter so it's easier to spot */
}

.expect-section {
    text-align: center;
    max-width: 800px; /* ⭐ Matches the more narrow style */
    margin: 50px auto;
    font-size: 20px;
    color: #333333; /* Charcoal */
    padding: 0 20px; /* ⭐ Adds soft breathing room on smaller screens */
}

.expect-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #053f27; /* Your deep green heading */
}

.expect-section p {
    font-size: 20px;
    line-height: 1.6;
    color: #333333;
}

.contact-section {
    position: relative;
    background: url('images/Moth.png') no-repeat center center/cover;
    height: 500px; /* You can adjust this height if needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.contact-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.65); /* ⭐ Light white fade over the image */
    z-index: 1;
}

.contact-overlay {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 700px;
    color: #333333; /* Charcoal */
    font-size: 18px;
}

.contact-overlay h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #053f27; /* Dark green title */
}

.phone-number {
    font-size: 30px; /* ⭐ Much bigger than the rest */
    font-weight: bold;
    color: #053f27; /* Your dark green brand color */
}

.email {
    font-weight: bold;
    color: #053f27; /* Your dark green brand color */
}

.footer {
    background-color: #f5eee2;
    text-align: center;
    padding: 3% 5%;
    color: #a7beae;
    font-size: 14px;
}


.contact-form-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-container h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #053f27;
}

.form-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    text-align: left;
}

.form-field label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #053f27;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #f1b118; /* deep yellow */
    outline: none;
}

.submit-button {
    background-color: #f1b118;
    color: #fff;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

.submit-button:hover {
    background-color: #053f27;
}

.hidden {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* Contact form mobile scaling*/
@media (max-width: 768px) {
    .contact-form-section {
        padding: 40px 15px;
    }

    .contact-form-container h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .form-field label {
        font-size: 1rem;
    }

    .form-field input,
    .form-field textarea {
        font-size: 1rem;
        padding: 10px;
    }

    .submit-button {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }
}

/* Extra-small device scaling */
@media (max-width: 480px) {
    .contact-form-section {
        padding: 30px 10px;
    }
    .contact-form-container h2 {
        font-size: 1.3rem;
    }
    .form-field input,
    .form-field textarea {
        padding: 8px;
        font-size: 0.95rem;
        min-height: 44px; /* Recommended for finger tap accessibility */
    }
    .submit-button {
        font-size: 0.95rem;
        padding: 12px;
        min-height: 44px; /* Keeps button tap-friendly */
    }
}





/* Mobile scaling */
@media screen and (max-width: 768px) {
    .pest-signs-section {
        grid-template-columns: 1fr; /* Stack one box per row */
    }
}



/* Mobile Menu */
.mobile-menu {
    display: none; /* Hide hamburger on desktop */
    cursor: pointer;
    font-size: 20px;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1100;
}

.mobile-nav {
    display: none; /* Hide mobile dropdown by default */
    position: fixed; /* Makes sure it floats above */
    top: 0;
    left: 0;
    width: 100%;
    height: 30vh; /* As you have for small screens */
    background-color: rgba(231, 232, 209, 0.95);
    justify-content: center; /* ⭐ Center items horizontally */
    align-items: center;      /* ⭐ Center items vertically */
    text-align: center;       /* ⭐ Center text */
    z-index: 2000; /* Make sure it sits above hero images */
}

.navbar .menu {
    display: flex; /* ⭐ Keep full menu visible on desktop */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    position: absolute;
    right: 120px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;          /* ⭐ Turn it into a flex container */
    flex-direction: column; /* ⭐ Stack items vertically */
    align-items: center;    /* ⭐ Center items horizontally */
    justify-content: center; /* ⭐ Center items vertically if needed */
    height: 100%;           /* Optional: helps vertical centering */
}

.mobile-nav ul li {
    padding: 10px;
    border-bottom: 1px solid #a7beae;
    text-align: center;
    border-bottom: none; /* Removes the line under each heading */
}

.mobile-nav ul li a {
    text-decoration: none;
    color: #a7beae;
    display: block;
    font-weight: bold; /* Makes the headings bold */
    color: #053f27; /* Darker shade for improved visibility */

}

.mobile-nav ul li a:hover {
    color: #f1b118;
    text-decoration: underline; /* ⭐ Adds beautiful underline on hover for mobile/tablet too */
}

/* Floating Home Button */
.floating-home {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f1b118; /* Deep yellow */
    color: #053f27; /* Dark green for the house icon */
    padding: 15px;
    border-radius: 50%;
    font-size: 24px;
    text-align: center;
    text-decoration: none;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none; /* Hide by default */
    transition: background-color 0.3s ease;
}

.floating-home:hover {
    background-color: #d99a00; /* Slightly darker yellow on hover */
}

/* Mobile & Tablet Only */
@media screen and (max-width: 768px) {
    .floating-home {
        display: block; /* Only show on mobile/tablet */
    }
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* ⭐ Adjust this to match your navbar height */
}


/* Ultra Responsive Adjustments */
@media screen and (max-width: 1024px) {

    .navbar {
        padding: 30px 20px;
    }

    .navbar .menu {
        right: 40px;
    }
}

@media screen and (max-width: 768px) {
    .navbar .menu {
        display: none;
    }

    .logo-container {
        padding: 60px 0 5px 0; /* Top 30px, Right 0px, Bottom 5px, Left 0px */
        min-height: 75px; /* ⭐ Shrink minimum height */
    }

    .logo-container img {
        max-width: 120px;
        height: auto;
    }

    .hero {
        height: 400px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .title-section h2 {
        font-size: 20px;
    }

    .services-section {
        width: 90%;
        margin: 30px auto;
    }

    .services-list li {
        font-size: 18px;
    }

    .services-list {
        grid-template-columns: repeat(2, 1fr); /* ⭐ 2 services per row */
    }

    .about-section p,
    .signs-section p {
        font-size: 18px; /* 📱 Slightly smaller paragraph font on tablets/mobiles */
    }

    .about-section h2,
    .signs-section h2 {
        font-size: 24px; /* 📱 Slightly smaller heading */
    }

    .expect-section {
        width: 90%;
        max-width: 90%;
        padding: 0 10px;
    }

    .expect-section h2 {
        font-size: 26px;
    }

    .expect-section p {
        font-size: 16px;
    }
}


.mobile-nav {
    height: 30vh;
}

@media screen and (max-width: 768px) {
    .mobile-menu {
        display: block; /* Show hamburger on tablet/mobile */
    }
}


@media screen and (max-width: 768px) {
    .contact-overlay {
        font-size: 13px; /* Not too small! */
        padding: 10px;
        line-height: 1.4;
    }

    .contact-overlay h2 {
        font-size: 20px;
        margin-bottom: 20px;
        color: #053f27; /* Dark green title */
    }

    .phone-number {
        font-size: 20px; /* ⭐ Much bigger than the rest */
        font-weight: bold;
        color: #053f27; /* Your dark green brand color */
    }

}




@media screen and (max-width: 480px) {
    .logo-container img {
        max-width: 120px;
    }

    .navbar {
        padding: 20px 10px;
    }

    .mobile-menu {
        font-size: 24px; /* Slightly bigger burger icon for very small screens */
    }

    .services-section h2 {
        font-size: 26px;
    }

    .services-list li {
        font-size: 16px;
    }

    .services-list {
        grid-template-columns: 1fr; /* ⭐ 1 service per row */
    } /* ⭐ <-- This closing bracket was missing! */
}

/* Ultimate polish: Mobile tweak */
@media screen and (max-width: 480px) {
    .footer {
        font-size: 12px;
        padding: 5% 8%;
    }
}

/* Mobile Menu Animation */
.mobile-nav.show {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Social icons container */
.social-links {
    display: flex;
    flex-wrap: wrap;                     /* allows a second line if space is tight */
    gap: clamp(8px, 2.5vw, 14px);        /* responsive spacing */
    align-items: center;
    margin-top: 12px;
}

/* Clickable round buttons with accessible tap size */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 10vw, 56px);      /* meets mobile tap target guidance */
    height: clamp(48px, 10vw, 56px);
    border-radius: 9999px;
    text-decoration: none;
    color: #fff;
    background: #1d3b2a;                 /* APC deep green */
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
    touch-action: manipulation;
}

.social-link:hover { transform: translateY(-1px); }
.social-link:active { transform: translateY(0); }

.social-link:focus-visible {
    outline: 3px solid #f2c300;          /* APC deep yellow focus ring */
    outline-offset: 2px;
}

/* Icon glyph sizing scales with viewport */
.social-link i {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    line-height: 1;
}

/* Center icons in Contact overlay + Footer only */
.contact-overlay .social-links,
.footer .social-links {
    justify-content: center;   /* center the icons horizontally */
}

/* Keep mobile menu icons left-aligned */
.mobile-nav .social-links {
    justify-content: flex-start;
}

