/**
 * hw-page-layouts.css
 *
 * Option A — Alternating bands with SVG curves
 *
 * Shared by: About Us, East West School, Organic Farm
 *
 *   1. Container
 *   2. Bands (white, cream, CTA)
 *   3. SVG curves
 *   4. Two-column layouts
 *   5. Card grids
 *   6. Testimonials
 *   7. CTA banner
 *   8. Intro section
 *   9. Utilities
 *  10. Responsive
 */


/* ═══════════════════════════════════════════
   1. CONTAINER
   ═══════════════════════════════════════════ */

.hw-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ═══════════════════════════════════════════
   2. BANDS
   ═══════════════════════════════════════════ */

.hw-band {
    position: relative;
    padding: 64px 0;
}

.hw-band--white {
    background: #fff;
}

.hw-band--cream {
    background: var(--hw-cream, #FAF8F5);
}

.hw-band__heading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--hw-brown, #755126);
    text-align: center;
    margin: 0 0 40px;
    line-height: 1.25;
}


/* ═══════════════════════════════════════════
   3. SVG CURVES
   ═══════════════════════════════════════════ */

.hw-band__curve {
    display: block;
    width: 100%;
    height: 48px;
    position: absolute;
    left: 0;
}

.hw-band__curve path {
    fill: var(--hw-cream, #FAF8F5);
}

.hw-band__curve--top {
    top: -47px;
}

.hw-band__curve--bottom {
    bottom: -47px;
}

.hw-band--cream + .hw-band--white {
    padding-top: 80px;
}

.hw-band--white + .hw-band--cream {
    margin-top: 16px;
}


/* ═══════════════════════════════════════════
   4. TWO-COLUMN LAYOUTS
   ═══════════════════════════════════════════ */

.hw-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Reverse: text first, image second */
.hw-two-col--reverse > .hw-two-col__text {
    order: 1;
}

.hw-two-col--reverse > .hw-two-col__media {
    order: 2;
}

/* Text-only fallback: single centered column when no image is set */
.hw-two-col--text-only {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

.hw-two-col__img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.hw-two-col__text {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--hw-text, #333);
}

.hw-two-col__text h2,
.hw-two-col__text h3 {
    font-family: 'Playfair Display', serif;
    color: var(--hw-brown, #755126);
    margin-top: 0;
}

.hw-two-col__text p:first-child {
    margin-top: 0;
}

.hw-two-col__text p:last-child {
    margin-bottom: 0;
}

/* Video embed (responsive 16:9 iframe wrapper) */
.hw-video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.hw-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}


/* ═══════════════════════════════════════════
   5. CARD GRIDS
   ═══════════════════════════════════════════ */

.hw-card-grid {
    display: grid;
    gap: 28px;
}

.hw-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.hw-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hw-card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.hw-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.hw-band--white .hw-card {
    border: 1px solid #eee;
}

.hw-card__icon {
    display: inline-block;
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: var(--hw-green, #00913A);
    margin-bottom: 16px;
}

.hw-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--hw-brown, #755126);
    margin: 0 0 10px;
}

.hw-card__title a {
    color: inherit;
    text-decoration: none;
}

.hw-card__title a:hover {
    color: var(--hw-green, #00913A);
}

.hw-card__text {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--hw-light-text, #666);
    margin: 0;
}

/* Cards with images at top */
.hw-card--has-image {
    padding: 0;
    overflow: hidden;
    text-align: center;
}

.hw-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.hw-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hw-card--has-image .hw-card__title {
    padding: 20px 24px 0;
}

.hw-card--has-image .hw-card__text {
    padding: 0 24px 24px;
}


/* ═══════════════════════════════════════════
   6. TESTIMONIALS
   ═══════════════════════════════════════════ */

.hw-testimonial {
    background: var(--hw-cream, #FAF8F5);
    border-radius: 12px;
    padding: 28px;
    border-left: 4px solid var(--hw-green, #00913A);
    margin: 0;
    font-style: normal;
    text-align: left;
}

.hw-band--cream .hw-testimonial {
    background: #fff;
}

.hw-testimonial__quote {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--hw-text, #333);
    margin-bottom: 14px;
}

.hw-testimonial__quote::before {
    content: '\201C';
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--hw-green, #00913A);
    line-height: 0;
    vertical-align: -0.3em;
    margin-right: 4px;
}

.hw-testimonial__cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--hw-brown, #755126);
}


/* ═══════════════════════════════════════════
   7. CTA BANNER
   ═══════════════════════════════════════════ */

.hw-band--cta {
    background: linear-gradient(135deg, var(--hw-green, #00913A) 0%, #007A30 100%);
    padding: 64px 0;
}

.hw-cta__heading {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.hw-cta__text {
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 28px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hw-btn {
    display: inline-block;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    padding: 14px 36px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.hw-btn--white {
    background: #fff;
    color: var(--hw-green, #00913A);
}

.hw-btn--white:hover {
    background: var(--hw-cream, #FAF8F5);
    transform: translateY(-2px);
}


/* ═══════════════════════════════════════════
   8. INTRO SECTION
   ═══════════════════════════════════════════ */

.hw-section--intro {
    padding: 48px 0 32px;
}


/* ═══════════════════════════════════════════
   9. UTILITIES
   ═══════════════════════════════════════════ */

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


/* ═══════════════════════════════════════════
   10. RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hw-card-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hw-band {
        padding: 48px 0;
    }

    .hw-band--cream + .hw-band--white {
        padding-top: 64px;
    }

    .hw-band__heading {
        font-size: 1.65rem;
        margin-bottom: 28px;
    }

    .hw-two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hw-two-col--text-only {
        max-width: 100%;
    }

    .hw-two-col--reverse > .hw-two-col__text {
        order: 2;
    }
    .hw-two-col--reverse > .hw-two-col__media {
        order: 1;
    }

    .hw-card-grid--2,
    .hw-card-grid--3,
    .hw-card-grid--4 {
        grid-template-columns: 1fr;
    }

    .hw-cta__heading {
        font-size: 1.5rem;
    }

    .hw-band__curve {
        height: 32px;
    }

    .hw-band__curve--top {
        top: -31px;
    }

    .hw-band__curve--bottom {
        bottom: -31px;
    }
}

@media (max-width: 480px) {
    .hw-container {
        padding: 0 16px;
    }

    .hw-card {
        padding: 24px 20px;
    }

    .hw-testimonial {
        padding: 20px;
    }
}
