:root {
    --white: #ffffff;
    --peach-bg: #fff5f0;
    --peach-accent: #ff9a7b;
    --black: #000000;
    --text-dark: #1a1a1a;
    --text-grey: #666666;
    --border: rgba(0, 0, 0, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

/* Nav Styling */
.pillar-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 8%; position: fixed; width: 100%; top: 0;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); z-index: 1000;
    border-bottom: 1px solid var(--border);
}
.logo { font-weight: 800; font-size: 1rem; letter-spacing: -0.5px; }
.logo span { color: var(--peach-accent); font-weight: 400; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-size: 0.75rem; font-weight: 700; margin-left: 25px; letter-spacing: 1px; }

/* Section Logic */
.pillar-section {
    min-height: 100vh;
    padding: 140px 8% 80px;
    display: flex;
    position: relative;
    border-bottom: 1px solid var(--border);
}

/* Peach/White alternating logic to keep it fresh */
.etsi-theme { background: var(--white); }
.iwc-theme { background: var(--peach-bg); }
.worship-theme { background: var(--white); }

/* Side Vertical Label */
.side-label {
    position: absolute; left: 3%; top: 140px;
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: 0.7rem; font-weight: 800; color: var(--peach-accent);
    letter-spacing: 5px; opacity: 0.5;
}

.content-wrap { max-width: 900px; width: 100%; margin-left: 50px; }

.eyebrow { font-size: 0.75rem; font-weight: 800; color: var(--peach-accent); letter-spacing: 3px; display: block; margin-bottom: 15px; }

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 25px; }
.italic-serif { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 800; color: var(--text-dark); }

.lead { font-size: 1.2rem; color: var(--text-grey); max-width: 600px; margin-bottom: 50px; }

/* Feature Grid (ETSI) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
.feature-box { padding: 20px 0; }
.line-icon { width: 30px; height: 2px; background: var(--peach-accent); margin-bottom: 15px; }
.feature-box h3 { font-size: 0.9rem; font-weight: 800; margin-bottom: 10px; }
.feature-box p { font-size: 0.85rem; color: var(--text-grey); line-height: 1.5; }

/* Buttons (Using the Black Authority) */
.cta-group { display: flex; gap: 15px; }
.btn-main { 
    background: var(--black); color: var(--white); text-decoration: none;
    padding: 18px 30px; border-radius: 12px; font-weight: 800; font-size: 0.8rem; transition: 0.3s;
}
.btn-outline { 
    border: 1px solid var(--black); color: var(--black); text-decoration: none;
    padding: 18px 30px; border-radius: 12px; font-weight: 800; font-size: 0.8rem;
}

/* Event Cards (IWC) */
.event-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.event-card { 
    background: var(--black); color: var(--white); padding: 40px; border-radius: 20px; 
    transition: 0.4s; cursor: pointer;
}
.event-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.event-type { color: var(--peach-accent); font-size: 0.65rem; font-weight: 800; letter-spacing: 2px; margin-bottom: 15px; display: block; }
.event-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.event-card p { font-size: 0.9rem; color: #999; }

/* Streaming Grid (Worship) */
.streaming-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.stream-link { 
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--white); border: 1px solid var(--border); padding: 25px;
    border-radius: 15px; text-decoration: none; color: var(--text-dark);
    font-weight: 800; font-size: 0.8rem; transition: 0.3s;
}
.stream-link:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.stream-link i { font-size: 1.2rem; }

/* Footer */
.footer-dark { background: var(--black); color: var(--white); padding: 40px; text-align: center; font-size: 0.7rem; letter-spacing: 3px; }

/* --- MOBILE OPTIMIZATION (THE "CLOGGED" FIX) --- */
@media (max-width: 850px) {
    .pillar-nav { padding: 15px 5%; }
    .nav-links { display: none; } /* Keeping it clean on mobile */
    
    .pillar-section { padding: 120px 6% 60px; min-height: auto; }
    .side-label { display: none; }
    .content-wrap { margin-left: 0; }
    
    h1 { font-size: 2.5rem; }
    
    .feature-grid { grid-template-columns: 1fr; gap: 40px; } /* Stack features for readability */
    
    .cta-group { flex-direction: column; }
    .btn-main, .btn-outline { width: 100%; text-align: center; }
    
    .event-cards { grid-template-columns: 1fr; }
    .streaming-grid { grid-template-columns: 1fr; }
}