/* -------------------------------
   Site-wide color palette
-------------------------------- */
:root {
    --font-design-text: 'Oxanium', sans-serif;

    /* body text */
    --font-design-headings: 'Cormorant Garamond', serif;

    /* H3–H6 */
    --font-design-h1: 'Dancing Script', cursive;

    /* H1 page title */
    --font-design-h2: 'Dancing Script', cursive;

    /* H2 section headers */
    /* optional colors */
    --heading-h1: #ffffff;
    --heading-h2: #f0e8de;
    --heading-h3: #e6dfd6;

    /* -------------------------------
     Text colors
  -------------------------------- */
    --text-base: #dcd6cf;

    /* main body text, muted, elegant */
    --text-muted: #bfb8aa;

    /* secondary text, less prominent */
    --text-accent: #f8ac7b;

    /* accents, links, buttons */
    /* -------------------------------
     Background colors
  -------------------------------- */
    --bg-main: #021d0d;

    /* main page background */
    --bg-box: #17381f;

    /* box / section backgrounds */
    --bg-card: #1f4626;

    /* for cards, panels, subtle contrast */
    /* -------------------------------
     Links / callouts / buttons
  -------------------------------- */
    --link-color: #f8ac7b;

    /* standard link color */
    --link-hover: #f9b38c;

    /* hover / active links */
    --button-bg: #f8ac7b;

    /* button background */
    --button-text: #021d0d;

    /* button text */
    --button-hover-bg: #f9b38c;

    /* button hover background */
}

/* --------------------------------
   Global reading text scale
-------------------------------- */
body {
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
    line-height: 1.6;
}

nav,
button,
input,
label,
small,
.caption,
.meta,
.footer {
    font-size: 0.9rem;

    /* or whatever you prefer */
}

/* -------------------------------
   Heading Styles
-------------------------------- */
/* H1 – Page Title */
h1 {
    font-family: var(--font-design-h1) !important;
    font-size: clamp(2.8rem, 6vw, 4.5rem) !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    color: var(--white) !important;
    margin: 0 0 0.5em 0 !important;
    text-align: center;
}

/* H2 – Section Headers */
h2 {
    font-family: var(--font-design-h2) !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--white) !important;
    margin: 3rem auto 1.25rem auto !important;
    max-width: 700px;
    text-align: center;
}

/* H3 – Sub-Section Headers */
h3 {
    font-family: var(--font-design-headings) !important;
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--white) !important;
    margin: 2rem 0 0.75rem 0 !important;
}

/* H4–H6 – Smaller headings */
h4 {
    font-family: var(--font-design-headings) !important;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--white) !important;
    margin: 1.5rem 0 0.5rem 0 !important;
}

h5 {
    font-family: var(--font-design-headings) !important;
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--white) !important;
    margin: 1rem 0 0.5rem 0 !important;
}

h6 {
    font-family: var(--font-design-headings) !important;
    font-size: clamp(0.9rem, 1.8vw, 1rem) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--white) !important;
    margin: 0.75rem 0 0.5rem 0 !important;
}

/* Box/Card Specific H2/H3 (optional, keeps colors consistent) */
.box h2,
.card h2 {
    color: var(--heading-h2) !important;
}

.box h3,
.card h3 {
    color: var(--heading-h3) !important;
}

/* Add space between images and following text */
img + p,
img + h2,
img + h3,
img + h4 {
    margin-top: 2rem;
}

/* -------------------------------
   Body & text
-------------------------------- */
body {
    background-color: var(--bg-main);
    color: var(--text-base);
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
}

p {
    color: var(--text-base);
}

.small-text {
    color: var(--text-muted);
}

/* -------------------------------
   Links
-------------------------------- */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--link-hover);
}

/* -------------------------------
   Buttons
-------------------------------- */
.btn {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover,
.btn:focus {
    background-color: var(--button-hover-bg);
}

/* -------------------------------
   Boxes / Panels
-------------------------------- */
.box,
.card {
    background-color: var(--bg-box);
    padding: 2rem;
    border-radius: 0.5rem;
    color: var(--text-base);
}

.box h2,
.card h2 {
    color: #f0e8de;
}

.box h3,
.card h3 {
    color: #f0e8de;
}

/* -------------------------------
   Base typography
-------------------------------- */
body {
    background-color: #021d0d;
    color: var(--text-base);
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
}

.small-text {
    color: var(--text-muted);
}

/* -------------------------------
   Hero image — responsive & stable
-------------------------------- */
.hero-image {
    margin: 2rem auto 0;
    width: 100%;
    max-width: 100%;
}

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

@media (min-width: 1024px) {
    .hero-image {
        max-width: 90vw;
    }
}

@media (min-width: 1440px) {
    .hero-image {
        max-width: 80vw;
    }
}

.hero-image {
    margin-top: clamp(2rem, 6vw, 4rem);
}

/* -------------------------------
   Page title block
-------------------------------- */
.page-header {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin: 0 auto 1rem auto;

    /* center and add bottom spacing */
    text-align: center;

    /* explicitly center text */
    max-width: 90%;
}

.page-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.2;
    margin-top: 0.5rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.intro-section {
    max-width: 64rem;
    margin: 0 auto 6rem;
    padding: 0 1rem;
}

.intro-section img {
    display: block;
    margin: 0 auto 1.5rem;
}

.intro-section p {
    text-align: left;
}

/* ---------------------------
   Hero Carousel (no cropping)
--------------------------- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: auto;

    /* allow content to define height on small screens */
    min-height: 50vh;

    /* minimum height for small screens */
    overflow: hidden;
}

