:root {
    /* Palette - Natural Premium */
    --bg-color: #F9F7F2;
    --text-primary: #1A261E;
    --text-secondary: #6B7B6D;
    --accent-color: #B36A5B;
    --border-color: #E2DED0;
    --white: #FFFFFF;

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-sans-light: 'DM Sans', sans-serif;

    /* Spacing & Transitions */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --container-padding: 0 8vw;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout Components --- */

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* --- Header & Navigation --- */

.site-header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: rgba(249, 247, 242, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-size: 14px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 400;
}

.main-nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.burger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* --- Hero Section --- */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    align-items: center;
    gap: 60px;
    padding: 80px var(--container-padding);
}

.hero-content {
    max-width: 540px;
}

.hero-eyebrow {
    font-family: var(--font-sans-light);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: block;
}

/* --- Featured Articles --- */

.featured {
    padding: 120px var(--container-padding);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 42px;
    letter-spacing: -0.02em;
}

.section-link {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    font-weight: 600;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.article-card {
    cursor: pointer;
}

.article-card-img {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: 24px;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-card-img img {
    transform: scale(1.05);
}

/* --- Gallery Masonry --- */
/* Use CSS columns to create a Pinterest‑style layout. */
.gallery-grid {
    column-gap: 1rem;               /* space between columns */
    column-count: 4;                /* default 4 columns on wide screens */
    width: 100%;
    /* Ensure overflow is visible so hovered images can appear above neighbours */
    overflow: visible;
}

/* Prevent images from being broken across columns */
/* Gallery image basic styling */
.gallery-grid img {
    break-inside: avoid;
    width: 100%;
    margin-bottom: 1rem;           /* vertical gap between items */
    transition: var(--transition);
}

/* Show pointer cursor only on hover‑capable devices */
@media (hover: hover) and (pointer: fine) {
    .gallery-grid img { cursor: pointer; }
}

/* Hover effect – reuse the same scaling as article cards */
@media (hover: hover) and (pointer: fine) {
    .gallery-grid img:hover {
        transform: scale(1.05);
        position: relative;
        z-index: 10;
    }
}

/* Responsive column counts */
@media (max-width: 1200px) {
    .gallery-grid { column-count: 3; }
}
@media (max-width: 768px) {
    .gallery-grid { column-count: 2; }
}
@media (max-width: 480px) {
    .gallery-grid { column-count: 1; }
}

.article-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.article-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 300;
}

/* --- Call-to-Action Blocks --- */

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background-color: var(--border-color);
    border: 1px solid var(--border-color);
}

