:root {
    color-scheme: light;
    --border-width: 1px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --surface-blur: 0px;
    --header-blur: 0px;
    --page-gutter: 1.2rem;
    --section-space-y: 2.6rem;
    --card-padding: 1rem;
    --header-padding-y: 0.7rem;
    --header-padding-x: 0.85rem;
    --button-padding-y: 0.68rem;
    --button-padding-x: 1rem;
    --page-max-width: 1280px;

    --bg: #ffffff;
    --bg-elev: #f6f6f6;
    --bg-elev-2: #efefef;
    --card: #ffffff;

    --text: #111111;
    --muted: #5b5b5b;
    --line: #dedede;
    --line-strong: #c6c6c6;

    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.08);

    --solid: #111111;
    --solid-contrast: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0a0a0a;
        --bg-elev: #121212;
        --bg-elev-2: #1a1a1a;
        --card: #121212;

        --text: #f3f3f3;
        --muted: #b1b1b1;
        --line: #2f2f2f;
        --line-strong: #3f3f3f;

        --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 20px 44px rgba(0, 0, 0, 0.55);

        --solid: #ffffff;
        --solid-contrast: #111111;
    }
}

body[data-theme='light'] {
    color-scheme: light;
    --bg: #ffffff;
    --bg-elev: #f6f6f6;
    --bg-elev-2: #efefef;
    --card: #ffffff;

    --text: #111111;
    --muted: #5b5b5b;
    --line: #dedede;
    --line-strong: #c6c6c6;

    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.08);

    --solid: #111111;
    --solid-contrast: #ffffff;
}

body[data-theme='dark'] {
    color-scheme: dark;
    --bg: #0a0a0a;
    --bg-elev: #121212;
    --bg-elev-2: #1a1a1a;
    --card: #121212;

    --text: #f3f3f3;
    --muted: #b1b1b1;
    --line: #2f2f2f;
    --line-strong: #3f3f3f;

    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 44px rgba(0, 0, 0, 0.55);

    --solid: #ffffff;
    --solid-contrast: #111111;
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

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

.site-main {
    padding-bottom: 2.5rem;
}

.header-slider-inner,
.section > *,
.site-footer > * {
    width: min(100%, var(--page-max-width));
    margin-inline: auto;
}

.section {
    padding-block: var(--section-space-y);
    padding-inline: var(--page-gutter);
}

.section-alt {
    background: var(--bg-elev);
    border-top: var(--border-width) solid var(--line);
    border-bottom: var(--border-width) solid var(--line);
}

.section-heading h1,
.section-heading h2 {
    margin: 0.1rem 0 0.85rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-family: 'Sora', 'Barlow', sans-serif;
}

.section-heading h1 {
    font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.section-heading h2 {
    font-size: clamp(1.45rem, 3.6vw, 2.2rem);
}

.kicker {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.lead {
    color: var(--muted);
}

.surface-card {
    border: var(--border-width) solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(var(--surface-blur));
    -webkit-backdrop-filter: blur(var(--surface-blur));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    width: 100%;
    padding: 0;
    padding-inline: 0;
    background: var(--card);
    border-bottom: var(--border-width) solid var(--line);
}

body.admin-bar .site-header {
    top: 32px;
}

.header-inner {
    width: min(100%, var(--page-max-width));
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: var(--header-padding-y) var(--header-padding-x);
    border-radius: 0;
}

body.is-scrolled .site-header {
    box-shadow: var(--shadow-lg);
}

.header-slider {
    padding-inline: var(--page-gutter);
    padding-bottom: 1rem;
}

.header-slider-inner {
    position: relative;
    overflow: hidden;
}

.header-slider-track {
    display: flex;
    transition: transform 0.42s ease;
    will-change: transform;
}

.header-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    background: var(--bg-elev);
}

.header-slide-media {
    min-height: 360px;
    border-right: var(--border-width) solid var(--line);
}

.header-slide-media img,
.header-slide-placeholder {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.header-slide-media img {
    filter: none;
}

.header-slide-placeholder {
    background: var(--bg-elev-2);
}

.header-slide-content {
    padding: clamp(1.1rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    min-width: 0;
    overflow: hidden;
}

.header-slide-content .kicker {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.header-slide-title {
    margin: 0;
    line-height: 1.14;
    letter-spacing: -0.02em;
    font-size: clamp(1.35rem, 4vw, 2.6rem);
    font-family: 'Sora', 'Barlow', sans-serif;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.header-slide-text {
    margin: 0;
    color: var(--muted);
    max-width: 46ch;
    width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.header-slide-content .button {
    width: max-content;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.header-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: var(--border-width) solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
}

.header-slider-prev {
    left: 0.65rem;
}

.header-slider-next {
    right: 0.65rem;
}

.header-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    margin-top: 0.7rem;
    width: 100%;
}

.header-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: var(--border-width) solid var(--line-strong);
    background: transparent;
    cursor: pointer;
}

.header-slider-dot.is-active {
    background: var(--text);
    border-color: var(--text);
}

.custom-logo {
    max-height: 44px;
    width: auto;
}

.site-title {
    font-family: 'Sora', 'Barlow', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 1.15rem;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-list a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.menu-list .current-menu-item > a,
.menu-list .current_page_item > a,
.menu-list a:hover {
    color: var(--text);
}

.menu-toggle,
.theme-toggle,
.header-cta,
.button {
    border-radius: var(--radius-sm);
    border: var(--border-width) solid var(--line);
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.menu-list a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-elev);
    cursor: pointer;
    font-size: 16px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    display: block;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elev);
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
}

.theme-toggle-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.theme-toggle-menu {
    display: inline-flex;
}

.menu-actions {
    display: flex;
    align-items: center;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 80;
}

body.is-menu-open .menu-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 0.9rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--solid);
    color: var(--solid-contrast);
    border-color: var(--solid);
}

.header-phone-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.hero,
.services-grid,
.booking-grid,
.hero-meta,
.hero-actions {
    display: grid;
    gap: 0.9rem;
}

.hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
}

.hero-actions {
    grid-auto-flow: column;
    width: max-content;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--button-padding-y) var(--button-padding-x);
    font-size: 0.92rem;
}