/* Slides stack on top of each other */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* fill carousel container */
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    z-index: 0;
}

/* Active slide */
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Images inside slides */
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    /* never crop */
    object-position: center;
    display: block;
}

/* Overlay text */
.hero-overlay {
    position: absolute;
    top: 1.5rem;

    /* distance from top */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    width: 100%;
    padding: 0 1rem;
    pointer-events: none;

    /* ensures clicks go through to the carousel if needed */
}

/* Medium screens: slightly taller */
@media (min-width: 768px) {
    .hero-carousel {
        min-height: 60vh;
    }
}

/* Large screens: taller */
@media (min-width: 1024px) {
    .hero-carousel {
        min-height: 75vh;
    }
}

/* -------------------------------
   Content Columns & Story Layout
-------------------------------- */
/* Mobile first: all sections stacked */
.content-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

.content-columns img {
    max-width: 100%;
    height: auto;
}

/* Normal story blocks */
.story-block {
    display: block;
}

/* Story rows for image + text side by side on large screens */
.story-row {
    display: block;

    /* stacked by default */
}

@media (min-width: 1024px) {
    .content-columns {
        grid-template-columns: 1fr 1fr;

        /* two columns for stagger */
        gap: clamp(2rem, 4vw, 4rem);
    }

    @media (min-width: 1280px) {
        .content-columns {
            max-width: 80rem;

            /* ~1280px */
        }
    }

    @media (min-width: 1536px) {
        .content-columns {
            max-width: 90rem;

            /* ~1440px */
        }
    }

    /* Regular story blocks: image + text side by side */
    .story-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 3rem;
    }

    /* Alternate sides for image/text */
    .image-right .story-image {
        order: 2;

        /* image appears second in row */
    }
}

/* Break sections: full width */
.story-break {
    display: block;
    grid-column: 1 / -1;

    /* span both columns */
    margin: 6rem 0;
    text-align: center;
}

.story-break p {
    text-align: left;

    /* or 'start' if you prefer */
    max-width: 700px;

    /* keeps line length elegant */
    margin-left: auto;
    margin-right: auto;
}

.story-break img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

/* General spacing between images and text */
.story-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.story-text p {
    margin-top: 1rem;
    line-height: 1.6;
}

/* Optional: limit line length for readability */
.story-text {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------
   Form styles
-------------------------------- */
#TLCform input,
#TLCform textarea,
#TLCform select {
    background-color: rgba(255, 255, 255, 0.05);

    /* muted background over dark green */
    color: #ecfdf5;

    /* near-white text */
    border-bottom: 1px solid rgba(236, 253, 245, 0.3);
    padding: 0.75rem 0.5rem;
    outline: none;
    width: 100%;
    font-size: 1rem;
    border-radius: 0.25rem;
}

#TLCform input::placeholder,
#TLCform textarea::placeholder {
    color: #d1d5db;

    /* muted placeholder text */
}

/* Highlight focus */
#TLCform input:focus,
#TLCform select:focus,
#TLCform textarea:focus {
    border-bottom: 2px solid #ecfdf5;
}

/* Add vertical spacing between rows */
#TLCform .form-row {
    margin-bottom: 2rem;
}

/* Intro paragraph */
#TLCform .form-intro {
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(236, 253, 245, 0.9);
    text-align: center;
    margin-bottom: 3rem;
}

/* Submit button */
#TLCform .btn-submit {
    background-color: #facc15;

    /* warm gold */
    color: #052a14;

    /* dark text */
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#TLCform .btn-submit:hover {
    background-color: #eab308;
    transform: translateY(-2px);
}

/* Privacy line */
#TLCform .form-privacy {
    color: rgba(236, 253, 245, 0.7);
    font-size: 0.875rem;
    display: block;
    margin-top: 0.5rem;
}

