/*
Theme Name: Nobat
Description: پوسته فارسی و راست‌چین برای رزرو خدمات
Author: Nobat
Version: 1.3.1
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: nobat
*/

@font-face {
    font-family: Vazirmatn;
    src: url('assets/fonts/Vazirmatn.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ink: #17332f;
    --muted: #47615c;
    --accent: #0c675f;
    --accent-dark: #094d47;
    --line: #d1e0db;
    --paper: #f7f8f4;
    --surface: #fff;
    --mint: #e3f0e9;
    --wrap: 1140px;
    --gutter: clamp(16px, 4vw, 48px);
    --card-radius: 15px;
    --control-radius: 9px;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.8 Vazirmatn, Tahoma, sans-serif;
    direction: rtl;
}

a { color: var(--accent); text-underline-offset: .3em; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }

.n-wrap {
    width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
}

.n-skip {
    position: fixed;
    z-index: 10;
    inset-block-start: 8px;
    inset-inline-start: 12px;
    padding: 8px 12px;
    transform: translateY(-200%);
    background: white;
}

.n-skip:focus { transform: none; }

.n-header, .n-footer {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

.n-header { border-bottom: 1px solid var(--line); }

.n-header-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem .8rem;
    align-items: center;
    min-height: 68px;
    padding-block: 13px;
}

.n-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .65rem;
    color: var(--ink);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.n-mark {
    width: 1rem;
    height: 1rem;
    flex: none;
    border: 2px solid var(--accent);
    border-radius: 50% 50% 0 50%;
    transform: rotate(-12deg);
}

.n-nav {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem clamp(.95rem, 4vw, 2.2rem);
}

.n-nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    color: var(--muted);
    font-size: .93rem;
    text-decoration: none;
}

.n-nav a:hover, .n-nav a[aria-current="page"] {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: #75a89a;
}

.n-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    padding: .55em 1.15em;
    border: 1px solid transparent;
    border-radius: var(--control-radius);
    background: var(--accent);
    color: white;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.n-button:hover { background: var(--accent-dark); color: white; }
.n-head-cta { min-height: 42px; white-space: nowrap; font-size: .9rem; }
.n-head-cta[aria-current="page"] { background: var(--accent-dark); }

.n-main { min-height: 58vh; }

.n-hero {
    display: grid;
    gap: clamp(17px, 3vw, 36px);
    margin-top: clamp(20px, 3.5vw, 44px);
    padding: clamp(16px, 2.6vw, 30px);
    border: 1px solid var(--line);
    border-radius: 23px;
    background: linear-gradient(140deg, #edf5ed, var(--mint));
}

.n-hero-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(8px, 2.8vw, 31px);
}

.n-hero h1, .n-title h1 {
    margin: 0;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.035em;
}

.n-hero h1 { font-size: clamp(2.05rem, 6vw, 3.25rem); }
.n-hero h1 span { color: var(--accent); }

.n-hero p {
    max-width: 38ch;
    margin: 1.15rem 0 0;
    color: var(--muted);
    font-size: clamp(.98rem, 1.3vw, 1.15rem);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.n-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem 1.4rem;
    margin-top: 1.65rem;
}

.n-inline-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: .5rem;
    color: var(--ink);
    font-weight: 750;
}

.n-inline-link:hover { color: var(--accent); }

.n-hero-media {
    position: relative;
    width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 15px;
    background: #d1e0d8;
}

.n-hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 44% 54%;
    filter: sepia(.15) contrast(.9) brightness(1.04);
}

.n-section { margin-block: clamp(30px, 4.3vw, 58px); }

.n-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .4rem 1.25rem;
    margin-bottom: 14px;
}

.n-section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; }

.n-title {
    padding-block: clamp(20px, 3.5vw, 40px);
    border-bottom: 1px solid var(--line);
    background: #edf4ee;
}

.n-title h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
.n-title p { margin: .7rem 0 0; color: var(--muted); }
.n-page-content { padding-block: clamp(24px, 5vw, 64px); }

.n-footer { padding-block: clamp(22px, 4vw, 40px); border-top: 1px solid var(--line); }

.n-footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem 2rem;
}

