/* --- VARIABLES & RESET --- */
:root {
    /* New Palette: Organic & Premium */
    --primary: #4A6741;
    /* Sage Green */
    --primary-dark: #354f2f;
    --accent: #C2A878;
    /* Muted Gold/Sand */
    --bg-color: #F9F7F2;
    /* Warm Off-White */
    --white: #ffffff;
    --text-dark: #2C3531;
    --text-light: #666;
    --border-radius: 12px;
}

/* --- ACCESSIBILITY & POLISH --- */

/* Removes the blue "flash" when tapping buttons on mobile */
a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* Prevents dragging/highlighting images and icons */
img,
svg {
    user-select: none;
    -webkit-user-select: none;
    /* Safari support */
}

/* Keyboard Navigation Focus 
   (Only shows outline when using Tab key, not mouse click)
   Uses your theme's primary color automatically
*/
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    /* Adapted to match your theme */
    outline-offset: 3px;
    border-radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

.section-padding {
    padding: 100px 0;
}

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(74, 103, 65, 0.2);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 14px 35px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-weight: 700;
    margin-left: 10px;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    font-weight: 400;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links .btn-nav {
    background-color: var(--text-dark);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
}

.nav-links .btn-nav::after {
    display: none;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 6px;
    transition: all 0.3s ease;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.pre-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 450px;
}

.hero-img {
    border-radius: 20px 0 20px 0;
    box-shadow: 20px 20px 0px rgba(74, 103, 65, 0.1);
    object-fit: cover;
    height: 500px;
    width: calc(100% - 20px); 
    margin-right: 20px; 
    margin-bottom: 20px;
}

.custom-shape-divider-bottom-1689 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    pointer-events: none;
}

.custom-shape-divider-bottom-1689 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom-1689 .shape-fill {
    fill: #ffffff;
}

/* --- ABOUT SECTION --- */
#about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    order: -1;
}

.image-stack img {
    border-radius: 300px 300px 20px 20px;
    height: 450px;
    width: 100%;
    object-fit: cover;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 10px;
    position: relative;
}

.subtitle {
    color: var(--primary);
    font-weight: 700;
    font-style: italic;
    margin-bottom: 25px;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- SERVICES SECTION --- */
.bg-sage {
    background-color: var(--primary);
    color: var(--white);
}

.bg-sage h2,
.bg-sage p {
    color: var(--white);
}

.bg-sage .section-desc {
    opacity: 0.8;
    font-size: 1.2rem;
}

.section-header.center {
    text-align: center;
    margin-bottom: 60px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: 8px;
    transition: transform 0.3s, background 0.3s;
}


.number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 10px;
    color: var(--white);
}

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

.service-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.link-arrow {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
}

/* --- FOOTER / CONTACT --- */
#contact {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 80px 25px 0px 25px;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #3a4440;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    padding: 0;
}

.footer-contact {
    padding: 60px;
}

.footer-contact h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-details {
    margin: 30px 0;
}

.detail {
    margin-bottom: 20px;
}

.detail strong {
    color: var(--accent);
    display: block;
    margin-bottom: 5px;
}

.btn-footer {
    background-color: var(--white);
    color: var(--text-dark);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    display: block;
}

.bottom-bar {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #888;
}

/* ------------------------------------------- */
/* --- MOBILE RESPONSIVENESS (Adjustments) --- */
/* ------------------------------------------- */

/* Target the zone between mobile (960px) and wide desktop */
@media screen and (min-width: 961px) and (max-width: 1100px) {
    
    /* Reduce side padding from 35px to 20px to save horizontal space */
    .btn-primary, 
    .btn-secondary {
        padding: 14px 20px; 
    }
    
    /* Optional: Scale down the H1 slightly so it matches the tighter layout */
    .hero h1 {
        font-size: 3.5rem; 
    }
}

/* Tablets and Small Laptops */
@media screen and (max-width: 960px) {
    .section-padding {
        padding: 80px 0;
    }

    /* Stack Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-image-wrapper {
        order: -1;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    /* Stack About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
    }

    .image-stack img {
        height: 400px;
    }

    /* Stack Footer */
    .footer-layout {
        grid-template-columns: 1fr;
    }

    /* Force height on map when stacked so it doesn't disappear or look huge */
    .footer-map iframe {
        height: 350px;
        min-height: 350px;
    }
}

/* Phones */
@media screen and (max-width: 768px) {

    /* Navbar Mobile Logic */
    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: #F9F7F2;
        /* Solid background so text doesn't overlap */
        flex-direction: column;
        justify-content: center;
        width: 75%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
        z-index: 999;
    }

    .nav-links li {
        margin: 25px 0;
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    .nav-active {
        transform: translateX(0%);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hero Text Adjustments */
    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Smaller font for phones */
    }

    .hero-img {
        height: 300px;
        /* Shorter image for phones */
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        padding: 12px 25px;
        /* Slightly smaller buttons */
        font-size: 0.9rem;
    }

    /* Buttons stack on very small screens */
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    /* About Adjustments */
    .section-title {
        font-size: 2.2rem;
    }

    .image-stack img {
        height: 300px;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Footer Adjustments */
    .footer-contact {
        padding: 40px 25px;
        /* Reduce padding */
    }

    .footer-contact h2 {
        font-size: 1.8rem;
    }

    .footer-map iframe {
        height: 250px;
        min-height: 250px;
    }
}

/* --- HOVER EFFECTS (Desktop Only) --- */
@media (hover: hover) and (pointer: fine) {

    .btn-primary:hover {
        background-color: var(--primary-dark);
        transform: translateY(-2px);
    }

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

    .nav-links a:hover::after {
        width: 100%;
    }

    .nav-links .btn-nav:hover {
        background-color: var(--accent);
    }

    .service-card:hover {
        background: var(--white);
        transform: translateY(-10px);
    }

    /* Keep text color changes specific to hover */
    .service-card:hover h3,
    .service-card:hover p,
    .service-card:hover .number {
        color: var(--text-dark);
    }

    .btn-footer:hover {
        background-color: var(--accent);
        color: var(--white);
    }
}

/* --- LEGAL / COOKIES SECTION --- */
.legal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.legal-separator {
    color: #888;
    opacity: 0.5;
}

.legal-link {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Hover effect for desktop */
@media (hover: hover) {
    .legal-link:hover {
        color: var(--white);
        /* Brightens to white on hover */
        text-decoration: underline;
    }
}

/* Mobile Responsiveness: Stack vertically */
@media screen and (max-width: 768px) {
    .legal-content {
        flex-direction: column;
        gap: 5px;
    }

    .legal-separator {
        display: none;
        /* Hide separator on mobile */
    }
}