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

html {
    overflow-x: hidden;
}

:root {
    /* Brand colours */
    --primary-blue: #36669e;
    --secondary-blue: #47a3a2; /* same value as --accent-teal (theme vars) */
    --light-blue: #7ab8d4;
    --accent-yellow: #f2d922;
    --earth-blue: #1e3d6b;
    --white: #ffffff;
    --text-dark: #1b1b1b;
    --text-light: #545250;
    --border-light: #e8e6dc;
    --color-forest: #2D5A27;
    --section-padding: 96px;
    --section-padding-mobile: 56px;
    --content-width: 1100px;
    --content-narrow: 740px;
    --gap-card: 32px;
    --gap-heading-body: 20px;
    --gap-body-cta: 32px;
}

/* Theme-specific colors - Light mode (default) */
[data-theme="light"],
:root:not([data-theme]) {
    --bg-primary: #f5f3ef;
    --bg-secondary: #faf9f5;
    --text-primary: #1A1A18;
    --text-secondary: #4d4d4a;
    --text-muted: rgba(28, 31, 26, 0.65);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(28, 31, 26, 0.12);
    --card-hover-border: rgba(71, 163, 162, 0.45);
    --accent-green: rgba(59, 139, 117, 0.9);
    --accent-teal: #47a3a2;
}

/* Dark mode */
[data-theme="dark"] {
    --bg-primary: #252922;
    --bg-secondary: #1c1f1a;
    --text-primary: #c8c5be;
    --text-secondary: rgba(200, 197, 190, 0.85);
    --text-muted: rgba(200, 197, 190, 0.65);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(71, 163, 162, 0.35);
    --accent-green: rgba(59, 139, 117, 0.9);
    --accent-teal: #47a3a2;
}

body {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.78;
    background-color: var(--bg-primary);
    padding-top: 72px;
    background-image: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.05rem, 2vw, 1.375rem); font-weight: 600; line-height: 1.3; }

.label {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-forest);
    font-family: 'Poppins', Arial, sans-serif;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 144px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover {
    transform: scale(1.08);
    border-color: var(--card-hover-border);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    fill: var(--text-primary);
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(20deg);
}

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

