/* Aselinos — mountain guesthouse. Palette from the logo: Giona blue + warm tan, on stone-paper. */
:root {
    --paper: #f7f3ec;
    --paper-2: #efe8dc;
    --white: #fffdf9;
    --ink: #22302c;
    --ink-soft: #4b5753;
    --muted: #77807c;
    --line: #ddd4c4;
    --tan: #9c8152;
    --tan-dark: #7d6640;
    --sky: #5f9cbd;
    --pine: #2d4a42;
    --error: #a63d32;
    --ok: #2e6b4a;
    --radius: 6px;
    --shadow: 0 10px 30px -18px rgba(34, 48, 44, .45);
    --serif: "Literata", Georgia, "Times New Roman", serif;
    --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.7 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--tan-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt { margin-top: 1.6em; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); font-weight: 600; margin-bottom: .6em; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow.light { color: #f3e6cc; }

.btn {
    display: inline-block; background: var(--pine); color: #fff; border: 0; border-radius: var(--radius);
    padding: .8em 1.5em; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
    transition: background .2s, transform .2s;
}
.btn:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.btn-small { padding: .55em 1.1em; font-size: .88rem; }
.btn-ghost { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .7); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .28); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { width: 112px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav li { position: relative; }
.site-nav > ul > li > a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; border-radius: var(--radius); }
.site-nav > ul > li > a:hover, .site-nav li.is-active > a { color: var(--tan-dark); }
.site-nav li.is-active > a { box-shadow: inset 0 -2px 0 var(--tan); border-radius: 0; }
.site-nav .sub {
    list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.site-nav li.has-sub:hover .sub, .site-nav li.has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; border-radius: 4px; font-size: .93rem; }
.site-nav .sub a:hover, .site-nav .sub .is-active a { background: var(--paper); }
.sub-toggle { display: none; }
.nav-extra { display: flex; align-items: center; gap: 16px; }
.lang { font-size: .88rem; color: var(--ink-soft); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); content: ""; transition: .2s;
}
.nav-toggle .bars { top: 21px; }
.nav-toggle .bars::before { left: 0; top: -7px; }
.nav-toggle .bars::after { left: 0; top: 7px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle .bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
    .header-row { min-height: 68px; }
    .brand img { width: 88px; }
    .nav-toggle { display: block; }
    .site-nav {
        position: fixed; inset: 68px 0 0 0; background: var(--white); flex-direction: column; align-items: stretch;
        gap: 0; padding: 12px 16px 32px; overflow-y: auto; display: none;
    }
    .nav-open .site-nav { display: flex; }
    .site-nav > ul { flex-direction: column; }
    .site-nav > ul > li { border-bottom: 1px solid var(--line); }
    .site-nav > ul > li > a { padding: 14px 4px; font-size: 1.05rem; }
    .site-nav li.is-active > a { box-shadow: none; }
    .site-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 12px; display: none; }
    .site-nav li.sub-open .sub { display: block; }
    .site-nav li.has-sub:hover .sub { display: none; }
    .site-nav li.has-sub.sub-open:hover .sub, .site-nav li.sub-open .sub { display: block; }
    .sub-toggle { display: block; position: absolute; right: 0; top: 6px; width: 44px; height: 40px; background: none; border: 0; cursor: pointer; }
    .sub-toggle::before { content: ""; position: absolute; left: 17px; top: 14px; width: 8px; height: 8px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: rotate(45deg); transition: .2s; }
    .sub-open > .sub-toggle::before { transform: rotate(225deg); top: 18px; }
    .nav-extra { justify-content: space-between; padding-top: 20px; }
    body.nav-open { overflow: hidden; }
}

