﻿@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

/* ================================================================
   TCSS CLEAN TEMPLATE - MAIN STYLESHEET
   All visual settings are kept in this one file.
   ================================================================ */

:root {
    --page-bg: #f4d9c4;
    --panel-bg: rgba(255, 250, 240, 0.88);
    --submenu-bg: rgba(255, 250, 240, 0.95);
    --menu-text: #111111;
    --menu-hover-text: #8d6914;
    --menu-hover-bg: rgba(255, 250, 240, 0.58);
    --title-color: #0f5a37;
    --accent: #c57832;
    --text-color: #222222;
    --muted-text: #5e5e5e;
    --border-color: rgba(148, 111, 75, 0.30);
    --footer-text: #ffffff;
    --site-max-width: 1440px;
    --content-radius: 11px;
    --panel-shadow:
        0 8px 24px rgba(75, 48, 25, 0.15),
        0 2px 7px rgba(75, 48, 25, 0.08);

    /* Xeriscape gallery controls */
    --xer-gallery-panel-width: 1120px;
    --xer-gallery-card-width: 310px;
    --xer-gallery-gap: 28px;
    --xer-gallery-padding: 18px;
    --xer-gallery-bg: #fff0d8;
    --xer-gallery-title: #7a0000;
}


/* ======================== RESET ======================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;

    color: var(--text-color);
    background-color: var(--page-bg);
    background-image: url("../images/bg-body.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;

    font-family: Verdana, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #165d73;
}

a:hover,
a:focus-visible {
    color: var(--accent);
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* Shared layout placeholders do not create a containing box.
   This allows the navigation bar to remain sticky. */

#site-shell-top,
#site-shell-bottom {
    display: contents;
}


/* ======================== HEADER ======================== */

.site-header {
    min-height: 102px;
    background-color: transparent;
    background-image: url("../images/header.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 100%;
}

.header-inner {
    width: 95%;
    max-width: var(--site-max-width);
    min-height: 88px;
    margin: 0 auto;
    padding: 4px 0 15px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(9px, 1.5vw, 18px);
}

.logo-link {
    flex: 0 0 auto;
    display: inline-flex;
    border-radius: 50%;
    transform: translateY(-6px);
    transition: transform 180ms ease, filter 180ms ease;
}

.logo-link:hover,
.logo-link:focus-visible {
    transform: translateY(-8px);
    filter: drop-shadow(0 0 7px rgba(218, 165, 32, 0.48));
    outline: none;
}

.site-logo {
    width: clamp(66px, 6vw, 82px);
    display: block;
}

.site-heading {
    text-align: center;
    transform: translateY(-10px);
}

.site-title {
    display: inline-block;
    margin: 0;

    font-family: "Permanent Marker", cursive;
    font-size: clamp(1.35rem, 2.05vw, 2.1rem);
    font-weight: normal;
    line-height: 1.04;
    letter-spacing: 0.01em;
    text-decoration: none;

    background: linear-gradient(
        135deg,
        #fff7bf 0%,
        #ffe15a 46%,
        #c98b00 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    color: #ffe15a;

    text-shadow:
        -1px -1px 0 rgba(255, 255, 225, 0.82),
        1px 1px 0 rgba(112, 75, 0, 0.30),
        2px 2px 4px rgba(35, 18, 0, 0.18),
        0 0 6px rgba(255, 221, 70, 0.18);

    transition:
        filter 180ms ease,
        text-shadow 180ms ease,
        transform 180ms ease;
}

.site-title:hover,
.site-title:focus-visible {
    filter: brightness(1.07);

    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.42),
        4px 4px 8px rgba(83, 61, 0, 0.40),
        -1px -1px 0 rgba(255, 240, 196, 0.50),
        1px 1px 0 rgba(88, 63, 0, 0.58);

    transform: translateY(-1px);
    outline: none;
}

.site-tagline {
    margin: 3px 0 0;
    color: #eadfca;
    font-size: clamp(0.7rem, 1vw, 0.86rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.48);
}

.site-tagline:empty {
    display: none;
}


/* ======================== MENU ======================== */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-top: -27px;
    background: transparent;
    box-shadow: none;
}

/* Hide the menu and phone hamburger on selected pages */
body.no-site-menu .site-nav {
    display: none !important;
}

