﻿@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);
}

/* ======================== 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,.82),
        1px 1px 0 rgba(112,75,0,.30),
        2px 2px 4px rgba(35,18,0,.18),
        0 0 6px rgba(255,221,70,.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,.42),
        4px 4px 8px rgba(83,61,0,.40),
        -1px -1px 0 rgba(255,240,196,.50),
        1px 1px 0 rgba(88,63,0,.58);
    transform: translateY(-1px);
    outline: none;
}

.site-tagline {
    margin: 3px 0 0;
    color: #eadfca;
    font-size: clamp(.7rem, 1vw, .86rem);
    letter-spacing: .04em;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(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;
}

.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: .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,.28);
    outline: none;
}

.submenu-arrow { font-family: Arial, sans-serif; font-size: .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,.22);
    border-radius: 0 0 7px 7px;
    box-shadow: 0 7px 18px rgba(58,42,22,.22);
}

.site-menu .submenu .menu-link {
    width: 100%;
    min-height: 39px;
    justify-content: space-between;
    padding: 8px 13px;
    color: #222222;
    font-size: .88rem;
    white-space: normal;
}

.site-menu .submenu .menu-link:hover,
.site-menu .submenu .menu-link:focus-visible {
    color: #8d6914;
    background: rgba(255,239,196,.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-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: .92rem; }
.notice-box { margin: 14px 0; padding: 10px 14px; background: rgba(247,241,229,.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; }

/* ======================== 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)); }

.gallery-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    box-shadow: 0 2px 8px rgba(47,41,30,.14);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    display: block;
    object-fit: cover;
    opacity: .98;
    transition: opacity 180ms ease, filter 180ms ease;
}

.gallery-card:hover, .gallery-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(184,109,50,.30), 0 8px 18px rgba(47,41,30,.20);
    outline: none;
}
.gallery-card:hover img, .gallery-card:focus-visible img { opacity: 1; filter: brightness(1.07) saturate(1.03); }
.gallery-caption { display: block; padding: 7px 9px; color: var(--title-color); background: rgba(255,255,255,.94); font-size: .84rem; font-weight: 700; text-align: center; }

/* ======================== FOOTER ======================== */

.site-footer {
    flex-shrink: 0;
    padding: 10px 12px;
    color: var(--footer-text);
    background-color: #5b2d2e;
    background-repeat: no-repeat;
	background-position: center 72%;
	background-size: cover;
	text-align: center;
	border-top: 1px solid rgba(255,255,255,.28);
	box-shadow: 0 -4px 14px rgba(67,35,35,.16);
	font-size: .78rem;
	background-image: linear-gradient(rgba(67,35,35,.66), rgba(67,35,35,.66)), url("../images/bg-body.png");
}
.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,.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,.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,.75); }

/* ======================== TABLET / MOBILE ======================== */

@media (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,.93);
        border: 1px solid rgba(154,116,24,.22);
        border-radius: 7px;
        box-shadow: 0 7px 18px rgba(58,42,22,.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,.38);
        border-radius: 0;
        box-shadow: none;
        background: rgba(255,250,240,.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-60, .page-width-70, .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)); }
}

@media (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: .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 (max-width: 420px) {
    .gallery-12,
    .gallery-9,
    .gallery-6 {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ======================== PRINT ======================== */

@media print {
    body { display: block; background: #ffffff; }
    .site-header, .site-nav, .site-footer, .back-to-top { display: none !important; }
    .page-content, .page-width-60, .page-width-70, .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; }
}
