/*
Theme Name:  Resurrection Church
Theme URI:   https://resurrectiontx.org
Author:      Resurrection Church
Description: Custom theme for Resurrection Church, Cypress Texas
Version:     1.0
License:     GNU General Public License v2 or later
Text Domain: resurrection-church
*/

/* =========================================================
   BRAND COLOR TOKENS
   ========================================================= */
:root {
    --color-bg:           #f9f6f1; /* cream — primary background */
    --color-bg-alt:       #ede8e0; /* slightly darker cream — alternating sections */
    --color-text:         #1a1a1a; /* deep charcoal — primary text */
    --color-accent:       #A8882A; /* warm gold — links, highlights, CTAs */
    --color-accent-dark:  #8a6e1f; /* darker gold — button hover state */
    --color-divider:      #d4cdc4; /* warm gray — borders and dividers */
    --color-footer-bg:    #1a1a1a; /* charcoal — footer background */
    --color-footer-text:  #f0ece5; /* off-white — footer text */

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Lato', Helvetica, Arial, sans-serif;

    --container-width: 1100px;
    --container-padding: 0 1.5rem;
}

/* =========================================================
   GLOBAL RESET
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================================================
   BASE BODY
   ========================================================= */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   HEADINGS
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* =========================================================
   PARAGRAPHS & LINKS
   ========================================================= */
p {
    margin-bottom: 1.25rem;
    font-family: var(--font-body);
    font-weight: 400;
}

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

a:hover,
a:focus {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

/* =========================================================
   IMAGES
   ========================================================= */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   UTILITY: .container
   Centers content with a max-width and horizontal padding.
   ========================================================= */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: var(--container-padding);
    width: 100%;
}

/* =========================================================
   UTILITY: .gold-label
   Eyebrow / section label — small, spaced, uppercase gold text.
   Usage: <span class="gold-label">Our Mission</span>
   ========================================================= */
.gold-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

/* =========================================================
   UTILITY: .btn-primary
   Gold call-to-action button with hover transition.
   Usage: <a href="#" class="btn-primary">Learn More</a>
   ========================================================= */
.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    border: 2px solid var(--color-accent);
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
    text-decoration: none;
}

/* =========================================================
   UTILITY: .section-divider
   Thin centered gold horizontal rule between sections.
   Usage: <div class="section-divider"></div>
   ========================================================= */
.section-divider {
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 1.5rem auto;
    border: none;
}

/* =========================================================
   SKIP LINK (accessibility)
   ========================================================= */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-accent);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    font-weight: 700;
    z-index: 9999;
    border-radius: 0 0 4px 4px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* =========================================================
   GLOBAL MOBILE UTILITIES
   Shared rules applied across all page templates.
   Individual templates should not need to repeat these.

   Breakpoints:
     Tablet  — max-width: 768px
     Mobile  — max-width: 480px
   ========================================================= */

/* ---- Tablet (≤768px) ---- */
@media (max-width: 768px) {

    /* Reduce heading scale on mid-size screens */
    h1 { font-size: clamp(1.75rem, 5.5vw, 2.4rem); }
    h2 { font-size: clamp(1.35rem, 4vw, 1.85rem); }

}

/* ---- Mobile (≤480px) ---- */
@media (max-width: 480px) {

    /* Hard cap hero headings — nothing overflows at this size */
    h1 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
    h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); }

    /* Container: guarantee content never touches screen edge */
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Gold labels: tighten letter-spacing so they don't wrap */
    .gold-label {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    /* Buttons: full width and centred on mobile */
    .btn-primary,
    .btn-outline {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Button pairs: any flex row of buttons stacks vertically */
    .btn-pair,
    [class*="__actions"],
    [class*="__cta"] > a + a {
        flex-direction: column;
        align-items: stretch;
    }

    /* Section divider stays centred */
    .section-divider {
        margin-left: auto;
        margin-right: auto;
    }

}
