/* Root to Crown Collective
   Butter Yellow + Blush Pink Theme
   Fonts: Playfair Display (headings), Lato (body)
*/

/* ======================
   COLOR + FONT VARIABLES
   ====================== */

:root {
    --color-forest: #425F4A;
    /* Deep, grounded green */
    --color-butter: #F0E68C;
    /* Butter yellow */
    --color-sunshine: #FFF4A3;
    /* Soft light yellow */
    --color-blush: #F5D7D7;
    /* Blush pink */
    --color-blush-deep: #EFC2C2;
    /* Slightly deeper blush */
    --color-cream: #FFFBF3;
    /* Warm cream background */
    --color-golden: #E8D5B7;
    /* Warm neutral accent */
    --color-sage: #9DB5A5;
    /* Soft sage green */
    --color-charcoal: #3A3A3A;
    /* Main text */
    --color-white: #FFFFFF;

    --font-display: "Playfair Display", serif;
    --font-body: "Lato", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =======
   RESET
   ======= */

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

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

/* =========
   BASE BODY
   ========= */

body {
    font-family: var(--font-body);
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

/* =========
   NAVIGATION
   ========= */

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 18px 20px;
    background-color: var(--color-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    text-decoration: none;
    color: var(--color-forest);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

nav a:hover {
    background-color: var(--color-butter);
    color: var(--color-charcoal);
    transform: translateY(-1px);
}

/* =======
   SECTIONS
   ======= */

.section {
    width: 100%;
    padding: 80px 20px;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Background types */
.section--cream {
    background-color: var(--color-cream);
}

.section--white {
    background-color: var(--color-white);
}

/* Color blocks */
.section--butter {
    background: linear-gradient(135deg, var(--color-butter), var(--color-sunshine));
}

.section--blush {
    background: linear-gradient(135deg, var(--color-blush), var(--color-blush-deep));
}

.section--sage {
    background: linear-gradient(135deg, var(--color-sage), #b8cec1);
}

/* Hero variant */
.section--hero {
    padding: 110px 20px 90px;
}

/* Center helper */
.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========
   TYPOGRAPHY
   ========== */

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--color-forest);
}

h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    margin-bottom: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
}

h2 {
    font-size: clamp(2rem, 3vw, 2.4rem);
    margin-bottom: 22px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--color-blush), var(--color-butter));
}

.text-center h2::after,
.center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

p {
    font-size: 1.02rem;
    margin-bottom: 14px;
}

.lead {
    font-size: 1.18rem;
    max-width: 700px;
    margin: 0 auto 24px;
}

.small-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.text-center {
    text-align: center;
}

/* =========
   BUTTONS
   ========= */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.98rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
    background-color: var(--color-forest);
    color: var(--color-white);
    box-shadow: 0 6px 18px rgba(66, 95, 74, 0.35);
}

.btn--primary:hover {
    background-color: #344838;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(66, 95, 74, 0.45);
}

.btn--secondary {
    background-color: var(--color-blush);
    color: var(--color-forest);
    border: 2px solid var(--color-forest);
}

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

/* ======
   CARDS
   ====== */

.card {
    background-color: var(--color-white);
    border-radius: 18px;
    padding: 28px 26px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.card--highlight {
    border: 2px solid var(--color-butter);
    background: linear-gradient(135deg, #ffffff, rgba(240, 230, 140, 0.12));
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

/* Grids for cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* =======
   IMPACT
   ======= */

/* Impact stats row */
.impact-stats {
    display: flex;
    justify-content: center;
    /* center them in the section */
    align-items: stretch;
    gap: 24px;
    /* space between boxes */
    margin: 32px 0;
    flex-wrap: wrap;
    /* allows wrapping on small screens */
}

/* Each stat box */
.stat {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 22px 18px;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* Big number + label styling */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-forest);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* ========
   VALUES
   ======== */

.values-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 26px;
}

.value-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 18px 18px 16px;
    border-left: 4px solid var(--color-blush);
}

/* ============
   CONTACT FORM
   ============ */

.contact-intro {
    text-align: center;
    margin-bottom: 32px;
}

.contact-form-container {
    max-width: 640px;
    margin: 0 auto 40px;
    background-color: var(--color-white);
    padding: 32px 28px;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--color-forest);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    font-family: var(--font-body);
    font-size: 0.98rem;
    background-color: #fffdf8;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-forest);
    box-shadow: 0 0 0 3px rgba(66, 95, 74, 0.15);
    background-color: var(--color-white);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-info {
    text-align: center;
    margin-top: 24px;
    padding: 22px 20px;
    border-radius: 18px;
    background-color: var(--color-blush);
}

/* ======
   IMAGES
   ====== */

.image-container {
    margin: 28px 0;
}

.image-container img {
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Simple gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 26px;
}

.gallery img {
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ======
   FOOTER
   ====== */

.footer {
    background-color: var(--color-forest);
    color: var(--color-cream);
    padding: 32px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    font-size: 0.95rem;
}

.footer a {
    color: var(--color-butter);
    text-decoration: underline;
}

/* =========
   RESPONSIVE
   ========= */

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .section {
        padding: 60px 18px;
    }

    .section--hero {
        padding-top: 80px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .impact-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-form-container {
        padding: 26px 18px;
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

.hero-with-image {
    position: relative;
    padding: 140px 20px 120px;
    color: var(--color-white);
    background: url("images/whitelotus.jpg") center/cover no-repeat;
}

.hero-with-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35));
}

.hero-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-with-image .hero-title,
.hero-with-image .hero-subtitle {
    color: var(--color-white);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

.pill {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background-color: #fffdf9;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-charcoal);
}

/* CTA wave section spacing */
.section--cta-wave {
    margin-top: 48px;
    /* space below hero */
}

/* Extra space between pills and button */
.section--cta-wave .btn {
    margin-top: 40px;
    /* bigger value to be obvious */
}