/*
==========================================================================
BASE.CSS — Reset, Typography, Global Defaults
No page-specific rules except appended at bottom with section headers.
All font declarations live here and nowhere else.
Mobile-first: base styles target 320px. Scale up via min-width queries.
No non-color variables — all values hardcoded directly.
==========================================================================
*/


/* ==========================================================================
   GOOGLE FONTS IMPORT
   Cooper Black — display / headlines
   DM Sans — body / UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cooper+Black&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');


/* ==========================================================================
   BOX SIZING RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ==========================================================================
   ROOT & BODY
   ========================================================================== */

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-y: scroll;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    min-height: 100vh;
}


/* ==========================================================================
   TYPOGRAPHY — Headings
   All headings use Cooper Black. Fluid sizing via clamp().
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cooper Black', serif;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
    overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.625rem, 4.5vw, 2.25rem); }
h3 { font-size: clamp(1.375rem, 3.5vw, 1.875rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1rem, 2vw, 1.25rem); }
h6 { font-size: 1.125rem; }


/* ==========================================================================
   TYPOGRAPHY — Body & Inline
   ========================================================================== */

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    overflow-wrap: break-word;
    max-width: 70ch;
}

p + p {
    margin-top: 1rem;
}

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

small {
    font-size: 0.875rem;
    line-height: 1.35;
}


/* ==========================================================================
   LINKS
   ========================================================================== */

a {
    color: var(--color-text-link);
    text-decoration: underline;
    text-decoration-thickness: 0.0625rem;
    text-underline-offset: 0.2em;
    transition: color 250ms ease;
}

a:hover,
a:focus-visible {
    color: var(--color-text-link-hover);
    text-decoration-thickness: 0.125rem;
}

a:focus-visible {
    outline: 0.1875rem solid var(--color-forest-green);
    outline-offset: 0.125rem;
    border-radius: 0.25rem;
}


/* ==========================================================================
   LISTS
   ========================================================================== */

ul, ol {
    padding-left: 1.5rem;
    line-height: 1.6;
}

li {
    margin-bottom: 0.5rem;
    overflow-wrap: break-word;
}

.list-unstyled {
    list-style: none;
    padding-left: 0;
    margin: 0;
}


/* ==========================================================================
   IMAGES & MEDIA
   ========================================================================== */

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

img {
    object-fit: cover;
}

figure {
    margin: 0;
}

figcaption {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}


/* ==========================================================================
   HORIZONTAL RULE
   ========================================================================== */

hr {
    border: none;
    border-top: 0.0625rem solid var(--color-border);
    margin: 2rem 0;
}


/* ==========================================================================
   TABLES
   ========================================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    overflow-wrap: break-word;
}

th, td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 0.0625rem solid var(--color-border);
    min-width: 0;
    overflow-wrap: break-word;
}

th {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}


/* ==========================================================================
   FORMS — Base resets
   ========================================================================== */

input, textarea, select, button {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}


/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: 75rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 4rem);
}

.container--wide {
    max-width: 90rem;
}

.container--narrow {
    max-width: 50rem;
}

.section {
    padding-block: clamp(3rem, 6vw, 6rem);
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
    color: var(--color-text-on-dark);
}

.section--accent {
    background-color: var(--color-bg-accent);
}

.nav-offset {
    padding-top: var(--nav-height);
}


/* ==========================================================================
   FLEX & GRID UTILITIES
   ========================================================================== */

.flex         { display: flex; }
.flex-wrap    { flex-wrap: wrap; }

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

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

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
}


/* ==========================================================================
   TEXT UTILITIES
   ========================================================================== */

.text-center   { text-align: center; }
.text-muted    { color: var(--color-text-muted); }
.text-sm       { font-size: 0.875rem; }
.text-lg       { font-size: 1.125rem; }
.text-display  { font-family: 'Cooper Black', serif; }

.sr-only {
    position: absolute;
    width: 0.0625rem;
    height: 0.0625rem;
    padding: 0;
    margin: -0.0625rem;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   OVERFLOW & CONTAINER INTEGRITY
   ========================================================================== */

.ugc {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.grid-child,
.flex-child {
    min-width: 0;
    overflow-wrap: break-word;
}


/* ==========================================================================
   RESPONSIVE — Scale up from mobile base
   ========================================================================== */

@media (min-width: 64rem) {
    .grid-auto { gap: 2rem; }
}

@media (min-width: 90rem) {
    .grid-auto { gap: 3rem; }
}


/* ==========================================================================
   PAGE-SPECIFIC STYLES
   Appended below global styles. One clearly labelled section per page.
   ========================================================================== */


/* ==========================================================================
   INDEX.HTML — Homepage
   ========================================================================== */

/* --- Hero Section --- */

.hero-section {
    background-color: var(--color-dark-section);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 3rem clamp(1rem, 4vw, 4rem) 0;
}

.hero-inner {
    width: 100%;
    max-width: 75rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    flex: 1;
    padding-bottom: 3rem;
}

.hero-text {
    text-align: center;
    max-width: 40rem;
    order: 1;
}

.hero-headline {
    font-family: 'Cooper Black', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--color-beige);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.hero-subheadline {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--color-light-green);
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    max-width: none;
}

.hero-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-hillside-green);
    margin-bottom: 2rem;
    max-width: none;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    order: 3;
    width: 100%;
}

