/* ── Custom Properties ────────────────────────────────────────────────────── */

:root {
    --color-primary:   #000000;
    --color-secondary: #ffffff;
    --color-accent:    #0066cc;
    --color-text:      #111111;
    --color-bg:        #ffffff;
    --nav-bg:          #000000;
    --font-base:       'Inter', sans-serif;
    --nav-height:      60px;
    --sidebar-width:   240px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */

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

html {
    font-family: var(--font-base);
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-base);
    line-height: 1.6;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

/* ── Layout Utilities ─────────────────────────────────────────────────────── */

.content-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.block-wrap {
    padding: 3rem 0;
    width: 100%;
}

/* ── App Shell ────────────────────────────────────────────────────────────── */

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-main {
    flex: 1;
}

/* Sidebar shell: nav + content side by side */
.app-shell.shell-sidebar {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.app-shell.shell-sidebar-right {
    flex-direction: row-reverse;
}

/* Inner column: content + footer stacked, fills remaining width */
.page-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.app-shell.shell-sidebar .page-main {
    flex: 1;
    overflow-x: hidden;
}

/* ── Body Offset (top nav only) ───────────────────────────────────────────── */

.has-fixed-nav {
    padding-top: var(--nav-height);
}

/* ── Nav Base ─────────────────────────────────────────────────────────────── */

nav {
    background-color: var(--nav-bg);
    width: 100%;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 1.5rem;
    gap: 1rem;
}

/* ── Nav Position Styles ──────────────────────────────────────────────────── */

.nav-top-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-top-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-top-static {
    position: static;
}

/* Sidebar: sticky within the flex shell (height: 100vh keeps it full height) */
.nav-sidebar-left,
.nav-sidebar-right {
    width: var(--sidebar-width);
    flex-shrink: 0;
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow-y: auto;
}

.nav-is-sidebar .nav-inner {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
}

.nav-is-sidebar .nav-links {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.nav-is-sidebar .nav-links li a {
    display: block;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
}

.nav-is-sidebar .nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* ── Nav Layout Variants ──────────────────────────────────────────────────── */

/* logo-left (default): logo left, links right — handled by space-between */

/* logo-right: flip order */
.nav-layout-logo-right .nav-inner {
    flex-direction: row-reverse;
}

/* logo-center: center the brand, spread links on each side via flex */
.nav-layout-logo-center .nav-inner {
    justify-content: center;
    gap: 2rem;
}

/* links-center: push links to center using auto margins */
.nav-layout-links-center .nav-links {
    flex: 1;
    justify-content: center;
}

/* ── Nav Brand ────────────────────────────────────────────────────────────── */

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    white-space: nowrap;
}

.nav-brand:hover {
    text-decoration: none;
    opacity: 0.85;
}

.nav-logo {
    height: 36px;
    width: auto;
}

/* ── Nav Links ────────────────────────────────────────────────────────────── */

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

/* ── Hamburger Button ─────────────────────────────────────────────────────── */

.nav-hamburger {
    display: none;
    background: none;
    border: 1px solid currentColor;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: inherit;
    margin-left: auto;
}

/* Show hamburger + hide links on mobile for all nav types */
@media (max-width: 768px) {
    .nav-hamburger { display: block; }
    .nav-links     { display: none; }
}

/* Always-hamburger: show button regardless of viewport, hide desktop links */
.nav-mobile-always-hamburger .nav-hamburger {
    display: block;
}

.nav-mobile-always-hamburger .nav-links {
    display: none !important;
}

/* Overlay mode: same — hamburger always visible */
.nav-mobile-overlay .nav-hamburger {
    display: block;
}

.nav-mobile-overlay .nav-links {
    display: none !important;
}

/* ── Nav Dropdown (mobile open state) ────────────────────────────────────── */

.nav-dropdown {
    padding: 0.75rem 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-dropdown ul {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.nav-dropdown a {
    display: block;
    padding: 0.5rem 0.25rem;
    font-size: 1rem;
    text-decoration: none;
}

.nav-dropdown a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* ── Nav Overlay ──────────────────────────────────────────────────────────── */

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav-overlay-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
}

.nav-overlay-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.nav-overlay-links a {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.nav-overlay-links a:hover {
    opacity: 0.75;
    text-decoration: none;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-name {
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-social a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social-svg {
    width: 20px;
    height: 20px;
}

.footer-copy-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-powered {
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer-powered a {
    color: inherit;
    text-decoration: none;
}

.footer-powered a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn,
button[type="submit"] {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background-color: var(--color-secondary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-base);
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.4;
    transition: opacity 0.15s;
}

.btn:hover,
button[type="submit"]:hover {
    opacity: 0.88;
    text-decoration: none;
}

/* ── Block Stubs (Phase 2 placeholder) ───────────────────────────────────── */

.block-stub {
    padding: 1.5rem;
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

/* ── Loading Screen ───────────────────────────────────────────────────────── */

.loading-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-text);
}

/* ── 404 Page ─────────────────────────────────────────────────────────────── */

.not-found {
    padding: 6rem 0;
    text-align: center;
}

.not-found h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.not-found p {
    margin-bottom: 2rem;
    color: #666;
}

/* ── Vue Transitions ──────────────────────────────────────────────────────── */

.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.35s ease;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

/* ── Block Wrap Overrides ─────────────────────────────────────────────────── */

/* Hero and carousel are full-bleed — remove block-wrap padding */
.block-type-hero,
.block-type-image_carousel {
    padding: 0;
}

/* ── Block: TextBlock ─────────────────────────────────────────────────────── */

.block-text {
    padding: 0.5rem 0;
}

.block-text.align-center .block-text-inner { text-align: center; margin: 0 auto; }
.block-text.align-right  .block-text-inner { text-align: right; margin-left: auto; }

.block-text-inner {
    max-width: 780px;
}

.block-text-headline {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Markdown output */
.body-content h1, .body-content h2, .body-content h3,
.body-content h4, .body-content h5, .body-content h6 {
    margin: 1.25em 0 0.5em;
    line-height: 1.3;
}
.body-content p     { margin-bottom: 1em; }
.body-content ul,
.body-content ol    { margin: 0 0 1em 1.5em; }
.body-content li    { margin-bottom: 0.25em; }
.body-content a     { color: var(--color-accent); }
.body-content img   { max-width: 100%; border-radius: 4px; }
.body-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    color: #666;
    margin: 1em 0;
}
.body-content code  {
    background: #f0f0f0;
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-size: 0.9em;
}
.body-content pre   {
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1em;
}

/* ── Block: HeroBlock ─────────────────────────────────────────────────────── */

.block-hero {
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-subtext {
    font-size: 1.2rem;
    margin-bottom: 1.75rem;
    opacity: 0.9;
}


.hero-empty { opacity: 0.5; font-style: italic; }

/* ── Block: TextCta ───────────────────────────────────────────────────────── */

.block-text-cta {
    padding: 0.5rem 0;
}

.block-text-cta.align-center .text-cta-inner { text-align: center; margin: 0 auto; }
.block-text-cta.align-right  .text-cta-inner { text-align: right;  margin-left: auto; }

.text-cta-inner {
    max-width: 700px;
}

.text-cta-headline {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.text-cta-sub {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    opacity: 0.85;
}

/* ── Block: SingleImage ───────────────────────────────────────────────────── */

.single-image-figure {
    margin: 0;
}

.single-image-figure.img-contained {
    max-width: 800px;
    margin: 0 auto;
}
.single-image-figure.img-full {
    width: 100vw;
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.single-image-figure.img-large {
    max-width: 800px;
    margin: 0 auto;
}
.single-image-figure.img-medium {
    max-width: 500px;
    margin: 0 auto;
}
.single-image-figure.img-small {
    max-width: 300px;
    margin: 0 auto;
}

.single-image-figure img {
    width: 100%;
    border-radius: 4px;
}

.single-image-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    text-align: center;
}

/* ── Block: SocialLinks ───────────────────────────────────────────────────── */

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.social-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity 0.15s;
}

.social-item:hover { opacity: 0.75; text-decoration: none; }

.social-style-icons .social-item {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.social-style-icons .social-item .social-icon-svg {
    width: 18px;
    height: 18px;
}

.social-style-buttons .social-item {
    padding: 0.4rem 1rem;
    border: 2px solid var(--color-primary);
    border-radius: 999px;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ── Block: HoursLocation ─────────────────────────────────────────────────── */

.hours-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.hours-contact p { margin-bottom: 0.3rem; }
.hours-contact a { color: var(--color-accent); }

.biz-info-label { font-weight: 600; }

.hours-table {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1.5rem;
}

.hours-table dt { font-weight: 600; text-transform: capitalize; }
.hours-table dd { color: #555; }

.map-wrap {
    margin-top: 2rem;
}

.map-embed {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 4px;
}

/* ── Block: YouTubeEmbed ──────────────────────────────────────────────────── */

.youtube-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}

.youtube-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ── Block: Testimonials ──────────────────────────────────────────────────── */

.block-testimonials {
    text-align: center;
    padding: 0.5rem 0;
}

.testimonials-inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    min-height: 140px;
}

.testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.testimonial-meta {
    font-size: 0.95rem;
    color: #666;
}

.testimonial-author { font-weight: 700; color: var(--color-text); }
.testimonial-role   { opacity: 0.75; }

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* ── Block: ImageCarousel ─────────────────────────────────────────────────── */

.carousel-wrap {
    position: relative;
    user-select: none;
    touch-action: pan-y;
}

.carousel-track {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #111;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    padding: 0.5rem 0.85rem;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    border-radius: 3px;
    transition: background 0.15s;
}

.carousel-btn:hover  { background: rgba(0, 0, 0, 0.7); }
.carousel-prev       { left: 0.75rem; }
.carousel-next       { right: 0.75rem; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 0 0.25rem;
}

/* ── Shared dot button ────────────────────────────────────────────────────── */

.dot-btn {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    opacity: 0.3;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}

.dot-btn.active,
.dot-btn:hover { opacity: 1; }

/* ── Post shared styles ───────────────────────────────────────────────────── */

.post-meta {
    font-size: 0.825rem;
    color: #888;
    margin-bottom: 0.35rem;
}

.post-id {
    font-size: 0.75rem;
    color: #bbb;
    font-family: monospace;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.post-meta-row .post-meta,
.post-meta-row .post-price {
    margin-bottom: 0;
}

.post-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.post-price {
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.post-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.post-title-row .latest-post-title,
.post-title-row .post-card-title,
.post-title-row .post-list-title {
    margin-bottom: 0;
}

.post-title-row .post-price {
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: 0;
}

/* ── Block: LatestPost ────────────────────────────────────────────────────── */

.latest-post-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.latest-post-image-link { display: block; }

.latest-post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
}

.latest-post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.latest-post-title a { color: var(--color-text); }
.latest-post-title a:hover { color: var(--color-accent); text-decoration: none; }

/* ── Block: PostGrid ──────────────────────────────────────────────────────── */

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.post-card {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.09); }

.post-card-image-link { display: block; }

.post-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.post-card-body { padding: 1rem; }

.post-card-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-accent); text-decoration: none; }

/* ── Block: ContactForm ───────────────────────────────────────────────────── */

.block-contact-form {
    padding: 0.5rem 0;
}

.contact-form-heading {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.block-contact-form form {
    max-width: 560px;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-base);
    font-size: 1rem;
    transition: border-color 0.15s;
    background: #fff;
    color: #111;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-error {
    font-size: 0.825rem;
    color: #c0392b;
}

.form-api-error {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #fdf0f0;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #c0392b;
    font-size: 0.9rem;
}

.form-success-msg {
    padding: 1.25rem 1.5rem;
    background: #eafaf1;
    border: 1px solid #a9dfbf;
    border-radius: 4px;
    color: #1e8449;
    font-size: 1rem;
}

/* ── Block: PostList ──────────────────────────────────────────────────────── */

.post-list-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.post-list-item:first-child { padding-top: 0; }

.post-list-image-link { display: block; flex-shrink: 0; }

.post-list-image {
    width: 180px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.post-list-title {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.post-list-title a { color: var(--color-text); }
.post-list-title a:hover { color: var(--color-accent); text-decoration: none; }

/* Card layout variant */
.list-layout-card .post-list-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.list-layout-card .post-list-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid #e8e8e8;
}

.list-layout-card .post-list-image-link { display: block; width: 100%; flex-shrink: 0; }
.list-layout-card .post-list-image { width: 100%; aspect-ratio: 16/9; border-radius: 0; }
.list-layout-card .post-list-body  { padding: 1rem; flex: 1; }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-outline:hover  { background: var(--color-secondary); color: #fff; }
.btn-outline:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Empty / loading states ───────────────────────────────────────────────── */

.empty-state {
    color: #aaa;
    font-style: italic;
    padding: 2rem 0;
    text-align: center;
}

.loading-text {
    color: #aaa;
    padding: 2rem 0;
    text-align: center;
}

/* ── Post Page: shared ────────────────────────────────────────────────────── */

.post-page {
    padding-bottom: 4rem;
}

.post-back-link {
    display: inline-block;
    margin: 2rem 0 1.5rem;
    font-size: 0.9rem;
    color: var(--color-accent);
    text-decoration: none;
}

.post-back-link:hover { text-decoration: underline; }

.post-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.post-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: var(--color-accent);
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--color-text);
}

/* ── Layout: editorial ────────────────────────────────────────────────────── */

.layout-editorial .content-wrap {
    max-width: 760px;
}

.editorial-image {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.editorial-body {
    margin-top: 0.5rem;
}

/* ── Layout: media_lead ───────────────────────────────────────────────────── */

.media-lead-hero {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #111;
    margin-bottom: 0;
}

.media-lead-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
}

.media-lead-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    padding: 2.5rem 0 1.75rem;
}

.media-lead-title {
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.media-lead-overlay .post-meta { color: rgba(255,255,255,0.8); }

.layout-media-lead .content-wrap {
    padding-top: 1.5rem;
    max-width: 860px;
}

/* ── Layout: sidebar ──────────────────────────────────────────────────────── */

.post-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 3rem;
    align-items: start;
    margin-top: 0.5rem;
}

.post-sidebar-image {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 1.75rem;
}

.post-sidebar-aside {
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
}

.aside-meta {
    padding: 1.25rem;
    background: #f7f7f7;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.related-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
    margin-bottom: 0.75rem;
}

.related-list { display: flex; flex-direction: column; gap: 0.75rem; }

.related-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.related-link:hover { color: var(--color-accent); text-decoration: none; }

.related-link img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ── Layout: card ─────────────────────────────────────────────────────────── */

.layout-card-post .content-wrap {
    max-width: 680px;
}

.post-card-single {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.post-card-single-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.post-card-single-body {
    padding: 2rem;
}

/* ── Post image gallery ───────────────────────────────────────────────────── */

.post-images-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.post-gallery-image {
    max-width: 100%;
    width: calc(50% - 6px);
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

    /* ── Nav: sidebar collapses to top bar ─────────────────────────────────── */

    .app-shell.shell-sidebar {
        flex-direction: column;
    }

    .nav-sidebar-left,
    .nav-sidebar-right {
        width: 100%;
        min-height: unset;
        height: auto;
        position: static;
        overflow-y: visible;
    }

    .nav-is-sidebar .nav-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        height: var(--nav-height);
        gap: 1rem;
    }

    /* Sidebar hamburger already shown by the general rule above;
       sidebar links already hidden — nothing extra needed */

    /* ── Nav: layout variants on mobile ─────────────────────────────────────── */

    /* All layouts revert to brand-left / hamburger-right on mobile */
    .nav-layout-logo-right .nav-inner,
    .nav-layout-logo-center .nav-inner,
    .nav-layout-links-center .nav-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    /* ── Content offsets ─────────────────────────────────────────────────────── */

    .has-fixed-nav {
        padding-top: var(--nav-height);
    }

    /* ── Typography scale-down ───────────────────────────────────────────────── */

    .hero-title  { font-size: 1.75rem; }
    .hero-subtext { font-size: 1rem; }
    .post-title  { font-size: 1.5rem; }
    .block-text-headline,
    .text-cta-headline,
    .contact-form-heading { font-size: 1.4rem; }

    /* ── Block: hero ─────────────────────────────────────────────────────────── */

    .block-hero  { min-height: 280px; padding: 2.5rem 1.25rem; }

    /* ── Block: latest post — stack image above body ────────────────────────── */

    .latest-post-card { grid-template-columns: 1fr; }

    /* ── Block: post grid — single column ───────────────────────────────────── */

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

    /* ── Block: hours/location — stack ─────────────────────────────────────────*/

    .hours-layout { grid-template-columns: 1fr; }

    /* ── Block: testimonials — smaller quote ────────────────────────────────── */

    .testimonial-quote { font-size: 1.1rem; }

    /* ── Block: carousel ────────────────────────────────────────────────────── */

    .carousel-track { padding-bottom: 66%; } /* taller ratio on mobile */

    /* ── Block: post list — narrower thumbnail ──────────────────────────────── */

    .post-list-item { gap: 0.75rem; }
    .post-list-image { width: 90px; }
    .list-layout-card .post-list-items { grid-template-columns: 1fr; }

    /* ── Post page: editorial max-width releases on mobile ──────────────────── */

    .layout-editorial .content-wrap { max-width: 100%; }

    /* ── Post page: media lead — shorter hero ───────────────────────────────── */

    .media-lead-hero { height: 240px; }
    .media-lead-title { font-size: 1.4rem; }

    /* ── Post page: sidebar — stack main + aside ────────────────────────────── */

    .post-sidebar-grid  { grid-template-columns: 1fr; }
    .post-sidebar-aside { position: static; margin-top: 2rem; }

    /* ── Post page: card ────────────────────────────────────────────────────── */

    .layout-card-post .content-wrap { max-width: 100%; }

    /* ── Post page: image gallery — single column on mobile ─────────────────── */

    .post-gallery-image { width: 100%; }

    /* ── Footer — stack on mobile ───────────────────────────────────────────── */

    .footer-inner {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    /* ── Pagination — tighter ───────────────────────────────────────────────── */

    .pagination { flex-wrap: wrap; gap: 0.5rem; }
}

/* ── Tablet: 769px – 1024px ──────────────────────────────────────────────── */

@media (min-width: 769px) and (max-width: 1024px) {

    /* Post grid: 2 columns max at tablet */
    .post-grid { grid-template-columns: repeat(2, 1fr); }

    /* Post list card: 2 columns at tablet */
    .list-layout-card .post-list-items { grid-template-columns: repeat(2, 1fr); }

    /* Post sidebar: slightly narrower aside */
    .post-sidebar-grid { grid-template-columns: 1fr 220px; }

    /* Latest post: tighten gap */
    .latest-post-card { gap: 1.25rem; }
}