/* Navigation */
.navbar {
    background: var(--bg-secondary);
    box-shadow: 0 2px 28px rgba(28, 31, 26, 0.09);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(59, 139, 117, 0.15);
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-brand img {
    height: 44px;
    width: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.nav-brand img:hover {
    transform: scale(1.08);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--secondary-blue);
}

.nav-cta {
    background: rgba(59, 139, 117, 0.85);
    color: #f0ede6 !important;
    padding: 9px 18px;
    border-radius: 5px;
    font-size: 12px !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: rgba(59, 139, 117, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 139, 117, 0.4);
}

/* --- Nav hero-transparency (added by JS when .hero is on page) --- */
.navbar.hero-nav {
    background: linear-gradient(to bottom, rgba(8, 20, 14, 0.72) 0%, transparent 100%);
    box-shadow: none;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: background 0.5s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.navbar.hero-nav .nav-menu a {
    color: rgba(255, 255, 255, 0.92);
}

.navbar.hero-nav .nav-menu a::after {
    background: var(--accent-yellow);
}

.navbar.hero-nav .nav-menu a:hover,
.navbar.hero-nav .nav-menu a.active {
    color: var(--accent-yellow) !important;
}

.navbar.hero-nav .nav-brand img {
    filter: none;
}

.navbar.hero-nav .nav-cta {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.navbar.hero-nav .nav-cta:hover {
    background: rgba(59, 139, 117, 1) !important;
    color: #f0ede6 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.navbar.hero-nav .nav-plan-cta {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    box-shadow: none;
}

.navbar.hero-nav .nav-plan-cta:hover {
    background: var(--accent-yellow) !important;
    color: var(--text-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.navbar.hero-nav.scrolled {
    background: var(--bg-secondary);
    box-shadow: 0 2px 28px rgba(28, 31, 26, 0.09);
    border-bottom-color: rgba(59, 139, 117, 0.15);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.navbar.hero-nav.scrolled .nav-menu a {
    color: var(--text-primary);
}

.navbar.hero-nav.scrolled .nav-menu a::after {
    background: var(--accent-yellow);
}

.navbar.hero-nav.scrolled .nav-menu a:hover,
.navbar.hero-nav.scrolled .nav-menu a.active {
    color: var(--accent-yellow) !important;
}

/* Content area (scrolled past parallax) — light mode: darken to near-black */
.navbar.hero-nav.scrolled .nav-brand img {
    filter: brightness(0) saturate(100%);
}
[data-theme="dark"] .navbar.hero-nav.scrolled .nav-brand img {
    filter: brightness(0) invert(0.9);
}

.navbar.hero-nav.scrolled .nav-cta {
    background: rgba(59, 139, 117, 0.9) !important;
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 139, 117, 0.3);
}

.navbar.hero-nav.scrolled .nav-plan-cta {
    background: var(--color-forest) !important;
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

/* --- Improved nav proportions --- */
.navbar .container {
    height: 72px;
}

body {
    padding-top: 72px;
}

/* Hero Section with Waterfall Animation */
.hero {
    color: var(--white);
    padding: 90px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Background Slideshow */
.hero-background-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-bg.active {
    opacity: 1;
    z-index: 1;
}

/* hero-bg-1..4 removed � index.html now uses inline background-image on .hero-bg */

/* --- Hero height variants --- */
/* Service pages: slightly shorter than full viewport */
.hero--service {
    min-height: 88vh;
}

/* Project / case-study pages: cinematic but not full-screen */
.hero--project {
    min-height: 74vh;
    padding-top: 100px;
    padding-bottom: 70px;
}

.hero--project .hero-content {
    max-width: 700px;
}

.hero--project .hero-content h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

/* Waterfall Animation Effect */
.waterfall-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.water-drop {
    position: absolute;
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.6), transparent);
    opacity: 0;
    border-radius: 50%;
}

.water-drop:nth-child(1) {
    left: 15%;
    animation: dropFall 4s linear infinite;
}

.water-drop:nth-child(2) {
    left: 35%;
    animation: dropFall 3.5s linear infinite 0.5s;
}

.water-drop:nth-child(3) {
    left: 55%;
    animation: dropFall 4.2s linear infinite 1s;
}

.water-drop:nth-child(4) {
    left: 75%;
    animation: dropFall 3.8s linear infinite 1.5s;
}

.water-drop:nth-child(5) {
    left: 90%;
    animation: dropFall 4.5s linear infinite 2s;
}

@keyframes dropFall {
    0% {
        top: -50px;
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes waterfallFlow {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 20px;
    }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.floating-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: float 8s ease-in-out infinite;
}

.floating-particles span:nth-child(1) {
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.floating-particles span:nth-child(2) {
    left: 30%;
    animation-duration: 10s;
    animation-delay: 2s;
}

.floating-particles span:nth-child(3) {
    left: 50%;
    animation-duration: 12s;
    animation-delay: 4s;
}

.floating-particles span:nth-child(4) {
    left: 70%;
    animation-duration: 9s;
    animation-delay: 1s;
}

.floating-particles span:nth-child(5) {
    left: 85%;
    animation-duration: 11s;
    animation-delay: 3s;
}

.floating-particles span:nth-child(6) {
    left: 25%;
    animation-duration: 13s;
    animation-delay: 5s;
}

@keyframes float {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0) scale(1);
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateX(20px) scale(1.2);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(-20px) scale(0.8);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="rgba(255,255,255,0.15)"></path></svg>') repeat-x;
    opacity: 0.6;
    animation: waveMotion 15s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes waveMotion {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-50px);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 850px;
    margin: 0 auto;
}

/* Hero Text Slides removed � static heroes use .hero-content directly */

.hero-service-label {
    display: inline-block;
    background: var(--accent-yellow);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 0.4rem 1.4rem;
    border-radius: 50px;
    margin-bottom: 1.4rem;
    font-family: 'Poppins', Arial, sans-serif;
}

/* Hero indicators removed � static heroes have no dots */

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeIn 1.2s ease-out;
}

.hero-logo img {
    height: 120px;
    width: auto;
    filter: drop-shadow(3px 3px 10px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

.hero-logo img:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.98;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1.1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: rgba(59, 139, 117, 0.9);
    color: #f0ede6;
    box-shadow: 0 4px 18px rgba(59, 139, 117, 0.3);
    font-weight: 700;
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: rgba(59, 139, 117, 1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(59, 139, 117, 0.45);
}

.btn-secondary {
    background: transparent;
    color: rgba(59, 139, 117, 0.9);
    border: 2px solid rgba(59, 139, 117, 0.6);
}

.btn-secondary:hover {
    background: rgba(59, 139, 117, 0.12);
    border-color: rgba(59, 139, 117, 0.9);
    color: #f0ede6;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: var(--section-padding) 20px;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(59, 139, 117, 0.7), transparent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-style: italic;
}

/* Services Grid */
.services {
    background: #252922;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.8rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-yellow));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 139, 117, 0.45);
    box-shadow: none;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--secondary-blue);
    transition: all 0.4s ease;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: rgba(59, 139, 117, 0.8);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon svg {
    stroke: #f0ede6;
}

.service-card h3 {
    color: var(--accent-teal);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.service-link {
    color: rgba(59, 139, 117, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.service-link::after {
    content: ' ';
    display: inline-block;
    width: 0;
    height: 2px;
    background: rgba(59, 139, 117, 0.9);
    transition: width 0.3s ease;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.service-link:hover {
    color: #f0ede6;
}

.service-link:hover::after {
    width: 100%;
}

/* Projects Grid */
.projects {
    position: relative;
    background: var(--bg-primary);
}

.projects::before {
    display: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.project-card {
    background: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--card-border);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-hover-border);
    box-shadow: none;
}

.project-image {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.1) 100%);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: var(--accent-green);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.project-link {
    color: rgba(59, 139, 117, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #f0ede6;
}

.project-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(59, 139, 117, 0.9);
    background: rgba(59, 139, 117, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

/* About Section */
.about {
    background: var(--bg-primary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.about-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    /* animation removed � animations restricted to hero banner only */
}

.contact .section-title,
.contact .section-subtitle {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.contact .section-title::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3.5rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
}

.contact-info p {
    margin-bottom: 0.6rem;
    opacity: 0.95;
}

.contact-item {
    font-size: 1.1rem;
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.9;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    font-family: 'Lora', Georgia, serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.95);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    position: relative;
    z-index: 3;
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 3.5rem 20px 1.5rem;
    border-top: 4px solid var(--primary-blue);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: none;
}

.footer-about p {
    opacity: 0.75;
    line-height: 1.7;
    margin-top: 0.5rem;
}

.footer h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a,
.footer-contact p {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.95rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.footer-contact-item a {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--primary-blue);
}

.footer-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px) scale(1.1);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    opacity: 0.65;
    font-size: 0.9rem;
}

/* ===== Projects page � tier headings ===== */
.projects-tier {
    margin-bottom: 4rem;
}

.projects-tier-heading {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(59, 139, 117, 0.7);
    border-bottom: 1px solid rgba(59, 139, 117, 0.18);
    padding-bottom: 0.7rem;
    margin-bottom: 2rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
    color: white;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Scroll-to-top button */
.scroll-top {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(59, 139, 117, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 139, 117, 0.3);
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(54, 102, 158, 0.4);
}

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

/* Blog Teaser Section */
.blog-teaser {
    background: var(--bg-primary);
    padding: var(--section-padding) 20px;
}

.blog-teaser-header {
    margin-bottom: 3.5rem;
}

.blog-teaser-header .label {
    color: rgba(59, 139, 117, 0.9);
    letter-spacing: 0.14em;
    display: block;
    margin-bottom: 0.75rem;
}

.blog-teaser-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.blog-teaser-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.75;
    margin: 0;
}

.blog-teaser-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}

.blog-teaser-card {
    text-decoration: none;
    border-radius: 6px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    display: block;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.blog-teaser-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 139, 117, 0.45);
    box-shadow: none;
}

.blog-teaser-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0s; /* container: no transform — inner pseudo handles */
}

.blog-teaser-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: inherit;
    background-image: inherit;
    transition: transform 0.55s ease;
    z-index: 0;
}

.blog-teaser-card:hover .blog-teaser-image {
    transform: none;
}

/* Zoom the background on hover via a wrapping trick — use scale on the element itself */
.blog-teaser-image {
    transition: transform 0.55s ease;
}

.blog-teaser-card:hover .blog-teaser-image {
    transform: scale(1.04);
}

/* Bottom vignette — embeds image into card */
.blog-teaser-image::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -60px 40px rgba(37, 41, 34, 0.55);
    pointer-events: none;
    z-index: 1;
}

/* Featured first card — full editorial width, image-left layout */
.blog-teaser-card:first-child {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
}

.blog-teaser-card:first-child .blog-teaser-image {
    width: 56%;
    height: auto;
    min-height: 360px;
    flex-shrink: 0;
}

.blog-teaser-card:first-child .blog-teaser-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 3.2rem;
}

.blog-teaser-card:first-child .blog-teaser-body h3 {
    font-size: 1.5rem;
    line-height: 1.28;
    margin-bottom: 1rem;
}

.blog-teaser-card:first-child .blog-teaser-blurb {
    font-size: 0.98rem;
    color: var(--text-secondary);
    max-width: 360px;
    margin-bottom: 1.4rem;
}

.blog-teaser-body {
    padding: 1.6rem 1.8rem 2rem;
}

.blog-teaser-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 0.65rem;
}

.blog-teaser-body h3 {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.4;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.blog-teaser-blurb {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1.1rem;
}

.blog-teaser-link {
    font-size: 0.75rem;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(59, 139, 117, 0.9);
}

@media (max-width: 768px) {
    .blog-teaser-grid {
        grid-template-columns: 1fr;
    }
    .blog-teaser-card:first-child {
        flex-direction: column;
    }
    .blog-teaser-card:first-child .blog-teaser-image {
        width: 100%;
        height: 240px;
        min-height: 0;
    }
    .blog-teaser-card:first-child .blog-teaser-body {
        padding: 1.6rem 1.8rem 2rem;
    }
    .blog-teaser-card:first-child .blog-teaser-body h3 {
        font-size: 1.05rem;
    }
    .blog-teaser-card:first-child .blog-teaser-blurb {
        max-width: 100%;
    }
}

/* FAQ Section */
.faq {
    background: var(--bg-primary);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 139, 117, 0.25), transparent);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--card-hover-border);
    box-shadow: none;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-green);
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-green);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(8, 20, 14, 1) 0%, rgba(15, 32, 20, 1) 100%);
    color: #f0ede6;
    padding: 100px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(59, 139, 117, 0.2);
}

