﻿/* ============================================================
   Estelle Lodge No. 582 — Master Stylesheet
   Responsive | Mobile-first | Ready to publish
   ============================================================ */
:root {
    --navy: #1a2744;
    --navy-dark: #111b30;
    --navy-light: #243356;
    --gold: #c8a951;
    --gold-light: #e2cc7e;
    --gold-dark: #a88b3a;
    --cream: #f9f6ef;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,.12);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.15);
    --radius: 8px;
    --max-width: 1140px;
    --transition: .3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    font-size: 16px
}

body {
    font-family: 'Georgia','Times New Roman',serif;
    color: var(--gray-800);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block
}

a {
    color: var(--gold-dark);
    text-decoration: none;
    transition: color var(--transition)
}

    a:hover {
        color: var(--gold)
    }

ul {
    list-style: none
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto
}

.text-center {
    text-align: center
}

.section-padding {
    padding: 4rem 0
}

.gold-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg,var(--gold-dark),var(--gold-light));
    margin: 1rem auto;
    border-radius: 2px;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    box-shadow: var(--shadow-md)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 0
}

.logo-group {
    display: flex;
    align-items: center;
    gap: .75rem
}

    .logo-group svg {
        width: 44px;
        height: 44px;
        flex-shrink: 0
    }

.logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .5px;
    line-height: 1.25
}

    .logo-text small {
        display: block;
        font-size: .7rem;
        font-weight: 400;
        color: var(--gold-light);
        letter-spacing: 1.5px;
        text-transform: uppercase
    }

.main-nav ul {
    display: flex;
    gap: 1.6rem
}

.main-nav a {
    color: var(--gray-200);
    font-size: .92rem;
    font-family: 'Segoe UI',Arial,sans-serif;
    letter-spacing: .3px;
    padding: .35rem 0;
    position: relative;
    transition: color var(--transition);
}

    .main-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gold);
        transition: width var(--transition)
    }

    .main-nav a:hover, .main-nav a.active {
        color: var(--gold)
    }

        .main-nav a:hover::after, .main-nav a.active::after {
            width: 100%
        }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative
}

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--gold);
        border-radius: 2px;
        position: absolute;
        left: 6px;
        transition: var(--transition)
    }

        .menu-toggle span:nth-child(1) {
            top: 9px
        }

        .menu-toggle span:nth-child(2) {
            top: 17px
        }

        .menu-toggle span:nth-child(3) {
            top: 25px
        }

    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg);
        top: 17px
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0
    }

    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg);
        top: 17px
    }

/* HERO */
.hero {
    background: linear-gradient(135deg,var(--navy-dark) 0%,var(--navy) 50%,var(--navy-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8a951' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

.hero-content {
    position: relative;
    z-index: 1
}

.hero-logo {
    margin: 0 auto 1.5rem
}

    .hero-logo svg {
        width: 100px;
        height: 100px;
        margin: 0 auto
    }

.hero h1 {
    font-size: 2.4rem;
    letter-spacing: 1px;
    margin-bottom: .25rem
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--gold-light);
    font-style: italic;
    margin-bottom: .5rem
}

.hero .jurisdiction {
    font-size: .9rem;
    color: var(--gray-400);
    letter-spacing: 1px;
    text-transform: uppercase
}

.page-hero {
    background: linear-gradient(135deg,var(--navy-dark),var(--navy));
    color: var(--white);
    text-align: center;
    padding: 3rem 0 2.5rem;
    position: relative
}

    .page-hero h1 {
        font-size: 2rem;
        margin-bottom: .25rem
    }

    .page-hero .subtitle {
        color: var(--gold-light);
        font-style: italic;
        font-size: 1rem
    }

/* INFO CARDS */
.info-section {
    background: var(--white)
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 2rem
}

.info-card {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: transform var(--transition),box-shadow var(--transition)
}

    .info-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg)
    }

    .info-card .icon {
        width: 56px;
        height: 56px;
        margin: 0 auto 1rem;
        background: var(--navy);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center
    }

        .info-card .icon svg {
            width: 26px;
            height: 26px
        }

    .info-card h3 {
        font-size: 1.15rem;
        color: var(--navy);
        margin-bottom: .5rem
    }

    .info-card p {
        font-size: .95rem;
        color: var(--gray-600);
        line-height: 1.6
    }