/* ---------- hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--pine); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 32, 30, .05) 30%, rgba(20, 32, 30, .72) 100%); }
.hero-text { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 64px; width: 100%; }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: .25em; }
.hero .lead { font-size: 1.2rem; max-width: 36ch; color: #f4efe6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .btn:not(.btn-ghost) { background: var(--tan); }
.hero .btn:not(.btn-ghost):hover { background: var(--tan-dark); }

/* ---------- home blocks */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.split.reverse { grid-template-columns: .8fr 1.2fr; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media.tall img { aspect-ratio: 4 / 5; }
.band { background: var(--paper-2); padding: 72px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.card:hover img { transform: scale(1.04); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(20, 32, 30, .7)); }
.card-title { position: absolute; left: 18px; bottom: 14px; z-index: 1; font: 500 1.25rem/1.2 var(--serif); }
.cta { background: var(--pine); color: #eef1ec; text-align: center; padding: 80px 0; }
.cta h2 { color: #fff; }
.cta .btn { background: var(--tan); margin-top: 8px; }
.cta .btn:hover { background: var(--tan-dark); }
.cta-phone { margin-top: 18px; font-size: 1.15rem; }
.cta-phone a { color: #fff; }

@media (max-width: 860px) {
    .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; padding-bottom: 56px; }
    .split.reverse .split-media { order: 2; }
    .split-media.tall img { aspect-ratio: 4 / 3; }
    .cards { grid-template-columns: 1fr; }
    .band { padding: 52px 0; }
    .hero-text { padding-bottom: 44px; }
}

/* ---------- inner pages */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 52px 0 40px; }
.page-head h1 { margin: 0; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 0; }
.subnav a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink-soft); font-size: .92rem; background: var(--white); }
.subnav a.is-active, .subnav a:hover { border-color: var(--tan); color: var(--tan-dark); }
.content { padding-top: 48px; padding-bottom: 72px; }
.block { margin-bottom: 44px; }
.block.has-image { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.block.has-image.flip { grid-template-columns: 1fr 300px; }
.block.has-image.flip .block-media { order: 2; }
.block-media { margin: 0; }
.block-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (max-width: 700px) {
    .block.has-image, .block.has-image.flip { grid-template-columns: 1fr; }
    .block.has-image.flip .block-media { order: 0; }
}

.prose { overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose blockquote { margin: 1.2em 0; padding-left: 1em; border-left: 3px solid var(--tan); color: var(--ink-soft); }

/* gallery */
.gallery { list-style: none; margin: 40px 0 80px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .caption { display: block; font-size: .88rem; color: var(--ink-soft); padding: 8px 2px 0; line-height: 1.45; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 20, 19, .94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 16px 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; object-fit: contain; border-radius: 4px; }
.lightbox p { color: #e9e4da; margin-top: 12px; text-align: center; max-width: 60ch; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* news */
.news-item { border-bottom: 1px solid var(--line); padding: 0 0 32px; margin-bottom: 32px; }
.news-item time { font-size: .85rem; color: var(--tan); font-weight: 600; letter-spacing: .04em; }
.news-item h2 { font-size: 1.5rem; margin: .2em 0 .6em; }
.news-image { border-radius: var(--radius); margin-bottom: 16px; max-height: 420px; object-fit: cover; width: 100%; }
.news-body summary { cursor: pointer; font-weight: 600; color: var(--pine); list-style: none; }
.news-body summary::-webkit-details-marker { display: none; }
.news-body summary::after { content: " ↓"; }
.news-body[open] summary { display: none; }

/* corporate documents */
.doc-year { margin-bottom: 32px; }
.doc-year h2 { font-size: 1.4rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list a { display: flex; gap: 14px; align-items: center; padding: 10px 0; text-decoration: none; color: var(--ink); }
.doc-list a:hover { color: var(--tan-dark); }
.doc-icon { flex: none; font-size: .7rem; font-weight: 700; color: #fff; background: var(--error); border-radius: 3px; padding: 3px 6px; letter-spacing: .05em; }

/* forms */
.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-layout .content { padding-bottom: 0; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin: 48px 0 72px; box-shadow: var(--shadow); }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 48px; }
.contact-card h2 { font-size: 1.3rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 3px 0; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field b { color: var(--error); font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 11px 12px; transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); background: #fff; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field small { display: block; color: var(--error); margin-top: 4px; font-size: .85rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 0 16px; }
.turnstile small { color: var(--error); }
.notice { padding: 12px 16px; border-radius: var(--radius); }
.notice.success { background: #e6f1ea; color: var(--ok); }
.notice.error { background: #f8e7e4; color: var(--error); }
.map { margin-bottom: 72px; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }
@media (max-width: 900px) {
    .form-layout { grid-template-columns: 1fr; gap: 0; }
    .form-card { margin-top: 0; padding: 24px 18px; }
}
@media (max-width: 520px) {
    .row-2, .row-3 { grid-template-columns: 1fr; }
}

/* ---------- footer */
.site-footer { background: var(--ink); color: #cfd5d1; font-size: .93rem; }
.site-footer a { color: #f0e6d2; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-logo { width: 110px; background: var(--white); border-radius: var(--radius); padding: 6px 8px; margin-bottom: 14px; }
.footer-title { color: #fff; font-size: 1.1rem; }
.footer-links { list-style: none; margin: 0 0 12px; padding: 0; }
.footer-links li { padding: 3px 0; }
.site-footer .muted { color: #9aa49f; }
.espa img { background: #fff; border-radius: 4px; width: 100%; max-width: 270px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 22px; font-size: .85rem; color: #9aa49f; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
