/* =========================================================
   Mater Christi Sacrament Registration Portal
   Consolidated site styles
   ========================================================= */

html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    background-color: #f7f4ee;
    color: #333333;
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Parish colours */
:root {
    --parish-blue: #0f172f;
    --parish-blue-dark: #0a1124;
    --parish-gold: #a06f45;
    --parish-gold-dark: #875b38;
    --parish-gold-light: #c7a27d;
    --parish-white: #ffffff;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title,
.login-title,
.welcome-banner h1,
.welcome-banner h2,
.navbar-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-style: normal;
    font-weight: 400;
}

.hero-subtitle,
.welcome-banner p {
    font-family: Georgia, "Times New Roman", serif;
    font-style: normal;
    font-weight: 400;
}

/* Navbar */
.site-header,
.navbar-custom {
    background-color: var(--parish-blue);
    border-bottom: 3px solid var(--parish-gold);
}

.navbar-brand {
    color: white !important;
}

.nav-link {
    color: white !important;
}

    .nav-link:hover,
    .nav-link:focus {
        color: var(--parish-gold-light) !important;
    }

/* Main layout */
.portal-shell,
main {
    flex: 1;
}

/* Welcome banner */
.welcome-banner {
    background: white;
    border-radius: 10px;
    padding: 28px;
    margin-top: 35px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .welcome-banner h1,
    .welcome-banner h2 {
        color: var(--parish-blue);
    }

    .welcome-banner p {
        color: #555555;
    }

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.portal-card {
    border-radius: 12px;
    border-top: 4px solid var(--parish-gold);
    background-color: white;
}

/* Buttons */
.btn,
.custom-btn,
.btn-edit {
    font-family: Georgia, "Times New Roman", serif;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.4px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary,
.custom-btn,
.btn-edit {
    background-color: rgba(255, 255, 255, 0.96) !important;
    border: 2px solid var(--parish-gold) !important;
    color: #6f4e37 !important;
    padding: 10px 24px;
}

    .btn-primary:hover,
    .custom-btn:hover,
    .btn-primary:focus,
    .custom-btn:focus,
    .btn-edit:hover,
    .btn-edit:focus {
        background-color: var(--parish-gold) !important;
        border-color: var(--parish-gold) !important;
        color: white !important;
    }

    .btn-primary:active,
    .custom-btn:active,
    .btn-edit:active {
        background-color: var(--parish-gold-dark) !important;
        border-color: var(--parish-gold-dark) !important;
        color: white !important;
    }

.btn-outline-primary {
    color: #6f4e37 !important;
    border: 2px solid var(--parish-gold) !important;
    border-radius: 30px;
    font-family: Georgia, "Times New Roman", serif;
    font-style: normal;
    font-weight: 400;
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active {
        background-color: var(--parish-gold) !important;
        border-color: var(--parish-gold) !important;
        color: white !important;
    }

/* Preserve semantic colours for admin actions */
.btn-success,
.btn-danger,
.btn-warning,
.btn-secondary {
    font-family: Georgia, "Times New Roman", serif;
    font-style: normal;
    font-weight: 400;
    border-radius: 30px;
}

/* Tables */
.table thead {
    background-color: var(--parish-blue);
    color: white;
}

.table td,
.table th {
    white-space: nowrap;
    vertical-align: middle;
}

/* Identity pages */
.login-title {
    color: var(--parish-blue);
    font-weight: 400;
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--parish-blue);
    color: white;
    border-top: 3px solid var(--parish-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-style: normal;
}

/* HERO SECTION */
.hero-section {
    background-image: url('/images/church.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 650px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.45);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-size: 2.6rem;
    line-height: 1.15;
    margin-bottom: 10px;
    color: white;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 1.55rem;
    margin-bottom: 30px;
    font-weight:400;
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

    .hero-buttons .btn-gold,
    .hero-buttons .btn-light {
        background-color: rgba(255, 255, 255, 0.95) !important;
        color: #6f4e37 !important;
        border: 2px solid var(--parish-gold) !important;
        padding: 12px 30px;
        border-radius: 30px;
        font-family: Georgia, "Times New Roman", serif;
        font-style: normal;
        font-size: 1rem;
        font-weight: 400;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        text-decoration: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

        .hero-buttons .btn-gold:hover,
        .hero-buttons .btn-light:hover,
        .hero-buttons .btn-gold:focus,
        .hero-buttons .btn-light:focus {
            background-color: var(--parish-gold) !important;
            border-color: var(--parish-gold) !important;
            color: white !important;
        }

/* Admin dropdown */
.dropdown-menu {
    background-color: var(--parish-blue);
    border: 2px solid var(--parish-gold);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 240px;
}

.dropdown-item {
    color: white;
    padding: 10px 18px;
    font-weight: 500;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: var(--parish-blue-dark);
        color: var(--parish-gold-light);
    }

.navbar .dropdown-toggle:hover {
    color: var(--parish-gold-light) !important;
}

/* Section helpers */
.section-title {
    color: var(--parish-gold);
    font-weight: 400;
}

.text-gold {
    color: var(--parish-gold);
}

/* Validation */
.validation-summary-valid {
    display: none;
}

.validation-summary-errors {
    display: block;
}

/* Create account loading state */
#registerSubmit.creating-account,
#registerSubmit.creating-account:disabled {
    background-color: var(--parish-gold) !important;
    border-color: var(--parish-gold) !important;
    color: white !important;
    opacity: 1 !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-section {
        height: 560px;
        background-position: center center;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
        gap: 12px;
    }

        .hero-buttons a {
            width: 100%;
        }

    .navbar-brand {
        white-space: normal;
        line-height: 1.2;
        max-width: 75%;
    }

        .navbar-brand img {
            max-height: 55px;
        }

    h1,
    h2,
    .login-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .card {
        margin: 10px;
        padding: 15px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 15px;
        align-items: stretch !important;
    }

        .d-flex.justify-content-between .btn {
            width: 100%;
        }
}

/* Mobile table scrolling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

    .table-responsive table {
        min-width: 1400px;
    }

@media (max-width: 576px) {
    .hero-section {
        height: 520px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .welcome-banner {
        padding: 20px 15px;
        margin-top: 20px;
        margin-bottom: 25px;
    }

    .hero-buttons .btn-gold,
    .hero-buttons .btn-light {
        font-size: 0.95rem;
        padding: 11px 20px;
    }
}
/* Keep all navbar items visually consistent */
.navbar-custom .nav-link,
.navbar-custom .dropdown-toggle,
.navbar-custom .btn-link,
.navbar-custom form button,
.site-header .nav-link,
.site-header .dropdown-toggle,
.site-header .btn-link,
.site-header form button {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.3px;
    line-height: 1.2;
    color: white !important;
    text-decoration: none !important;
}

.nav-link.active,
.navbar .dropdown-toggle.active {
    color: var(--parish-gold-light) !important;
    border-bottom: 2px solid var(--parish-gold);
    font-weight: 500 !important;
}

.navbar-brand {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 1.5rem;
    letter-spacing: 0.3px;
    color: white !important;
}

/* =========================================================
FINAL MOBILE STYLING
========================================================= */

@media (max-width: 576px) {

    /* ---------- Header ---------- */

    .navbar-brand {
        font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
        font-size: 1.05rem !important;
        font-weight: 500 !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
        white-space: normal !important;
        max-width: 70% !important;
    }

        .navbar-brand img {
            max-height: 45px !important;
            width: auto;
            margin-right: 8px;
        }


    /* ---------- Home page hero ---------- */

    .hero-section {
        height: 500px;
        margin-bottom: 0;
        background-position: center center;
    }

    .hero-overlay {
        padding: 15px;
    }

    .hero-title {
        font-size: 1.7rem !important;
        line-height: 1.1 !important;
        margin-bottom: 8px;
        letter-spacing: 0.3px;
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
        line-height: 1.2 !important;
        margin-bottom: 20px;
    }

    .hero-buttons {
        width: 100%;
        padding: 0 18px;
        gap: 12px;
        align-items: center;
    }

        .hero-buttons a,
        .hero-buttons .btn-gold,
        .hero-buttons .btn-light {
            width: 100%;
            max-width: 320px;
            padding: 10px 16px !important;
            font-size: 0.95rem !important;
            line-height: 1.15;
            margin-bottom: 0 !important;
        }


    /* ---------- Welcome banner ---------- */

    .welcome-banner {
        padding: 20px 15px !important;
        margin-top: 20px !important;
        margin-bottom: 25px !important;
    }

        .welcome-banner h1,
        .welcome-banner h2 {
            font-size: 1.6rem !important;
            line-height: 1.15 !important;
            margin-bottom: 12px;
        }

        .welcome-banner p {
            font-size: 1rem !important;
            line-height: 1.35 !important;
            margin-bottom: 0;
        }


    /* ---------- Page headings ---------- */

    .section-title,
    .login-title,
    main h1,
    main h2 {
        font-size: 1.55rem !important;
        line-height: 1.15 !important;
    }


    /* ---------- Buttons ---------- */

    .btn {
        font-size: 1rem !important;
        padding: 9px 18px;
    }


    /* ---------- Cards ---------- */

    .card {
        margin: 10px 0;
        padding: 15px;
    }


    /* ---------- Footer ---------- */

    footer {
        font-size: 0.9rem !important;
        line-height: 1.25;
    }

        footer strong {
            font-size: 1rem !important;
        }
}
