/* ========== Root / Base ========== */
:root { --header-offset: 120px; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { height: 100%; }

body {
    text-decoration: none;
    font-family: 'Noto Serif SC', serif;
    margin: 0;
    background-color: #f6fbe9;
    color: #333;
    display: flex; flex-direction: column; min-height: 100vh;
}

section:nth-of-type(even){ background:#f9f9f9; }

main{
    padding-top: calc(var(--header-offset) + env(safe-area-inset-top, 0px));
    scroll-padding-top: calc(var(--header-offset) + 12px);
}

/* ========== Breadcrumbs ========== */
.breadcrumb-container{
    font-size:.9em; background-color: rgba(60,141,97,.1);
    padding:5px 20px; border-radius:4px;
}
.breadcrumb{ margin:0; padding:0; list-style:none; display:flex; gap:5px; }
.breadcrumb-item{ color:#3c8d61; text-decoration:none; }
.breadcrumb-item:hover{ text-decoration:underline; }
.breadcrumb::before{ content:"/"; margin:0 5px; color:#888; }
.breadcrumb:first-child::before{ content:""; }

/* ========== Contact Bar ========== */
.contact-bar{
    position:fixed; top:0; left:0; width:100%; z-index:1001;
    background:#f0f8f0; padding:5px 20px; font-size:.9em; text-align:center;
}
.contact-container span{ margin:0 10px; }

/* ========== Misc visuals ========== */
.tree-img{ width:100%; height:auto; display:block; }
.tree{ text-align:center; }

/* ========== Hero ========== */
.hero{
    background: rgba(92,122,87,.9) url('../img/landing.jpg') no-repeat fixed center / cover;
    background-blend-mode:multiply; padding:250px 20px; text-align:center;
}
.hero.dashboard-hero{ padding:155px 20px; }
.hero h2{ font-size:3rem; line-height:1.1; margin:0 0 10px; color: #fff}
.hero p{ font-size:1.2em; margin-bottom:20px; color: #fff}
.btn{
    background:#a8d5ba; padding:10px 20px; border-radius:5px; color:#2f4f2f;
    text-decoration:none; font-weight:bold; margin-top:10px;
}
.btn:hover{ background:#8ccfa3; }

/* ========== Services grid ========== */
.services{ background:#f5fff5; text-align:center; width:auto; padding:50px 20px; }
.services h2{ font-family:'Noto Serif SC', serif; color:#2f6b3d; margin-bottom:30px; font-size:2em; }

.services-grid{
    display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap:50px; max-width:1000px; margin:0 auto;
}
.service-card{
    background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.1);
    transition:transform .2s ease; min-height:20px; display:flex; flex-direction:column; justify-content:center;
}
.service-card img{
    width:calc(100% - 30px); height:180px; object-fit:cover; margin:15px 15px 0; border-radius:8px;
}
.service-card h3{ margin:15px 0 10px; color:#3c8d61; font-size:1.2em; }
.service-card p{ padding:0 15px 20px; font-size:.95em; color:#555; }
.service-card:hover{ transform:translateY(-5px); }
.services-grid a{ text-decoration:none; color:inherit; display:block; }
.services-grid a:hover{ text-decoration:none; }

/* ========== FAQs / Testimonials / Contact ========== */
.faqs{ background:rgba(227,244,227,.65); padding:60px 20px; text-align:center; }
.testimonials{ background:#e3f4e3; padding:60px 20px; text-align:center; }
.testimonials blockquote{ max-width:600px; margin:0 auto 20px; font-style:italic; }
.contact{ padding:60px 20px; text-align:center; }
.contact p{ margin:8px 0; font-size:1.1em; }

/* ========== Footer ========== */
.site-footer{
    --footer-bg-1:#2f6b3d; --footer-bg-2:#3c8d61; --footer-accent:#a8d5ba;
    --footer-text:#fff; --footer-muted:rgba(255,255,255,.85);
    background: linear-gradient(135deg, var(--footer-bg-1), var(--footer-bg-2));
    color:var(--footer-text); position:relative; isolation:isolate;
    font-size: clamp(14px, 1.4vw, 16px);
}
.site-footer .footer-inner{ max-width:1100px; margin:0 auto; padding:40px 20px 25px; }

.footer-grid{
    display:grid; grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "brand brand brand" "contact hours links";
    gap: clamp(20px, 5vw, 50px); align-items:start;
}
.footer-brand{ grid-area:brand; }
.footer-contact{ grid-area:contact; }
.footer-hours{ grid-area:hours; }
.footer-links{ grid-area:links; }

.footer-col h4, .footer-col h5{
    margin:0 0 12px; font-weight:700; color:#fff; font-size:clamp(1.05rem, 2vw, 1.25rem);
}
.footer-brand h4{ font-size:clamp(1.25rem, 2.2vw, 1.45rem); line-height:1.4; }

.footer-col address{
    margin:0; font-style:normal; color:var(--footer-muted);
    display:flex; gap:10px; line-height:1.6;
}

.footer-list{ list-style:none; margin:0; padding:0; }
.footer-list li{ display:flex; gap:10px; margin:6px 0; color:var(--footer-muted); font-size:.95em; }
.footer-list i{ color:var(--footer-accent); font-size:1rem; }

.site-footer a{
    color:var(--footer-text); text-decoration:none; border-bottom:1px solid transparent;
    transition:border-color .2s ease, color .2s ease, opacity .2s ease;
}
.site-footer a:hover{ color:#fff; border-bottom-color:var(--footer-accent); opacity:.95; }

/* Opening hours */
.footer-hours .footer-hours-list{
    list-style:none;
    margin:0;
    padding:0;
    display:block;            /* was inline-block; */
    text-align:left;
}

.footer-hours .footer-hours-list li{
    display:grid;
    grid-template-columns: auto 1fr;  /* day | time */
    align-items: baseline;
    gap: 6px 12px;
    padding: 4px 0;
    font-size: 0.95em;
}

.footer-hours .footer-hours-list li span:first-child{ font-weight:500; }
.footer-hours .footer-hours-list time{ font-variant-numeric: tabular-nums; }

/* Only stack on very narrow screens */
@media (max-width: 480px){
    .footer-hours .footer-hours-list li{
        grid-template-columns: 1fr;  /* stack day above time */
        row-gap: 2px;
        text-align:left;             /* keep left, not centered */
    }
    .footer-hours .footer-hours-list time{
        justify-self:start;
    }
}


/* Footer text */
.footer-disclaimer{
    margin:30px 0 0; padding-top:16px; border-top:1px solid rgba(255,255,255,.15);
    color:var(--footer-muted); font-size:clamp(.9rem,1.4vw,1rem); line-height:1.6; text-align:center;
    max-width:900px; margin-inline:auto;
}
.footer-bottom{ margin-top:12px; padding-top:10px; border-top:1px dashed rgba(255,255,255,.18); text-align:center; }
.footer-bottom p{ margin:0; font-size:clamp(.85rem,1.3vw,.95rem); color:rgba(255,255,255,.9); }

/* Footer responsive (kept left-aligned) */
@media (max-width:900px){
    .footer-grid{
        grid-template-columns:1fr 1fr;
        grid-template-areas: "brand brand" "contact hours" "links links";
        text-align:left;
    }
}
@media (max-width:640px){
    .footer-grid{
        grid-template-columns:1fr;
        grid-template-areas:"brand" "contact" "hours" "links";
        gap:18px; text-align:left;
    }
    .footer-col h4, .footer-col h5, .footer-brand h4{ font-size:1.1rem; }
    .footer-list li, .footer-hours .footer-hours-list li, .footer-disclaimer, .footer-bottom p{ font-size:.95rem; }
    .footer-hours .footer-hours-list li{ flex-direction:column; align-items:center; text-align:center; }
    .footer-disclaimer{ font-size:.92rem; max-width:100%; padding-inline:12px; }
}

/* ========== NAVBAR (cleaned) ========== */
.navbar{
    position:fixed; top:30px; left:0; right:0; z-index:1000;
    background:#fff; box-shadow:0 2px 5px rgba(0,0,0,.1); padding:10px 0;
}
.navbar::after{
    content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
    background:linear-gradient(90deg,#e7aa51 0%,#ffe499 25%,#d5ad54 50%,#e7aa51 75%,#ffe4c5 100%);
    box-shadow:0 1px 4px rgba(0,0,0,.15); pointer-events:none; transition:opacity .2s ease;
}
.navbar.menu-open::after{ opacity:0; }

.navbar-container{
    display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center;
    padding:0 20px; max-width:1600px; margin:0 auto; position:relative;
}
.navbar .logo img{ height:72px; width:auto; }

/* desktop links */
.nav-links{ list-style:none; display:flex; gap:25px; margin:0; padding:0; }
.nav-links li a{ text-decoration:none; color:#333; font-weight:500; transition:color .2s; }
.nav-links li a:hover{ color:#007BFF; }

/* dropdown shared */
.navbar .dropdown{ position:relative; }
.navbar .dropdown-toggle{
    background:none; border:0; font:inherit; color:inherit;
    display:inline-flex; align-items:center; gap:6px; cursor:pointer;
}
.navbar .dropdown-toggle:hover,
.navbar .dropdown-toggle:focus{ color:#007BFF; outline:none; }
.navbar .dropdown-toggle:focus-visible{ outline:3px solid #8ccfa3; outline-offset:2px; }
.navbar .nav-caret{ font-size:.7em; color:#9aa0a6; transition:transform .2s ease; }

/* desktop dropdown */
.navbar .dropdown-menu{
    position:absolute; top:100%; left:0; min-width:180px;
    margin:0; padding:10px; list-style:none; background:#fff; border-radius:8px;
    box-shadow:0 8px 24px rgba(0,0,0,.12); opacity:0; visibility:hidden; transform:translateY(8px);
    transition:opacity .2s, transform .2s, visibility .2s; z-index:999;
}
@media (min-width:769px){
    .nav-toggle{ display:none; }
    .navbar .dropdown:hover > .dropdown-menu{ opacity:1; visibility:visible; transform:translateY(0); }
}

/* hamburger */
.nav-toggle{ display:none; background:transparent; border:0; padding:6px; font-size:1.9rem; line-height:1; cursor:pointer; }
.nav-toggle:focus-visible{ outline:3px solid #8ccfa3; outline-offset:2px; }

/* mobile panel */
@media (max-width:768px){
    .nav-toggle{ display:inline-block; }

    .nav-links{
        position:absolute; top:100%; left:0; right:0;
        flex-direction:column; gap:0; background:#fff;
        border-top:1px solid #e9ecef; box-shadow:0 10px 28px rgba(0,0,0,.12);
        display:none; padding:6px 0; border-radius:0 0 12px 12px;
    }
    .nav-links.is-open{ display:flex; }

    .nav-links > li{ border-bottom:1px solid rgba(0,0,0,.06); }
    .nav-links > li:last-child{ border-bottom:none; }

    .nav-links > li > a,
    .navbar .dropdown > .dropdown-toggle{
        display:flex; align-items:center; justify-content:space-between;
        min-height:42px; padding:6px 20px; line-height:1.25; font-weight:500; color:#333;
    }
    .navbar .nav-caret{ margin-top:1px; }

    /* in-flow submenus (no overlay) */
    .navbar .dropdown, .navbar .dropdown-menu{ position:static; z-index:auto; }
    .navbar .dropdown-menu{
        display:none; background:#fff; box-shadow:none; transform:none; opacity:1; visibility:visible;
        border-left:2px solid #e9ecef; margin:0 0 8px 20px; padding:4px 0 4px 10px;
    }
    .navbar .dropdown.open > .dropdown-menu{ display:block; }
    .navbar .dropdown.open .nav-caret{ transform:rotate(180deg); }
    .nav-links > li.dropdown.open{ border-bottom:0; } /* removes the 'gap' */

    .navbar .dropdown-menu li a{
        display:block; min-height:36px; padding:6px 4px; color:#333;
        border-bottom:1px dashed rgba(0,0,0,.06);
    }
    .navbar .dropdown-menu li:last-child a{ border-bottom:none; }

    .nav-links > li > a:hover,
    .navbar .dropdown-menu li a:hover{ background:rgba(0,0,0,.03); }

    /* language row */
    .nav-links .lang-switch{
        display:flex; align-items:center; gap:6px; padding:8px 20px; min-height:42px; position:relative; z-index:1;
    }
    .lang-switch .lang-option{ display:inline-block; padding:3px 10px; border-radius:5px; font-weight:600; }
    .lang-switch .lang-option.active{ background:#007BFF; color:#fff; }
}

/* Mobile menu: give it its own scroll context */
@media (max-width: 768px){
    .nav-links{
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        background: #fff;
        border-top: 1px solid #e9ecef;
        box-shadow: 0 10px 28px rgba(0,0,0,.12);
        display: none;
        padding: 6px 0;
    }

    .nav-toggle{ display: inline-flex !important; }

    /* When open, cap height and allow scrolling inside the panel */
    .nav-links.is-open{
        display: flex;
        max-height: calc(100vh - var(--header-offset) - 8px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;         /* smooth iOS scroll */
        border-radius: 0 0 12px 12px;
    }

    /* optional: nice thin scrollbar */
    .nav-links.is-open::-webkit-scrollbar{ width: 8px; }
    .nav-links.is-open::-webkit-scrollbar-thumb{
        background: rgba(0,0,0,.15); border-radius: 8px;
    }
}


/* ========== Messages ========== */
.message{
    border-radius:10px; padding:15px 20px; font-size:.80rem; font-weight:600;
    box-shadow:0 4px 8px rgba(0,0,0,.1); margin:20px auto; max-width:700px; text-align:center; cursor:pointer;
    animation: flashPopIn .5s ease, flashFadeOut .5s ease 2s forwards;
}
.message.success{ background:#d1e7dd; color:#0f5132; border:2px solid #badbcc; }
.message.error{ background:#f8d7da; color:#842029; border:2px solid #f5c2c7; }
@keyframes flashPopIn{ from{ transform:scale(.95); opacity:0; } to{ transform:scale(1); opacity:1; } }
@keyframes flashFadeOut{ from{ opacity:1; } to{ opacity:0; transform:translateY(-10px); } }

/* ========== Accordion (single copy) ========== */
*, *::before, *::after{ box-sizing:border-box; }

.accordion{
    display:grid; grid-template-columns:220px 1fr auto; align-items:center;
    gap:clamp(12px,3vw,28px); width:min(1100px, 100% - 32px); margin:16px auto 0;
    padding:clamp(12px,2.5vw,18px); background:#f6fbe9; border:1px solid #c8e6c9; border-radius:12px;
    cursor:pointer; transition:background .3s, box-shadow .3s; box-shadow:0 2px 6px rgba(0,0,0,.05);
}
.accordion:hover{ background:#f0f8f0; box-shadow:0 3px 8px rgba(0,0,0,.08); }
.accordion img{ width:100%; height:clamp(120px,18vw,160px); object-fit:cover; border-radius:10px; }
.accordion-content{ margin:0; }
.accordion-content h3{ margin:0 0 8px; color:#2f4f2f; font-size:clamp(1.1rem,1.8vw,1.4rem); font-weight:700; }
.accordion-content p{ margin:0; font-size:clamp(.95rem,1.6vw,1rem); color:#555; line-height:1.55; }
.accordion::after{ content:"⮟"; font-size:1.3rem; color:#3c8d61; transition:transform .3s; }
.accordion.active::after{ transform:rotate(180deg); }
.accordion.active{ border-bottom:none; border-bottom-left-radius:0; border-bottom-right-radius:0; }

.panel{
    display:none; width:min(1100px, 100% - 32px); margin:0 auto 22px;
    padding:clamp(16px,4vw,32px); background:#fff; border:1px solid #c8e6c9; border-top:none;
    border-radius:0 0 12px 12px; box-shadow:0 6px 14px rgba(0,0,0,.08); text-align:left;
    font-size:1rem; line-height:1.7; color:#2f4f2f; animation: slideDown .35s ease;
}
.accordion.active + .panel{ display:block; }
.panel::before{ content:""; display:block; width:60px; height:4px; background:#3c8d61; border-radius:2px; margin-bottom:15px; }

@keyframes slideDown{ from{ opacity:0; transform:translateY(-10px); } to{ opacity:1; transform:translateY(0); } }
@media (max-width:720px){
    .accordion{ grid-template-columns:1fr auto; grid-template-rows:auto auto; align-items:start; }
    .accordion img{ grid-column:1 / -1; height:clamp(160px,45vw,240px); }
    .accordion::after{ align-self:start; margin-top:4px; }
}
.accordion:focus-visible{ outline:3px solid #8ccfa3; outline-offset:2px; }
@media (prefers-reduced-motion: reduce){
    .accordion, .accordion::after, .panel{ transition:none !important; animation:none !important; }
}

/* ========== Enquiry page ========== */
.faqs{ background:#e8f5e9; padding:50px 20px; max-width:1100px; margin:30px auto; border-radius:12px; }
.faqs h2{ text-align:center; margin-bottom:24px; color:#2f6b3d; font-size:1.8rem; }
.faq{ margin-bottom:12px; border:1px solid #c8e6c9; border-radius:8px; overflow:hidden; }
.faq-question{
    width:100%; text-align:left; background:#f6fbf6; border:none; padding:15px;
    font-size:1rem; font-weight:600; color:#2f4f2f; cursor:pointer; transition:background .3s;
}
.faq-question:hover{ background:#dff0df; }
.faq-answer{ display:none; padding:15px; background:#fff; color:#555; font-size:.95rem; line-height:1.5; }

/* ========== Section heroes ========== */
.introduction{
    background: rgba(0,0,0,.5) url('../img/profile.jpg') no-repeat fixed center / cover;
    background-blend-mode:multiply; color:#fff; text-align:center; padding:75px 20px 100px;
}
.about-hero,
.services-hero,
.conditions-hero {
    background: rgba(92,122,87,.9) no-repeat fixed center / cover;
    background-blend-mode: multiply;
    padding: 100px 20px;
    text-align: center;
    color: #fff;                 /* make all text white */
}

.about-hero { background-image: url('../img/about.jpeg'); }
.services-hero { background-image: url('../img/services.jpg'); }
.conditions-hero { background-image: url('../img/conditions.png'); }

/* ========== Conditions grid ========== */
.conditions{ background-color:#115011; text-align:center; width:auto; padding:50px 20px; }
.conditions h2{ font-family:'Noto Serif SC', serif; color:#2f6b3d; margin-bottom:30px; font-size:2em; }

.conditions-grid{
    display:grid; grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
    gap:50px; max-width:1000px; margin:0 auto;
}
.condition-card{
    background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.1);
    transition:transform .2s ease; min-height:20px; display:flex; flex-direction:column; justify-content:center;
}
.condition-card img{
    width:calc(100% - 30px); height:180px; object-fit:cover; margin:15px 15px 0; border-radius:8px;
}
.condition-card h3{ margin:15px 0 10px; color:#3c8d61; font-size:1.2em; }
.condition-card p{ padding:0 15px 20px; font-size:.95em; color:#555; }
.condition-card:hover{ transform:translateY(-5px); }
.conditions-grid a{ text-decoration:none; color:inherit; display:block; }
.conditions-grid a:hover{ text-decoration:none; }

/* ========== Tables / Lists (admin pages) ========== */
.enquiry-list-wrapper{
    max-width:1100px; margin:40px auto; background:#fff; border:1px solid #c8e6c9;
    border-radius:12px; padding:24px; box-shadow:0 4px 12px rgba(0,0,0,.05);
}
.enquiry-list-wrapper h1{ color:#2f6f4e; margin-bottom:20px; font-size:1.8rem; text-align:center; }
.table{ width:100%; border-collapse:collapse; margin-bottom:16px; }
.table th, .table td{ padding:12px 16px; border-bottom:1px solid #e0e0e0; text-align:left; }
.table th{ background:#f6fbf6; color:#2f6f4e; font-weight:bold; }
.table tr:hover{ background:#f9fcf9; }
.actions a{ margin-right:8px; text-decoration:none; font-weight:600; color:#2f6f4e; }
.actions a:hover{ text-decoration:underline; }
.pagination{
    list-style:none; display:flex; justify-content:center; gap:8px; margin-top:16px;
}
.pagination li{ display:inline-block; }
.pagination a, .pagination span{
    padding:8px 12px; border-radius:6px; border:1px solid #c8e6c9; color:#2f6f4e; text-decoration:none;
}
.pagination a:first-child{ border-top-left-radius:5px; border-bottom-left-radius:5px; }
.pagination a:last-child{ border-top-right-radius:5px; border-bottom-right-radius:5px; }
.small-text{ font-size:.8em; text-align:center; }