.button-primary {
    background: var(--solid);
    color: var(--solid-contrast);
    border-color: var(--solid);
}

.button-ghost {
    background: var(--bg-elev);
    color: var(--text);
}

.hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-meta div,
.hero-panel,
.service-card,
.booking-card,
.widget,
.comments-area,
.nav-posts {
    border-radius: var(--radius-md);
}

.hero-meta div {
    padding: var(--card-padding);
    border: var(--border-width) solid var(--line);
    background: var(--bg-elev);
}

.hero-meta strong {
    display: block;
    font-family: 'Sora', 'Barlow', sans-serif;
    font-size: 1.15rem;
    line-height: 1.2;
}

.hero-meta span {
    color: var(--muted);
    font-size: 0.86rem;
}

.hero-panel,
.service-card,
.booking-card,
.widget,
.comments-area,
.nav-posts {
    padding: var(--card-padding);
    border: var(--border-width) solid var(--line);
    background: var(--bg-elev);
}

.hero-panel ul,
.widget ul,
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-panel li,
.widget li,
.footer-menu li {
    color: var(--muted);
}

.hero-panel li + li,
.widget li + li,
.footer-menu li + li {
    margin-top: 0.45rem;
}

.posts-layout .section-heading {
    margin-bottom: 0.9rem;
}

.posts-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.post-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    border: var(--border-width) solid var(--line);
    background: var(--bg-elev);
}

.post-content {
    padding: var(--card-padding);
}

.post-content h2,
.post-content h3 {
    margin: 0.38rem 0 0.56rem;
    line-height: 1.28;
    font-family: 'Sora', 'Barlow', sans-serif;
    font-size: 1.05rem;
}

.post-content p {
    margin: 0;
    color: var(--muted);
}

.post-date {
    margin: 0;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
}

.thumb-link img,
.featured-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.text-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    border-bottom: var(--border-width) solid var(--line-strong);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 1rem;
}

.sidebar-area {
    display: grid;
    gap: 1rem;
}

.widget-title {
    margin: 0 0 0.7rem;
    font-size: 1rem;
    font-family: 'Sora', 'Barlow', sans-serif;
}

.widget p,
.widget span,
.widget a {
    color: var(--muted);
}

.article-page {
    padding: clamp(var(--card-padding), 2.2vw, calc(var(--card-padding) + 0.65rem));
}

.entry-header h1 {
    margin: 0.2rem 0 0.9rem;
    font-size: clamp(1.5rem, 3.6vw, 2.35rem);
    line-height: 1.16;
    font-family: 'Sora', 'Barlow', sans-serif;
}

