/* =====================================================================
   BEST CARTON — public site styles (RTL first)
   Palette: brand red + signal orange from the logo, kraft board tones,
   brown printing-ink for text and the footer.
   ===================================================================== */

@font-face { font-family: "Alexandria"; font-weight: 500; font-display: swap; src: url("../fonts/alexandria-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Alexandria"; font-weight: 700; font-display: swap; src: url("../fonts/alexandria-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Alexandria"; font-weight: 800; font-display: swap; src: url("../fonts/alexandria-arabic-800-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Alexandria"; font-weight: 500; font-display: swap; src: url("../fonts/alexandria-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Alexandria"; font-weight: 700; font-display: swap; src: url("../fonts/alexandria-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Alexandria"; font-weight: 800; font-display: swap; src: url("../fonts/alexandria-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
    --brand: #8a171a;
    --accent: #f89c33;
    --ink: #2b1d1a;
    --text: #4a3f3a;
    --muted: #7b6f69;
    --line: #e6dfd9;
    --paper: #ffffff;
    --band: #f5f4f2;
    --kraft: #c49d72;
    --kraft-deep: #a37c52;
    --kraft-light: #ead9c4;

    --font-display: "Alexandria", "Plex Arabic", system-ui, sans-serif;
    --font-body: "Plex Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --header-h: 76px;
    --radius: 4px;
    --section-y: clamp(3.5rem, 8vw, 6rem);

    /* Cross-section of corrugated board: two liners and the fluted medium between them. */
    --board: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='22' viewBox='0 0 28 22'%3E%3Crect width='28' height='22' fill='%23ead9c4'/%3E%3Cpath d='M0 18.5C7 18.5 7 3.5 14 3.5S21 18.5 28 18.5' fill='none' stroke='%23a37c52' stroke-width='2.2'/%3E%3Crect width='28' height='3.5' fill='%23c49d72'/%3E%3Crect y='18.5' width='28' height='3.5' fill='%23c49d72'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text);
    background: var(--paper);
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.35;
    margin: 0 0 .6em;
    font-weight: 700;
}
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 1000; }
.skip-link:focus { top: 1rem; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .78em 1.6em;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem; line-height: 1.2;
    border-radius: var(--radius);
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* -------------------------------------------------------- board edge motif */
.board-edge { height: 22px; background: var(--board) repeat-x; background-size: 28px 22px; }

/* ------------------------------------------------------------------ topbar */
.topbar { background: var(--brand); color: #fff; font-size: .82rem; line-height: 1; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

.social { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; }
.social a { display: inline-grid; place-items: center; width: 32px; height: 32px; }
.social .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: 0 6px 24px -12px rgba(43, 29, 26, .35); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand__logo { width: 48px; height: 48px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; color: var(--brand); }
.brand__tag { font-size: .8rem; color: var(--accent); font-weight: 600; font-family: var(--font-display); }

.site-nav { display: flex; align-items: center; gap: 1.25rem; margin-inline-start: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu a, .menu .menu-label {
    display: block; padding: .5rem .75rem;
    font-family: var(--font-display); font-weight: 500; font-size: .95rem;
    color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.menu > li > a, .menu > li > .menu-label { position: relative; }
.menu > li > a::after, .menu > li > .menu-label::after {
    content: ""; position: absolute; inset-inline: .75rem; bottom: .15rem; height: 2px;
    background: var(--accent); transform: scaleX(0); transition: transform .2s;
}
.menu > li:hover > a::after, .menu > li.is-active > a::after,
.menu > li:hover > .menu-label::after, .menu > li.is-active > .menu-label::after { transform: scaleX(1); }
.menu a:hover { color: var(--brand); }
.submenu-toggle { display: none; }
.has-children > a, .has-children > .menu-label { padding-inline-end: .5rem; }

.submenu {
    list-style: none; margin: 0; padding: .4rem 0;
    position: absolute; top: 100%; inset-inline-start: 0; min-width: 220px;
    background: #fff; border-top: 3px solid var(--brand);
    box-shadow: 0 18px 40px -18px rgba(43, 29, 26, .45);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.has-children:hover > .submenu, .has-children:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { padding: .55rem 1.1rem; font-size: .92rem; }
.submenu a:hover, .submenu .is-active > a { background: var(--band); color: var(--brand); }

.nav-toggle { display: none; }

@media (max-width: 1080px) {
    .site-nav__cta { display: none; }
}

@media (max-width: 960px) {
    :root { --header-h: 66px; }
    .brand__logo { width: 40px; height: 40px; }
    .nav-toggle {
        display: inline-grid; place-items: center; margin-inline-start: auto;
        width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
        background: #fff; color: var(--ink); cursor: pointer;
    }
    .nav-toggle .icon { width: 22px; height: 22px; }
    .nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
    .nav-toggle[aria-expanded="true"] .icon-close { display: block; }

    .site-nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; padding: 1rem var(--gutter) 2rem; overflow-y: auto;
        transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
    }
    .site-nav.is-open { transform: none; visibility: visible; }
    .menu { flex-direction: column; align-items: stretch; }
    .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
    .menu > li > a, .menu > li > .menu-label { flex: 1; padding: .9rem 0; font-size: 1.05rem; }
    .menu > li > a::after, .menu > li > .menu-label::after { display: none; }
    .submenu-toggle {
        display: inline-grid; place-items: center; width: 44px; height: 44px;
        background: none; border: 0; color: var(--ink); cursor: pointer;
    }
    .submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
    .submenu {
        position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-inline-start: 3px solid var(--kraft); padding: 0 0 .5rem; margin-inline-start: .25rem;
        display: none;
    }
    .submenu.is-open { display: block; }
    .site-nav__cta { display: inline-flex; margin-top: 1.5rem; }
    body.nav-open { overflow: hidden; }
}

/* -------------------------------------------------------------------- hero */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }
.hero__slides { bottom: 22px; z-index: -2; }
.hero__slide { opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { bottom: 22px; z-index: -1; background: linear-gradient(to left, rgba(43, 29, 26, calc(var(--shade) + .25)) 0%, rgba(43, 29, 26, var(--shade)) 45%, rgba(43, 29, 26, calc(var(--shade) * .35)) 100%); }
.hero--ltr .hero__shade { background: linear-gradient(to right, rgba(43, 29, 26, calc(var(--shade) + .25)) 0%, rgba(43, 29, 26, var(--shade)) 45%, rgba(43, 29, 26, calc(var(--shade) * .35)) 100%); }

.hero__content {
    min-height: clamp(460px, 68vh, 640px);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding-block: 4rem 5rem;
}
.hero--full .hero__content { min-height: calc(100svh - var(--header-h) - 38px); }
.hero__title {
    color: #fff; margin: 0 0 1.25rem;
    font-weight: 800; font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.12; letter-spacing: -.01em;
    max-width: 14ch;
}
.hero--rtl .hero__title { line-height: 1.35; letter-spacing: 0; }
.hero__lead { display: block; font-size: .5em; font-weight: 500; color: var(--kraft-light); letter-spacing: .02em; margin-bottom: .15em; }
.rotator { display: inline-block; color: var(--accent); position: relative; }
.rotator__word { display: inline-block; }
.rotator__word.is-out { animation: word-out .35s ease forwards; }
.rotator__word.is-in { animation: word-in .45s ease forwards; }
@keyframes word-out { to { opacity: 0; transform: translateY(-.35em); } }
@keyframes word-in { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
.hero__subtitle { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 46ch; color: rgba(255, 255, 255, .9); margin-bottom: 2rem; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__dots { position: absolute; bottom: calc(22px + 1.5rem); inset-inline: 0; display: flex; justify-content: center; gap: .5rem; }
.hero__dots button { width: 34px; height: 5px; padding: 0; border: 0; background: rgba(255,255,255,.4); cursor: pointer; border-radius: 0; }
.hero__dots button.is-active { background: var(--accent); }
.hero .board-edge { position: absolute; inset-inline: 0; bottom: 0; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: var(--section-y); }
.section--services, .section--news { background: var(--band); }

.section-head {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 3rem; align-items: end;
    margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-head:not(:has(.section-desc)) { grid-template-columns: 1fr; }
.section-sub { margin: 0 0 .35rem; color: var(--brand); font-family: var(--font-display); font-weight: 500; font-size: .95rem; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin: 0; line-height: 1.3; }
.section-desc { color: var(--text); font-size: 1.05rem; max-width: 62ch; }
.section-desc p:last-child { margin: 0; }
.section-foot { margin-top: 2.5rem; display: flex; justify-content: center; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* about */
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.75rem); }
.about-item__media { margin: 0 0 1.4rem; aspect-ratio: 3 / 2; box-shadow: -12px 12px 0 var(--kraft-light); background: var(--band); }
.about-item__media img { width: 100%; height: 100%; object-fit: cover; }
.about-item__title { font-size: 1.3rem; margin-bottom: .5rem; }
.about-item__title a { color: inherit; text-decoration: none; }
.about-item__title a:hover { color: var(--brand); }
.about-item p { color: var(--text); font-size: 1rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; max-width: 560px; } }

/* services */
.services-list { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--line); }
.service:nth-child(even) .service__media { order: 2; }
.service__media { min-height: 300px; background: var(--kraft-light); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__body { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.service__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; }
.service__body p { font-size: 1.05rem; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 700; text-decoration: none; margin-top: .5rem; }
.link-more:hover .icon { transform: translateX(-4px); }
.link-more .icon { transition: transform .2s; }
@media (max-width: 760px) {
    .service { grid-template-columns: 1fr; }
    .service:nth-child(even) .service__media { order: 0; }
    .service__media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* gallery */
.gallery-grid, .carousel__track { list-style: none; margin: 0; padding: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; }
.gallery-item a { display: block; position: relative; background: #fff; border: 1px solid var(--line); text-decoration: none; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 387 / 330; object-fit: contain; transition: transform .35s ease; }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-item__title { display: block; padding: .6rem .9rem; font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--ink); border-top: 1px solid var(--line); }
.gallery-item__desc { margin: .5rem 0 0; font-size: .92rem; color: var(--muted); }

.carousel { position: relative; }
.carousel__controls { display: flex; justify-content: flex-end; gap: .5rem; margin-bottom: 1rem; }
.carousel__btn {
    width: 46px; height: 46px; display: inline-grid; place-items: center;
    background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.carousel__btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.carousel__btn .icon { width: 22px; height: 22px; }
.carousel__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 290px); gap: 1.25rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--kraft) transparent;
}
.carousel__track > li { scroll-snap-align: start; }

/* posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.75rem; }
.post-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--kraft-light); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: block; height: 100%; background: var(--board) repeat; background-size: 28px 22px; opacity: .5; }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.post-card__title { font-size: 1.2rem; margin-bottom: .6rem; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--brand); }
.post-card__excerpt { color: var(--muted); font-size: .97rem; margin: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: .88rem; color: var(--muted); margin-bottom: .6rem; }
.post-meta a { color: var(--brand); text-decoration: none; }
.post-meta .icon { color: var(--kraft-deep); margin-inline-end: -.5rem; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; }
.pagination span { background: var(--brand); color: #fff; border-color: var(--brand); }

/* contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-info__text { font-size: 1.05rem; margin-bottom: 1.5rem; }
.contact-info__title { font-size: 1.15rem; margin-bottom: 1rem; }
.contact-list { margin: 0; display: grid; gap: 1rem; }
.contact-list__row { display: grid; grid-template-columns: 2.75rem 1fr; grid-template-areas: "icon label" "icon value"; column-gap: .9rem; }
.contact-list dt { display: contents; }
.contact-list dt .icon { grid-area: icon; width: 2.75rem; height: 2.75rem; padding: .7rem; background: var(--brand); color: #fff; border-radius: 50%; }
.contact-list dt span { grid-area: label; font-size: .85rem; color: var(--muted); line-height: 1.5; }
.contact-list dd { grid-area: value; margin: 0; color: var(--ink); font-weight: 600; line-height: 1.6; }
.contact-list dd a { color: var(--ink); text-decoration: none; }
.contact-list dd a:hover { color: var(--brand); text-decoration: underline; }
.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); padding: clamp(1.25rem, 3.5vw, 2.25rem); }
.contact-form-title { font-size: 1.35rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: .92rem; color: var(--ink); margin-bottom: .35rem; }
.field .opt { color: var(--muted); font-weight: 400; font-size: .85em; }
.field input, .field textarea, .search-form input {
    width: 100%; padding: .75rem .9rem; font: inherit; font-size: 1rem; color: var(--ink);
    background: #fff; border: 1px solid #d6ccc4; border-radius: var(--radius);
}
.field input[dir="ltr"] { text-align: right; }
.field input:focus, .field textarea:focus, .search-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(248, 156, 51, .35); }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .85rem; margin: .3rem 0 0; min-height: 0; }
.field-error:empty { display: none; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-notice { padding: .9rem 1.1rem; margin-bottom: 1.25rem; border-inline-start: 4px solid; font-weight: 500; }
.form-notice.is-success { background: #eef7ef; border-color: #2e7d32; color: #1b5e20; }
.form-notice.is-error { background: #fdeeee; border-color: #b3261e; color: #8c1d18; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

.map-embed { margin-top: var(--section-y); border-top: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: clamp(320px, 45vw, 460px); border: 0; filter: saturate(.85); }
.section--contact { padding-bottom: 0; }
.section--contact:not(:has(.map-embed)) { padding-bottom: var(--section-y); }
.section--contact-page { padding-bottom: 0; }

/* -------------------------------------------------------------- inner pages */
.page-hero { position: relative; background: var(--brand); color: #fff; padding-top: clamp(2.5rem, 6vw, 4rem); }
.page-hero .container { padding-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.page-hero__title { color: #fff; font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; margin: 0; }
.page-hero__lead { margin: .75rem 0 0; max-width: 60ch; color: rgba(255,255,255,.88); }
.breadcrumb ol { list-style: none; margin: 0 0 .75rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .88rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-inline-start: .35rem; opacity: .55; }
.breadcrumb a { color: #fff; opacity: .8; text-decoration: none; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--kraft-light); }

.prose { max-width: 78ch; font-size: 1.08rem; }
.prose--intro { margin-bottom: 2.5rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose img { margin-block: 1rem; }
.prose .aligncenter, .prose img.aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: .4rem 0 1rem 1.75rem; }
.prose .alignright { float: right; margin: .4rem 1.75rem 1rem 0; }
.prose::after { content: ""; display: table; clear: both; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-inline-start: 4px solid var(--accent); background: var(--band); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: start; }
.prose th { background: var(--band); font-family: var(--font-display); }
.prose iframe { max-width: 100%; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; }
@media (max-width: 600px) { .prose .alignleft, .prose .alignright { float: none; margin-inline: auto; } }

.draft-note { margin: 1.5rem 0 0; padding: .75rem 1rem; background: #fff6e8; border: 1px dashed var(--accent); color: var(--ink); }
.empty-note { color: var(--muted); }

/* single post */
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.single__media { margin: 0 0 2rem; }
.single__media img { width: 100%; }
.sidebar { display: grid; gap: 2rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.widget__title { font-size: 1.1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line); }
.widget__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.widget__list a { display: block; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.6; }
.widget__list a:hover { color: var(--brand); }
.widget__list time { font-size: .82rem; color: var(--muted); }
.widget--cta { background: var(--ink); color: #e9e1da; padding: 1.5rem; }
.widget--cta .widget__title { color: #fff; border-color: rgba(255,255,255,.15); }
@media (max-width: 900px) { .single-layout { grid-template-columns: 1fr; } .sidebar { position: static; } }

.search-form { display: flex; }
.search-form input { border-start-end-radius: 0; border-end-end-radius: 0; }
.search-form button { flex: none; width: 52px; border: 0; background: var(--brand); color: #fff; cursor: pointer; border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); }
.search-form button .icon { width: 20px; height: 20px; }
.search-form--large { margin-bottom: 2.5rem; }
.search-form--large input { padding: 1rem 1.2rem; font-size: 1.1rem; }

.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.75rem; }
.search-results li { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.search-results h2 { font-size: 1.3rem; margin-bottom: .4rem; }
.search-results h2 a { text-decoration: none; }
.search-results__type { font-size: .8rem; color: var(--muted); }
.search-results p { margin: 0; color: var(--text); }

.section--404 { text-align: center; }
.big-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--kraft-light); margin: 0; -webkit-text-stroke: 2px var(--kraft); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: #d8cec6; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 2.5rem 3rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.brand--footer .brand__name { color: #fff; }
.site-footer__about p { margin-top: 1rem; max-width: 40ch; }
.site-footer .social a { color: #fff; background: rgba(255,255,255,.08); border-radius: 50%; }
.site-footer .social a:hover { background: var(--accent); color: var(--ink); }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.site-footer__links .submenu, .site-footer__links .submenu-toggle { display: none; }
.site-footer__links a, .site-footer__links .menu-label { color: #d8cec6; text-decoration: none; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer .contact-list { gap: .85rem; }
.site-footer .contact-list dt .icon { background: rgba(255,255,255,.08); color: var(--accent); }
.site-footer .contact-list dt span { color: #a99c93; }
.site-footer .contact-list dd, .site-footer .contact-list dd a { color: #fff; font-weight: 500; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.1rem; font-size: .88rem; color: #a99c93; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

.wa-float {
    position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 60;
    width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
    background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
}
.wa-float .icon { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(28, 19, 17, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: .75rem; padding: 3rem 0; }
.lightbox__figure img { max-height: 80vh; max-width: 100%; width: auto; background: #fff; }
.lightbox__figure figcaption { color: #fff; font-family: var(--font-display); }
.lightbox button { background: none; border: 0; color: #fff; cursor: pointer; width: 56px; height: 56px; display: grid; place-items: center; }
.lightbox button .icon { width: 30px; height: 30px; }
.lightbox__close { position: absolute; top: .75rem; inset-inline-end: .75rem; }
.lightbox__prev { grid-column: 1; justify-self: center; }
.lightbox__next { grid-column: 3; justify-self: center; }
.lightbox__figure { grid-column: 2; grid-row: 1; }

/* ------------------------------------------------------------ maintenance */
.maintenance { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; position: relative; }
.maintenance h1 { color: var(--brand); font-weight: 800; font-size: 2.2rem; margin: 1rem 0 .5rem; }
.maintenance .board-edge { position: absolute; inset-inline: 0; bottom: 0; }

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

/* Narrow columns: never float images beside text. */
.contact-info .prose { font-size: 1rem; }
.contact-info .prose .alignleft, .contact-info .prose .alignright { float: none; margin: 0 0 1.25rem; }
