/* ============================================================
   CAPE KULCHA COMMUNITY — Global Styles
   Mobile-first. Breakpoints in responsive.css.
   ============================================================ */

:root {
    --primary-gold: #b5935a;
    --dark-bg: #1a1a1a;
    --light-grey: #f4f4f4;
    --text-color: #333;
    --accent-red: #8B0000;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background: #fff;
}

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

a { color: inherit; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    background: #fff;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-bg);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.logo span { color: var(--primary-gold); }

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

.nav-links { display: flex; align-items: center; gap: 18px; }

.nav-link {
    text-decoration: none;
    color: var(--dark-bg);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.nav-link:hover,
.nav-link.active { color: var(--primary-gold); }

.donate-nav-btn {
    background: var(--accent-red);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
}
.donate-nav-btn:hover { background: #6b0000; }

/* Hamburger toggle (mobile) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--dark-bg);
    transition: 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    background: url('../images/hero-placeholder.svg') center/cover no-repeat;
    height: 85vh;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin: 0 0 16px;
    font-style: italic;
    line-height: 1.15;
}
.hero p { font-size: 1.05rem; margin: 0 0 28px; opacity: 0.95; }

/* ============================================================
   LAYOUT — MAIN CONTAINER
   ============================================================ */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 5%;
}
.main-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}
.content-main { flex: 2; min-width: 320px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin: 60px 0; }
.section-header:first-child { margin-top: 0; }
#volunteering { margin-top: 60px; }
.section-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    margin: 0 0 12px;
    color: var(--dark-bg);
}
.gold-line {
    width: 60px;
    height: 4px;
    background: var(--primary-gold);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-text h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    color: var(--dark-bg);
    margin-top: 20px;
}
.township-narrative {
    background: var(--light-grey);
    padding: 30px;
    border-left: 6px solid var(--primary-gold);
    margin: 30px 0;
    font-style: italic;
    font-size: 1.05rem;
    color: #555;
}
.reg-line {
    font-weight: 700;
    color: var(--primary-gold);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ============================================================
   PROJECTS GRID
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-gold);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.card i {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 14px;
}
.card h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--dark-bg);
}
.card p { margin: 0; font-size: 0.95rem; }

/* ============================================================
   TOUR BANNER
   ============================================================ */
.banner-box {
    margin-top: 80px;
    background: var(--dark-bg) url('https://images.unsplash.com/photo-1547471080-7cc2caa01a7e?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    background-blend-mode: overlay;
    color: #fff;
    padding: 50px 35px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.banner-box::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65));
}
.banner-text { position: relative; z-index: 1; }
.banner-text h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    margin: 0 0 12px;
    color: var(--primary-gold);
}
.banner-text p { margin: 0 0 20px; }

/* ============================================================
   VOLUNTEERING
   ============================================================ */
.volunteer-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 22px 25px;
    margin-bottom: 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.volunteer-box:hover {
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-md);
}
.vol-info h4 {
    margin: 0 0 4px;
    color: var(--primary-gold);
    font-size: 1.1rem;
}
.vol-info p { margin: 0; font-size: 0.9rem; }

/* ============================================================
   SIDEBAR — ACTIVE CAMPAIGN
   ============================================================ */
.sidebar {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
}
.sidebar-eyebrow {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sidebar h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    margin: 6px 0 0;
    color: var(--dark-bg);
}
.sidebar-img {
    width: 100%;
    border-radius: 8px;
    margin: 15px 0;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--light-grey);
}
.sidebar-blurb { font-size: 0.85rem; }

.prog-bg {
    background: #eee;
    border-radius: 20px;
    height: 18px;
    margin: 25px 0;
    position: relative;
    overflow: visible;
}
.prog-fill {
    background: var(--primary-gold);
    height: 100%;
    width: 5.71%;
    transition: width 1.5s ease;
    border-radius: 20px;
    position: relative;
}
.prog-star {
    position: absolute;
    right: -15px;
    top: -10px;
    color: var(--primary-gold);
    font-size: 2rem;
    text-shadow: 0 0 15px gold;
}
.star-pulse { animation: pulse 0.8s infinite alternate; }
@keyframes pulse {
    from { transform: scale(1); }
    to   { transform: scale(1.4); }
}

