/* ------------------------------------------------------------
   Taal Maranan's Farmville Inc. - main stylesheet
   Colors and fonts follow the TMFI Branding Identity Kit.
   ------------------------------------------------------------ */

/* Glacial Indifference (SIL Open Font License), self-hosted in /fonts */
@font-face {
    font-family: 'Glacial Indifference';
    src: url('../fonts/GlacialIndifference-Regular.woff2') format('woff2'),
         url('../fonts/GlacialIndifference-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Glacial Indifference';
    src: url('../fonts/GlacialIndifference-Bold.woff2') format('woff2'),
         url('../fonts/GlacialIndifference-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Google Material Symbols (Rounded), loaded in includes/header.php */
.material-symbols-rounded {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    user-select: none;
}

:root {
    /* Brand palette from the identity kit */
    --olive:  #7C8636;
    --forest: #28544B;
    --bark:   #5E432E;
    --honey:  #DE9D4D;
    --cream:  #FFFFED;
    --lake:   #4E88A9;

    /* Derived tints and neutrals */
    --forest-deep: #1C3F38;
    --olive-tint:  #EEF0D9;
    --bark-tint:   #F4ECDF;
    --honey-tint:  #FBEFD9;
    --ink:         #2A241D;
    --ink-soft:    #665B4F;
    --line:        #E3E2C9;
    --white:       #ffffff;

    /* Typography from the identity kit */
    --font-head: 'Libre Baskerville', Georgia, 'Times New Roman', serif;   /* H1, titles, quotes */
    --font-sub:  'Glacial Indifference', 'Jost', 'Poppins', system-ui, sans-serif; /* H2, H3, sub-headlines */
    --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;    /* body */

    --radius: 14px;
    --shadow: 0 10px 30px rgba(40, 84, 75, 0.12);
    --max: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
}

h1 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.2;
    color: var(--forest);
    margin: 0 0 0.6em;
}

h2, h3 {
    font-family: var(--font-sub);
    font-weight: 700;
    line-height: 1.2;
    color: var(--forest);
    margin: 0 0 0.6em;
}

h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

a {
    color: var(--forest);
}

a:hover { color: var(--bark); }

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

.container {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

.narrow { max-width: 760px; }
.center { text-align: center; }

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--forest);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    z-index: 100;
}

.skip-link:focus { top: 0; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 237, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.6rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.brand-logo {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--bark);
}

.brand-tagline {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    margin-top: 0.15rem;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
}

.site-nav a {
    display: block;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--olive-tint);
    color: var(--forest);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--forest);
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero and banners ---------- */