/* --- EcoPools Photo Hero --- */
.ecopool-photo-hero {
    position: relative;
    min-height: 75vh;
    background-image: url('images/webp/eco-pool-photos/Krags/house Jamieson (4).webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.ecopool-photo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.52) 100%);
}

.ecopool-photo-hero .hero-text {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 0 20px;
}

.ecopool-photo-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.ecopool-photo-hero p {
    font-size: 1.25rem;
    opacity: 0.92;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    margin-bottom: 2rem;
}

.ecopool-photo-hero .hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

.ecopool-photo-hero .hero-scroll svg {
    width: 28px;
    height: 28px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- EcoPools Photo Gallery --- */
.pool-gallery-section {
    padding: 1rem 0 1rem;
}

.pool-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0;
}

.pool-gallery-item {
    overflow: hidden;
    position: relative;
}

.pool-gallery-item.gallery-main {
    grid-row: span 2;
}

.pool-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.pool-gallery-item:hover img {
    transform: scale(1.04);
}

.pool-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Gallery project hover overlay — visible on hover/focus */
.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10,14,8,0.82));
    padding: 2rem 1rem 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-item-overlay span {
    color: #f5f3ee;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.pool-gallery-item.modal-trigger {
    cursor: pointer;
}

.pool-gallery-item.modal-trigger:hover .gallery-item-overlay,
.pool-gallery-item.modal-trigger:focus-visible .gallery-item-overlay {
    opacity: 1;
}

.pool-gallery-item.modal-trigger:focus-visible {
    outline: 2px solid rgba(144,198,128,0.7);
    outline-offset: -2px;
}

/* ── Gallery extras: hidden until load-more clicked ── */
.gallery-extra { display: none; }
.gallery-extra.visible { display: block; }
.pool-gallery-item.gallery-load-hidden { display: none !important; }

.gallery-load-more {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.75rem 2rem;
    border: 1.5px solid var(--card-border);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.gallery-load-more:hover {
    background: var(--card-bg);
    border-color: var(--card-hover-border);
    color: var(--text-primary);
}

.gallery-load-more:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pool-gallery-item.gallery-filter-hidden { display: none !important; }

/* Gallery filter bar — desktop only */
.gallery-filter-bar {
    display: none;
}

@media (min-width: 769px) {
    .gallery-filter-bar {
        display: flex;
        gap: 0.6rem;
        flex-wrap: wrap;
        margin-bottom: 1.5rem;
        align-items: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--card-border);
    }
    .gallery-filter-btn {
        background: transparent;
        border: 1.5px solid var(--card-border);
        color: var(--text-secondary);
        padding: 0.45rem 1.25rem;
        border-radius: 50px;
        font-size: 0.76rem;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        cursor: pointer;
        transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
        white-space: nowrap;
    }
    .gallery-filter-btn:hover {
        border-color: rgba(59, 139, 117, 0.55);
        color: rgba(59, 139, 117, 0.9);
    }
    .gallery-filter-btn.active {
        background: rgba(59, 139, 117, 0.08);
        border-color: rgba(59, 139, 117, 0.65);
        color: rgba(59, 139, 117, 0.95);
    }
}

/* --- Blog card image backgrounds --- */
.blog-card-image.ecopools-img {
    background-image: url('images/webp/eco-pool-photos/Krags/house Jamieson (4).webp');
    background-size: cover;
    background-position: center;
}

.blog-card-image.fynbos-img {
    background-image: url('images/webp/ecological-design/fynbos-restoration-and-rain-garden-design-1200.webp');
    background-size: cover;
    background-position: center;
}

.blog-card-image.land-img {
    background-image: url('images/webp/land-management/salt-river/salt-river-invasive-plant-clearing-1200.webp');
    background-size: cover;
    background-position: center;
}

.blog-card-image.img-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.blog-card-image {
    position: relative;
}

/* --- Blog card read link --- */
.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(59, 139, 117, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 0.8rem;
    transition: gap 0.2s ease;
}

.blog-card-link:hover {
    gap: 0.7rem;
}

@media (max-width: 768px) {
    .pool-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 220px;
    }
    .pool-gallery-item.gallery-main {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    .ecopool-photo-hero {
        min-height: 60vh;
    }
}

