/* ==========================================================
   Enrich Earth – main stylesheet
   Colours & typography taken from the original Elementor kit
   ========================================================== */
:root {
    --green: #57B33E;
    --dark: #1F242C;
    --text: #565872;
    --text-soft: rgba(31, 36, 44, .8);
    --white: #FFFFFF;
    --coral: #FA7B73;
    --purple: #431C6F;
    --sage: #EFE8BA;
    --light: #F0F4F9;
    --border: #E8E8E8;
    --font-head: "Teko", sans-serif;
    --font-body: "Rubik", sans-serif;
    --radius: 5px;
    --shadow: 0 10px 30px rgba(31, 36, 44, .08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.875;
    color: var(--text-soft);
    background: var(--white);
}

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

a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--dark); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    font-weight: 400;
    color: var(--dark);
    margin: 0 0 .4em;
}
h1 { font-size: 72px; line-height: .95; letter-spacing: -1.3px; text-transform: uppercase; }
h2 { font-size: 70px; line-height: .9;  text-transform: uppercase; }
h3 { font-size: 48px; line-height: 1.2; }
h5 { font-size: 32px; line-height: 1.2; }
h6 {
    font-family: var(--font-body);
    font-size: 16px; font-weight: 500;
    line-height: 1.25; letter-spacing: 3.2px;
    text-transform: uppercase;
    color: var(--green);
    margin: 0 0 1em;
}
p { margin: 0 0 1.2em; }

.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 900px; }

.sr-only, .skip-link {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
    clip: auto; width: auto; height: auto; z-index: 1000;
    top: 10px; left: 10px; padding: 10px 16px; background: var(--dark); color: #fff;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px; font-weight: 500;
    text-transform: capitalize;
    line-height: 1.2;
    padding: 21px 57px;
    border-radius: var(--radius);
    border: 0; cursor: pointer;
    transition: background .3s, transform .3s;
}
.btn:hover { background: var(--dark); color: var(--white); }
.btn-pulse:hover { animation: pulse 1s infinite; }
@keyframes pulse { 25% { transform: scale(1.05); } 75% { transform: scale(.95); } }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 90px;
}
.site-logo img { width: 150px; height: auto; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.primary-nav a {
    display: block; padding: 10px 16px;
    font-weight: 500; font-size: 16px;
    color: var(--dark);
    position: relative;
}
.primary-nav a::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
    height: 2px; background: var(--green);
    transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.primary-nav a:hover, .primary-nav .current a { color: var(--green); }
.primary-nav a:hover::after, .primary-nav .current a::after { transform: scaleX(1); }

.menu-toggle {
    display: none; background: none; border: 0; cursor: pointer; padding: 10px;
}
.menu-toggle .bar {
    display: block; width: 26px; height: 2px; background: var(--dark);
    margin: 6px 0; transition: transform .3s, opacity .3s;
}
.menu-open .menu-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle .bar:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Home: hero ---------- */
.page-home { background: var(--sage); }
.hero { padding: 40px 0 50px; }
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.hero-text { padding-left: 15px; }
.hero-kicker { color: #000; }
.hero h1 { margin-bottom: 24px; }
.hero p { max-width: 90%; }
.hero-image { padding-left: 28px; }
.hero-circle {
    background: var(--white);
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    padding: 8%;
    box-shadow: var(--shadow);
}

/* ---------- Home: about ---------- */
.about {
    background: var(--purple);
    padding: 50px 0;
    scroll-margin-top: 90px;
}
.about h2 { color: var(--white); font-size: 72px; letter-spacing: -1.3px; line-height: .94; }
.about-text { color: var(--white); text-align: justify; max-width: 95%; }

/* ---------- Home: gallery ---------- */
.gallery { background: var(--white); padding: 50px 0 70px; }
.gallery h2 { font-size: 72px; letter-spacing: -1.3px; line-height: .94; }

.carousel { position: relative; }
.carousel-track {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 4);
    gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 6px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { margin: 0; scroll-snap-align: start; }
.carousel-slide img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius);
    transition: transform .4s;
}
.carousel-slide a { display: block; overflow: hidden; border-radius: var(--radius); }
.carousel-slide a:hover img { transform: scale(1.05); }
.carousel-slide figcaption {
    font-size: 14px; line-height: 1.5; margin-top: 10px; color: var(--text);
}
.carousel-btn {
    position: absolute; top: calc(50% - 60px); z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--green); color: #fff; font-size: 18px; cursor: pointer;
    box-shadow: var(--shadow); transition: background .3s;
}
.carousel-btn:hover { background: var(--dark); }
.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

