/* ============================================
   Sacred Heart Chapel — Master Stylesheet
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --primary: #1B2A4A;
    --primary-light: #2C3E6B;
    --accent: #C8A951;
    --accent-hover: #D4BC6A;
    --bg-light: #F8F6F1;
    --bg-white: #FFFFFF;
    --text-dark: #1E1E1E;
    --text-muted: #6B7280;
    --text-light: #F0EDE6;
    --overlay: rgba(27,42,74,0.85);
    --overlay-light: rgba(27,42,74,0.6);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--primary); line-height: 1.3; }
h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.2rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--text-dark); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-transform: uppercase;
}
.btn-primary {
    background: var(--accent);
    color: var(--primary);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(200,169,81,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ---- Section Spacing ---- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header p { max-width: 650px; margin: 0.5rem auto 0; color: var(--text-muted); font-size: 1.05rem; }
.gold-divider {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.header-brand img {
    height: 45px;
    width: auto;
}
.header-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--text-light);
    white-space: nowrap;
    margin: 0;
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.nav-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 70%;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 40px 20px;
}
.hero-content h1 {
    color: var(--text-light);
    font-size: 3.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-content p {
    color: rgba(240,237,230,0.9);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}
/* Page hero (shorter) */
.hero-page { min-height: 50vh; }
.hero-page .hero-content h1 { font-size: 2.8rem; }

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 28px; }
.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 1.4rem;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 30px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 30px; }

/* ============================================
   TWO-COLUMN SECTION
   ============================================ */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
}
.two-col img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
}

/* ============================================
   PARALLAX SECTION
   ============================================ */
.parallax-section {
    position: relative;
    padding: 100px 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    text-align: center;
}
.parallax-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay);
}
.parallax-section .container { position: relative; z-index: 2; }
.parallax-section h2, .parallax-section p {
    color: var(--text-light);
}

/* ============================================
   VALUES / ICON CARDS
   ============================================ */
.value-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.value-card .card-icon { margin: 0 auto 18px; }

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27,42,74,0.0);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: background var(--transition);
}
.gallery-item:hover .gallery-overlay {
    background: rgba(27,42,74,0.5);
}
.gallery-overlay span {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition);
}
.gallery-item:hover .gallery-overlay span {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform var(--transition);
    z-index: 10000;
}
.lightbox-close:hover { transform: scale(1.2); }
.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 10px 25px;
    border-radius: 25px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form { max-width: 100%; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--bg-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200,169,81,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ============================================
   MAP
   ============================================ */
.map-container {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 40px;
}
.map-container iframe { width: 100%; height: 400px; border: none; }

/* ============================================
   CONTACT INFO CARDS
   ============================================ */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}
.contact-info-card i {
    font-size: 1.3rem;
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}
.contact-info-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.contact-info-card p { margin: 0; font-size: 0.95rem; }
.contact-info-card a { color: var(--accent); font-weight: 500; }
.contact-info-card a:hover { color: var(--accent-hover); }

/* ============================================
   MASS SCHEDULE CARD
   ============================================ */
.mass-card {
    background: var(--primary);
    color: var(--text-light);
    border-radius: var(--radius);
    padding: 35px;
    text-align: center;
}
.mass-card h3 { color: var(--accent); margin-bottom: 15px; }
.mass-card .mass-time {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 5px;
}
.mass-card .mass-day { font-size: 1.1rem; color: rgba(240,237,230,0.8); }
.mass-card .mass-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(240,237,230,0.6);
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--primary);
    color: var(--text-light);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { height: 35px; width: auto; }
.footer-brand span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
}
.footer-tagline { color: rgba(240,237,230,0.6); font-size: 0.9rem; line-height: 1.6; }
.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(240,237,230,0.7);
    font-size: 0.9rem;
    transition: color var(--transition), padding-left var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 5px; }
.footer-col p, .footer-col li {
    color: rgba(240,237,230,0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer-col i { color: var(--accent); margin-right: 8px; width: 18px; text-align: center; }
.footer-contact ul li { display: flex; align-items: flex-start; margin-bottom: 15px; }
.footer-contact ul li i { margin-top: 4px; }
.footer-contact .contact-details strong { color: rgba(240,237,230,0.9); font-weight: 500; }
.footer-bottom {
    border-top: 1px solid rgba(200,169,81,0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(240,237,230,0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-content h1, .hero-content p, .hero-content .btn {
    animation: fadeInUp 0.8s ease forwards;
}
.hero-content p { animation-delay: 0.2s; }
.hero-content .btn { animation-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1.2fr 0.7fr 1.6fr 1fr; }
    .hamburger { display: none !important; }
}
@media (max-width: 767px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }
    .hero { min-height: 70vh; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-page { min-height: 40vh; }
    .section { padding: 50px 0; }
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(200,169,81,0.2);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 12px 20px; width: 100%; }
}

/* Sacrament list */
.sacrament-list { padding-left: 0; }
.sacrament-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}
.sacrament-item i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}
.sacrament-item strong { color: var(--primary); }

/* Prayer section */
.prayer-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}
.prayer-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay);
}
.prayer-section .container { position: relative; z-index: 2; }
.prayer-section blockquote {
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
}
.prayer-section cite {
    display: block;
    margin-top: 20px;
    color: var(--accent);
    font-size: 1rem;
    font-style: normal;
}
