:root {
    --ink: #0c1118;
    --ink-2: #151c27;
    --ink-3: #1e2734;
    --paper: #f6f1e8;
    --paper-2: #fffdf8;
    --copper: #c45c26;
    --copper-deep: #9a3f14;
    --amber: #e8a317;
    --steel: #8b9aab;
    --muted: #5d6978;
    --line: rgba(196, 92, 38, 0.28);
    --line-soft: rgba(12, 17, 24, 0.08);
    --ok: #0f766e;
    --danger: #b42318;
    --shadow: 0 24px 60px rgba(12, 17, 24, 0.16);
    --radius: 18px;
    --radius-sm: 12px;
    --font-fa: "Vazirmatn", Tahoma, sans-serif;
    --font-en: "Cormorant Garamond", Georgia, serif;
    --font-ui: "Montserrat", var(--font-fa);
    --header-h: 84px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-fa);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.8;
    font-size: 16px;
    min-height: 100vh;
}

::selection {
    background: var(--copper);
    color: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 0.6em; font-weight: 800; }

.page-grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.skip-link {
    position: absolute;
    right: 16px;
    top: -40px;
    background: var(--copper);
    color: #fff;
    padding: 8px 14px;
    z-index: 100;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--copper);
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.92rem;
    margin-bottom: 12px;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1.5px;
    background: var(--copper);
}

.en-kicker {
    font-family: var(--font-en);
    font-style: italic;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--amber);
}
.hero-manager {
    margin: 8px 0 14px;
    color: rgba(246, 241, 232, 0.82);
    font-weight: 600;
    font-size: 1.02rem;
}

.section {
    padding: 92px 0;
}
.section-head {
    max-width: 640px;
    margin-bottom: 42px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.section-head p { color: var(--muted); margin: 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}
.btn-accent {
    background: linear-gradient(180deg, #d86a2d, var(--copper-deep));
    color: #fff;
    box-shadow: 0 10px 24px rgba(154, 63, 20, 0.28);
}
.btn-accent:hover { background: linear-gradient(180deg, #e17639, #8a360f); }
.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--paper);
}
.btn-ghost:hover { background: rgba(246, 241, 232, 0.06); }
.btn-dark {
    background: var(--ink);
    color: var(--paper);
}
.btn-outline {
    background: transparent;
    border-color: rgba(12, 17, 24, 0.16);
    color: var(--ink);
}
.btn-whatsapp { background: #128c7e; color: #fff; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 17, 24, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(246, 241, 232, 0.06);
    color: var(--paper);
}
.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-mark {
    width: 42px;
    height: 42px;
    color: var(--amber);
    display: grid;
    place-items: center;
}
.brand-mark svg { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.05rem; }
.brand-manager {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--amber);
    letter-spacing: 0.02em;
}
.nav-desktop { display: flex; gap: 8px; }
.nav-desktop a {
    padding: 10px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: rgba(246, 241, 232, 0.72);
    border-bottom: 2px solid transparent;
    transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.nav-desktop a:hover,
.nav-desktop a.is-active {
    color: #fff;
    border-color: var(--copper);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { color: var(--paper); }
.header-phone span { font-variant-numeric: tabular-nums; direction: ltr; }
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(246,241,232,.16);
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    padding: 12px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}
.menu-toggle span {
    display: block;
    height: 1.5px;
    background: var(--paper);
}
.nav-mobile {
    display: none;
    padding: 8px 20px 20px;
    background: var(--ink-2);
}
.nav-mobile a {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid rgba(246,241,232,.06);
    color: var(--paper);
}
.nav-mobile .btn { margin-top: 12px; width: 100%; }

/* Hero */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12,17,24,.92) 0%, rgba(12,17,24,.72) 46%, rgba(12,17,24,.38) 100%),
        linear-gradient(180deg, rgba(12,17,24,.2), rgba(12,17,24,.55));
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    padding: 64px 0 72px;
}
.hero h1 {
    font-size: clamp(1.85rem, 4.2vw, 3.4rem);
    max-width: 18ch;
    margin-bottom: 18px;
}
.hero-lead {
    font-size: 1.08rem;
    color: rgba(246, 241, 232, 0.78);
    max-width: 38ch;
    margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
    margin-top: 36px;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    color: var(--steel);
    font-size: 0.92rem;
}
.hero-meta strong { display: block; color: #fff; font-size: 1.05rem; }
.hero-frame {
    border: 1px solid rgba(232, 163, 23, 0.28);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.hero-frame img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center 30%;
}
.hero-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: rgba(12,17,24,.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(232,163,23,.3);
    padding: 12px 16px;
    border-radius: 14px;
}

/* Trust bar */
.trust-bar {
    background: var(--ink-2);
    color: var(--paper);
    border-top: 1px solid rgba(246,241,232,.06);
    border-bottom: 1px solid var(--line);
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.trust-item {
    padding: 28px 22px;
    border-left: 1px solid rgba(246,241,232,.06);
}
.trust-item:last-child { border-left: 0; }
.trust-item svg { width: 26px; height: 26px; color: var(--amber); margin-bottom: 10px; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.trust-item p { margin: 0; color: var(--steel); font-size: 0.9rem; }

/* Bento services */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}
.card {
    background: var(--paper-2);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(12,17,24,.05);
    transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.card:hover {
    transform: scale(1.015);
    box-shadow: var(--shadow);
}
.card-media { position: relative; height: 260px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.card-body { padding: 22px; }
.card-body h3 { font-size: 1.2rem; }
.card-body p { margin: 0; color: var(--muted); }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }
.card-dark {
    background: var(--ink);
    color: var(--paper);
    border-color: transparent;
}
.card-dark p { color: rgba(246,241,232,.72); }
.card-split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    min-height: 280px;
}
.card-split .card-media { height: auto; min-height: 240px; }

/* Story / about */
.story {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
}
.story-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.story-visual img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    object-position: center 28%;
    border-radius: 16px;
}
.story-visual img:first-child {
    grid-column: span 2;
    height: 320px;
}
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}
.stat {
    background: #efe8db;
    border-radius: 16px;
    padding: 18px;
}
.stat b {
    display: block;
    font-size: 1.6rem;
    color: var(--copper-deep);
}
.stat span { color: var(--muted); font-size: 0.9rem; }