.stats-flex {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
}
.remaining-amt {
    text-align: center;
    color: var(--primary-gold);
    font-weight: 700;
    margin-top: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.sidebar-cta { margin-top: 20px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    border: none;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 4px;
    transition: background 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--primary-gold); color: #fff; }
.btn-gold:hover { background: #b8941f; }
.hero .btn-gold:hover,
.banner-box .btn-gold:hover,
.apply-btn:hover { background: #7c6743; }
.btn-red { background: var(--accent-red); color: #fff; }
.btn-red:hover { background: #6b0000; }
.full-width { width: 100%; }

/* ============================================================
   MODALS
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.9);
    overflow-y: auto;
}
.modal.is-open { display: block; }
.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    position: relative;
}
.modal-narrow { max-width: 500px; }
.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 32px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}
.close:hover { color: var(--dark-bg); }

.journal-body { font-size: 1.05rem; line-height: 1.8; color: #444; }
.journal-body h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    margin-top: 0;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 0.85rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

/* ============================================================
   CONTACT / VOLUNTEER FORM
   ============================================================ */
.contact-form-section {
    padding: 100px 5%;
    background: #fff;
}
.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}
.contact-form-text .label {
    color: var(--primary-gold);
    letter-spacing: 5px;
    font-size: 0.7rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
}
.contact-form-text h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.2;
    margin: 0 0 25px;
    color: var(--dark-bg);
    white-space: nowrap;
}
.contact-form-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gold);
    margin-top: 12px;
}
.contact-form-text p {
    margin: 0 0 35px;
    color: #555;
}
.contact-form-promise {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.promise-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-gold);
}
.promise-item span {
    font-size: 1rem;
    font-weight: 400;
    color: #555;
}
.contact-form-box {
    background: var(--light-grey);
    padding: 40px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}
.contact-form-box .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.send-btn {
    background: var(--primary-gold);
    color: #fff;
    border: none;
    padding: 16px;
    width: 100%;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: background 0.3s;
}
.send-btn:hover { background: var(--dark-bg); }
.contact-submit-btn { margin-top: 10px; }

@media (max-width: 768px) {
    .contact-form-container { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-box { padding: 30px 22px; }
    .contact-form-box .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark-bg);
    color: #888;
    padding: 60px 5%;
    text-align: center;
}
.footer-logo { color: #fff; margin-bottom: 16px; }
.footer-meta { margin: 0 0 8px; font-size: 0.9rem; }
.footer-meta a { color: var(--primary-gold); text-decoration: none; }
.footer-reg { margin: 0; font-size: 0.8rem; opacity: 0.7; }

/* ============================================================
   PROJECT CARD CTA
   ============================================================ */
.card-cta { margin-top: 18px; padding: 10px 22px; font-size: 0.72rem; }

/* ============================================================
   TOUR — LIVE BOOK CAMPAIGNS (on dark banner)
   ============================================================ */
.book-campaigns {
    margin: 25px 0 28px;
    padding: 22px 24px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(181,147,90,0.4);
    border-radius: 10px;
}
.book-campaigns-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    margin: 0 0 16px;
    color: var(--primary-gold);
}
.book-campaign { margin-bottom: 16px; }
.book-campaign:last-child { margin-bottom: 0; }
.book-campaign-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}
.book-title { font-weight: 600; }
.book-count { color: var(--primary-gold); font-weight: 700; white-space: nowrap; }
.prog-bg-slim { height: 10px; margin: 0; overflow: hidden; }
.prog-bg-slim .prog-fill { transition: width 1s ease; }

/* ============================================================
   BOOKING MODALS — price box, rows, quantities
   ============================================================ */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-grey);
    border-left: 4px solid var(--primary-gold);
    padding: 14px 18px;
    border-radius: 4px;
    margin: 6px 0 18px;
    font-size: 0.9rem;
}
.price-box strong { font-size: 1.25rem; color: var(--primary-gold); }

.contrib-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    color: var(--dark-bg);
    margin: 28px 0 4px;
}
.contrib-subheading {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-gold);
    margin: 18px 0 8px;
}
.contrib-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.contrib-info { display: flex; flex-direction: column; }
.contrib-label { font-weight: 600; font-size: 0.95rem; }
.contrib-price { font-size: 0.8rem; color: #777; }
.contrib-qty {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    text-align: center;
    flex-shrink: 0;
}
.contrib-qty:focus { outline: none; border-color: var(--primary-gold); }

@media (max-width: 600px) {
    .form-row-2 { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   reCAPTCHA — hidden badge (attribution shown per form instead)
   ============================================================ */
.grecaptcha-badge { visibility: hidden !important; }

.captcha-notice {
    font-size: 0.72rem;
    font-weight: 300;
    color: #9a9aa0;
    line-height: 1.55;
    margin-top: 0.85rem;
}
.captcha-notice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.form-status { font-size: 0.9rem; min-height: 1.4em; margin: 0.75rem 0; }
.form-status.is-success { color: #3f9d6b; }
.form-status.is-error   { color: #c85454; }

/* ============================================================
   FOOTER LEGAL LINKS
   ============================================================ */
.footer-legal { margin: 8px 0 0; font-size: 0.8rem; }
.footer-legal a { color: var(--primary-gold); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* ============================================================
   LEGAL PAGES (privacy / terms)
   ============================================================ */
.legal-page {
    max-width: 72ch;
    margin: 0 auto;
    padding: 80px 5% 100px;
    line-height: 1.8;
    font-weight: 300;
    color: #444;
}
.legal-page h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    color: var(--dark-bg);
    margin: 34px 0 8px;
    font-weight: 600;
}
.legal-page ul { padding-left: 1.2rem; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--primary-gold); }
.legal-updated {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}
.legal-disclaimer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.82rem;
    color: #888;
    font-style: italic;
}