/* ── Mobile gallery: horizontal swipe carousel ── */
@media (max-width: 600px) {
    .pool-gallery {
        display: flex;
        flex-direction: row;
        /* Reset grid properties */
        grid-template-columns: unset;
        grid-template-rows: unset;
        grid-auto-rows: unset;
        /* Swipe carousel */
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        height: 270px;
        gap: 10px;
        border-radius: 0;
        /* Bleed to full screen width for an edge-to-edge feel */
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 20px;
        padding-right: 32px; /* peek-through gap at the right */
        margin-top: 1.5rem;
    }
    .pool-gallery::-webkit-scrollbar { display: none; }

    .pool-gallery-item {
        flex: 0 0 72vw;
        height: 100%;
        border-radius: 10px;
        scroll-snap-align: start;
        /* Reset grid placement */
        grid-column: unset;
        grid-row: unset;
    }
    .pool-gallery-item.gallery-main {
        flex: 0 0 85vw;
        grid-column: unset;
        grid-row: unset;
    }
    /* Always show the project name label — no hover on touch */
    .pool-gallery-item .gallery-item-overlay { opacity: 1; }

    /* Show all extra images in the swipe strip — no load-more needed */
    .pool-gallery .gallery-extra { display: block; }

    /* Hide the load-more button on mobile */
    .gallery-load-more { display: none; }
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

/* Projects Archive */
.projects-archive {
    background: var(--bg-primary);
}

/* Projects intro synopsis block */
.projects-intro-block {
    background: var(--bg-primary);
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid rgba(59, 139, 117, 0.12);
}

.projects-synopsis {
    max-width: 800px;
}

.projects-synopsis p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
}

.projects-synopsis p:last-child {
    margin-bottom: 0;
}

/* Projects page bottom CTA */
.projects-cta {
    background: #252922;
    color: #f0ede6;
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(59, 139, 117, 0.2);
}

.projects-cta h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: #f0ede6;
}

.projects-cta p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.projects-cta .btn-primary {
    background: rgba(59, 139, 117, 0.9);
    color: #f0ede6;
}

.projects-cta .btn-primary:hover {
    background: rgba(59, 139, 117, 1);
    color: #f0ede6;
}

/* Content Section */
.content-section {
    background: var(--bg-primary);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3.5rem;
}

/* Land management scope note */
.scope-note {
    margin-top: 2rem;
    padding: 1.2rem 1.8rem;
    background: rgba(59, 139, 117, 0.06);
    border-left: 3px solid rgba(59, 139, 117, 0.5);
    border-radius: 0 6px 6px 0;
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.content-main h2 {
    color: var(--text-primary);
    margin: 2.5rem 0 1.2rem;
    font-size: 2.2rem;
}

.content-main h3 {
    color: rgba(59, 139, 117, 0.9);
    margin: 1.8rem 0 1rem;
    font-size: 1.6rem;
}

.content-main p {
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    line-height: 1.9;
}

.service-list {
    list-style: none;
    margin: 1.8rem 0;
}

.service-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-secondary);
}

.service-list strong {
    color: #f0ede6;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 6px;
    border: 1px solid var(--card-border);
    border-top: 3px solid rgba(59, 139, 117, 0.6);
    box-shadow: none;
}

.sidebar-card h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.sidebar-card ul {
    list-style: none;
}

.sidebar-card li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
}

.sidebar-card li::before {
    content: "? ";
    color: rgba(59, 139, 117, 0.9);
    font-weight: bold;
    margin-right: 0.8rem;
}

.sidebar-card p {
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
}

/* EcoPools Specific */
.ecopool-intro {
    max-width: 850px;
    margin: 0 auto 4.5rem;
}

.ecopool-intro .lead {
    font-size: 1.4rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.ecopool-intro p {
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    line-height: 1.9;
}

.benefits-section {
    margin: 4.5rem 0 2rem;
}

.benefits-section h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3.5rem;
    font-size: 2.2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.benefit-card:hover {
    border-color: rgba(59, 139, 117, 0.45);
    transform: translateY(-4px);
}

.benefit-card h3 {
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.benefit-card p {
    color: var(--text-secondary);
}

.partnership-section,
.cta-section {
    max-width: 850px;
    margin: 4.5rem auto;
    text-align: center;
}

.partnership-section h2,
.cta-section h2 {
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
}

.partnership-section p,
.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    line-height: 1.9;
}

.ecopool-projects-section {
    margin: 4.5rem 0;
}

.ecopool-projects-section h2 {
    color: #f0ede6;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Privacy Policy Page */
.privacy-policy {
    background: #252922;
}

.privacy-content {
    max-width: 850px;
    margin: 0 auto;
}

.privacy-content h2 {
    color: #f0ede6;
    margin: 2.5rem 0 1.2rem;
    font-size: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.privacy-content h3 {
    color: rgba(59, 139, 117, 0.9);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
}

.privacy-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.9;
}

.privacy-content ul {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.contact-info-block {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-yellow);
    margin: 1.5rem 0;
}

.contact-info-block p {
    margin: 0;
    line-height: 1.8;
}

.consent-notice {
    background: linear-gradient(135deg, rgba(54, 102, 158, 0.05) 0%, rgba(71, 163, 162, 0.05) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--light-blue);
    margin-top: 2.5rem;
}

.consent-notice h3 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
}

.consent-notice p {
    margin-bottom: 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Layout utilities */
.content-wrap {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrap--narrow {
    max-width: var(--content-narrow);
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrap--narrow h3 {
    margin-top: 2rem;
}

/* CTA Strip � standardised across all pages */
.cta-strip {
    position: relative;
    z-index: 3;
    background: var(--bg-primary);
    padding: 80px 24px;
    text-align: center;
    border-top: 1px solid rgba(59, 139, 117, 0.25);
}

.cta-strip .label {
    margin-bottom: 0.75rem;
    color: rgba(59, 139, 117, 0.9);
}

.cta-strip h2 {
    color: var(--text-primary);
    margin-bottom: var(--gap-heading-body);
}

.cta-strip p {
    max-width: 540px;
    margin: 0 auto var(--gap-body-cta);
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Vertical stack entries � for blog, projects, land management */
.vertical-stack {
    max-width: var(--content-width);
    margin: 0 auto;
}

.stack-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-card);
    margin-bottom: 72px;
    align-items: start;
}

.stack-entry:nth-child(even) .stack-entry__image {
    order: 2;
}

.stack-entry:nth-child(even) .stack-entry__body {
    order: 1;
}

.stack-entry__image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.stack-entry__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.stack-entry__body h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
}

.stack-entry__body p {
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .stack-entry {
        grid-template-columns: 1fr;
    }
    .stack-entry:nth-child(even) .stack-entry__image,
    .stack-entry:nth-child(even) .stack-entry__body {
        order: unset;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1.2s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1.2s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1.2s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Form Improvements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
}

.contact-form .form-group label {
    color: rgba(255, 255, 255, 0.95);
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--text-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-primary.loading .btn-text {
    opacity: 0;
}

.btn-primary.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.form-status {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(39, 174, 96, 0.2);
    color: #ffffff;
    border: 2px solid rgba(39, 174, 96, 0.5);
}

.form-status.error {
    display: block;
    background: rgba(231, 76, 60, 0.2);
    color: #ffffff;
    border: 2px solid rgba(231, 76, 60, 0.5);
}

/* Google Reviews Section */
.reviews-section {
    background: #252922;
    padding: var(--section-padding) 0;
    position: relative;
}
.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 139, 117, 0.3), transparent);
}
.reviews-section .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
    padding: 72px 0;
    position: relative;
}
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 139, 117, 0.3), transparent);
}
.about-inner {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 780px;
    margin: 0 auto;
    gap: 2.5rem;
    align-items: start;
}
.about-text .label {
    margin-bottom: 1rem;
}
.about-text h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}
.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    min-height: 1em;
}
.about-text p:empty::before {
    content: '[\u2014 copy to be added \u2014]';
    color: rgba(255,255,255,0.15);
    font-style: italic;
    font-size: 0.9rem;
}
.about-socials {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.about-socials-label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.social-link svg {
    width: 18px;
    height: 18px;
}
.social-link:hover {
    color: var(--accent-yellow);
}

/* Footer Social Links */
.footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-social-link svg {
    width: 28px;
    height: 28px;
}
.footer-social-link:hover {
    color: var(--accent-yellow);
    border-color: rgba(242,217,34,0.4);
}

@media (max-width: 768px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Testimonials Section (kept for other pages) */
.testimonials {
    background: #252922;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 139, 117, 0.3), transparent);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 2.5rem;
    border-radius: 6px;
    box-shadow: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 139, 117, 0.45);
    box-shadow: none;
}

.testimonial-quote {
    margin-bottom: 1.5rem;
    position: relative;
}

.quote-icon {
    width: 40px;
    height: 40px;
    color: rgba(59, 139, 117, 0.6);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.testimonial-quote p {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.testimonial-author strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Enhanced Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-yellow);
    outline-offset: 2px;
}

.nav-menu a:focus-visible {
    outline-color: var(--secondary-blue);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .waterfall-animation,
    .floating-particles {
        display: none;
    }
}

/* ===== EcoPools Page � Partnership Badge ===== */
.partnership-visual {
    margin: 2.5rem 0;
}

.partnership-cert-badge {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 139, 117, 0.25);
    border-radius: 6px;
    padding: 2rem 2.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.partnership-cert-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 139, 117, 0.45);
    box-shadow: 0 4px 16px rgba(59, 139, 117, 0.15);
}