.entry-content {
    color: var(--text);
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content a {
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.1rem;
}

.entry-footer {
    margin-top: 1rem;
    color: var(--muted);
}

.pagination-wrap {
    margin-top: 1rem;
}

.pagination,
.nav-links {
    font-weight: 600;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.15rem;
    height: 2.15rem;
    margin-right: 0.3rem;
    border-radius: 8px;
    border: var(--border-width) solid var(--line);
    background: var(--bg-elev);
    color: var(--muted);
}

.page-numbers.current,
.page-numbers:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.comments-area {
    margin-top: 1rem;
}

.comments-area .comment-list {
    margin: 0;
    padding-left: 1.1rem;
}

.comments-area .comment-list li {
    margin-bottom: 0.85rem;
}

.comments-area .comment-body {
    background: var(--bg);
    border: var(--border-width) solid var(--line);
    border-radius: var(--radius-sm);
    padding: var(--card-padding);
}

.comments-area input,
.comments-area textarea,
.search-form input,
.search-form button {
    width: 100%;
    margin-top: 0.42rem;
    padding: 0.66rem 0.78rem;
    border: var(--border-width) solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
}

.comments-area input:focus,
.comments-area textarea:focus,
.search-form input:focus,
.menu-toggle:focus,
.theme-toggle:focus,
.button:focus,
.header-cta:focus {
    outline: 2px solid var(--line-strong);
    outline-offset: 2px;
}

.comments-area .submit,
.search-form button {
    max-width: 220px;
    cursor: pointer;
    font-weight: 700;
    background: var(--solid);
    color: var(--solid-contrast);
    border-color: var(--solid);
}

.search-form {
    margin-top: 0.9rem;
}

.site-footer {
    border-top: var(--border-width) solid var(--line);
    padding: 0.6rem 0 1.6rem;
    padding-inline: var(--page-gutter);
}

.footer-grid {
    margin-top: 1rem;
    padding: calc(var(--card-padding) + 0.1rem);
    border-radius: var(--radius-lg);
    border: var(--border-width) solid var(--line);
    background: var(--bg-elev);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 0.4rem;
    font-family: 'Sora', 'Barlow', sans-serif;
}

.footer-grid p,
.footer-grid a,
.footer-grid li,
.footer-bottom p {
    margin: 0;
    color: var(--muted);
}

.footer-bottom {
    padding-top: 0.8rem;
}

.footer-bottom p {
    font-size: 0.86rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1080px) {
    .header-slide {
        grid-template-columns: 1fr;
    }

    .header-slide-media {
        border-right: 0;
        border-bottom: var(--border-width) solid var(--line);
        min-height: 260px;
    }

    .header-slide-media img,
    .header-slide-placeholder {
        min-height: 260px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .site-header {
        z-index: 110;
    }

    body.is-menu-open {
        overflow: hidden;
    }

    .header-slider,
    .section,
    .site-footer {
        padding-inline: max(0.75rem, calc(var(--page-gutter) * 0.7));
    }

    .header-inner {
        flex-wrap: nowrap;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
        transition: opacity 0.2s ease;
    }

    body.is-menu-open .menu-toggle {
        opacity: 0;
        pointer-events: none;
    }

    .header-cta {
        display: none;
    }

    .header-phone-icon {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: calc(env(safe-area-inset-top, 0px) + 0.6rem);
        left: max(0.55rem, calc(var(--page-gutter) * 0.5));
        width: min(80vw, 320px);
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 1.2rem);
        margin-left: 0;
        padding: 0.9rem 0.85rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.8rem;
        border: var(--border-width) solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--card);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 130;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateX(-104%);
        transition: transform 0.24s ease, opacity 0.18s ease, visibility 0s linear 0.24s;
    }

    .main-nav.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
        transition-delay: 0s, 0s, 0s;
    }

    .menu-list {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
        padding: 0;
    }

    .menu-list li {
        width: 100%;
    }

    .menu-list a {
        display: block;
        width: 100%;
        padding: 0.5rem 0.1rem;
        font-size: 1rem;
    }

    .menu-actions {
        width: 100%;
        margin-top: 0.35rem;
        padding-top: 0.6rem;
        border-top: var(--border-width) solid var(--line);
        justify-content: flex-start;
    }

    .theme-toggle-menu {
        display: inline-flex;
        width: 44px;
        height: 44px;
        border-radius: 999px;
    }

    .posts-grid,
    .footer-grid,
    .hero-meta {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        grid-auto-flow: row;
        width: 100%;
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar .main-nav {
        top: calc(env(safe-area-inset-top, 0px) + 4rem);
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 3.5rem);
    }
}
