/* Import Typography */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* Color Variables */
:root {
    --navy: #0D1B2A;
    --gold: #C9A227;
    --parchment: #F4F1E8;
    --blue-gray: #6B7A8F;
}

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--parchment);
    color: var(--navy);
    font-family: 'Lora', serif;
    line-height: 1.6;
    font-size: 18px;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

/* Typography Utilities */
.small-caps {
    font-variant: small-caps;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 3.6rem;
}

.gold-divider {
    border: 0;
    height: 1px;
    background-color: var(--gold);
    margin: 3rem auto;
    width: 80%;
    max-width: 600px;
}

/* Navigation */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(13, 27, 42, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--navy);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.75rem 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--gold);
    color: var(--navy);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 10%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-seal {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 50%;
}

.hero h1 {
    font-size: 2.5rem;
    margin: 1.5rem 0;
}

.pull-quote {
    font-size: 4rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-support {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-hymn {
    font-style: italic;
    color: var(--gold);
    margin-bottom: 2.5rem;
}

.hero-hymn-attribution {
    display: block;
    font-size: 0.85rem;
    font-style: normal;
    margin-top: 0.25rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    border: 1px solid var(--gold);
    padding: 2rem;
    text-align: center;
    background-color: #fffdf8;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Forms */
form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--blue-gray);
    background-color: transparent;
    font-family: 'Lora', serif;
    color: var(--navy);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    border-top: 1px solid rgba(13, 27, 42, 0.1);
    margin-top: 4rem;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--navy);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Breakpoints */

/* Tablet and below */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: block;
    }

    header {
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--parchment);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 1000;
    }

    nav ul.open {
        display: flex;
    }

    nav ul li a {
        font-size: 1.3rem;
    }

    /* Hero Section */
    .hero {
        padding: 2.5rem 5%;
    }

    .hero-seal {
        max-width: 200px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .small-caps {
        font-size: 2rem;
    }

    .pull-quote {
        font-size: 2.2rem;
    }

    /* Sections */
    section {
        padding: 2.5rem 5%;
    }

    .gold-divider {
        margin: 2rem auto;
    }

    /* Grids */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid-6 {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    /* Forms */
    .form-group input {
        padding: 0.85rem;
        font-size: 16px;
    }

    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .hero-actions .btn {
        width: auto;
    }

    /* Footer */
    footer {
        margin-top: 2rem;
        padding: 2rem 5%;
    }

    /* Roadmap callout boxes */
    section div[style*="border-left"] {
        padding: 1rem;
    }

    /* Lists with inline margin-left */
    main ul {
        margin-left: 1.25rem !important;
    }

    /* Prevent horizontal overflow */
    main {
        overflow-x: hidden;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.25rem;
    }

    .small-caps {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .pull-quote {
        font-size: 1.8rem;
    }

    .hero-seal {
        max-width: 150px;
    }

    .grid-6 {
        grid-template-columns: 1fr 1fr;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}