/* =============================================================
   HOME PAGE — home.css
   Sharp borders replacing all rounded variants (per brief).
   ============================================================= */

/* ── Hero ─────────────────────────────────── */
.home-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--main-menu-height));
    padding-top: var(--main-menu-height);
}

/* When notice bar is active, pull homepage hero up by its height too */
body.snb-active .home-hero {
    margin-top: calc(-1 * var(--main-menu-height) - var(--snb-height, 40px));
    padding-top: calc(var(--main-menu-height) + var(--snb-height, 40px));
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://stjosephclarkston.com/wp-content/uploads/2026/01/Welcome-View-from-LHS-scal.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(44,62,80,0.50) 0%, rgba(44,62,80,0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
    margin-top: 30px;
}

.home-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--white);
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.3s;
}

.home-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.6s;
}

.hero-btns {
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.9s;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Mass Times section ───────────────────── */
.timetable-section {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
}

.timetable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.time-card {
    background: var(--white);
    padding: 32px 28px;
    box-shadow: var(--shadow-medium);
    border-bottom: 4px solid var(--accent);
    transition: var(--transition);
}

.time-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-float);
}

.time-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-card h3 i { color: var(--accent); font-size: 1.5rem; }

.time-row {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

.time-row:last-of-type { border-bottom: none; }

.time-row span.time {
    font-weight: 700;
    color: var(--primary);
}

.additional-section-title {
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
}

.btn-card { margin-top: 25px; text-align: center; }

.btn-card a {
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white);
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-card a:hover { background: var(--accent); color: var(--primary-dark); }

/* ── About section ────────────────────────── */
.about-section {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrapper { position: relative; }

.about-img-wrapper img {
    width: 100%;
    box-shadow: var(--shadow-float);
    transition: var(--transition);
}

.about-img-wrapper:hover img { transform: scale(1.02); }

.about-img-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent);
    top: 18px;
    left: 18px;
    z-index: -1;
    opacity: 0.25;
}

.about-content h4 {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.about-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 20px;
    color: var(--primary);
}

/* ── Diocese section ──────────────────────── */
.diocese-section {
    position: relative;
    padding: 100px 0;
    background-attachment: fixed;
    background-size: cover;
    background-image: url('https://stjosephclarkston.com/wp-content/uploads/2026/01/Diocese-of-Paisley.jpg');
    background-position: center;
    color: var(--white);
}

.diocese-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44,62,80,0.88);
}

.diocese-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.diocese-content i    { font-size: 3rem; color: var(--accent); margin-bottom: 20px; display: block; }
.diocese-content h2   { color: var(--white); margin-bottom: 20px; font-size: 2.2rem; }
.diocese-content p    { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 0; }

/* ── Easter liturgical colour variables ────── */
:root {
    --easter-white:      #fffef7;
    --easter-gold:       #D4AF37;
    --easter-gold-light: #F3E5AB;
    --easter-gold-dark:  #B8860B;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .home-hero    { min-height: 70vh; }
    .timetable-section { margin-top: -40px; }
    .time-card    { padding: 24px 20px; }
    .diocese-section { background-attachment: scroll; }
}