.partnership-cert-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.partnership-cert-icon svg {
    width: 100%;
    height: 100%;
}

.partnership-cert-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.partnership-cert-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(59, 139, 117, 0.8);
}

.partnership-cert-name {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1c1f1a;
    line-height: 1.2;
}

.partnership-cert-desc {
    font-size: 0.85rem;
    color: rgba(28, 31, 26, 0.65);
    line-height: 1.5;
}

/* ===== Pricing signal ===== */
.pricing-signal {
    background: rgba(59, 139, 117, 0.06);
    border-left: 3px solid rgba(59, 139, 117, 0.5);
    border-radius: 0 6px 6px 0;
    padding: 1.2rem 1.8rem;
    margin: 2.5rem 0;
    max-width: 780px;
}

.pricing-signal p {
    margin: 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.97rem;
    line-height: 1.75;
}

/* ===== EcoPools Page � Testimonial ===== */
.ecopool-testimonial {
    max-width: 700px;
    margin: 4rem auto 0;
}

.label-optional {
    font-weight: 400;
    opacity: 0.8;
}

/* ===== EcoPools Page � Inline Enquiry Form ===== */
.ecopool-enquiry-section {
    background: rgba(59, 139, 117, 0.08);
    border: 1px solid rgba(59, 139, 117, 0.3);
    color: #f0ede6;
    padding: 4rem 3rem;
    border-radius: 6px;
    max-width: 700px;
    margin: 3rem auto 4rem;
    text-align: center;
}

.ecopool-enquiry-section h2 {
    color: #f0ede6;
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.ecopool-enquiry-section > p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.ecopool-enquiry-form {
    text-align: left;
}

.enquiry-response-promise {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    justify-content: center;
}

.enquiry-response-promise svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Project image � support <img> tag inside */
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Responsive Design */
/* No hamburger — full horizontal nav at all viewport sizes */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .nav-menu a {
        font-size: 12px;
    }

    .nav-cta {
        padding: 7px 12px;
    }
}

@media (max-width: 600px) {
    .nav-brand img {
        height: 34px;
    }

    .nav-menu {
        flex: 1;
        overflow-x: auto;
        justify-content: flex-start;
        padding-left: 0.5rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        gap: 0.6rem;
    }

    .nav-menu::-webkit-scrollbar { display: none; }

    .nav-menu a {
        font-size: 10.5px;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .nav-cta {
        padding: 5px 10px;
        font-size: 10px !important;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 72px 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .services-grid,
    .projects-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .btn-primary, .btn-secondary {
        padding: 1rem 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1.2rem;
    }
    
    .faq-answer {
        font-size: 0.95rem;
    }

    .partnership-cert-badge {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .partnership-cert-details {
        align-items: center;
    }

    .ecopool-enquiry-section {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }

    .ecopool-enquiry-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: var(--section-padding-mobile) 20px;
    }

    .cta-strip {
        padding: 56px 24px;
    }

    .hero {
        padding: 60px 20px 60px;
    }

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

    .social-links {
        justify-content: center;
    }

    /* Contact form inputs: reduce padding on small screens */
    .contact-form input,
    .contact-form textarea {
        padding: 0.9rem 1rem;
    }

    /* Blog featured card: cap image height */
    .blog-teaser-card:first-child .blog-teaser-image {
        min-height: 200px;
        height: 200px;
    }

    /* Parallax sections: tighter on small phones */
    .parallax-window {
        min-height: 55vh;
    }

    #main-content.parallax-window {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .pw-content {
        padding: 48px 0;
        padding-left: 1.5rem;
    }

    .pw-content h2 {
        font-size: clamp(1.5rem, 5.5vw, 1.9rem);
    }

    /* Service cards: less vertical padding on small phones */
    .service-card {
        padding: 1.8rem 1.4rem;
    }
}

/* --- About Section with Stats --- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2.5rem;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 1.8rem 1.4rem;
    text-align: center;
    box-shadow: none;
    border: 1px solid var(--card-border);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 139, 117, 0.45);
    box-shadow: none;
}

.stat-number {
    display: block;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: rgba(59, 139, 117, 0.9);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

@media (max-width: 768px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* --- Stats Strip � editorial dark row --- */
.stats-strip {
    background: var(--bg-secondary);
    padding: 72px 20px;
    border-top: 1px solid rgba(59, 139, 117, 0.18);
    border-bottom: 1px solid rgba(59, 139, 117, 0.18);
}

.stats-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}