.cta-block {
    background-color: var(--bg-color);
    padding: 100px 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-block:hover {
    background-color: #F0EEE6;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 400px;
}

/* --- Footer --- */

.site-footer {
    padding: 80px var(--container-padding);
    background-color: var(--text-primary);
    color: var(--bg-color);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 28px;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 15px;
    color: #A0A8A4;
    max-width: 300px;
    font-weight: 300;
}

.footer-nav h4 {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: #A0A8A4;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    color: var(--bg-color);
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
    color: var(--accent-color);
}

.copyright {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #A0A8A4;
    letter-spacing: 0.05em;
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0 24px;
    }
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero {
        grid-template-columns: 1fr;
        padding: 60px 24px;
        text-align: center;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-image-wrapper {
        height: 50vh;
        order: -1;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .cta-grid {
        grid-template-columns: 1fr;
    }
    .cta-block {
        padding: 60px 24px;
        text-align: center;
        align-items: center;
    }
    .site-footer {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .footer-desc {
        margin: 0 auto 30px;
    }
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(48px, 6vw, 84px);
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 18px 40px;
    background-color: var(--text-primary);
    color: var(--bg-color);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.hero-image-wrapper {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.05);
}


/* =========================================================
   QUIET GREENHOUSE — LOWER SECTIONS
   Editorial layout / Natural Premium
   ========================================================= */

/* Intro */

.intro-strip {
    max-width: 1440px;
    margin: 0 auto;
    padding: 100px 12vw 90px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.intro-strip p {
    max-width: 850px;
    margin: 0 auto 28px;
    font-family: var(--font-serif);
    font-size: clamp(25px, 3.2vw, 42px);
    line-height: 1.45;
    color: var(--text-primary);
}

.intro-strip span {
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

/* Shared section layout */

.section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 110px 8vw;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
    margin-bottom: 55px;
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--accent-color);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-heading h2,
.about h2 {
    font-family: var(--font-serif);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.section-heading > p {
    max-width: 370px;
    color: var(--text-secondary);
    font-family: var(--font-sans-light);
    font-size: 14px;
    line-height: 1.8;
}

/* Collection */

.plant-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.plant-card {
    min-width: 0;
}

.card-visual {
    position: relative;
    height: 330px;
    margin-bottom: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEECE3;
}

.visual-a {
    background: #EAE7DC;
}

.visual-b {
    background: #E4E8DF;
}

.visual-c {
    background: #E9E5DE;
}

.mini-pot {
    position: absolute;
    bottom: 48px;
    width: 112px;
    height: 83px;
    border-radius: 8px 8px 28px 28px;
    background: #C7B7A1;
    box-shadow: inset -12px 0 18px rgba(0,0,0,0.06);
}

.cactus-round,
.cactus-column,
.cactus-leaves {
    position: absolute;
    z-index: 1;
    bottom: 116px;
}

.cactus-round {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #71856B 0 3px, transparent 4px),
        radial-gradient(circle at 30% 30%, #71856B 0 2px, transparent 3px),
        radial-gradient(circle at 70% 65%, #71856B 0 2px, transparent 3px),
        #819477;
    box-shadow: inset -12px -8px 18px rgba(0,0,0,0.12);
}

.cactus-column {
    width: 62px;
    height: 155px;
    border-radius: 32px 32px 12px 12px;
    background: repeating-linear-gradient(
        90deg,
        #71856B 0 10px,
        #879A7C 11px 17px
    );
}

.cactus-leaves {
    width: 100px;
    height: 120px;
    border-radius: 50% 50% 35% 35%;
    background: #829477;
    clip-path: polygon(
        50% 0, 65% 24%, 95% 12%, 83% 48%,
        100% 70%, 68% 72%, 50% 100%,
        32% 72%, 0 70%, 17% 48%, 5% 12%, 35% 24%
    );
}

.card-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.card-meta span:last-child {
    color: var(--accent-color);
}

.plant-card h3 {
    margin-bottom: 12px;
    font-family: var(--font-serif);
    font-size: 29px;
    font-weight: 500;
}

.plant-card > p {
    color: var(--text-secondary);
    font-family: var(--font-sans-light);
    font-size: 13px;
    line-height: 1.9;
}

/* Care section */

.care-band {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    align-items: center;
    gap: 55px;
    padding: 95px 10vw;
    background: #EAECE4;
}

.care-illustration {
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #829477;
}

.watering-can {
    font-family: var(--font-serif);
    font-size: 150px;
    transform: rotate(-20deg);
    opacity: 0.8;
}

.drop {
    position: absolute;
    top: 28px;
    right: 20%;
    color: var(--accent-color);
    font-size: 48px;
}

.tiny-cactus {
    position: absolute;
    bottom: 12px;
    left: 12%;
    font-size: 45px;
}

.care-copy h2 {
    margin-bottom: 24px;
    font-family: var(--font-serif);
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 500;
    line-height: 1.15;
}

.care-copy > p:not(.eyebrow) {
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-family: var(--font-sans-light);
    font-size: 13px;
    line-height: 1.9;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--accent-color);
    color: var(--text-primary);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.text-link:hover {
    color: var(--accent-color);
}

.care-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.care-list li {
    display: flex;
    gap: 20px;
    padding: 23px 0;
    border-bottom: 1px solid rgba(26,38,30,0.14);
}

.care-list li:first-child {
    border-top: 1px solid rgba(26,38,30,0.14);
}

.care-list li > span {
    padding-top: 3px;
    color: var(--accent-color);
    font-size: 11px;
    letter-spacing: 0.1em;
}

.care-list li strong {
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
}

.care-list li small {
    display: block;
    color: var(--text-secondary);
    font-family: var(--font-sans-light);
    font-size: 11px;
    line-height: 1.7;
}

/* Notes */

.notes-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

.notes-list article {
    display: grid;
    grid-template-columns: 180px 1fr 30px;
    align-items: center;
    gap: 35px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.notes-list article:last-child {
    border-bottom: 1px solid var(--border-color);
}

.notes-list time {
    color: var(--text-secondary);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.notes-list h3 {
    margin-bottom: 7px;
    font-family: var(--font-serif);
    font-size: 25px;
    font-weight: 500;
}

.notes-list article p {
    color: var(--text-secondary);
    font-family: var(--font-sans-light);
    font-size: 12px;
    line-height: 1.8;
}

.notes-list article > span {
    color: var(--accent-color);
    font-size: 20px;
    transition: var(--transition);
}

.notes-list article:hover > span {
    transform: translate(4px, -4px);
}

/* About */

.about {
    display: grid;
    grid-template-columns: 70px 1fr 1fr;
    align-items: center;
    gap: 45px;
    padding: 85px 10vw;
    background: #F0EDE5;
}

.about-symbol {
    color: var(--accent-color);
    font-size: 45px;
}

.about h2 {
    max-width: 430px;
}

.about > p {
    max-width: 480px;
    color: var(--text-secondary);
    font-family: var(--font-sans-light);
    font-size: 13px;
    line-height: 2;
}

/* New editorial footer */

body > footer:not(.site-footer) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    padding: 45px 8vw;
    background: var(--text-primary);
    color: var(--bg-color);
}

body > footer .brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

body > footer .brand-mark {
    color: #C58A76;
    font-size: 30px;
}

body > footer .brand strong,
body > footer .brand small {
    display: block;
}

body > footer .brand strong {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 500;
}

body > footer .brand small {
    margin-top: 4px;
    color: #B7BDB5;
    font-size: 9px;
    letter-spacing: 0.1em;
}

body > footer > span,
body > footer > a:last-child {
    color: #B7BDB5;
    font-size: 10px;
    letter-spacing: 0.08em;
}

body > footer > a:last-child:hover {
    color: var(--white);
}

/* Responsive lower sections */

@media (max-width: 1024px) {
    .plant-grid {
        gap: 20px;
    }

    .card-visual {
        height: 270px;
    }

    .care-band {
        grid-template-columns: 0.7fr 1.3fr;
        gap: 35px;
    }

    .care-illustration {
        grid-row: span 2;
    }

    .care-list {
        grid-column: 2;
    }

    .about {
        grid-template-columns: 55px 1fr;
    }

    .about > p {
        grid-column: 2;
    }
}

@media (max-width: 768px) {
    .intro-strip {
        padding: 75px 28px;
    }

    .section {
        padding: 75px 24px;
    }

    .section-heading {
        display: block;
        margin-bottom: 35px;
    }

    .section-heading > p {
        margin-top: 18px;
    }

    .plant-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .card-visual {
        height: 340px;
    }

    .care-band {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 65px 24px;
    }

    .care-illustration {
        min-height: 150px;
        grid-row: auto;
    }

    .watering-can {
        font-size: 110px;
    }

    .care-list {
        grid-column: auto;
    }

    .notes-section {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .notes-list article {
        grid-template-columns: 1fr 25px;
        gap: 10px;
        padding: 25px 0;
    }

    .notes-list time {
        grid-column: 1 / -1;
        margin-bottom: 5px;
    }

    .notes-list h3 {
        font-size: 22px;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 65px 24px;
    }

    .about > p {
        grid-column: auto;
    }

    body > footer:not(.site-footer) {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 24px;
    }
}

@media (max-width: 400px) {
    .card-visual {
        height: 290px;
    }

    .card-meta {
        font-size: 8px;
    }

    .notes-list h3 {
        font-size: 20px;
    }
}
/* Gallery page specific styles */
/* Adaptive grid for images */

/* Lightbox overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
}
/* Close button for lightbox */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
    padding: 0;
}
/* Highlight active navigation link */
/* Added to visually indicate current page in the header navigation */
.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}
/* Ensure active underline similar to hover state */
.nav-link.active::after {
    width: 100%;
}

/* Placeholder for article images when none provided */
.article-placeholder {
    background: var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    margin-bottom: 20px;
    font-size: 16px;
    font-style: italic;
}

/* Image styling for article pages */

/* --- Photo sources block (gallery page) --- */
.photo-sources {
    font-size: 0.9rem;               /* slightly smaller than body text */
    line-height: 1.5;
    margin-top: 30px;
    margin-bottom: 30px;
}

.photo-sources h2 {
    margin-bottom: 1rem;
    font-size: 1.4rem;               /* a bit smaller than the previous 28px */
    text-align: center;
}

.photo-sources ul {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto;
}

.photo-sources li {
    margin-bottom: 0.8rem;
}

.photo-sources a {
    color: var(--accent-color);
    text-decoration: underline;
    word-break: break-word;   /* prevent long URLs from stretching layout */
}
.article-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
}
