/* Blue Card Shop — local styles only, no external fonts or trackers */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #10253F;
  --navy-2: #1A3A5C;
  --blue: #1F5FA8;
  --blue-bright: #2B74C7;
  --blue-soft: #D7E6F6;
  --sky: #EEF4FA;
  --paper: #F6F3EE;
  --paper-2: #EFEBE3;
  --cream: #FBF8F3;
  --ink: #1B2430;
  --muted: #5C6B7A;
  --line: #D5DDE6;
  --gold: #B8943A;
  --gold-soft: #E8D7A8;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(16, 37, 63, 0.08);
  --shadow-sm: 0 6px 18px rgba(16, 37, 63, 0.06);
  --radius: 18px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, "Iranian Sans", "Noto Sans Arabic", sans-serif;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(215, 230, 246, 0.7), transparent 42%),
    radial-gradient(circle at 100% 20%, rgba(232, 215, 168, 0.18), transparent 36%);
  text-align: right;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.9rem, 3.4vw, 3.05rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: 0.75rem; font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  color: var(--navy-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a.is-active { background: var(--sky); color: var(--navy); }
.site-nav a.nav-cta,
.site-nav a.nav-cta.is-active {
  background: var(--navy);
  color: var(--cream);
  margin-right: 6px;
}
.site-nav a.nav-cta:hover { background: var(--blue); color: var(--white); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  color: var(--navy);
  cursor: pointer;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0 36px;
}
.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 500;
  background: var(--blue-soft);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-art {
  background: transparent;
  filter: drop-shadow(0 18px 30px rgba(16, 37, 63, 0.12));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 22px;
  font: inherit;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--blue); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--cream); color: var(--navy); }
.btn-sm { padding: 8px 16px; font-size: 0.92rem; }

/* Sections */
.section { padding: 28px 0 56px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head p { margin: 0; color: var(--muted); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--navy-2);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  cursor: pointer;
}
.filter-btn.is-active,
.filter-btn:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--sky);
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { margin-bottom: 4px; }
.cat-label {
  font-size: 0.78rem;
  color: var(--blue);
  margin-bottom: 6px;
  font-weight: 500;
}
.product-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.price { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.product-card.is-hidden { display: none; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.feature img { width: 44px; height: 44px; margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; }

.note-box {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 28px 32px;
  border: 1px solid var(--blue-soft);
  margin-top: 12px;
}

/* About / content pages */
.page-hero { padding: 48px 0 12px; }
.prose { max-width: 44rem; }
.prose p { color: var(--ink); }
.muted { color: var(--muted); }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.value {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
}

/* FAQ */
.faq-list { max-width: 46rem; display: grid; gap: 10px; }
details {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
}
details[open] { border-color: var(--blue-soft); box-shadow: var(--shadow-sm); }
summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--navy);
  padding: 14px 0;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  float: left;
  color: var(--blue);
  font-weight: 700;
}
details[open] summary::after { content: "−"; }
details p { color: var(--muted); padding-bottom: 12px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: start;
}
.contact-card, .form-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 14px; }
label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--navy); }
input, textarea {
  width: 100%;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--ink);
}
textarea { min-height: 150px; resize: vertical; }
.form-success {
  display: none;
  background: var(--sky);
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.form-success.is-visible { display: block; }
.form-card.is-sent form { display: none; }

/* 404 */
.error-page {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}
.error-code {
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 1;
  color: var(--blue-soft);
  font-weight: 700;
  margin: 0;
}
.error-page h1 { margin-top: -0.3em; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #E6EEF6;
  margin-top: 24px;
  padding: 40px 0 18px;
}
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h2 { color: var(--cream); font-size: 1rem; }
.site-footer .brand { color: var(--cream); margin-bottom: 10px; }
.site-footer .brand-text small { color: #B7C6D6; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  color: #B7C6D6;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero, .contact-grid, .features, .values, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 28px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    right: 0; left: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav .nav-cta { margin: 4px 0 0; }
  .product-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-card { transition: none; }
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}
