/* CSS custom properties */
:root {
    /* Type: Playfair Display (serif) for headings, Source Sans 3 for body.
       Loaded site-wide from Google Fonts in includes/header.php. */
    --font-family-base: 'Source Sans 3', 'Segoe UI', Tahoma, Geneva, sans-serif;
    --font-family-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-size-base: 1.2rem;
    --header-bg: #f8f8f8;
    --colour-text: #333;
    --colour-primary: #5a2d82;
    --colour-secondary: #2d7a4f;
    --colour-card-bg: #f0eaf7;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(40, 18, 60, 0.10);
    --shadow-lg: 0 18px 50px rgba(40, 18, 60, 0.18);
}

/* Base body styles */
body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Headings use the serif display face throughout the site */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-head);
}

/* Main content area */
.main-content {
    max-width: 960px;
    width: 100%;
    margin: 120px auto 0 auto;
    background: #fff;
    min-height: 500px;
    padding: 24px 16px;
    box-sizing: border-box;
}

/* Footer styles */
.main-footer {
    width: 100%;
    background-color: var(--header-bg);
    padding: 24px 0 0 0;
    box-sizing: border-box;
    margin-top: 40px;
}

.footer-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px 24px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .main-content,
    .footer-container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 700px) {
    .main-content {
        margin-top: 110px;
        padding: 16px 6px;
    }
    .footer-container {
        padding: 0 6px 16px 6px;
    }
}
/* Header container for max width and centering */
.header-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.25rem 0 10px;
}

@media (max-width: 1024px) {
    .header-container {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 700px) {
    .main-header {
        padding: 0;
        height: auto;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    .header-left {
        margin-bottom: 0;
    }
}
/* Main header styles */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 95px;
    background-color: var(--colour-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}

@media (max-width: 1024px) {
    .main-header {
        padding: 0;
    }
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 95px;
}

.logo-link {
    text-decoration: none;
    border: none;
    outline: none;
}

.site-title {
    margin-left: 15px;
    font-size: 24px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--colour-text);
}

/* =====================================================================
   HOME PAGE — full-bleed hero carousel
   The hero breaks out of the 960px .main-content box to span the full
   viewport width, and is pulled up to sit flush beneath the fixed 95px
   header. Offsets mirror .main-content: margin-top 120 + padding-top 24.
   ===================================================================== */
.s-hero {
    position: relative;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-top: -49px;          /* 120px top margin + 24px pad - 95px header */
    min-height: clamp(460px, 78vh, 720px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #1a0e29;
    isolation: isolate;
}

.s-hero__slides,
.s-hero__slide {
    position: absolute;
    inset: 0;
}

.s-hero__slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.1s ease-in-out, transform 7s ease-out;
}

.s-hero__slide.is-active {
    opacity: 1;
    transform: scale(1);       /* slow Ken-Burns drift while visible */
}

/* Purple gradient scrim so the overlaid text stays readable */
.s-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(40, 18, 60, 0.88) 0%, rgba(40, 18, 60, 0.55) 45%, rgba(40, 18, 60, 0.15) 100%),
        linear-gradient(0deg, rgba(40, 18, 60, 0.45) 0%, rgba(40, 18, 60, 0) 40%);
}

.s-hero__content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem clamp(1.25rem, 5vw, 4rem);
    color: #fff;
}

.s-hero__eyebrow {
    margin: 0 0 1rem 0;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #e9d9ff;
}

.s-hero__title {
    font-family: var(--font-family-head);
    font-weight: 700;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.02;
    margin: 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.s-hero__title span {
    display: block;
    font-style: italic;
    font-weight: 600;
    color: #d7b8ff;
}

.s-hero__scripture {
    max-width: 30em;
    margin: 1.6rem 0 0 0;
    padding-left: 1.1rem;
    border-left: 3px solid var(--colour-secondary);
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    font-style: italic;
    line-height: 1.55;
    color: #f3ecff;
}

.s-hero__scripture cite {
    display: block;
    margin-top: 0.6rem;
    font-style: normal;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c9ffe0;
}

.s-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

/* ---- Buttons ---- */
.s-btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.s-btn--primary {
    background: var(--colour-secondary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(45, 122, 79, 0.4);
}

.s-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(45, 122, 79, 0.5);
}

.s-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
}

.s-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

/* ---- Arrows ---- */
.s-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(3px);
    transition: background-color 0.2s ease;
}

.s-hero__arrow:hover {
    background: rgba(255, 255, 255, 0.34);
}

.s-hero__arrow--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.s-hero__arrow--next { right: clamp(0.5rem, 2vw, 1.5rem); }

/* ---- Dots ---- */
.s-hero__dots {
    position: absolute;
    z-index: 3;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.s-hero__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.s-hero__dot.is-active {
    background: #fff;
    transform: scale(1.3);
}

/* =====================================================================
   HOME PAGE — section heading
   ===================================================================== */
.s-section-head {
    text-align: center;
    max-width: 640px;
    margin: 3rem auto 2.4rem auto;
}

.s-section-head__kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--colour-secondary);
    margin-bottom: 0.6rem;
}