/* Process */
.process {
    background: var(--ink);
    color: var(--paper);
}
.process .section-head p { color: var(--steel); }
.process-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: step;
}
.process-item {
    border: 1px solid rgba(246,241,232,.08);
    border-radius: 18px;
    padding: 24px;
    background: var(--ink-2);
    min-height: 220px;
}
.process-item::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-en);
    color: var(--amber);
    font-size: 1.8rem;
    margin-bottom: 18px;
}
.process-item p { color: var(--steel); margin: 0; }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.gallery-grid a,
.gallery-grid figure {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 280ms var(--ease);
}
.gallery-grid a:hover img,
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
    position: absolute;
    inset: auto 0 0;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(12,17,24,.8));
    color: #fff;
    font-size: 0.9rem;
}
.gallery-wide { grid-column: span 2; }
.gallery-wide img { height: 360px; }

/* Contact */
.contact-wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
}
.contact-panel {
    background: var(--ink);
    color: var(--paper);
    border-radius: 24px;
    padding: 0 0 32px;
    overflow: hidden;
}
.contact-panel .eyebrow,
.contact-panel h2,
.contact-panel p,
.contact-panel .phone-list {
    padding-inline: 32px;
}
.contact-panel .eyebrow { padding-top: 28px; }
.contact-photo {
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}
.contact-panel a { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.contact-panel .phone-list a { font-size: 1.2rem; }
.contact-panel .phone-list span { color: var(--steel); font-size: 0.85rem; margin-right: auto; }
.form {
    background: var(--paper-2);
    border: 1px solid var(--line-soft);
    border-radius: 24px;
    padding: 32px;
    display: grid;
    gap: 14px;
}
.form label { font-weight: 600; font-size: 0.92rem; }
.form input,
.form textarea,
.form select {
    width: 100%;
    border: 1px solid rgba(12,17,24,.12);
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 48px;
    transition: border-color 180ms var(--ease);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus,
.form textarea:focus,
.form select:focus {
    outline: 2px solid var(--copper);
    outline-offset: 1px;
    border-color: transparent;
}
.hp { position: absolute; left: -9999px; }
.alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
}
.alert-ok { background: #d1fae5; color: #065f46; }
.alert-err { background: #fee4e2; color: #7a271a; }

/* Footer */
.site-footer {
    background: #090d13;
    color: var(--paper);
    padding: 64px 0 36px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 28px;
}
.footer-brand p { color: var(--steel); max-width: 38ch; }
.site-footer h2 { font-size: 1rem; color: var(--amber); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; color: var(--steel); }
.site-footer a:hover { color: #fff; }
.footer-phones a { display: block; color: #fff; font-size: 1.05rem; direction: ltr; text-align: right; }
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(246,241,232,.08);
    display: flex;
    justify-content: space-between;
    color: var(--steel);
    font-size: 0.9rem;
}
.en-mark {
    font-family: var(--font-en);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mobile-cta {
    display: none;
    position: fixed;
    inset: auto 12px 12px;
    z-index: 40;
    gap: 8px;
}
.mobile-cta .btn { flex: 1; }

.page-hero {
    background:
        linear-gradient(120deg, rgba(12,17,24,.94), rgba(12,17,24,.72)),
        url("../media/bathroom-gold.jpg") center/cover;
    color: var(--paper);
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 48ch; color: rgba(246,241,232,.78); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 16ch; }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(9,13,19,.92);
    display: none;
    place-items: center;
    z-index: 70;
    padding: 24px;
}
.lightbox.is-open { display: grid; }
.lightbox img {
    max-width: min(1100px, 100%);
    max-height: 88vh;
    border-radius: 12px;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    cursor: pointer;
    font-size: 1.4rem;
}

@media (max-width: 1024px) {
    .hero-inner,
    .story,
    .contact-wrap,
    .footer-grid { grid-template-columns: 1fr; }
    .hero-frame img { height: 360px; }
    .span-7, .span-5, .span-8, .span-4, .span-6 { grid-column: span 6; }
    .process-list { grid-template-columns: 1fr 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-item { border-bottom: 1px solid rgba(246,241,232,.06); }
}

@media (max-width: 768px) {
    .container { width: min(1180px, calc(100% - 28px)); }
    .nav-desktop, .header-phone { display: none; }
    .menu-toggle { display: flex; }
    .nav-mobile.is-open { display: block; }
    .hero-inner { padding-top: 36px; }
    .hero h1 { max-width: none; }
    .span-7, .span-5, .span-8, .span-4, .span-6, .span-12 { grid-column: span 12; }
    .card-split { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-wide { grid-column: span 1; }
    .gallery-wide img, .gallery-grid img { height: 220px; }
    .stat-row, .process-list, .trust-grid { grid-template-columns: 1fr; }
    .mobile-cta { display: flex; }
    .section { padding: 64px 0; }
    .site-footer { padding-bottom: 110px; }
    .header-actions .btn-accent { display: none; }
    .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