.nav-inner {
    width: 95%;
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.menu-toggle {
    display: none;
    width: 100%;
    min-height: 38px;
    padding: 7px 12px;

    color: #111111;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-weight: 700;
}

.menu-toggle-icon {
    display: inline-block;
    margin-right: 8px;
    font-family: Arial, sans-serif;
    font-size: 1.15rem;
}

.site-menu,
.site-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.site-menu li {
    position: relative;
}

.menu-link {
    min-height: 36px;
    padding: 0 14px;

    display: flex;
    align-items: center;
    gap: 6px;

    color: var(--menu-text);
    background: transparent;
    border: 0;
    cursor: pointer;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.menu-link:hover,
.menu-link:focus-visible,
.site-menu li:hover > .menu-link,
.site-menu li:focus-within > .menu-link {
    color: var(--menu-hover-text);
    background: var(--menu-hover-bg);
    text-shadow: 0 0 5px rgba(218, 165, 32, 0.28);
    outline: none;
}

.submenu-arrow {
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    line-height: 1;
}

.site-menu .submenu {
    min-width: 220px;
    position: absolute;
    left: 0;
    top: 100%;
    display: none;

    background: var(--submenu-bg);
    border: 1px solid rgba(154, 116, 24, 0.22);
    border-radius: 0 0 7px 7px;
    box-shadow: 0 7px 18px rgba(58, 42, 22, 0.22);
}

.site-menu .submenu .menu-link {
    width: 100%;
    min-height: 39px;
    justify-content: space-between;
    padding: 8px 13px;

    color: #222222;
    font-size: 0.88rem;
    white-space: normal;
}

.site-menu .submenu .menu-link:hover,
.site-menu .submenu .menu-link:focus-visible {
    color: #8d6914;
    background: rgba(255, 239, 196, 0.72);
}

.site-menu .submenu .submenu {
    left: 100%;
    top: -1px;
    border-radius: 7px;
}

.site-menu li:hover > .submenu,
.site-menu li:focus-within > .submenu {
    display: block;
}


/* ======================== PAGE CONTENT ======================== */

main {
    flex: 1 0 auto;
    width: 100%;
}

.page-content {
    margin: 13px auto 20px;
}

.page-width-40 {
    width: min(40%, var(--site-max-width));
}

.page-width-45 {
    width: min(45%, var(--site-max-width));
}

.page-width-50 {
    width: min(50%, var(--site-max-width));
}

.page-width-60 {
    width: min(60%, var(--site-max-width));
}

.page-width-70 {
    width: min(70%, var(--site-max-width));
}

.page-width-75 {
    width: min(75%, var(--site-max-width));
}

.page-width-80 {
    width: min(80%, var(--site-max-width));
}

.page-width-90 {
    width: min(90%, var(--site-max-width));
}

.page-width-95 {
    width: min(95%, var(--site-max-width));
}

.page-width-100 {
    width: min(100%, var(--site-max-width));
}

.page-width-home {
    width: min(94%, 1120px);
}

.content-card {
    padding: 10px 14px 14px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--content-radius);
    box-shadow: var(--panel-shadow);
}

.page-title {
    margin: 0 0 7px;
    color: var(--title-color);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.55vw, 1.45rem);
    line-height: 1.08;
    text-align: center;
}

.page-intro {
    max-width: 850px;
    margin: 0 auto 12px;
    color: var(--muted-text);
    text-align: center;
    font-size: 0.92rem;
}

.notice-box {
    margin: 14px 0;
    padding: 10px 14px;
    background: rgba(247, 241, 229, 0.88);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
}


/* ======================== CASPIO ======================== */

.caspio-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.caspio-wrap > script {
    display: block;
}

.caspio-inner-60 {
    width: 60%;
    margin-inline: auto;
}

.caspio-inner-70 {
    width: 70%;
    margin-inline: auto;
}

.caspio-inner-80 {
    width: 80%;
    margin-inline: auto;
}

.caspio-inner-90 {
    width: 90%;
    margin-inline: auto;
}

.caspio-inner-100 {
    width: 100%;
    margin-inline: auto;
}


/* ========================================================
   STANDARD GALLERIES
   ======================================================== */

.gallery-grid {
    display: grid;
    gap: 10px;
    margin: 0 auto;
}