.s-section-head__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--colour-primary);
    margin: 0 0 0.8rem 0;
}

.s-section-head__lead {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #555;
}

/* =====================================================================
   HOME PAGE — section cards (CSS grid: 3 / 2 / 1 columns)
   ===================================================================== */
.s-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin: 0 0 1rem 0;
}

.s-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.7rem 1.6rem 1.5rem 1.6rem;
    background: #fff;
    border: 1px solid #ece5f5;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.25s ease;
}

/* Accent bar along the top of every card */
.s-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--colour-primary), var(--colour-secondary));
}

.s-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.s-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--colour-primary);
    margin: 0.3rem 0 0.9rem 0;
}

.s-card p {
    flex: 1;
    margin: 0 0 1.2rem 0;
    line-height: 1.6;
    font-size: 1rem;
    color: #4a4a4a;
}

.s-card__meta {
    flex: none;
    margin: 0 0 0.7rem 0;
    line-height: 1.5;
}

.s-card__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--colour-secondary);
}

.s-card__link {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--colour-secondary);
    text-decoration: none;
}

.s-card__link span {
    transition: transform 0.2s ease;
    display: inline-block;
}

.s-card__link:hover span {
    transform: translateX(4px);
}

/* Highlight the time-sensitive meeting card */
.s-card--feature {
    background: var(--colour-card-bg);
    border-color: #ddc9f0;
}

@media (max-width: 900px) {
    .s-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .s-hero {
        margin-top: -33px;       /* mobile: 110 top margin + 16 pad - ~93 header */
        min-height: clamp(420px, 80vh, 560px);
    }
    .s-hero__arrow {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }
}

@media (max-width: 560px) {
    .s-cards {
        grid-template-columns: 1fr;
    }
}

/* Hamburger button */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate bars into X when menu is open */
.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Header navigation dropdown */
.header-nav {
    display: none;
    position: absolute;
    top: 95px;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    z-index: 99;
}

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

.header-nav-list {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
}

.header-nav-list .nav-link {
    display: block;
    padding: 12px 24px;
}

.header-nav-list .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

/* Public form additions (phase 2) */

/* Honeypot field: moved off-screen so humans never see or fill it.
   display:none is avoided because some bots skip hidden fields. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent-label {
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
}

.consent-label input[type="checkbox"] {
    margin-right: 8px;
}

.form-privacy-note {
    font-size: 0.85rem;
    color: #555;
    margin-top: 16px;
}

.form-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.form-message--success {
    background-color: #e8f8ec;
    color: #1e7e34;
    border-left: 4px solid #28a745;
}

.form-message--error {
    background-color: #fde8e8;
    color: #c0392b;
    border-left: 4px solid #c0392b;
}

/* =====================================================================
   PUBLIC FORMS (register / contact)
   ===================================================================== */
.form-section {
    max-width: 620px;
    margin: 0 auto;
}

.form-section > h1 {
    color: var(--colour-primary);
    font-size: clamp(2rem, 4vw, 2.6rem);
    margin: 0 0 0.8rem 0;
}

.form-section > p {
    line-height: 1.6;
    color: #4a4a4a;
}

.site-form {
    margin-top: 1.6rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}

.form-group label {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--colour-primary);
}

.site-form input[type="text"],
.site-form input[type="email"],
.site-form input[type="tel"],
.site-form textarea {
    font-family: var(--font-family-base);
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #d8cce8;
    border-radius: 10px;
    background: #fff;
    color: var(--colour-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-form textarea {
    min-height: 150px;
    resize: vertical;
}

.site-form input:focus,
.site-form textarea:focus {
    outline: none;
    border-color: var(--colour-primary);
    box-shadow: 0 0 0 3px rgba(90, 45, 130, 0.15);
}

/* Consent box: tinted panel so the agreement stands out from the fields */
.form-group--consent {
    flex-direction: row;
    margin-top: 0.4rem;
    padding: 0.9rem 1.1rem;
    background: var(--colour-card-bg);
    border-radius: 10px;
}

.form-group--consent .consent-label {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #444;
}

.form-group--consent input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--colour-primary);
    vertical-align: -3px;
}

.btn-submit {
    display: inline-block;
    margin-top: 0.4rem;
    font-family: var(--font-family-base);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--colour-secondary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(45, 122, 79, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(45, 122, 79, 0.45);
}

.btn-submit:focus-visible {
    outline: 3px solid rgba(90, 45, 130, 0.4);
    outline-offset: 2px;
}

/* Buttons shown after a successful submission (on a white background) */
.form-followup {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

/* Light-background variant of the ghost button (the default .s-btn--ghost
   is built for the dark hero, so it is invisible on white). */
.s-btn--ghost-dark {
    background: transparent;
    color: var(--colour-primary);
    border: 1.5px solid var(--colour-primary);
    backdrop-filter: none;
}

.s-btn--ghost-dark:hover {
    background: var(--colour-card-bg);
    transform: translateY(-2px);
}