/* Fully styled select with custom arrow */
#TLCform select {
    background-color: rgba(255, 255, 255, 0.05);

    /* matches other inputs */
    color: #ecfdf5;

    /* near-white text */
    border-bottom: 1px solid rgba(236, 253, 245, 0.3);
    padding: 0.75rem 2.5rem 0.75rem 0.5rem;

    /* extra right padding for arrow */
    outline: none;
    width: 100%;
    font-size: 1rem;
    border-radius: 0.25rem;
    appearance: none;

    /* remove native styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23ecfdf5' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");

    /* downward arrow */
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    cursor: pointer;
}

/* Ensure options inside dropdown are readable */
#TLCform select option {
    background-color: #052a14;

    /* same dark green as body */
    color: #ecfdf5;
}

/* Add space between images and the following descriptive text */
img + p,
img + h2,
img + h3,
img + h4 {
    margin-top: 2rem;

    /* space between image and next text block */
}

/* Ensure all images behave predictably */
img {
    display: block;

    /* makes margin-bottom and spacing work consistently */
    max-width: 100%;

    /* responsive images */
    height: auto;
}

/* Automatically add spacing below image containers */
div:has(> img) {
    margin-bottom: 2rem;

    /* adjust spacing as needed */
}

/* Ensure images are responsive and centered inside their container */
div:has(> img) > img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------
   Image wrapper spacing and responsiveness
-------------------------------- */
/* Any div containing a direct img gets bottom spacing */
div:has(> img) {
    margin-bottom: 2rem;

    /* space after image block */
}

/* Images inside the wrapper */
div:has(> img) > img {
    display: block;
    max-width: 100%;

    /* responsive */
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Limit image width on larger screens */
@media (min-width: 768px) {
    div:has(> img) > img {
        max-width: 80%;

        /* prevents images from overwhelming the screen */
    }
}

@media (min-width: 1200px) {
    .flowing-story div:has(> img) > img {
        max-width: 800px;
    }
}

/* -------------------------------
   Paragraph / descriptive text readability
-------------------------------- */
p {
    max-width: 700px;

    /* ideal line length for readability */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    margin-top: 1rem;

    /* optional spacing from previous content */
    margin-bottom: 2rem;

    /* spacing before next image/section */
}

/* -------------------------------
   Optional: two-column photo + text layout for wide screens
-------------------------------- */
@media (min-width: 1024px) {
    .photo-text-row {
        display: flex;
        align-items: flex-start;
        gap: 2rem;
        flex-wrap: wrap;

        /* ensures stacking if needed */
    }

    .photo-text-row img {
        flex: 1 1 50%;

        /* image takes half the row */
        max-width: 100%;
    }

    .photo-text-row p {
        flex: 1 1 50%;

        /* text takes the other half */
    }
}

/* -------------------------------
   Three-column intro section
-------------------------------- */
.process-intro {
    display: grid;
    grid-template-columns: 1fr;

    /* mobile: stacked */
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 1rem;
    justify-items: stretch;

    /* grid controls alignment */
}

.process-intro .process-photo img {
    max-width: 100%;

    /* fill its grid column */
    height: auto;
    display: block;
    margin-left: 0;

    /* override global centering */
    margin-right: 0;
}

.process-intro .process-text {
    justify-self: stretch;
    max-width: 650px;

    /* readable line length */
    margin-left: auto;
    margin-right: auto;
}

.process-intro .process-text p {
    text-align: left;
}

/* Desktop layout */
@media (min-width: 1024px) {
    .process-intro {
        grid-template-columns: 1fr 1.5fr 1fr;

        /* left photo | text | right photo */
        align-items: start;
        gap: clamp(2rem, 4vw, 5rem);
    }

    .process-intro .process-text {
        margin: 0;

        /* remove auto margins on large screens */
    }
}

/* --------------------------------
   Feature block container
-------------------------------- */
.feature-block {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 1rem;
    display: grid;
    gap: 4rem;
}

/* --------------------------------
   Rows
-------------------------------- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Top row: photo + text */
.feature-row--top {
    grid-template-columns: 1fr 1fr;

    /* photo = 50% */
    align-items: start;
}

/* Bottom row: stacked */
.feature-row--bottom {
    grid-template-columns: 1fr;
}

.feature-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.feature-text {
    text-align: left;
}

.feature-text p {
    max-width: 65ch;
}

.feature-box {
    background: rgba(255,255,255,0.08);
    padding: 2rem;
    border-radius: 0.75rem;
}

@media (min-width: 1024px) {
    .feature-row {
        display: grid;
        grid-template-columns: clamp(180px, 18vw, 260px)
      minmax(0, 1fr)
      clamp(260px, 28vw, 360px);
        gap: clamp(2rem, 4vw, 4rem);
        align-items: stretch;
    }

    /* Small image: top-left */
    .feature-photo {
        align-self: start;
    }

    .feature-photo img {
        width: 100%;
        height: auto;
        max-width: none;

        /* grid controls size now */
        display: block;
    }

    /* Center text */
    .feature-text {
        align-self: start;
        max-width: 65ch;

        /* restores readable line length */
    }

    /* Text box: bottom-right */
    .feature-box {
        align-self: end;
    }
}

/* -------------------------------
   Photo left, text right row
-------------------------------- */
.side-photo-row {
    display: grid;
    grid-template-columns: 1fr;

    /* mobile: stacked */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

/* Image behavior */
.side-photo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Text behavior */
.side-text {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.side-text p {
    text-align: left;
}

/* Desktop layout */
@media (min-width: 1024px) {
    .side-photo-row {
        grid-template-columns: 1fr 1fr;

        /* 50 / 50 split */
        align-items: start;
        gap: clamp(2rem, 4vw, 4rem);
    }

    .side-text {
        max-width: none;
        margin: 0;
    }
}

/* -------------------------------
   Flowing editorial section
-------------------------------- */
.flowing-story {
    max-width: 1100px;

    /* container max for photos */
    margin: 0 auto 6rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Internal text wrapper: constrain text width */
.flowing-story .story-content {
    max-width: 900px;

    /* text column width */
    margin-left: auto;
    margin-right: auto;
}

/* Text elements inside story-content */
.flowing-story .story-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
    color: var(--text-base);
}

.flowing-story .story-content h1,
.flowing-story .story-content h2,
.flowing-story .story-content h3 {
    line-height: 1.2;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.flowing-story .story-content h1 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    color: var(--heading-h1);
}

.flowing-story .story-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--heading-h2);
}

.flowing-story .story-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--heading-h3);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.flowing-story .story-content ul,
.flowing-story .story-content ol {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    margin-left: 0;

    /* align with text paragraphs */
    padding-left: 1.25rem;

    /* small indent for bullets/numbers */
    list-style-position: outside;
}

