/* ============================================
   Memorial Balloons — Style
   Dignified. Warm. Mobile-first.
   ============================================ */

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

:root {
    --cream: #FAF8F5;
    --warm-white: #FFFFFF;
    --dove: #E8E4DF;
    --sage: #9CAF94;
    --sage-light: #E8EFE6;
    --muted-gold: #C5A97D;
    --gold-light: #F5EFE3;
    --charcoal: #2C2C2C;
    --soft-text: #5A5652;
    --light-text: #8A857F;
    --heading-font: 'Cormorant Garamond', Georgia, serif;
    --body-font: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--soft-text);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

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

/* --- Typography --- */
.section-heading {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-subtext {
    font-size: 0.9375rem;
    color: var(--soft-text);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* --- Header --- */
.site-header {
    background: var(--warm-white);
    border-bottom: 1px solid var(--dove);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name {
    font-family: var(--heading-font);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: -0.01em;
}

@media (min-width: 576px) {
    .brand-name {
        font-size: 1.375rem;
    }
    .header-phone {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        gap: 0.375rem;
    }
}

.brand-tagline {
    font-size: 0.625rem;
    color: var(--light-text);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

@media (min-width: 576px) {
    .brand-tagline {
        font-size: 0.75rem;
    }
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--sage);
    font-weight: 500;
    font-size: 0.75rem;
    min-height: 44px;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--sage);
    border-radius: 0.5rem;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.phone-icon {
    font-size: 0.875rem;
}

.header-phone:hover,
.header-phone:focus-visible {
    background-color: var(--sage);
    color: white;
}

.phone-icon { font-size: 1rem; }

/* --- Hero --- */
.hero {
    background: var(--warm-white);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--dove);
}

/* Hero with real background image */
.hero-with-image {
    position: relative;
    padding: 0;
    background: transparent;
    border-bottom: none;
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    position: relative;
    opacity: 1;
}

.hero-image-wrap {
    position: relative;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 85vh;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.hero-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 2.5rem;
}

.hero-with-image .hero-content {
    text-align: left;
    max-width: 560px;
}

.hero-with-image .hero-heading {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-with-image .hero-text {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-left: 0;
}

.hero-heading {
    font-family: var(--heading-font);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-text {
    font-size: 1rem;
    color: var(--soft-text);
    max-width: 520px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    background-color: var(--sage);
    color: white;
    text-decoration: none;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    min-height: 48px;
    transition: background-color 0.15s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
    background-color: #7D9A75;
}

.cta-large {
    font-size: 1.25rem;
    padding: 1rem 2.5rem;
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* --- How It Works --- */
.how-it-works {
    padding: 3rem 0;
    background: var(--sage-light);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--sage);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.step h3 {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.step p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--soft-text);
}

/* --- Product Sections --- */
.product-section {
    padding: 3rem 0;
}

.product-section.alt-bg {
    background-color: var(--warm-white);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.product-card {
    background: var(--warm-white);
    border: 1px solid var(--dove);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.alt-bg .product-card {
    background: var(--cream);
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-image-placeholder {
    background: var(--dove);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 0.875rem;
    font-style: italic;
}

/* Real product images */
.product-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* 2-column grid variant — used when a section has only 2 items */
.product-grid-2 {
    grid-template-columns: 1fr;
}

.product-card h3 {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--charcoal);
    padding: 1rem 1rem 0.375rem;
}

.product-card p {
    font-size: 0.875rem;
    color: var(--soft-text);
    padding: 0 1rem 1.25rem;
    line-height: 1.6;
}

/* --- Customization --- */
.customization {
    padding: 3rem 0;
    background: var(--gold-light);
}

/* --- For Directors --- */
.for-directors {
    padding: 3rem 0;
    background: var(--warm-white);
}

.director-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.director-point {
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 0.75rem;
    border-left: 3px solid var(--sage);
}

.director-point h3 {
    font-family: var(--heading-font);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.director-point p {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* --- Service Details --- */
.service-details {
    padding: 3rem 0;
}

.details-list {
    max-width: 650px;
    margin: 0 auto;
}

.details-list p {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--dove);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.details-list p:last-child {
    border-bottom: none;
}

/* --- Contact --- */
.contact {
    padding: 3rem 0;
    background: var(--sage-light);
    text-align: center;
}

.contact-content {
    max-width: 500px;
    margin: 0 auto;
}

.contact-alt {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--light-text);
}

.contact-location {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--soft-text);
    line-height: 1.5;
}

/* --- Catalog Images --- */
.catalog-image {
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.catalog-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Hero Image --- */
.hero-image {
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Contact Details --- */
.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.contact-info h3 {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-info a {
    color: var(--sage);
    text-decoration: none;
    font-weight: 500;
}

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

.contact-map {
    border-radius: 0.75rem;
    overflow: hidden;
}

@media (min-width: 576px) {
    .contact-details {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .contact-info {
        text-align: left;
    }
}

/* --- Footer --- */
.site-footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--dove);
}

.footer-brand {
    font-family: var(--heading-font);
    font-size: 1.125rem;
    color: var(--charcoal);
    font-weight: 500;
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--light-text);
    margin-top: 0.25rem;
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-top: 1rem;
}

/* --- Desktop (min-width: 576px) --- */
@media (min-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .director-points {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-with-image .hero-content {
        max-width: 600px;
    }
}

/* --- Desktop Large (min-width: 992px) --- */
@media (min-width: 992px) {
    .hero-heading {
        font-size: 3rem;
    }

    .section-heading {
        font-size: 2.25rem;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* 2-column grids stay at 2 columns on desktop — no 3-column override */
    .product-grid.product-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 5rem 0;
    }

    .hero-inner {
        padding-bottom: 3.5rem;
    }

    .hero-with-image .hero-heading {
        font-size: 3.5rem;
    }

    .product-section,
    .how-it-works,
    .customization,
    .for-directors,
    .service-details,
    .contact {
        padding: 4rem 0;
    }
}

/* --- Accessibility --- */
:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    html { scroll-behavior: auto; }
}
