/* Shahyad — Azadi Tower brick models. White marble on Tehran twilight. */

:root {
  --night: #20252e;
  --night-deep: #171b22;
  --night-raised: #2a303a;
  --marble: #f1eee6;
  --body: rgba(241, 238, 230, 0.87);
  --muted: rgba(241, 238, 230, 0.58);
  --turquoise: #2ea7a0;
  --turquoise-bright: #3fc4bc;
  --tile: #7cc3d6;
  --line: rgba(241, 238, 230, 0.14);
  --maxw: 1080px;
}

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

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

body {
  background: var(--night);
  color: var(--body);
  font-family: "Spectral", Georgia, serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Marcellus", "Spectral", serif; font-weight: 400; color: var(--marble); }

.fa { font-family: "Vazirmatn", "Spectral", serif; direction: rtl; unicode-bidi: isolate; }

a { color: var(--turquoise-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 2px solid var(--turquoise-bright);
  outline-offset: 3px;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */
header.site { border-bottom: 1px solid var(--line); background: var(--night-deep); }
.site-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; max-width: var(--maxw); margin: 0 auto;
}
.wordmark { display: flex; flex-direction: column; line-height: 1.3; }
.wordmark .en { font-family: "Marcellus", serif; font-size: 1.05rem; color: var(--marble); letter-spacing: 0.02em; }
.wordmark .fa { font-size: 0.9rem; color: var(--muted); }
nav.main { display: flex; gap: 1.4rem; align-items: center; font-size: 0.95rem; }
nav.main a { color: var(--body); }
nav.main a:hover { color: var(--marble); }
@media (max-width: 760px) { nav.main .page-link { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Spectral", serif; font-weight: 400; font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--turquoise-bright);
  background: var(--turquoise);
  color: #f6fbfa;
  cursor: pointer; border-radius: 2px;
  transition: background-color 150ms ease;
}
.btn:hover { background: var(--turquoise-bright); text-decoration: none; }
.btn.quiet { background: transparent; border-color: var(--line); color: var(--marble); }
.btn.quiet:hover { border-color: var(--marble); background: transparent; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- hero ---------- */
.hero { padding: 4.5rem 0 3.5rem; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: 3rem; align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } }

.motto-fa {
  font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 500;
  color: var(--marble); line-height: 1.9; margin-bottom: 1.1rem;
}
.motto-fa em { font-style: normal; color: var(--turquoise-bright); }
.motto-en { font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.45; margin-bottom: 1.4rem; }
.hero-sub { max-width: 34rem; margin-bottom: 1.8rem; }

.stats { display: flex; gap: 2.25rem; flex-wrap: wrap; margin-top: 2rem; }
.stat .n { font-family: "Marcellus", serif; font-size: 1.35rem; color: var(--marble); display: block; }
.stat .l { font-size: 0.85rem; color: var(--muted); }

.hero-art img { border: 1px solid var(--line); border-radius: 2px; }
.hero-art figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.6rem; }

/* pointed-arch divider — the tower's iwan silhouette */
.iwan {
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='16' viewBox='0 0 64 16'%3E%3Cpath d='M0 16 C10 16 12 4 20 2 Q32 -2 44 2 C52 4 54 16 64 16 Z' fill='%23f1eee6' fill-opacity='0.16'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center bottom;
  margin: 0 auto; max-width: var(--maxw);
}

/* ---------- sections ---------- */
section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--line); }
.section-title { font-size: 1.7rem; margin-bottom: 0.4rem; }
.section-title-fa { color: var(--muted); font-size: 1rem; margin-bottom: 2rem; text-align: left; }

.story-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 760px) { .story-cols { grid-template-columns: 1fr; gap: 2rem; } }
.story-cols h3, .prose h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.story-cols .year { color: var(--turquoise-bright); }
.story-cols p + p, .prose p + p { margin-top: 0.9rem; }
.prose { max-width: 46rem; }
.pull {
  border-left: 2px solid var(--turquoise);
  padding: 0.4rem 0 0.4rem 1.2rem;
  margin: 1.6rem 0;
  font-size: 1.15rem; color: var(--marble); line-height: 1.6;
}

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { border: 1px solid var(--line); border-radius: 2px; width: 100%; }
.gallery figure.wide img { height: min(560px, 72vw); object-fit: contain; background: #e9ebee; }
.gallery figure:not(.wide) img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
@media (max-width: 680px) { .gallery { grid-template-columns: 1fr; } }

/* model spec + order layout */
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; align-items: start; }
@media (max-width: 820px) { .model-grid { grid-template-columns: 1fr; } }
.spec-list { list-style: none; }
.spec-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.spec-list li:last-child { border-bottom: 0; }
.note-card {
  border: 1px solid var(--line); border-left: 2px solid var(--turquoise);
  border-radius: 2px; padding: 0.9rem 1.1rem; margin-top: 1rem;
  font-size: 0.92rem; color: var(--body); background: var(--night-raised);
}

/* order panel */
.order-panel {
  border: 1px solid var(--line); background: var(--night-raised);
  border-radius: 2px; padding: 1.6rem 1.7rem;
}
.order-panel h3 { margin-bottom: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; color: var(--marble); font-size: 0.95rem; margin-bottom: 0.35rem; }
.field select {
  width: 100%;
  background: var(--night-deep); color: var(--marble);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 0.55rem 0.8rem; font-family: "Spectral", serif; font-size: 1rem;
}
.price-line { display: flex; justify-content: space-between; font-size: 0.97rem; padding: 0.3rem 0; }
.price-line.total { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.7rem;
  font-family: "Marcellus", serif; color: var(--marble); font-size: 1.15rem; }
.order-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }
.order-error {
  display: none; margin-top: 1rem; padding: 0.8rem 1rem;
  border: 1px solid #b4554a; border-radius: 2px; font-size: 0.92rem; color: var(--marble);
}
.order-error.show { display: block; }
.order-panel .btn { width: 100%; margin-top: 1rem; }

/* shipping table */
table.ship { width: 100%; border-collapse: collapse; margin-top: 1.2rem; max-width: 46rem; }
table.ship th, table.ship td { text-align: left; padding: 0.55rem 0.9rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
table.ship th { font-family: "Marcellus", serif; font-weight: 400; color: var(--marble); }
table.ship td.num { font-variant-numeric: tabular-nums; }

/* faq */
details.faq { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
details.faq summary { cursor: pointer; color: var(--marble); font-family: "Marcellus", serif; font-size: 1.05rem; }
details.faq p { margin-top: 0.6rem; max-width: 46rem; }

/* footer */
footer.site { border-top: 1px solid var(--line); background: var(--night-deep); padding: 2.5rem 0 3rem; font-size: 0.88rem; color: var(--muted); }
footer .fa { margin-bottom: 0.6rem; color: var(--body); text-align: left; }
footer p + p { margin-top: 0.6rem; }
footer .legal { max-width: 52rem; }

/* status pages */
.status-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 1.25rem; }
.status-page .fa { font-size: 1.4rem; margin-bottom: 0.8rem; }
.status-page h1 { font-size: 2rem; margin-bottom: 1rem; }
.status-page p { max-width: 36rem; margin: 0 auto 0.8rem; }
.status-page .btn { margin-top: 1.4rem; }
