/* =================================================================
   style-index.css
   Index page styles scoped to body.page-indexpage
   ================================================================= */

/* -- Hero fix: background color + centering -- */
body.page-indexpage .indexpage-hero {
    background: var(--navy, #1A1464);
    color: white;
    padding: 8rem 2rem;
    text-align: center;
}
body.page-indexpage .indexpage-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
    line-height: 1.2;
}
body.page-indexpage .indexpage-hero p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    opacity: 0.9;
    margin: 0 auto 0.5rem;
    max-width: 700px;
}

/* -- Quick facts strip -- */
body.page-indexpage .h-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.15);
    align-items: center;
    justify-content: center;
}
body.page-indexpage .h-fact {
    font-size: 1.0rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
body.page-indexpage .h-fact-icon {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* -- Hero buttons -- */
body.page-indexpage .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* -- Button overrides: magenta primary -- */
body.page-indexpage .btn-primary {
    background: var(--magenta, #A31662);
    color: white;
    border: 2px solid var(--magenta, #A31662);
}
body.page-indexpage .btn-primary:hover {
    background: #8a1253;
    border-color: #8a1253;
}
body.page-indexpage .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}
body.page-indexpage .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* -- Upcoming events section -- */
body.page-indexpage .upcoming-events {
    padding: 4rem 2rem;
    background: white;
}
body.page-indexpage .catalog-header {
    text-align: center;
    margin-bottom: 2rem;
}
body.page-indexpage .catalog-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy, #1A1464);
    margin-bottom: 0.75rem;
}
body.page-indexpage .catalog-header p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}
body.page-indexpage .events-preview {
    max-width: 1000px;
    margin: 0 auto;
}

/* -- Pillars Grid -- */
body.page-indexpage .pillars {
    padding: 4rem 2rem;
    background: var(--cream, #FDFBF9);
}
body.page-indexpage .pillars-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
body.page-indexpage .pillars-label {
    color: var(--magenta);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
body.page-indexpage .pillars h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}
body.page-indexpage .pillars-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--warm-gray);
}
body.page-indexpage .pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
body.page-indexpage .pillar-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border-top: 4px solid transparent;
}
body.page-indexpage .pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
body.page-indexpage .pillar-card.pillar-studios  { border-top-color: var(--pillar-studios); }
body.page-indexpage .pillar-card.pillar-retreats { border-top-color: var(--pillar-retreats); }
body.page-indexpage .pillar-card.pillar-stays    { border-top-color: var(--pillar-stays); }
body.page-indexpage .pillar-card.pillar-events   { border-top-color: var(--pillar-events); }
body.page-indexpage .pillar-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}
body.page-indexpage .pillar-card p {
    font-size: 0.95rem;
    color: var(--warm-gray);
    line-height: 1.5;
    flex: 1;
}
body.page-indexpage .pillar-card .pillar-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: var(--magenta);
    margin-top: 1rem;
    font-weight: 500;
}
body.page-indexpage .pillar-card:hover .pillar-link { text-decoration: underline; }
body.page-indexpage .pillar-card.pillar-studios .pillar-link  { color: var(--pillar-studios); }
body.page-indexpage .pillar-card.pillar-retreats .pillar-link { color: var(--pillar-retreats); }
body.page-indexpage .pillar-card.pillar-stays .pillar-link    { color: var(--pillar-stays); }
body.page-indexpage .pillar-card.pillar-events .pillar-link   { color: var(--pillar-events); }

/* -- The Venue / Residents Grid -- */
body.page-indexpage .residents-preview {
    padding: 4rem 2rem;
    background: white;
}
body.page-indexpage .residents-preview-inner {
    max-width: 1100px;
    margin: 0 auto;
}
body.page-indexpage .residents-preview h2 {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 2rem;
}
body.page-indexpage .residents-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}
body.page-indexpage .resident-item { text-align: center; }
body.page-indexpage .resident-thumb {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 0.75rem;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
body.page-indexpage .resident-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.page-indexpage .resident-item p {
    font-size: 0.85rem;
    color: var(--warm-gray);
}

/* -- For Teachers Section -- */
body.page-indexpage .teachers-section {
    padding: 4rem 2rem;
    background: var(--cream, #FDFBF9);
    text-align: center;
}
body.page-indexpage .teachers-section-inner {
    max-width: 800px;
    margin: 0 auto;
}
body.page-indexpage .teachers-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
body.page-indexpage .teachers-section .subtitle {
    color: var(--magenta);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
body.page-indexpage .teachers-section p {
    color: var(--warm-gray);
    max-width: 600px;
    margin: 0 auto 1rem;
}
body.page-indexpage .teachers-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}
body.page-indexpage .teachers-step {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
body.page-indexpage .teachers-step .step-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--magenta);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 0.5rem;
}
body.page-indexpage .teachers-step h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
body.page-indexpage .teachers-step p {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.5;
}

/* -- Email Signup -- */
body.page-indexpage .email-signup {
    padding: 3rem 2rem;
    background: var(--navy, #1A1464);
    color: white;
    text-align: center;
}
body.page-indexpage .email-signup-inner {
    max-width: 520px;
    margin: 0 auto;
}
body.page-indexpage .email-signup h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
body.page-indexpage .email-signup p {
    opacity: 0.85;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
body.page-indexpage .email-signup-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}
body.page-indexpage .email-signup-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
}
body.page-indexpage .email-signup-form input::placeholder { color: #999; }
body.page-indexpage .email-signup-form .btn-primary {
    background: white;
    color: var(--navy, #1A1464);
    border-color: white;
}
body.page-indexpage .email-signup-form .btn-primary:hover {
    background: var(--cream, #FDFBF9);
}

/* -- CTA / Location -- */
body.page-indexpage .cta {
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}
body.page-indexpage .cta-inner {
    max-width: 600px;
    margin: 0 auto;
}
body.page-indexpage .cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
body.page-indexpage .cta p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}
body.page-indexpage .cta a { color: white; }

/* -- CTA Buttons -- */
body.page-indexpage .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* -- Responsive -- */
@media (max-width: 900px) {
    body.page-indexpage .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    body.page-indexpage .residents-grid { grid-template-columns: repeat(3, 1fr); }
    body.page-indexpage .teachers-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    body.page-indexpage .pillars-grid { grid-template-columns: 1fr; }
    body.page-indexpage .residents-grid { grid-template-columns: repeat(2, 1fr); }
    body.page-indexpage .resident-thumb { width: 100px; height: 100px; }
    body.page-indexpage .email-signup-form { flex-direction: column; }
    body.page-indexpage .indexpage-hero { padding: 5rem 1.5rem; }
    body.page-indexpage .indexpage-hero h1 { font-size: 2.2rem; }
}