/* WELCOME */
.welcome-section {
    background: var(--white)
}

.welcome-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center
}

    .welcome-inner h2 {
        font-size: 1.8rem;
        color: var(--navy);
        margin-bottom: .5rem
    }

    .welcome-inner p {
        font-size: 1.05rem;
        color: var(--gray-600);
        line-height: 1.8;
        margin-top: 1rem
    }

/* PAST MASTERS */
.masters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 1.5rem
}

.master-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: transform var(--transition),box-shadow var(--transition)
}

    .master-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md)
    }

.master-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--navy);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 700;
    border: 3px solid var(--gold)
}

.master-card h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin-bottom: .25rem
}

.master-card .year {
    font-size: .9rem;
    color: var(--gold-dark);
    font-weight: 600
}

.master-card .note {
    font-size: .85rem;
    color: var(--gray-600);
    margin-top: .5rem;
    font-style: italic
}

.placeholder-msg {
    background: var(--white);
    border: 2px dashed var(--gold);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0 auto 2rem
}

    .placeholder-msg strong {
        color: var(--navy)
    }

/* TIMELINE */
.timeline {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 0
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 24px;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--gold);
        border-radius: 2px
    }

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem
}

.timeline-dot {
    position: absolute;
    left: 16px;
    top: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--navy);
    border: 3px solid var(--gold)
}

.timeline-dot-img {
    height: 350px
}

.timeline-item h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: .35rem
}

.timeline-item .year-label {
    display: inline-block;
    font-size: .8rem;
    color: var(--white);
    background: var(--gold-dark);
    padding: .15rem .6rem;
    border-radius: 3px;
    margin-bottom: .5rem;
    font-weight: 600
}

.timeline-item p {
    font-size: .95rem;
    color: var(--gray-600);
    line-height: 1.7
}



/* OFFICERS */
.officers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: 1.5rem
}

.officer-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid var(--gray-200);
    transition: transform var(--transition),box-shadow var(--transition)
}

    .officer-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md)
    }

.officer-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 700;
    border: 3px solid var(--gold)
}

.officer-icon2 {
    width: 64px;
    height: 64px;
    border-radius: 10%;
    background: #00000000;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 700;
    border: 3px solid var(--gold)
}

.officer-pic {
    /*width: 64px;*/
    height: 54px
}

.officer-info h3 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: .15rem
}

.officer-info .title {
    font-size: .88rem;
    color: var(--gold-dark);
    font-weight: 600
}

.officer-info .contact {
    font-size: .82rem;
    color: var(--gray-600);
    margin-top: .35rem
}

/* CALENDAR */
.calendar-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
}

.cal-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI',Arial,sans-serif;
    font-size: .92rem
}

    .cal-table th {
        background: var(--navy);
        color: var(--gold);
        padding: .75rem .5rem;
        text-align: left;
        font-weight: 600;
        letter-spacing: .3px
    }

    .cal-table td {
        padding: .75rem .5rem;
        border-bottom: 1px solid var(--gray-200);
        vertical-align: top
    }

    .cal-table tr:nth-child(even) {
        background: var(--gray-100)
    }

    .cal-table tr:hover {
        background: var(--gold-light);
        background: rgba(200,169,81,.12)
    }

.cal-badge {
    display: inline-block;
    font-size: .72rem;
    padding: .15rem .5rem;
    border-radius: 3px;
    font-weight: 600;
    margin-right: .35rem
}

.badge-stated {
    background: var(--navy);
    color: var(--gold)
}

.badge-degree {
    background: var(--gold-dark);
    color: var(--white)
}

.badge-social {
    background: #2d6a4f;
    color: var(--white)
}