.stats-strip .stat-item {
    background: transparent;
    border-right: 1px solid var(--card-border);
    padding: 0 2.5rem;
    box-shadow: none;
    transition: none;
}

.stats-strip .stat-item:last-child {
    border-right: none;
}

.stats-strip .stat-item:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.stats-strip .stat-number {
    display: block;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 200;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.stats-strip .stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .stats-strip .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 0;
    }
    .stats-strip .stat-item {
        border-right: none;
    }
}

/* --- Project Filters --- */
.project-filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Lora', Georgia, serif;
}

.filter-btn:hover {
    border-color: rgba(59, 139, 117, 0.6);
    color: rgba(59, 139, 117, 0.9);
}

.filter-btn.active {
    background: rgba(59, 139, 117, 0.15);
    border-color: rgba(59, 139, 117, 0.7);
    color: rgba(59, 139, 117, 0.95);
}

.project-card.hidden {
    display: none;
}

/* --- Blog Email Capture --- */
.blog-email-capture {
    background: rgba(59, 139, 117, 0.08);
    border: 1px solid rgba(59, 139, 117, 0.3);
    border-radius: 6px;
    padding: 3rem 2.5rem;
    text-align: center;
    margin-top: 3.5rem;
    color: #f0ede6;
}

.blog-email-capture h3 {
    font-size: 1.6rem;
    margin-bottom: 0.7rem;
    color: #f0ede6;
}

.blog-email-capture p {
    opacity: 0.88;
    margin-bottom: 1.8rem;
    font-size: 1rem;
}

.email-capture-form {
    display: flex;
    gap: 0.8rem;
    max-width: 460px;
    margin: 0 auto;
}

.email-capture-form input[type="email"] {
    flex: 1;
    padding: 0.9rem 1.4rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    font-family: 'Lora', Georgia, serif;
}

.email-capture-form button {
    background: var(--accent-yellow);
    color: var(--text-dark);
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    font-family: 'Lora', Georgia, serif;
}

.email-capture-form button:hover {
    background: var(--accent-yellow);
    transform: translateY(-1px);
}

.email-capture-note {
    font-size: 0.8rem;
    opacity: 0.65;
    margin-top: 0.9rem;
}

@media (max-width: 560px) {
    .email-capture-form {
        flex-direction: column;
    }
    .email-capture-form input[type="email"],
    .email-capture-form button {
        width: 100%;
    }
}

/* --- Password Gate (blog-admin) --- */
.admin-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #252922;
    padding: 2rem;
}

.admin-gate-box {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 3rem;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    text-align: center;
}

.admin-gate-box h2 {
    color: #f0ede6;
    margin-bottom: 0.5rem;
}

.admin-gate-box p {
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}

.admin-gate-box input[type="password"] {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #f0ede6;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: 'Lora', Georgia, serif;
    transition: border-color 0.2s;
}

.admin-gate-box input[type="password"]:focus {
    outline: none;
    border-color: var(--secondary-blue);
}

.admin-gate-box .btn-primary {
    width: 100%;
    font-size: 1rem;
}

.admin-gate-error {
    color: #c0392b;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ===================================================================
   PARALLAX WINDOW SECTIONS � Six Kingdoms
   Full-bleed background image per section. Image scrolls slower
   than the page, creating the "window looking onto a photo" effect.
   =================================================================== */

.parallax-window {
    position: relative;
    min-height: 88vh;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 0;
}

/* Edge-fade gradients � bleed top and bottom of each section into
   the dark seam so adjacent parallax windows dissolve rather than cut */
.parallax-window::before,
.parallax-window::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 15%;
    pointer-events: none;
    z-index: 0;
}

/* Top fade: dark ? transparent (previous section bleeds in) */
.parallax-window::before {
    top: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 20, 14, 0.52) 0%,
        transparent 100%
    );
}

/* Bottom fade: transparent ? dark (fades out to next section) */
.parallax-window::after {
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(8, 20, 14, 0.52) 0%,
        transparent 100%
    );
}

/* Hero is first � no top blackout, nothing above it */
#main-content.parallax-window::before {
    display: none;
}

/* Top-of-page parallax IS the hero � extends behind the fixed nav
   so the parallax image fills the full viewport including the nav area */
#main-content.parallax-window {
    min-height: 100vh;
    min-height: 100dvh;
    margin-top: -72px;
}

/* Secondary brand paragraph inside the first parallax � softer, smaller */
.pw-about {
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.65) !important;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 1.2rem;
}

/* Dark directional overlay � left heavy for left-aligned content */
.pw-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(8, 20, 14, 0.78) 0%,
        rgba(8, 20, 14, 0.48) 45%,
        rgba(8, 20, 14, 0.12) 100%
    );
    pointer-events: none;
}

/* Right-heavy overlay for right-aligned section */
.pw-overlay--right {
    background: linear-gradient(
        255deg,
        rgba(8, 20, 14, 0.78) 0%,
        rgba(8, 20, 14, 0.48) 45%,
        rgba(8, 20, 14, 0.12) 100%
    );
}

/* The three background images */
.pw--ecopools {
    background-image: url('images/webp/eco-pool-photos/Krags/house-jamieson-main-1200.webp');
}

.pw--ecopools2 {
    background-image: url('images/webp/eco-pool-photos/Eco%20Pools%20capetown/DSC05888-1200.webp');
}

.pw--ecopools3 {
    background-image: url('images/webp/eco-pool-photos/Eco%20Pools%20capetown/Guests%20enjoying%20the%20ecopool-1200.webp');
}

.pw--design {
    background-image: url('images/webp/ecological-design/terra-verta-habitats/garden-design-1-1200.webp');
}

.pw--design2 {
    background-image: url('images/webp/ecological-design/terra-verta-habitats/terra-verta-habitats-4-1200.webp');
}

.pw--land {
    background-image: url('images/webp/ecological-design/terra-verta-habitats/terra-verta-habitats-6-1200.webp');
}

.pw--land2 {
    background-image: url('images/webp/land-management/diepklowe-farm/diepklowe-regenerative-farm-1200.webp');
}

/* Content block — left-aligned by default */
.pw-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin-left: 9vw;
    padding: 100px 0;
    padding-left: 2.4rem;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Right-aligned for the middle section */
.pw-content--right {
    margin-left: auto;
    margin-right: 9vw;
    text-align: right;
    border-left: none;
    padding-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 2.4rem;
}

.pw-content .label {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 0.14em;
}

