/*
Theme Name: TR Special Ceremonies
Theme URI: [trspecialceremonies.com](https://trspecialceremonies.com)
Author: TR Special Ceremonies
Description: Custom theme for TR Special Ceremonies celebrant website
Version: 1.0
*/

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
    --purple:       #702963;
    --purple-light: #bfa2c7;
    --grey:         #8b8b8b;
    --white:        #ffffff;
    --off-white:    #faf7fb;
    --dark:         #2b2b2b;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Lato', Arial, sans-serif;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--dark);
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--purple);
    line-height: 1.25;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.2rem; color: var(--dark); }

/* ─── Layout Utilities ──────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 70px 0;
}

.section--tinted {
    background: var(--off-white);
}

.section--purple {
    background: var(--purple);
    color: var(--white);
}

.section--purple h2,
.section--purple h3,
.section--purple p {
    color: var(--white);
}

.text-center { text-align: center; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.btn--primary {
    background: var(--purple);
    color: var(--white);
    border: 2px solid var(--purple);
}
.btn--primary:hover {
    background: transparent;
    color: var(--purple);
    text-decoration: none;
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn--outline:hover {
    background: var(--white);
    color: var(--purple);
    text-decoration: none;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--off-white);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem;
    max-width: 750px;
}

.hero__content h1 { color: var(--white); }

.hero__content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 1rem 0 1.8rem;
}

/* ─── Service Cards ─────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(112,41,99,0.09);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(112,41,99,0.15);
}

.card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card__body h3 { margin-bottom: 0.5rem; }
.card__body p  { flex: 1; font-size: 0.95rem; }
.card__body .btn { margin-top: 1rem; align-self: flex-start; }

/* ─── Two-column split ──────────────────────────────────────── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split--reversed .split__img { order: 2; }
.split--reversed .split__text { order: 1; }

.split__img img {
    border-radius: 6px;
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* ─── Testimonial / Quote ───────────────────────────────────── */
.testimonial {
    background: var(--off-white);
    border-left: 4px solid var(--purple);
    padding: 1.5rem 2rem;
    border-radius: 0 6px 6px 0;
    margin: 2rem 0;
}

.testimonial p {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--purple);
    margin: 0 0 0.5rem;
}

.testimonial cite {
    font-size: 0.9rem;
    color: var(--grey);
    font-style: normal;
}

/* ─── FAQ Accordion ─────────────────────────────────────────── */
.faq { margin-top: 2rem; }

.faq details {
    border-bottom: 1px solid var(--purple-light);
    padding: 0.75rem 0;
}

.faq summary {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--purple);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    transition: transform 0.2s;
}

.faq details[open] summary::after { content: '−'; }

.faq details p {
    margin: 0.75rem 0 0.25rem;
    font-size: 0.95rem;
    color: var(--dark);
}

/* ─── Contact Section ───────────────────────────────────────── */
.contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.contact-bar a {
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
}

.contact-bar a:hover { text-decoration: underline; }

/* CF7 form overrides */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--purple-light);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    background: var(--white);
    color: var(--dark);
}

.wpcf7 input[type="submit"] {
    background: var(--purple);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.wpcf7 input[type="submit"]:hover { background: var(--purple-light); }

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.75);
    padding: 3rem 0 1.5rem;
    font-size: 0.9rem;
}

/* ─── Page Banner (inner pages) ─────────────────────────────── */
.page-banner {
    background: linear-gradient(135deg, var(--purple) 0%, #9b4a8a 100%);
    color: var(--white);
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.page-banner h1 { color: var(--white); }
.page-banner p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin: 0; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .split {
        grid-template-columns: 1fr;
    }
    .split--reversed .split__img,
    .split--reversed .split__text {
        order: unset;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--purple-light);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .main-nav.is-open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    .main-nav a {
        padding: 0.75rem 1.5rem;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .footer-inner   { grid-template-columns: 1fr; }
    .cards-grid     { grid-template-columns: 1fr; }
    .hero           { min-height: 380px; }
}

/* ─── Pricing Cards ─────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 2rem auto 0;
}
.pricing-card {
    background: var(--white);
    border: 2px solid var(--purple-light);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(112,41,99,0.15);
}
.pricing-card--featured {
    border-color: var(--purple);
    box-shadow: 0 4px 20px rgba(112,41,99,0.15);
}
.pricing-card__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
}
.pricing-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.pricing-card__price {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--purple);
    line-height: 1;
    margin: 0.75rem 0;
}
.pricing-card p { font-size: 0.92rem; color: var(--grey); margin-bottom: 1.25rem; }