.gallery-12 {
    max-width: 1040px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-9 {
    max-width: 780px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-6 {
    max-width: 720px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* Corrected gallery card.
   The previous stylesheet had two periods before gallery-card. */

.gallery-card {
    display: block;
    position: relative;

    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;

    overflow: hidden;
    border: 0;
    border-radius: 10px;

    color: inherit;
    background: transparent;
    text-decoration: none;
    line-height: 0;

    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.gallery-card img {
    display: block;

    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 3;

    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;

    object-fit: cover;
    object-position: center center;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
    color: inherit;
    transform: translateY(-3px) scale(1.02);

    box-shadow:
        0 0 10px rgba(255, 215, 100, 0.85),
        0 0 20px rgba(255, 215, 100, 0.62),
        0 7px 16px rgba(0, 0, 0, 0.28);

    outline: none;
    z-index: 5;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
    opacity: 1;
    transform: scale(1.025);
    filter: brightness(1.06) saturate(1.03);
}

.gallery-caption {
    display: block;
    padding: 7px 9px;

    color: var(--title-color);
    background: rgba(255, 255, 255, 0.94);

    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}


/* =====================================================
   XERISCAPE GALLERY - CLEAN 3 COLUMN VERSION
   ===================================================== */

.xer-gallery-panel {
    max-width: var(--xer-gallery-panel-width);
    margin: 20px auto 40px;
    padding: 14px 18px 24px;

    background: var(--xer-gallery-bg);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.xer-gallery-title {
    margin: 0 0 16px;
    text-align: center;
    color: var(--xer-gallery-title);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: bold;
}

.xer-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, var(--xer-gallery-card-width));
    gap: var(--xer-gallery-gap);
    justify-content: center;
}

.xer-gallery-card {
    display: block;
    position: relative;

    width: var(--xer-gallery-card-width);
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 0;

    overflow: hidden;
    border: 0;
    border-radius: 7px;

    background: transparent;
    text-decoration: none;
    line-height: 0;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.xer-gallery-card img {
    display: block;

    width: 100%;
    max-width: none;
    height: 100%;

    margin: 0;
    padding: 0;
    border: 0;

    object-fit: cover;
    object-position: center center;
}

.xer-gallery-card:hover,
.xer-gallery-card:focus-visible {
    color: inherit;
    transform: translateY(-4px) scale(1.025);

    box-shadow:
        0 0 10px rgba(255, 215, 100, 0.85),
        0 0 22px rgba(255, 215, 100, 0.65),
        0 8px 18px rgba(0, 0, 0, 0.28);

    outline: none;
    z-index: 5;
}

.xer-gallery-card:hover img,
.xer-gallery-card:focus-visible img {
    transform: scale(1.035);
    filter: brightness(1.06);
}


/* ======================== FOOTER ======================== */

.site-footer {
    flex-shrink: 0;
    padding: 10px 12px;

    color: var(--footer-text);
    background-color: #5b2d2e;
    background-image:
        linear-gradient(
            rgba(67, 35, 35, 0.66),
            rgba(67, 35, 35, 0.66)
        ),
        url("../images/bg-body.png");

    background-repeat: no-repeat;
    background-position: center 72%;
    background-size: cover;

    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 -4px 14px rgba(67, 35, 35, 0.16);
    font-size: 0.78rem;
}

.site-footer p {
    margin: 2px 0;
}

.site-footer a {
    color: #f3d98c;
    font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 221, 128, 0.65);
}


/* ======================== BACK TO TOP ======================== */

.back-to-top {
    width: 42px;
    height: 42px;

    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: var(--accent);
    border: 0;
    border-radius: 50%;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    cursor: pointer;

    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.back-to-top.is-visible {
    display: flex;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    filter: brightness(1.08);
    outline: 3px solid rgba(255, 255, 255, 0.75);
}


/* ======================== TABLET ======================== */

@media screen and (max-width: 980px) {

    .xer-gallery-grid {
        grid-template-columns: repeat(2, var(--xer-gallery-card-width));
    }
}


@media screen and (max-width: 900px) {

    body {
        background-attachment: scroll;
    }

    .site-header {
        min-height: 94px;
    }

    .header-inner {
        min-height: 82px;
    }

    .site-logo {
        width: 64px;
    }

    .site-title {
        font-size: clamp(1.18rem, 3.3vw, 1.8rem);
    }

    .site-nav {
        margin-top: -25px;
    }

    .menu-toggle {
        display: block;
    }

    .site-menu {
        display: none;
        width: 100%;
        padding: 4px 0 7px;

        flex-direction: column;
        align-items: stretch;

        background: rgba(255, 250, 240, 0.93);
        border: 1px solid rgba(154, 116, 24, 0.22);
        border-radius: 7px;
        box-shadow: 0 7px 18px rgba(58, 42, 22, 0.18);
    }

    .site-menu.is-open {
        display: flex;
    }

    .site-menu .menu-link {
        width: 100%;
        min-height: 40px;
        justify-content: space-between;
        padding: 8px 13px;
        text-align: left;
    }

    .site-menu .submenu,
    .site-menu .submenu .submenu {
        min-width: 0;
        position: static;
        display: none;

        border: 0;
        border-left: 3px solid rgba(154, 116, 24, 0.38);
        border-radius: 0;
        box-shadow: none;
        background: rgba(255, 250, 240, 0.96);
    }

    .site-menu .submenu.is-open {
        display: block;
    }

    .site-menu .submenu .menu-link {
        padding-left: 27px;
    }

    .site-menu .submenu .submenu .menu-link {
        padding-left: 42px;
    }

    .site-menu li:hover > .submenu,
    .site-menu li:focus-within > .submenu {
        display: none;
    }

    .site-menu li > .submenu.is-open {
        display: block;
    }

    .page-width-40,
    .page-width-45,
    .page-width-50,
    .page-width-60,
    .page-width-70,
    .page-width-75,
    .page-width-80,
    .page-width-90,
    .page-width-95,
    .page-width-100,
    .page-width-home {
        width: calc(100% - 22px);
    }

    .caspio-inner-60,
    .caspio-inner-70,
    .caspio-inner-80,
    .caspio-inner-90,
    .caspio-inner-100 {
        width: 100%;
    }

    .gallery-12 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-9,
    .gallery-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ======================== PHONE ======================== */

@media screen and (max-width: 680px) {

    .xer-gallery-panel {
        padding: 18px;
    }

    .xer-gallery-grid {
        grid-template-columns: 1fr;
    }

    .xer-gallery-card {
        width: 100%;
        max-width: var(--xer-gallery-card-width);
        margin: 0 auto;
    }
}


@media screen and (max-width: 620px) {

    .site-header {
        min-height: 86px;
    }

    .header-inner {
        min-height: 76px;
        padding: 4px 0 13px;
        gap: 8px;
    }

    .site-logo {
        width: 56px;
    }

    .site-heading {
        text-align: left;
        transform: translateY(-7px);
    }

    .site-title {
        font-size: clamp(1rem, 4.5vw, 1.42rem);
        line-height: 1.08;
    }

    .site-tagline {
        font-size: 0.62rem;
    }

    .site-nav {
        margin-top: -22px;
    }

    .page-content {
        margin-top: 9px;
        margin-bottom: 15px;
    }

    .content-card {
        padding: 9px 10px 12px;
        border-radius: 8px;
    }

    .gallery-grid {
        gap: 7px;
    }

    .gallery-12,
    .gallery-9,
    .gallery-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media screen and (max-width: 420px) {

    .gallery-12,
    .gallery-9,
    .gallery-6 {
        grid-template-columns: 1fr;
    }
}


/* ======================== REDUCED MOTION ======================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .gallery-card:hover,
    .gallery-card:focus-visible,
    .gallery-card:hover img,
    .gallery-card:focus-visible img,
    .xer-gallery-card:hover,
    .xer-gallery-card:focus-visible,
    .xer-gallery-card:hover img,
    .xer-gallery-card:focus-visible img {
        transform: none;
    }
}


/* ======================== PRINT ======================== */

@media print {

    body {
        display: block;
        background: #ffffff;
    }

    .site-header,
    .site-nav,
    .site-footer,
    .back-to-top {
        display: none !important;
    }

    .page-content,
    .page-width-40,
    .page-width-45,
    .page-width-50,
    .page-width-60,
    .page-width-70,
    .page-width-75,
    .page-width-80,
    .page-width-90,
    .page-width-95,
    .page-width-100,
    .page-width-home {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .content-card {
        padding: 0;
        border: 0;
        box-shadow: none;
        background: #ffffff;
    }
}

/* ================================================================
   GALLERY — MATCH THE 640 × 480 IMAGE SHAPE
   Removes the cream strips on the left and right
   ================================================================ */

.gallery-grid > *,
.gallery-item,
.gallery-card,
.gallery-tile {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.gallery-grid img,
.gallery-item img,
.gallery-card img,
.gallery-tile img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}