.pw-content h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1.3rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.pw-content p {
    font-size: 1.1rem;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.2rem;
    max-width: 440px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.pw-content--right p {
    margin-left: auto;
}

/* Outlined button � premium feel, doesn't fight the image */
.pw-btn {
    display: inline-block;
    padding: 0.9rem 2.4rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: #ffffff;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.25s ease;
}

.pw-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Mobile: iOS doesn't support background-attachment: fixed,
   fall back to scroll (still looks great, no blank screen) */
@media (max-width: 900px) {
    .parallax-window {
        background-attachment: scroll;
        min-height: 75vh;
    }
}

/* JS-injected parallax background layer (mobile workaround).
   Sized 30% taller than the container on each side to give
   room for translateY travel without exposing empty space. */
.pw-bg-layer {
    position: absolute;
    top: -30%;
    left: 0;
    right: 0;
    bottom: -30%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .parallax-window {
        min-height: 65vh;
    }
    .pw-content {
        margin-left: 24px;
        margin-right: 24px;
        padding: 72px 0;
        padding-left: 2rem;
        max-width: 100%;
    }
    .pw-content--right {
        margin-left: 24px;
        margin-right: 24px;
        text-align: left;
        border-right: none;
        padding-right: 0;
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        padding-left: 2rem;
    }
    .pw-content--right p {
        margin-left: 0;
    }
    .pw-overlay--right {
        background: linear-gradient(
            105deg,
            rgba(8, 20, 14, 0.78) 0%,
            rgba(8, 20, 14, 0.48) 45%,
            rgba(8, 20, 14, 0.12) 100%
        );
    }
}




/* ─── Project Modal ─────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 12, 6, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: modalFadeIn 0.28s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-window {
    background: #191c17;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.25);
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(8,12,6,0.65);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(8,12,6,0.9); color: #fff; }
.modal-close svg { width: 16px; height: 16px; }
.modal-prev,
.modal-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s, color 0.2s;
}
.modal-prev { left: 0; }
.modal-next { right: 0; }
.modal-prev:hover,
.modal-next:hover { background: rgba(0,0,0,0.35); color: #fff; }
.modal-prev svg,
.modal-next svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7)); }

.modal-image-wrap {
    width: 100%;
    max-height: 72vh;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0f08;
}
.modal-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(8,12,6,0.3) 100%);
    pointer-events: none;
}
.modal-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain;
    display: block;
}
.modal-body { padding: 2rem 2.25rem 2.5rem; }
.modal-body .project-tag {
    display: inline-block;
    margin-bottom: 0.875rem;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(175,195,150,0.85);
    border: 1px solid rgba(175,195,150,0.25);
    border-radius: 20px;
    padding: 0.2em 0.8em;
}
.modal-body h3 {
    color: #f0ede8;
    font-weight: 500;
    font-size: 1.45rem;
    margin-bottom: 0.875rem;
    line-height: 1.35;
}
.modal-body p { color: #9a978f; font-size: 0.95rem; line-height: 1.82; margin-bottom: 2rem; }
.modal-cta { display: inline-flex; align-items: center; }
.modal-trigger { cursor: pointer; }
.modal-trigger .project-link { pointer-events: none; display: none; }
/* Card image — hover interactivity cue */
.modal-trigger .project-image { position: relative; overflow: hidden; }
.modal-trigger .project-image img { transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.modal-trigger .project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8,12,6,0.28);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.modal-trigger:hover .project-image::after,
.modal-trigger:focus-visible .project-image::after { opacity: 1; }
.modal-trigger:hover .project-image img,
.modal-trigger:focus-visible .project-image img { transform: scale(1.025); }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideUp {
    from { transform: translateY(28px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Mobile modal: larger tap targets for arrows and close button */
@media (max-width: 600px) {
    .modal-window {
        border-radius: 6px;
    }
    .modal-close {
        width: 48px;
        height: 48px;
    }
    .modal-prev,
    .modal-next {
        width: 52px;
        background: rgba(0, 0, 0, 0.2);
    }
}
@media (max-width: 600px) {
    /* Full-screen flex-column layout so only .modal-body scrolls,
       keeping close button and nav arrows fully anchored and tappable */
    .modal-overlay { padding: 0; align-items: stretch; }
    .modal-window {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        /* The window itself never scrolls — only .modal-body does */
        overflow: hidden;
    }
    /* Fixed-height image zone at the top — always visible, never scrolls away */
    .modal-image-wrap {
        flex: 0 0 auto;
        max-height: 52vh;
        min-height: 200px;
    }
    /* Scrollable text content — flex: 1 fills whatever height remains */
    .modal-body {
        flex: 1;
        min-height: 0;          /* flex-child collapse fix */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1.25rem 1.25rem 5.5rem; /* extra bottom padding clears the nav bar */
    }
    /* Close button — position: absolute inside .modal-window (overflow: hidden, not auto),
       so it stays pinned at top-right regardless of .modal-body scroll */
    .modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 44px;
        height: 44px;
        z-index: 3;
    }
    /* Navigation arrows move to a proper bottom bar with large tap targets */
    .modal-prev,
    .modal-next {
        position: absolute;
        top: auto;
        bottom: 0;
        width: 50%;
        height: 60px;
        background: rgba(8, 12, 6, 0.88);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .modal-prev { left: 0; border-right: 0.5px solid rgba(255, 255, 255, 0.08); }
    .modal-next { right: 0; }   /* right: 0 + width: 50% puts it centre→right */
    .modal-prev svg,
    .modal-next svg { width: 32px; height: 32px; }
}

/* ── Ecological Design Service Areas ─────────────────────────────────────── */
.ed-services {
    padding: 4rem 0 3rem;
    background: rgba(255,255,255,0.03);
}
.ed-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
    margin-top: 0.5rem;
}
.ed-service-item {
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--card-bg);
    transition: border-color 0.2s;
}
.ed-service-item:hover { border-color: rgba(71,163,162,0.35); }
.ed-service-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-teal);
}
.ed-service-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ── WhatsApp styled button (contact page) ── */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 1.5rem;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
    background: #1da854;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37,211,102,0.45);
}
.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Land Management services cards ── */
.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}
.service-card-lm {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}
.service-card-lm:hover { border-color: rgba(71,163,162,0.35); }
.service-card-lm h4 {
    color: var(--accent-teal);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.service-card-lm p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}
@media (max-width: 640px) {
    .services-cards-grid { grid-template-columns: 1fr; }
}

/* ── pw-btn teal variant ── */
.pw-btn--teal {
    background: rgba(71,163,162,0.85);
    border-color: rgba(71,163,162,0.9);
    margin-top: 0.75rem;
    display: inline-block;
}
.pw-btn--teal:hover {
    background: rgba(71,163,162,1);
    border-color: rgba(71,163,162,1);
}

/* ── Blog coming-soon notice ── */
.coming-soon-notice {
    padding: 48px 20px;
    background: rgba(255,255,255,0.025);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}