/* ---------- Inner pages ---------- */
.page-banner {
    background: var(--sage);
    padding: 60px 0 50px;
    text-align: center;
}
.page-banner h1 { margin: 0; }
.page-post .page-banner h1 { font-size: 56px; }

.content-section { padding: 60px 0; }

/* Concept */
.concept-intro {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start;
}
.concept-product { margin: 0; }
.concept-product img { border-radius: var(--radius); box-shadow: var(--shadow); }
.concept-heading {
    color: var(--purple);
    margin-top: 1.2em;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--green);
    display: inline-block;
}
.mod-list { display: grid; gap: 28px; margin-bottom: 1.2em; }
.mod-item {
    display: grid; grid-template-columns: 1fr 319px; gap: 30px; align-items: center;
    padding: 20px; background: var(--light); border-radius: 8px;
}
.mod-item p { margin: 0; }
.concept-fig { margin: 0; }
.concept-fig img { border-radius: var(--radius); width: 100%; }
.mod-pair { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 1.2em; }
.mod-pair .concept-fig { width: 319px; max-width: 100%; }

/* News */
.section-title {
    position: relative; padding-left: 18px; margin-bottom: 30px;
}
.section-title::before {
    content: ""; position: absolute; left: 0; top: 8px; bottom: 12px;
    width: 4px; background: var(--green); border-radius: 2px;
}
.news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px;
}
.news-card {
    display: flex; gap: 18px; align-items: center;
    background: var(--white); border: 1px solid var(--border); border-radius: 8px;
    padding: 16px; transition: box-shadow .3s, transform .3s;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-thumb { position: relative; flex: 0 0 120px; }
.news-thumb img { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; }
.news-date {
    position: absolute; left: -8px; top: -8px;
    background: var(--green); color: #fff;
    font-size: 12px; line-height: 1.1; text-align: center; text-transform: uppercase;
    padding: 6px 8px; border-radius: 4px;
}
.news-date strong { display: block; font-size: 18px; }
.news-cat { font-size: 13px; color: var(--coral); text-transform: uppercase; letter-spacing: 1px; }
.news-title {
    font-family: var(--font-body); font-size: 17px; font-weight: 600;
    line-height: 1.35; text-transform: none; margin: 4px 0 8px;
}
.news-title a { color: var(--dark); }
.news-title a:hover { color: var(--green); }
.read-more { font-size: 14px; font-weight: 500; text-transform: capitalize; }

.tv-news { background: var(--light); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.video-item h6 { color: var(--dark); letter-spacing: 1.5px; line-height: 1.5; min-height: 3em; }
.video-frame {
    position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
    background: #000; box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Single post */
.post-image { margin: 0 auto 24px; text-align: center; }
.post-image img { margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.pdf-embed iframe { width: 100%; height: 80vh; border: 1px solid var(--border); border-radius: var(--radius); }
.pdf-embed p { margin-top: 16px; text-align: center; }
.post-meta {
    font-size: 14px; color: var(--text);
    border-top: 1px solid var(--border); padding-top: 16px; margin-top: 30px;
}
.post-nav {
    display: flex; justify-content: space-between; gap: 20px; margin-top: 20px;
}
.post-nav a {
    flex: 1; max-width: 48%;
    padding: 16px 20px; background: var(--light); border-radius: 8px;
    color: var(--dark); font-weight: 500; line-height: 1.4;
}
.post-nav a span {
    display: block; font-size: 13px; color: var(--green);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.post-nav a:hover { background: var(--green); color: #fff; }
.post-nav a:hover span { color: #fff; }
.post-nav .next { text-align: right; margin-left: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: stretch; }
.contact-map { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.contact-card {
    background: var(--light); border-radius: 8px; padding: 36px;
    border-top: 4px solid var(--green);
}
.contact-card h3 { margin-bottom: .3em; }
.contact-card address { font-style: normal; margin-bottom: 1.2em; }
.contact-card p { margin-bottom: .4em; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #A5A7AA; padding: 40px 0 30px; text-align: center; }
.footer-logo { display: inline-block; background: #fff; padding: 8px 14px; border-radius: 8px; }
.footer-logo img { width: 140px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 22px 0 12px; }
.footer-nav a { color: #fff; font-weight: 500; }
.footer-nav a:hover { color: var(--green); }
.copyright { font-size: 14px; margin: 0; }

.back-to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--green); color: #fff; font-size: 20px; cursor: pointer;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--dark); }

/* ---------- Lightbox ---------- */
.lb-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0, 0, 0, .88);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 30px; opacity: 0; transition: opacity .25s;
}
.lb-overlay.open { opacity: 1; }
.lb-overlay img { max-width: 92vw; max-height: 80vh; width: auto; border-radius: 4px; }
.lb-caption { color: #fff; max-width: 800px; text-align: center; margin-top: 14px; font-size: 15px; }
.lb-close, .lb-prev, .lb-next {
    position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 34px; padding: 10px;
}
.lb-close { top: 10px; right: 20px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    h1 { font-size: 60px; }
    h2, .about h2, .gallery h2 { font-size: 56px; }
    .hero { padding: 50px 0; }
    .about { padding: 50px 0 80px; }
    .carousel-track { grid-auto-columns: calc((100% - 40px) / 3); }
    .carousel-btn.prev { left: 0; }
    .carousel-btn.next { right: 0; }
}

@media (max-width: 860px) {
    .menu-toggle { display: block; }
    .primary-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
        max-height: 0; overflow: hidden; transition: max-height .35s ease;
    }
    .menu-open .primary-nav { max-height: 400px; }
    .primary-nav ul { flex-direction: column; padding: 10px 20px 20px; gap: 0; }
    .primary-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .primary-nav a::after { display: none; }

    .hero-grid, .concept-intro, .contact-grid { grid-template-columns: 1fr; }
    .hero-text { padding-left: 0; }
    .hero-image { padding-left: 0; max-width: 460px; margin: 0 auto; }
    .mod-item { grid-template-columns: 1fr; }
    .mod-item .concept-fig { max-width: 319px; }
}

@media (max-width: 767px) {
    body { font-size: 15px; }
    h1 { font-size: 48px; }
    h2, .about h2, .gallery h2 { font-size: 46px; }
    h3 { font-size: 36px; }
    h5 { font-size: 28px; }
    .page-post .page-banner h1 { font-size: 40px; }
    .header-inner { min-height: 72px; }
    .site-logo img { width: 120px; }
    .hero p { max-width: 100%; }
    .about-text { max-width: 100%; text-align: left; }
    .carousel-track { grid-auto-columns: calc((100% - 20px) / 2); }
    .content-section { padding: 40px 0; }
    .news-grid { grid-template-columns: 1fr; }
    .contact-card { padding: 24px; }
    .post-nav { flex-direction: column; }
    .post-nav a { max-width: 100%; }
    .btn { padding: 16px 40px; }
}

@media (max-width: 480px) {
    .carousel-track { grid-auto-columns: 85%; }
    .news-thumb { flex-basis: 90px; }
    .news-thumb img { width: 90px; height: 90px; }
}