/* Base image styling: stack naturally */
.flowing-story img {
    display: block;
    width: 100%;
    height: auto;
    margin: 2rem auto;
}

/* Image size modifiers (for non-floated images) */
.flowing-story img.story-image--small {
    width: 60%;
    max-width: 660px;
}

.flowing-story img.story-image--medium {
    width: 80%;
    max-width: 880px;
}

.flowing-story img.story-image--large {
    width: 100%;
    max-width: 1100px;
}

@media (min-width: 1024px) {
    /* Floated images */
    .flowing-story img.left {
        float: left;
        margin-right: 2rem;
        margin-left: 0;
    }

    .flowing-story img.right {
        float: right;
        margin-left: 2rem;
        margin-right: 0;
    }

    /* Floated image size modifiers */
    .flowing-story img.left.story-image--small,
    .flowing-story img.right.story-image--small {
        max-width: 30%;
    }

    .flowing-story img.left.story-image--medium,
    .flowing-story img.right.story-image--medium {
        max-width: 40%;
    }

    .flowing-story img.left.story-image--large,
    .flowing-story img.right.story-image--large {
        max-width: 50%;
    }
}

.story-beat::after {
    content: "";
    display: block;
    clear: both;
    margin-bottom: 2rem;
}

.story-beat .story-content {
    padding-top: clamp(0.75rem, 1.5vw, 1.5rem);
}

/* Clear floats */
.flowing-story::after,
.clear-floats {
    content: "";
    display: block;
    clear: both;
}

.flowing-story,
.flowing-story * {
    box-sizing: border-box;
}

/* -------------------------------
   Horizontal photo marquee
-------------------------------- */
.photo-marquee {
    width: 100%;
    overflow: hidden;
    margin-top: 4rem;
}

.photo-marquee__track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 80s linear infinite;
}

/* Control spacing & sizing */
.photo-marquee__track img {
    height: 24rem;

    /* consistent height */
    width: auto;
    margin-right: 1.5rem;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
}

/* Smooth infinite scroll */
@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Optional: pause on hover */
.photo-marquee:hover .photo-marquee__track {
    animation-play-state: paused;
}

.marquee-cta {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cta-button {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    color: #dcd6cf;
    background-color: #17381f;
    border: 1px solid rgba(220, 214, 207, 0.4);
    text-decoration: none;
    transition: all 0.25s ease;
}

.cta-button:hover {
    background-color: #1f4a2a;
    transform: translateY(-1px);
}


