/* --- 1. PALETTE & VARS --- */
:root {
    /* Canyon-Inspired Earth Tones */
    --bg-sand: #FAF8F5;       
    --bg-white: #FFFFFF;
    --text-espresso: #3C322B; 
    --text-light: #786C62;
    --accent-sage: #4A5D4F;   
    --accent-clay: #C27A59;   
    
    --font-serif: 'Fraunces', serif; 
    --font-sans: 'DM Sans', sans-serif; 
    
    --radius-pill: 50px;
    --radius-soft: 8px;
}

/* Fix: Smooth Scrolling for anchor links */
html { scroll-behavior: smooth; }

/* --- 2. GLOBAL RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-sand);
    color: var(--text-espresso);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 300; 
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { display: block; width: 100%; height: auto; object-fit: cover; border-radius: 4px; }

/* --- 3. UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 700px; }
.section { padding: 100px 0; }
.text-center { text-align: center; }

/* --- 4. ANNOUNCEMENT BAR --- */
.announcement-bar {
    background: var(--text-espresso);
    color: var(--bg-sand);
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- 5. NAV --- */
.navbar { padding: 30px 0; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-family: var(--font-serif); 
    font-size: 1.8rem; 
    font-weight: 500; 
    letter-spacing: -0.03em;
}

.nav-left, .nav-right { width: 150px; } 
.nav-left { display: flex; gap: 30px; list-style: none; }
.nav-left a { font-size: 0.9rem; color: var(--text-espresso); font-weight: 500; }
.nav-left a:hover { color: var(--accent-clay); }

/* Ensure right button aligns to the right */
.nav-right { display: flex; justify-content: flex-end; }

.btn-pill {
    display: inline-block;
    padding: 12px 28px;
    background: var(--text-espresso);
    color: var(--bg-sand);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
}
.btn-pill:hover { background: var(--accent-clay); }

/* --- 6. HERO --- */
.hero { padding: 60px 0 100px; text-align: center; }
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 40px;
    font-variation-settings: "SOFT" 100, "WONK" 1; 
}
.hero-title em { font-style: italic; color: var(--accent-clay); }

.hero-image-frame {
    max-width: 900px;
    margin: 0 auto 40px;
    height: 500px;
    overflow: hidden;
    /* Percentage radius ensures the arch looks perfect on all screen widths */
    border-radius: 50% 50% 0 0;
}
.hero-image-frame img { height: 100%; width: 100%; object-fit: cover; }

.hero-caption { max-width: 450px; margin: 0 auto; text-align: center; }
.hero-caption p { margin-bottom: 24px; color: var(--text-light); font-size: 1.1rem; }
.link-arrow { 
    border-bottom: 1px solid var(--accent-clay); 
    color: var(--accent-clay); 
    padding-bottom: 2px; 
    font-weight: 500;
}

/* --- 7. INTRO --- */
.bg-sand { background: var(--bg-sand); }
.serif-heading { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 30px; }
.body-text { font-size: 1.2rem; color: var(--text-light); font-weight: 300; line-height: 1.7; }

/* --- 8. RITUALS (The Grid) --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.ritual-card h3 { font-size: 2rem; margin: 15px 0; }

/* The Tag Styling (Fixed Spacing) */
.tag {
    display: inline-block; 
    /* We force this to be 0 so it doesn't push away from the image */
    margin-top: 0 !important; 
    margin-bottom: 12px; 
    
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-clay);
    border: 1px solid var(--accent-clay);
    padding: 6px 14px;
    border-radius: 20px;
}

.soft-list { list-style: none; margin-top: 20px; color: var(--text-light); }
.soft-list li { 
    margin-bottom: 12px; 
    border-bottom: 1px solid #E5E0DA; 
    padding-bottom: 12px; 
    display: flex; 
    justify-content: space-between;
}

/* REPLACE YOUR EXISTING .card-image BLOCK WITH THIS */
.card-image {
    width: 100%;
    aspect-ratio: 4 / 5; 
    overflow: hidden;
    border-radius: 8px;
    /* We force this to be small (16px) to pull the text up */
    margin-bottom: 16px !important; 
    background-color: transparent; 
}

/* --- 9. STORY --- */
.bg-sage { background-color: var(--accent-sage); color: var(--bg-sand); }
.text-sand { color: var(--bg-sand); }
.grid-2-center { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.tag-light {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}
.story-text p { opacity: 0.9; margin-bottom: 24px; font-size: 1.1rem; line-height: 1.7; }
.story-image img { border-radius: var(--radius-soft); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* --- 10. FORM --- */
.form-wrapper { padding: 40px; }
.organic-form { margin-top: 40px; }

.form-group { margin-bottom: 30px; }
.form-group label { display: block; font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 10px; }

input[type="text"], input[type="email"], textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #D1CAC0;
    padding: 12px 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-espresso);
    border-radius: 0;
    transition: 0.3s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent-clay); }

/* Radio Pills */
.radio-group { display: flex; gap: 15px; flex-wrap: wrap; }
.radio-pill input { display: none; }
.radio-pill span {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid #D1CAC0;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.2s;
    user-select: none;
}
.radio-pill input:checked + span {
    background: var(--text-espresso);
    color: var(--bg-sand);
    border-color: var(--text-espresso);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--accent-clay);
    color: white;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-serif);
    transition: 0.3s;
}
.btn-submit:hover { background: #A66548; transform: translateY(-2px); }

/* --- 11. FOOTER --- */
.footer { padding: 80px 0; border-top: 1px solid #E5E0DA; margin-top: 60px; }
.footer-flex { display: flex; justify-content: space-between; align-items: start; }
.footer-nav { display: flex; gap: 30px; }
.footer-nav a { font-size: 0.9rem; color: var(--text-light); transition: 0.3s; }
.footer-nav a:hover { color: var(--accent-clay); }

/* ADD THIS TO YOUR STYLES.CSS TO HANDLE THE CARDS CLEANLY */
.ritual-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.ritual-card .card-image {
    /* This controls the gap between image and text */
    margin-bottom: 16px !important; 
}

.ritual-card .tag {
    /* This ensures the tag sits tight against the text below it */
    margin-bottom: 12px !important;
    margin-top: 0 !important;
}

/* ENSURE THIS IS IN YOUR CSS FILE */
.ritual-card .card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* --- RESPONSIVE FIXES --- */

/* Tablet (1024px and down) */
@media (max-width: 1024px) {
    .grid-2 { gap: 40px; }
    .hero-image-frame { height: 400px; }
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
    /* 1. Simplify Nav */
    .nav-left { display: none; }
    .nav-right, .nav-left { width: auto; }
    
    /* 2. Stack Grids */
    .grid-2, .grid-2-center { grid-template-columns: 1fr; gap: 60px; }
    
    /* 3. Hero Adjustments */
    .hero-image-frame { border-radius: 50% 50% 0 0; height: 350px; }
    .hero-title { font-size: 2.8rem; }
    
    /* 4. Order Fixes */
    .story-image { order: -1; } 
    
    /* 5. Footer & Form */
    .form-wrapper { padding: 0; }
    .footer-flex { flex-direction: column; gap: 30px; text-align: center; align-items: center;}
    .footer-nav { flex-direction: column; gap: 15px; }
}