.n-footer-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.n-footer a { color: var(--accent); }
.n-footer-contact { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.n-footer-contact h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.n-footer-contact address { font-style: normal; }

.n-footer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: .75rem;
    margin: 0;
}

.n-footer-details > div {
    min-width: 0;
    padding: .75rem .95rem;
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
    background: var(--paper);
}

.n-footer-details dt { margin-bottom: .2rem; font-weight: 750; }
.n-footer-details dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.n-footer-street { white-space: pre-line; }

/* Theme treatment for the booking plugin's public components. */
.nobat-site .nb-service-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 218px), 1fr));
    gap: clamp(.75rem, 1.8vw, 1.2rem);
}

.nobat-site .nb-service {
    border-color: var(--line);
    border-radius: var(--card-radius);
    background: var(--surface);
}

.nobat-site .nb-service-body { padding: clamp(14px, 2.35vw, 23px); }
.nobat-site .nb-service h3 { font-size: 1.19rem; overflow-wrap: anywhere; }
.nobat-site .nb-service-body p { overflow-wrap: anywhere; }

.nobat-site .nb-service-icon {
    border-radius: 10px;
    background: var(--mint);
    color: var(--accent);
}

.nobat-site .nb-service-bottom { border-color: var(--line); }

.nobat-site .nb-text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: .35rem;
    color: var(--accent);
    font-weight: 800;
}

.nobat-site :is(.nb-box, .nb-empty, .nb-detail, .nb-aside),
.nobat-site .nb-history article {
    border-color: var(--line);
    border-radius: var(--card-radius);
    background: var(--surface);
}

.nobat-site .nb-aside {
    background: var(--mint);
    color: var(--ink);
}

.nobat-site .nb-aside ol { margin-block: .6rem; }
.nobat-site .nb-aside p { margin-bottom: 0; color: var(--muted); }
.nobat-site .nb-aside .nb-kicker { display: none; }
.nobat-site .nb-aside [aria-current="step"] { color: var(--accent); }

.nobat-site .nb-button {
    border-radius: var(--control-radius);
    background: var(--accent);
    color: white;
}

.nobat-site .nb-button:hover { background: var(--accent-dark); color: white; }

.nobat-site .nb-button-light {
    border-color: var(--line);
    background: var(--mint);
    color: var(--accent-dark);
}

.nobat-site :is(.nb-muted, .nb-service-body p, .nb-empty p) { color: var(--muted); }
.nobat-site :is(.nb-back, .nb-history summary, .nb-auth-nav [aria-current="page"]) { color: var(--accent); }
.nobat-site .nb-auth-nav { border-color: var(--line); }
.nobat-site .nb-auth-nav a { color: var(--muted); }
.nobat-site .nb-auth-nav [aria-current="page"] { border-color: var(--accent); }

.nobat-site :is(.nb-duration, .nb-status, .nb-notice) {
    border-radius: 7px;
    background: #edf4ee;
    color: var(--accent-dark);
}

.nobat-site .nb-notice { border-color: var(--accent); }

.nobat-site .nb-form :is(input:not([type=radio]):not([type=hidden]), select),
.nobat-site .nb-slots span {
    border-color: var(--line);
    border-radius: var(--control-radius);
    background: white;
    color: var(--ink);
}

.nobat-site .nb-slots input:checked + span {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.nobat-site .nb-slots input:focus-visible + span { outline-color: var(--accent); }
.nobat-site .nb-detail-photo img { border-radius: 10px; }

@media (min-width: 710px) {
    .nobat-site .nb-flow { grid-template-columns: minmax(205px, .63fr) minmax(0, 1.65fr); }
}

@media (min-width: 760px) {
    .n-header-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .n-nav { grid-column: 2; grid-row: 1; }
    .n-head-cta { grid-column: 3; grid-row: 1; justify-self: end; }

    .n-hero {
        grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
        align-items: center;
    }

    .n-hero-media { height: 100%; min-height: clamp(285px, 34vw, 420px); aspect-ratio: auto; }
    .n-hero h1 { font-size: clamp(2.45rem, 4.7vw, 4rem); }
}