.coming-soon-notice .label {
    display: inline-block;
    margin-bottom: 0.75rem;
}
.coming-soon-notice p {
    color: #a8a5a0;
    max-width: 520px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

/* ── Reviews section inline testimonial ── */
.sk-testimonial {
    max-width: 640px;
    margin: 0 0 2.5rem;
}

/* ── Reviews Parallax Section ── */
.reviews-parallax-section {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 72px 0;
}

.reviews-parallax-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/webp/eco-pool-photos/Eco Pools capetown/Guests enjoying the ecopool-1200.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.reviews-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8, 20, 14, 0.85) 0%,
        rgba(45, 90, 39, 0.75) 50%,
        rgba(8, 20, 14, 0.85) 100%
    );
    z-index: 1;
}

.reviews-container {
    position: relative;
    z-index: 2;
}

.reviews-header {
    text-align: center;
    margin-bottom: 3rem;
}

.reviews-header h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-top: 0.5rem;
}

.reviews-widget-card {
    background: rgba(8, 22, 15, 0.88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(59, 139, 117, 0.25);
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .reviews-parallax-section {
        padding: 80px 0;
        min-height: 70vh;
    }

    .reviews-parallax-bg {
        background-attachment: scroll;
    }

    .reviews-widget-card {
        padding: 1.5rem;
    }
}

/* Non-parallax pages: light mode — darken logo to near-black for content backgrounds */
.navbar:not(.hero-nav) .nav-brand img {
    filter: brightness(0) saturate(100%);
}
/* Non-parallax pages: dark mode — invert to white */
[data-theme="dark"] .navbar:not(.hero-nav) .nav-brand img {
    filter: brightness(0) invert(0.9);
}

/* On hero-nav in dark mode the existing hero-nav rules handle the logo */

@media (max-width: 480px) {
    /* Compact floating action buttons on very small screens */
    .whatsapp-float { width: 44px; height: 44px; bottom: 20px; right: 20px; }
    .whatsapp-float svg { width: 22px; height: 22px; }
    .scroll-top { width: 44px; height: 44px; bottom: 74px; right: 20px; }
    .scroll-top svg { width: 18px; height: 18px; }
    .theme-toggle { width: 44px; height: 44px; bottom: 128px; right: 20px; }
    .theme-toggle svg { width: 18px; height: 18px; }
}

/* Dark mode: EcoPools Africa partnership badge switches to dark bg + white logo */
[data-theme="dark"] .partnership-cert-badge {
    background: rgba(28, 31, 26, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .partnership-cert-name {
    color: #f0ede6;
}
[data-theme="dark"] .partnership-cert-label {
    color: rgba(71, 163, 162, 0.85);
}
[data-theme="dark"] .partnership-cert-desc {
    color: rgba(240, 237, 230, 0.55);
}
[data-theme="dark"] .partnership-cert-icon img {
    filter: invert(1);
}

/* ── Mobile: touch targets, tap feedback ── */
@media (max-width: 768px) {
    /* Ensure all interactive elements meet 44px minimum touch target */
    .btn-primary,
    .btn-secondary,
    .nav-cta,
    .pw-btn,
    .sk-review-btn,
    .instagram-cta-button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .faq-question {
        min-height: 48px;
    }

    /* Reviews grid stacks to 1 column on small screens */
    .reviews-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    /* Instagram grid goes 2-column on very small screens */
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Reviews Carousel (one review at a time)
   ========================================================================== */

.reviews-widget-card {
    text-align: center;
}

.reviews-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 1.5rem;
    max-width: 780px;
}

.reviews-carousel-track {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.reviews-carousel-track .testimonial-card {
    display: none;
    animation: reviewFadeIn 0.4s ease;
}

.reviews-carousel-track .testimonial-card.active {
    display: block;
}

.reviews-carousel-track .testimonial-quote p {
    color: rgba(220, 215, 205, 0.92);
}

.reviews-carousel-track .testimonial-author strong {
    color: #ffffff;
}

.reviews-carousel-track .testimonial-author span {
    color: rgba(180, 210, 195, 0.8);
}

.reviews-carousel-track .testimonial-author {
    border-top-color: rgba(59, 139, 117, 0.35);
}

.reviews-carousel-track .quote-icon {
    color: rgba(59, 139, 117, 0.85);
    opacity: 1;
}

@keyframes reviewFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reviews-prev,
.reviews-next {
    flex-shrink: 0;
    background: rgba(255,255,255,0.22);
    border: 1.5px solid rgba(255,255,255,0.7);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.reviews-prev:hover,
.reviews-next:hover {
    background: rgba(255,255,255,0.42);
    transform: scale(1.12);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.75rem;
}

.reviews-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.2s ease;
}

.reviews-dot.active {
    background: var(--accent-yellow);
    transform: scale(1.3);
}

/* ==========================================================================
    Project Cards — Prev/Next Carousel (land-management.html, ecological-design.html)
   ========================================================================== */

.projects-carousel {
    position: relative;
    overflow: hidden;
}

.projects-carousel .carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.75rem;
    width: auto;
    margin-bottom: 0;
    transition: transform 0.35s ease;
}

/* Mobile: 1 card full-width */
.projects-carousel .project-card {
    flex: 0 0 100%;
    width: 100%;
}

/* Desktop: 3 cards side-by-side */
@media (min-width: 768px) {
    .projects-carousel .project-card {
        flex: 0 0 calc((100% - 2 * 1.75rem) / 3);
        width: calc((100% - 2 * 1.75rem) / 3);
    }
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.carousel-prev,
.carousel-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1.5px solid var(--card-border);
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.carousel-prev:hover,
.carousel-next:hover {
    border-color: var(--card-hover-border);
    color: var(--text-primary);
    background: var(--card-bg);
}

.carousel-prev:disabled,
.carousel-next:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.carousel-count {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: var(--text-secondary);
    min-width: 3.5rem;
    text-align: center;
    letter-spacing: 0.03em;
}

/* ==========================================================================
   Modal Image Counter (EcoPools in-project navigation)
   ========================================================================== */

.modal-counter {
    position: absolute;
    bottom: 10px;
    right: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 20px;
    pointer-events: none;
}

/* ── Modal project navigation ── */
.modal-project-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    margin: 0.75rem 0;
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.1));
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.1));
}
.modal-prev-project,
.modal-next-project {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.modal-prev-project:hover,
.modal-next-project:hover {
    color: var(--color-forest, #2D5A27);
    background: rgba(45, 90, 39, 0.07);
}
.modal-project-count {
    font-size: 0.75rem;
    color: var(--text-muted, var(--text-secondary));
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 0.03em;
}