.hero {
    /* Aerial photo of the resort with a forest-tinted overlay, darker under the headline */
    background:
        linear-gradient(100deg, rgba(28, 63, 56, 0.85) 0%, rgba(28, 63, 56, 0.6) 45%, rgba(28, 63, 56, 0.3) 100%),
        url('../images/hero_background.jpg') center / cover no-repeat;
    background-color: var(--forest-deep);
    color: var(--cream);
    padding-block: clamp(3.5rem, 9vw, 7rem);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy { max-width: 620px; }

.hero .eyebrow { color: var(--honey); }

.hero h1 {
    color: var(--white);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.hero .lead {
    color: rgba(255, 255, 237, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero .btn-primary {
    background: var(--honey);
    color: var(--forest-deep);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.hero .btn-primary:hover {
    background: var(--cream);
    color: var(--forest-deep);
}

.hero .btn-outline {
    color: var(--cream);
    border-color: var(--cream);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 237, 0.15);
    color: var(--white);
}

.hero-logo {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.hero-logo img { width: 100%; height: auto; }

.eyebrow {
    font-family: var(--font-sub);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bark);
    margin-bottom: 0.75rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.page-banner {
    background:
        radial-gradient(ellipse at 90% 20%, rgba(222, 157, 77, 0.18), transparent 50%),
        var(--olive-tint);
    padding-block: clamp(2.5rem, 7vw, 4.5rem);
    border-bottom: 1px solid var(--line);
}

.page-banner .lead { max-width: 640px; margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--forest);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(40, 84, 75, 0.3);
}

.btn-primary:hover { background: var(--forest-deep); color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--bark);
    border-color: var(--bark);
}

.btn-outline:hover { background: var(--bark-tint); color: var(--bark); }

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

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

.section-alt {
    background: var(--white);
    border-block: 1px solid var(--line);
}

.section-heading {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.section-heading p { color: var(--ink-soft); }

.split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

/* ---------- Stats ---------- */

.stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--honey);
    border-radius: var(--radius);
    padding: 1.4rem 1rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.9rem;
    color: var(--forest);
}

.stat-label {
    font-family: var(--font-sub);
    font-size: 0.95rem;
    color: var(--ink-soft);
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: 0 2px 8px rgba(40, 84, 75, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: var(--olive-tint);
    color: var(--forest);
    display: grid;
    place-items: center;
    margin-bottom: 0.9rem;
}

.card-icon .material-symbols-rounded { font-size: 1.9rem; }

/* Cards with a photo across the top instead of an emoji icon */
.card-photo {
    padding: 0;
    overflow: hidden;
}

.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: var(--olive-tint);
}

.card-photo .card-body {
    padding: 1.3rem 1.5rem 1.5rem;
}

/* Cards with no photo or icon: keep the badge in flow so it never overlaps the title */
.card-plain .badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.9rem;
}

.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* The title link stretches over the whole card so any click on it opens the contact page */
.card-link {
    color: inherit;
    text-decoration: none;
}

.card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card-link:focus-visible { outline: none; }

.card:has(.card-link:focus-visible) {
    outline: 3px solid var(--honey);
    outline-offset: 3px;
}

.capacity {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sub);
    font-size: 0.85rem !important;
    color: var(--forest) !important;
    background: var(--olive-tint);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    margin-bottom: 0.6rem !important;
}

.price {
    font-family: var(--font-sub);
    font-weight: 700;
    color: var(--bark) !important;
    margin-bottom: 0 !important;
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--honey-tint);
    color: var(--bark);
    font-family: var(--font-sub);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.offering.is-hidden { display: none; }

.empty-state {
    text-align: center;
    color: var(--ink-soft);
    padding: 2rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}

/* ---------- Filter bar ---------- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover { border-color: var(--olive); }

.filter-btn.is-active {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--white);
}

/* ---------- Lists ---------- */

.check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.6rem;
}

/* Circled check, echoing the kit's outline icons */
.check-list li::before {
    content: "check";
    font-family: 'Material Symbols Rounded';
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    border: 1.5px solid var(--bark);
    color: var(--bark);
    font-size: 0.9rem;
    line-height: 1;
    display: grid;
    place-items: center;
}

/* ---------- Timeline ---------- */

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 3px solid var(--olive-tint);
}

.timeline li {
    position: relative;
    padding: 0 0 1.8rem 1.8rem;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0.35rem;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--honey);
    border: 3px solid var(--cream);
}

.timeline-year {
    display: block;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--bark);
}

.timeline p { margin: 0; color: var(--ink-soft); }

/* ---------- Feature boxes and tones (image placeholders) ---------- */

.feature-box {
    border-radius: var(--radius);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow);
}

/* A feature box that holds a photo instead of an emoji and caption */
.feature-photo {
    padding: 0;
    overflow: hidden;
    background: var(--olive-tint);
    aspect-ratio: 1 / 1;
}

.feature-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-icon { line-height: 1; }
.feature-icon .material-symbols-rounded { font-size: 4.5rem; }