.badge-special {
    background: #7b2d8b;
    color: var(--white)
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem
}

    .cal-legend span {
        display: flex;
        align-items: center;
        gap: .4rem;
        font-size: .85rem;
        color: var(--gray-600)
    }

    .cal-legend .dot {
        width: 12px;
        height: 12px;
        border-radius: 3px;
        display: inline-block
    }

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
    gap: 1.5rem
}

.gallery-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: transform var(--transition),box-shadow var(--transition)
}

    .gallery-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md)
    }

.gallery-img {
    width: 100%;
    height: 220px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden
}

    .gallery-img svg {
        width: 48px;
        height: 48px;
        opacity: .4
    }

.gallery-img-placeholder {
    color: var(--gold);
    font-size: .85rem;
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    opacity: .6
}

.gallery-caption {
    padding: 1.25rem
}

    .gallery-caption h3 {
        font-size: 1.05rem;
        color: var(--navy);
        margin-bottom: .25rem
    }

    .gallery-caption p {
        font-size: .88rem;
        color: var(--gray-600);
        line-height: 1.5
    }

/* CTA */
.cta-banner {
    background: linear-gradient(135deg,var(--navy-dark),var(--navy-light));
    color: var(--white);
    text-align: center
}

    .cta-banner h2 {
        font-size: 1.6rem;
        margin-bottom: .5rem
    }

    .cta-banner p {
        color: var(--gray-200);
        margin-bottom: 1.5rem;
        font-size: 1rem
    }

.cta-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--navy-dark);
    padding: .75rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    transition: background var(--transition),transform var(--transition);
    font-family: 'Segoe UI',Arial,sans-serif
}

    .cta-btn:hover {
        background: var(--gold-light);
        color: var(--navy-dark);
        transform: translateY(-2px)
    }

/* FOOTER */
.site-footer {
    background: var(--navy-dark);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
    font-size: .9rem
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 2rem;
    margin-bottom: 2rem
}

.footer-col h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: .75rem;
    letter-spacing: .5px
}

.footer-col p, .footer-col a {
    color: var(--gray-400);
    line-height: 1.8;
    font-size: .88rem
}

    .footer-col a:hover {
        color: var(--gold-light)
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 1.25rem;
    text-align: center;
    font-size: .8rem;
    color: var(--gray-400)
}

/* RESPONSIVE */
@media(max-width:768px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy-dark);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0,0,0,.3);
        z-index: 999
    }

        .main-nav.open {
            right: 0
        }

        .main-nav ul {
            flex-direction: column;
            gap: 1.5rem
        }

        .main-nav a {
            font-size: 1.1rem
        }

    .menu-toggle {
        display: block;
        z-index: 1001
    }

    .hero {
        padding: 3.5rem 0 3rem
    }

        .hero h1 {
            font-size: 1.8rem
        }

    .hero-logo svg {
        width: 80px;
        height: 80px
    }

    .page-hero {
        padding: 2.5rem 0 2rem
    }

        .page-hero h1 {
            font-size: 1.6rem
        }

    .section-padding {
        padding: 3rem 0
    }

    .timeline::before {
        left: 18px
    }

    .timeline-item {
        padding-left: 48px
    }

    .timeline-dot {
        left: 10px
    }

    .officers-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:480px) {
    html {
        font-size: 15px
    }

    .hero h1 {
        font-size: 1.5rem
    }

    .hero .subtitle {
        font-size: 1rem
    }

    .info-grid {
        grid-template-columns: 1fr
    }

    .masters-grid {
        grid-template-columns: 1fr
    }

    .gallery-grid {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .header-inner {
        padding: .6rem 0
    }

    .logo-text {
        font-size: .9rem
    }

        .logo-text small {
            font-size: .65rem
        }

    .officer-card {
        flex-direction: column;
        text-align: center
    }
}

@media(min-width:1200px) {
    .hero {
        padding: 6rem 0 5rem
    }

        .hero h1 {
            font-size: 2.8rem
        }
}
