/* Lodge St Andrew No. 966 - site styles */

:root {
    --navy: #0b1f3a;
    --navy-dark: #071426;
    --gold: #b8944f;
    --gold-light: #d8bd82;
    --text-muted: #6b7280;
    --bg-alt: #f4f5f7;
    --radius: 6px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #222;
    line-height: 1.6;
    background: #fff;
}

h1, h2, h3, h4 {
    font-family: 'Trajan Pro', 'Georgia', serif;
    color: var(--navy);
    margin-top: 0;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Header */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.brand-text {
    display: flex;
    flex-direction: column;
    color: #fff;
}

.brand-text strong {
    font-size: 1.05rem;
}

.brand-text small {
    color: var(--gold-light);
    font-size: .75rem;
}

.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
}

.main-nav a {
    color: #fff;
    font-weight: bold;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: .85rem;
}

.main-nav a:hover { color: var(--gold-light); }

.nav-icon-link {
    display: flex;
    align-items: center;
    color: #fff;
}

.nav-icon-link:hover { color: var(--gold-light); }

.nav-register-btn {
    background: var(--gold);
    color: var(--navy-dark) !important;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: .8rem !important;
}

.nav-register-btn:hover {
    background: var(--gold-light);
    color: var(--navy-dark) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,20,38,.75), rgba(7,20,38,.55));
}

.hero-content {
    position: relative;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.hero-content h1 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.hero-content p {
    color: var(--gold-light);
    font-size: 1.15rem;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--navy-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy-dark);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .85rem;
    border: none;
    cursor: pointer;
}

.btn:hover { background: var(--gold-light); color: var(--navy-dark); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}

/* Sections */
.page-section {
    padding: 70px 0;
}

.alt-bg { background: var(--bg-alt); }

.section-heading {
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-subheading {
    color: var(--text-muted);
    font-weight: normal;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Cards */
.cards {
    display: grid;
    gap: 30px;
    margin-top: 20px;
}

.cards-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    text-align: center;
    padding: 24px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.card-icon {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 2px solid var(--gold);
}

.team-photo {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 3px solid var(--gold);
}

/* Split section (image + text) */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.split-media img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
}

/* Events */
.events-list {
    display: grid;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.event-item {
    background: #fff;
    padding: 24px;
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.event-recurrence {
    color: var(--gold);
    font-weight: bold;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.cta-section {
    background: var(--navy);
    color: #fff;
}

.cta-section .section-heading,
.cta-section .section-subheading { color: #fff; }

/* Contact form */
.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form .error {
    color: #b00020;
    font-size: .85rem;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #e6f4ea;
    color: #1e6b34;
    border: 1px solid #b7ddc0;
}

/* Footer */
.site-footer {
    background: var(--navy-dark);
    color: #cbd3de;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 50px 20px;
}

.footer-col h3 {
    color: var(--gold-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 12px;
}

.footer-col a { color: #cbd3de; }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    text-align: center;
    font-size: .85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .cards-3 { grid-template-columns: 1fr; }
    .split-section { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 12px 20px;
        display: none;
    }
    .main-nav.open { display: flex; }
    .footer-inner { grid-template-columns: 1fr; }
}