.hero-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 32rem;
    min-height: 20rem;
    order: 2;
}

.hero-glass-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 1.5rem 3rem rgba(0, 0, 0, 0.6));
}

/* --- Split Sections --- */

.split-section {
    padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem) 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.split-section--light {
    background-color: var(--color-beige);
}

.split-section--dark {
    background-color: var(--color-dark-section);
}

.split-inner {
    width: 100%;
    max-width: 75rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.split-text {
    width: 100%;
}

.split-image-wrap {
    width: 100%;
    max-width: 28rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    isolation: isolate;
}

.split-heading {
    font-family: 'Cooper Black', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.split-section--light .split-heading {
    color: var(--color-dark-section);
}

.split-section--dark .split-heading {
    color: var(--color-beige);
}

.split-body {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 60ch;
}

.split-section--light .split-body {
    color: var(--color-text-primary);
}

.split-section--dark .split-body {
    color: var(--color-beige);
}

.split-address {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 1.5rem;
    max-width: none;
}

.split-section--light .split-address {
    color: var(--color-text-muted);
}

.split-section--dark .split-address {
    color: var(--color-hillside-green);
}

.split-glass-img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    background: transparent;
    mix-blend-mode: normal;
}

.split-section--light .split-glass-img {
    filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.15));
}

.split-section--dark .split-glass-img {
    filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.45));
}

.split-text .btn {
    margin-top: 1.5rem;
}

/* --- Split Footer — full width button bar, same bg as parent section --- */

.split-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem clamp(1rem, 4vw, 4rem) 3rem;
}

.split-footer--light {
    background-color: var(--color-beige);
}

.split-footer--dark {
    background-color: var(--color-dark-section);
}

/* Mobile: buttons stack centered, panes invisible */
.hero-btn-pane {
    display: contents;
}

/* --- Index Responsive --- */

@media (min-width: 48rem) {

    .hero-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .hero-text {
        text-align: left;
        flex: 1;
        padding-left: 3rem;
        padding-right: 0;
        order: 0;
    }

    .hero-image-wrap {
        flex: 1;
        max-width: none;
        min-height: 0;
        justify-content: flex-end;
        order: 0;
    }

    .hero-buttons {
        flex-basis: 100%;
        order: 0;
        justify-content: stretch;
        padding-top: 1.5rem;
        gap: 0;
    }

    .hero-btn-pane {
        display: flex;
        flex: 1;
        justify-content: center;
        align-items: center;
        padding: 1rem;
    }

    .hero-glass-img {
        max-height: 90vh;
        width: 100%;
    }

    .split-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 4rem;
    }

    .split-inner--reversed {
        flex-direction: row-reverse;
    }

    .split-text {
        flex: 1;
    }

    .split-text--padded {
        padding-left: 3rem;
        padding-right: 0;
    }

    .split-image-wrap {
        flex: 1;
        max-width: none;
    }
}

@media (min-width: 64rem) {

    .hero-glass-img {
        max-height: 95vh;
        width: clamp(25rem, 50vw, 48rem);
    }
}


/* ==========================================================================
   FOOTER.HTML — Site Footer
   ========================================================================== */

.footer {
    background-color: var(--color-dark-section);
    padding: 4rem clamp(1rem, 2vw, 3rem) 2rem;
}

.footer-brand {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 0.0625rem solid var(--color-border-dark);
}

.footer-logo {
    font-family: 'Cooper Black', serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--color-beige);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 1rem;
    color: var(--color-hillside-green);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    max-width: none;
}

.footer-location {
    font-size: 0.875rem;
    color: var(--color-hillside-green);
    letter-spacing: 0.05em;
    max-width: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
    margin-bottom: 3rem;
}

.footer-col {
    align-self: flex-start;
}

.footer-col-heading {
    font-family: 'Cooper Black', serif;
    font-size: 1rem;
    color: var(--color-beige);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.875rem;
    color: #C8D5B9;
    text-decoration: none;
    transition: color 150ms ease;
    line-height: 1.35;
}

.footer-link:hover {
    color: var(--color-beige);
    text-decoration: none;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 0.0625rem solid var(--color-border-dark);
    text-align: center;
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--color-hillside-green);
    line-height: 1.6;
    max-width: none;
}

.flash-messages-container {
    padding-top: 1rem;
}

@media (min-width: 48rem) {

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}