/* ── فونت وزیرمتن — لوکال ── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-display: swap;
}

/* ── Playfair Display — لوکال یا fallback ── */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #1a1510;
  --gold: #b8973a;
  --gold-light: #d4af5a;
  --gold-pale: #f5e8c8;
  --cream: #faf7f2;
  --warm-white: #fffef9;
  --charcoal: #2d2620;
  --muted: #7a6e62;
  --border: rgba(184,151,58,0.2);
  --shadow: 0 20px 60px rgba(26,21,16,0.12);
  --shadow-sm: 0 4px 16px rgba(26,21,16,0.08);
  --transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  background: var(--cream);
  color: var(--ink);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ======================== TYPOGRAPHY ======================== */
h1, h2, h3, h4 {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.display-font {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.05em;
}

/* ======================== LAYOUT ======================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* ======================== HEADER / NAV ======================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 8px 32px rgba(26,21,16,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo-wrap img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.logo-text {
  line-height: 1.2;
}

.logo-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
}

.logo-sub {
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.desktop-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; right: 50%; left: 50%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--gold);
  background: rgba(184,151,58,0.08);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  right: 16px;
  left: 16px;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,21,16,0.7);
  backdrop-filter: blur(12px);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-menu {
  list-style: none;
  text-align: center;
  transform: translateY(30px);
  transition: var(--transition);
}

.mobile-nav-overlay.open .mobile-nav-menu {
  transform: translateY(0);
}

.mobile-nav-menu a {
  display: block;
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  padding: 14px 40px;
  text-decoration: none;
  transition: var(--transition);
  border-radius: 12px;
}

.mobile-nav-menu a:hover {
  color: var(--gold-light);
  background: rgba(255,255,255,0.08);
}

/* ======================== PAGE HEADER (for inner pages) ======================== */
.page-hero {
  padding-top: 72px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #3d3228 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8973a' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 12px;
}

.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.page-hero .breadcrumb a {
  color: var(--gold-light);
  text-decoration: none;
}

.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: white;
  box-shadow: 0 8px 24px rgba(184,151,58,0.35);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(184,151,58,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-3px);
}

/* ======================== SECTION TITLES ======================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(184,151,58,0.1);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--charcoal);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ======================== CARDS ======================== */
.card {
  background: var(--warm-white);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(184,151,58,0.35);
}

/* ======================== FOOTER ======================== */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.footer-brand img {
  height: 50px;
  width: auto;
  border-radius: 6px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold-light);
  padding-right: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.footer-contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: var(--gold-light);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
  transform: translateY(-3px);
}

/* ======================== BACK TO TOP ======================== */
.back-top {
  position: fixed;
  left: 24px;
  bottom: 28px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(184,151,58,0.4);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(184,151,58,0.5);
}

/* ======================== ANIMATIONS ======================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ══════════════════════════════════════
   DROPDOWN NAV
══════════════════════════════════════ */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 12px 36px rgba(26,21,16,0.14);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 200;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal) !important;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent !important;
}

.dropdown-menu li a:hover {
  background: rgba(184,151,58,0.09) !important;
  color: var(--gold) !important;
  padding-right: 18px !important;
}

.dropdown-menu li a::after { display: none !important; }

/* Mobile: landing links in drawer */
.mobile-landing-links {
  margin-top: 4px;
  padding: 8px 12px;
  background: rgba(184,151,58,0.07);
  border-radius: 10px;
}

.mobile-landing-links a {
  display: block !important;
  padding: 9px 4px !important;
  font-size: 13.5px !important;
  font-weight: 600;
  color: var(--charcoal) !important;
  border-bottom: 1px solid var(--border) !important;
}

.mobile-landing-links a:last-child { border-bottom: none !important; }

.mobile-landing-links a:hover { color: var(--gold) !important; }