.feature-text {
    font-family: var(--font-head);
    font-size: 1.15rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tone-1 { background: linear-gradient(145deg, #7C8636, #28544B); }
.tone-2 { background: linear-gradient(145deg, #DE9D4D, #5E432E); }
.tone-3 { background: linear-gradient(145deg, #4E88A9, #1C3F38); }
.tone-4 { background: linear-gradient(145deg, #A6B05A, #7C8636); }
.tone-5 { background: linear-gradient(145deg, #8C6A4E, #5E432E); }
.tone-6 { background: linear-gradient(145deg, #74A6C2, #4E88A9); }

/* ---------- Gallery ---------- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.gallery-item {
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--white);
    font-family: var(--font-sub);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(40, 84, 75, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover,
.gallery-item:focus-visible {
    transform: scale(1.03);
    box-shadow: var(--shadow);
    outline: 3px solid var(--honey);
    outline-offset: 2px;
}

.gallery-icon { line-height: 1; }
.gallery-icon .material-symbols-rounded { font-size: 3.2rem; }

.gallery-label {
    font-weight: 700;
    font-size: 1.05rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 63, 56, 0.78);
}

.lightbox-dialog {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: min(100%, 560px);
    box-shadow: var(--shadow);
    animation: pop 0.2s ease-out;
}

.lightbox-image {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--white);
    margin-bottom: 1rem;
}

.lightbox-image .material-symbols-rounded { font-size: 6rem; }

.lightbox-dialog h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.lightbox-dialog p { color: var(--ink-soft); margin: 0; }

.lightbox-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 0;
    background: var(--white);
    color: var(--bark);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lightbox-close .material-symbols-rounded { font-size: 1.4rem; }

@keyframes pop {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ---------- Forms ---------- */

.contact-form { display: grid; gap: 1.1rem; }

.field label {
    display: block;
    font-family: var(--font-sub);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #CFCDB4;
    border-radius: 10px;
    font: inherit;
    background: var(--white);
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(124, 134, 54, 0.22);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #B3382A;
}

.field-error {
    color: #B3382A;
    font-size: 0.9rem;
    margin: 0.3rem 0 0;
}

.field-hint {
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin: 0.3rem 0 0;
    text-align: right;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.alert {
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: var(--olive-tint);
    color: var(--forest);
    border: 1px solid var(--olive);
}

.alert-error {
    background: #FBEAE6;
    color: #7E2418;
    border: 1px solid #E3A79C;
}

.contact-aside {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
    align-self: start;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
}

.info-row p { margin: 0; }

.info-row strong {
    display: block;
    font-family: var(--font-sub);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bark);
}

/* Circular outline icons from the kit's design elements */
.icon-circle {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 1.5px solid var(--bark);
    color: var(--bark);
    display: grid;
    place-items: center;
}

.icon-circle svg { width: 1.3rem; height: 1.3rem; }
.icon-circle .material-symbols-rounded { font-size: 1.35rem; }

.contact-aside .feature-box {
    min-height: 180px;
    margin-top: 1.4rem;
}

.contact-aside .feature-icon .material-symbols-rounded { font-size: 2.8rem; }
.contact-aside .feature-text { font-size: 1rem; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--forest-deep);
    color: rgba(255, 255, 237, 0.85);
    padding-block: 3rem 1.5rem;
    margin-top: 2rem;
}

.site-footer h3 {
    color: var(--cream);
    font-size: 1.15rem;
}

.site-footer a { color: var(--honey); }

.site-footer a:hover { color: var(--cream); }

.footer-logo {
    display: inline-block;
    background: var(--cream);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
}

.footer-logo img { width: 230px; height: auto; }

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 237, 0.3);
    border-radius: 999px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--cream) !important;
    transition: background 0.2s;
}

.social-link:hover { background: rgba(255, 255, 237, 0.12); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 237, 0.15);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 1.2rem;
    font-size: 0.9rem;
}

.footer-bottom p { margin: 0; }

.server-time { opacity: 0.7; }

/* ---------- Back to top ---------- */

.back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: 0;
    background: var(--bark);
    color: var(--white);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 40;
}

.back-to-top .material-symbols-rounded { font-size: 1.5rem; }

.back-to-top[hidden] { display: none; }

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .card:hover, .gallery-item:hover { transform: none; }
}

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

@media (max-width: 900px) {
    /* Text spans the full width on small screens, so use an even overlay */
    .hero {
        background:
            linear-gradient(rgba(28, 63, 56, 0.72), rgba(28, 63, 56, 0.72)),
            url('../images/hero_background.jpg') center / cover no-repeat;
    }
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-logo { max-width: 420px; }
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        display: none;
        padding: 0.5rem 1rem 1rem;
    }

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

    .site-nav ul { flex-direction: column; }

    .brand-logo { height: 40px; }
    .brand-name { font-size: 0.92rem; }
    .brand-tagline { display: none; }
}
