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

/* Colours. --gold is for fills and lines; --gold-text is the darker tone for small text on light backgrounds. */
:root {
  --ink: #1f1b17;
  --ink-2: #2b2621;
  --paper: #f7f2e9;
  --paper-2: #efe6d6;
  --line: #e0d4bf;
  --text: #3a332c;
  --muted: #6f6456;
  --gold: #b88a44;
  --gold-2: #d7b377;
  --gold-text: #7d5a1c;
  --wa: #168243;
  --radius: 16px;
  --bar-h: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(184,138,68,.2);
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[id] { scroll-margin-top: 76px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.i { width: 22px; height: 22px; fill: currentColor; flex: none; }

.skip { position: absolute; top: -60px; right: 12px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.500px solid transparent;
  font: inherit; font-weight: 700; font-size: 15.500px; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 20px; height: 20px; margin-left: 9px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 14.500px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(22,130,67,.350); }
.btn--wa:hover { background: #126d38; }
.btn--line { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--line:hover { border-color: var(--gold-2); color: var(--gold-2); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; right: 0; left: 0; z-index: 50;
  color: #fff;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-stuck, .header.is-open { background: rgba(31,27,23,.97); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand__mark { width: 34px; height: 34px; color: var(--gold-2); margin-left: 10px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.350; }
.brand__txt b { font-size: 16px; font-weight: 800; }
.brand__txt small { font-size: 12px; color: rgba(255,255,255,.7); }

/* Scroll progress line under the header (filled by main.js). */
.progress { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--gold-2); transform: scaleX(0); transform-origin: 100% 50%; }

/* Small screens: the section list opens from the menu button. Without JS it stays hidden and the call button shows instead. */
.nav { display: none; }
.nav a { display: block; padding: 11px 4px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.85); border-bottom: 1px solid rgba(255,255,255,.08); transition: color .2s; }
.nav a:last-child { border-bottom: 0; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--gold-2); }
.js .nav {
  display: block; position: absolute; top: 64px; right: 0; left: 0;
  padding: 4px 20px 14px; background: var(--ink); box-shadow: 0 18px 30px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.js .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; margin-left: -8px; padding: 0; border: 0; border-radius: 10px; background: none; color: #fff; cursor: pointer; }
.menu-btn span { position: absolute; right: 10px; left: 10px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s ease, opacity .2s ease; }
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 28px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.js .menu-btn { display: block; }
.js .header__call { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  background-image:
    radial-gradient(ellipse at 50% 115%, rgba(184,138,68,.28), transparent 60%),
    linear-gradient(180deg, #1f1b17, #26211c);
  color: #fff;
  padding: 96px 0 64px;
  overflow: hidden;
}
.hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { color: var(--gold-text); font-weight: 700; font-size: 14px; letter-spacing: 0; margin-bottom: 8px; }
.hero .eyebrow { color: var(--gold-2); }
.hero h1 { font-size: 44px; font-size: clamp(40px, 11vw, 76px); font-weight: 900; line-height: 1.250; }
.hero__lead { margin-top: 14px; color: rgba(255,255,255,.8); font-size: 16.500px; max-width: 30em; }
.hero__cta { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; }
.hero__cta .btn { margin: 6px; }
.hero__note {
  display: inline-flex; align-items: center; margin-top: 20px;
  padding: 5px 16px; border-radius: 999px;
  background: rgba(215,179,119,.12); color: var(--gold-2);
  font-size: 14px; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); margin-left: 9px; animation: pulse 2s ease-in-out infinite; }

/* Text comes in line by line. The resting state is the visible one, so no animation support = plain visible text. */
.hero__text > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero__text > :nth-child(1) { animation-delay: .1s; }
.hero__text > :nth-child(2) { animation-delay: .22s; }
.hero__text > :nth-child(3) { animation-delay: .36s; }
.hero__text > :nth-child(4) { animation-delay: .5s; }
.hero__text > :nth-child(5) { animation-delay: .64s; }

.hero__art { width: 100%; max-width: 360px; margin-top: 36px; animation: float 7s ease-in-out 3.600s infinite; }
.facade { width: 100%; height: auto; overflow: visible; }
.facade .a { fill: #efe4cf; }
.facade .b { fill: #e4d5b8; }
.facade .c { fill: #f6eedd; }
.facade .open { fill: #17130f; stroke: #f6eedd; stroke-width: 6; stroke-linejoin: round; }
.facade .open--door { stroke-width: 8; }
.facade .gold { fill: var(--gold-2); }
.st { animation: drop .7s cubic-bezier(.2,.9,.3,1.150) both; animation-delay: calc(var(--i) * 55ms + 200ms); }
.lit { opacity: .92; animation: lit 1.400s ease-out 3.300s both; }
.lit--door { opacity: .7; animation-name: lit-door; animation-delay: 3.700s; }

.hero__scroll { position: absolute; bottom: 14px; left: 50%; width: 26px; height: 40px; margin-left: -13px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; display: none; }
.hero__scroll span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-2); animation: wheel 1.800s ease-in-out infinite; }

/* ---------- ticker ---------- */
.ticker { direction: ltr; overflow: hidden; background: var(--gold-2); color: var(--ink); white-space: nowrap; text-align: center; }
.ticker__track { display: inline-block; white-space: nowrap; vertical-align: top; }
.ticker__set { display: inline-block; white-space: nowrap; }
.ticker span { display: inline-block; direction: rtl; padding: 9px 18px; font-size: 14.500px; font-weight: 700; }
.ticker span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 36px; border-radius: 50%; background: var(--ink); opacity: .45; vertical-align: middle; }
.ticker__track.is-run { animation: ticker 60s linear infinite; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #fff; }
.head { text-align: center; margin-bottom: 34px; }
.head h2 { font-size: 26px; font-size: clamp(24px, 6vw, 36px); font-weight: 800; line-height: 1.500; color: var(--ink); }
.section--dark .head h2 { color: #fff; }
.section--dark .eyebrow { color: var(--gold-2); }
.head h2::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin: 12px auto 0; border-radius: 2px; }
.head__sub { margin-top: 12px; color: rgba(255,255,255,.75); }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(60,45,20,.12); border-color: var(--gold-2); }
.ico { width: 40px; height: 40px; margin-bottom: 10px; fill: none; stroke: var(--gold); stroke-width: 2.500; stroke-linejoin: round; stroke-linecap: round; }
.card h3 { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.600; }
.card p { font-size: 13.500px; color: var(--muted); margin-top: 4px; line-height: 1.800; }
.card--dark { background: var(--ink); border-color: var(--ink); grid-column: 1 / -1; }
.card--dark h3 { color: #fff; }
.card--dark p { color: rgba(255,255,255,.75); }
.card--dark .ico { stroke: var(--gold-2); }

/* ---------- stones ---------- */
.stones { display: grid; grid-template-columns: 1fr; gap: 16px; }
.stone { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stone__tex { position: relative; height: 150px; overflow: hidden; }
.stone__tex::after, .tile::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  animation: sheen 5s ease-in-out infinite;
}
.stone:nth-child(2) .stone__tex::after { animation-delay: 1.200s; }
.stone:nth-child(3) .stone__tex::after { animation-delay: 2.400s; }
.stone__tex img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.stone:hover .stone__tex img { transform: scale(1.050); }
.note { margin-top: 14px; font-size: 13.500px; color: var(--muted); text-align: center; }
.stone__body { padding: 16px 18px 20px; }
.stone__body h3 { font-size: 19px; font-weight: 800; color: var(--ink); }
.stone__body p { font-size: 14.500px; color: var(--muted); margin-top: 4px; }

.tex-travertine {
  background-color: #dfcdaa;
  background-image:
    repeating-linear-gradient(177deg, rgba(140,105,60,.160) 0, rgba(140,105,60,.160) 2px, transparent 2px, transparent 11px),
    repeating-linear-gradient(182deg, rgba(255,255,255,.300) 0, rgba(255,255,255,.300) 3px, transparent 3px, transparent 19px),
    linear-gradient(135deg, #ecdfc6, #d6c19a);
}
.tex-marvdasht {
  background-color: #eadfc9;
  background-image:
    radial-gradient(ellipse at 18% 30%, rgba(255,255,255,.600), transparent 42%),
    radial-gradient(ellipse at 82% 72%, rgba(175,145,100,.280), transparent 46%),
    radial-gradient(ellipse at 55% 10%, rgba(190,160,115,.180), transparent 40%),
    linear-gradient(120deg, #f1e7d4, #e1d0b2);
}
.tex-chini {
  background-color: #f1f2f4;
  background-image:
    linear-gradient(115deg, transparent 40%, rgba(120,125,135,.280) 41%, transparent 43.500%),
    linear-gradient(98deg, transparent 62%, rgba(120,125,135,.200) 63%, transparent 64.500%),
    linear-gradient(128deg, transparent 18%, rgba(120,125,135,.140) 19%, transparent 20.500%),
    linear-gradient(135deg, #fcfcfc, #e4e6ea);
}

.banner {
  margin-top: 26px; padding: 24px 22px;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: flex-start;
  background-image: radial-gradient(ellipse at 0% 100%, rgba(184,138,68,.350), transparent 60%);
}
.banner h3 { font-size: 21px; font-weight: 800; color: var(--gold-2); }
.banner p { color: rgba(255,255,255,.8); font-size: 14.500px; }
.banner .btn { margin-top: 16px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 12px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 76px 18px 18px; }
.step__n {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--paper-2); color: var(--gold-text);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px;
}
.step h3 { font-size: 17px; font-weight: 800; color: var(--ink); }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- works ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; display: block; padding-top: 100%; border-radius: 14px; overflow: hidden; transition: transform .25s ease; }
.tile img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.060); }
.tile:active { transform: scale(.97); }
.tile::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,16,12,.780)); z-index: 1; transition: opacity .3s; }
.tile::after { animation-duration: 7s; }
.tile:nth-child(2n)::after { animation-delay: 1.500s; }
.tile:nth-child(3n)::after { animation-delay: 3s; }
.tile span { position: absolute; right: 14px; bottom: 10px; z-index: 2; color: #fff; font-weight: 700; font-size: 15px; }
.tile:hover::before { opacity: .75; }
#works .center { margin-top: 26px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cbox {
  display: flex; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; min-height: 76px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
a.cbox:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60,45,20,.1); }
a.cbox:active { transform: scale(.98); }
.cbox .i { width: 44px; height: 44px; padding: 11px; margin-left: 14px; border-radius: 12px; background: var(--paper-2); color: var(--gold-text); }
.cbox--wa .i { background: var(--wa); color: #fff; }
.cbox__t { display: flex; flex-direction: column; min-width: 0; }
.cbox b { font-size: 13.500px; color: var(--gold-text); font-weight: 700; }
.cbox__v { font-size: 17px; font-weight: 700; color: var(--ink); text-align: right; line-height: 1.700; }

/* ---------- footer + mobile bar ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.7); text-align: center; font-size: 14px; padding: 22px 0; padding-bottom: calc(22px + var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
.footer b { color: #fff; }
.footer__links a { display: inline-block; padding: 10px 12px; color: var(--gold-2); }
.footer__links a:hover { color: #fff; }
.bar {
  position: fixed; right: 0; bottom: 0; left: 0; z-index: 60;
  display: flex; height: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -6px 20px rgba(0,0,0,.180);
}
.bar a { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.bar a:active { opacity: .85; }
.bar .i { margin-left: 8px; }
.bar__wa { background: var(--wa); color: #fff; }
.bar__tel { background: var(--gold); color: var(--ink); }

/* ---------- scroll reveal ----------
   Only under .anim (JS runs and the visitor has not asked for reduced motion), so the page is fully
   visible without it. main.js adds .in when an element scrolls into view and .done once it has settled. */
.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.anim .tile.reveal, .anim .stone.reveal { transform: scale(.94); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .cards .reveal:nth-child(2n), .anim .tiles .reveal:nth-child(2n) { transition-delay: .12s; }
.anim .stones .reveal:nth-child(2), .anim .steps .reveal:nth-child(2), .anim .contact .reveal:nth-child(2) { transition-delay: .1s; }
.anim .stones .reveal:nth-child(3), .anim .steps .reveal:nth-child(3), .anim .contact .reveal:nth-child(3) { transition-delay: .2s; }
.anim .steps .reveal:nth-child(4), .anim .contact .reveal:nth-child(4) { transition-delay: .3s; }
/* html + .in.done on purpose: this has to outrank the staggered nth-child delays above. */
html.anim .reveal.in.done { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; transition-delay: 0s; }

.anim .head h2::after { transform: scaleX(0); transition: transform .8s cubic-bezier(.2,.8,.2,1) .35s; }
.anim .head.in h2::after { transform: none; }
.anim .reveal .ico, .anim .reveal .step__n, .anim .reveal.cbox .i { opacity: 0; transform: scale(.5); transition: opacity .4s ease .3s, transform .6s cubic-bezier(.2,.9,.3,1.500) .3s; }
.anim .reveal.in .ico, .anim .reveal.in .step__n, .anim .reveal.in.cbox .i { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes drop { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lit { 0% { opacity: 0; } 30% { opacity: .7; } 45% { opacity: .3; } 100% { opacity: .92; } }
@keyframes lit-door { from { opacity: 0; } to { opacity: .7; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
@keyframes sheen { 0%, 55% { transform: translateX(0); } 100% { transform: translateX(420%); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- larger screens ---------- */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .card--dark { grid-column: auto; }
  .stones { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .contact { grid-template-columns: repeat(3, 1fr); }
  .cbox--wide { grid-column: 1 / -1; }
  .banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
  .banner .btn { margin-top: 0; }
  .anim .cards .reveal:nth-child(n), .anim .tiles .reveal:nth-child(n) { transition-delay: 0s; }
  .anim .cards .reveal:nth-child(3n+2), .anim .tiles .reveal:nth-child(3n+2) { transition-delay: .1s; }
  .anim .cards .reveal:nth-child(3n), .anim .tiles .reveal:nth-child(3n) { transition-delay: .2s; }
}
@media (min-width: 900px) {
  body { font-size: 17px; }
  .bar { display: none; }
  .footer { padding-bottom: 22px; }
  .section { padding: 96px 0; }
  .head { margin-bottom: 48px; }

  .menu-btn, .js .menu-btn { display: none; }
  .js .header__call { display: inline-flex; }
  .nav, .js .nav {
    display: block; position: static; padding: 0; background: none; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav a { display: inline-block; position: relative; margin: 0 14px; padding: 10px 0; border: 0; font-size: 14.500px; font-weight: 400; }
  .nav a::after { content: ""; position: absolute; right: 0; bottom: 4px; left: 0; height: 2px; border-radius: 2px; background: var(--gold-2); transform: scaleX(0); transition: transform .3s ease; }
  .nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

  .hero { padding: 120px 0 90px; min-height: 100vh; display: flex; align-items: center; }
  .hero__in { flex-direction: row; justify-content: space-between; text-align: right; }
  .hero__text { flex: 1; }
  .hero__cta { justify-content: flex-start; margin-right: -6px; }
  .hero__lead { font-size: 19px; }
  .hero__art { max-width: 440px; margin-top: 0; margin-right: 48px; flex: none; width: 42%; }
  .hero__scroll { display: block; }
  .ticker span { padding: 12px 22px; font-size: 15.500px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 76px 20px 22px; }
  .card { padding: 26px 22px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 14.500px; }
  .stone__tex { height: 190px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
