:root {
  --bg: #0f1416;           /* deep teal‑gray */
  --card: #12191b;         /* slightly lighter panel */
  --elev: #152023;         /* elevated surfaces */
  --text: #e8f1f2;         /* soft off‑white */
  --muted: #a9bbc0;        /* desaturated slate */
  --accent: #6cc5b2;       /* calm seafoam/teal */
  --accent-2: #a5d8d6;     /* pale mint for subtle accents */
  --ring: rgba(108, 197, 178, 0.35);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body { height: 100%; }
html { direction: rtl; }
body { direction: rtl; }

body {
  position: relative; /* Needed for the pseudo-element */
  z-index: 1; /* Ensures content stays on top */
  margin: 0;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg); /* Set solid background color only */
  line-height: 1.6;
}

body::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1; /* Puts it behind the content */
  overflow: hidden; /* This clips the gradients */
  background: radial-gradient(1200px 800px at 10% 0%, rgba(108,197,178,.10) 0%, transparent 45%),
              radial-gradient(1400px 900px at 120% 10%, rgba(88,146,164,.10) 0%, transparent 55%);
}

/* Prevent accidental horizontal scroll */
html, body { overflow-x: hidden; max-width: 100vw; }
body > * { max-width: 100%; }
main, section { max-width: 100%; overflow-x: hidden; }

.container {
  width: min(1100px, 92%);
  max-width: 100%;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--accent);
  color: #001018;
  padding: .5rem .75rem;
  border-radius: .5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 20, 22, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #223137;
  max-width: 100%;
  overflow-x: hidden;
}

/* Hide hamburger menu on mobile view */
@media (max-width: 991px) {
  .navbar-toggler {
    display: none !important;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.brand-mark { 
  width: 32px; 
  height: 32px; 
  display: block; 
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: contain;
}
.brand-copy { display: grid; line-height: 1.1; text-align: right; }
.brand-name { font-weight: 700; letter-spacing: .2px; }
.brand-tag { color: var(--muted); font-size: .9rem; }

.site-nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; opacity: .9; }
.site-nav a:hover { opacity: 1; }

.hero {
  position: relative;
  overflow: hidden; /* broader support than clip */
}
.hero-inner { padding: 5.5rem 0 3.5rem; text-align: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 .75rem; }
.lead { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.15rem); }

.hero-cta { margin-top: 1.5rem; display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.btn { 
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: .6rem;
  border: 1px solid #2a3a3f;
  background: linear-gradient(#141c1e, #11181a);
  color: var(--text);
  text-decoration: none;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { border-color: #3a4d53; box-shadow: 0 0 0 4px rgba(58, 77, 83, .20); transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, #163033, #122629); border-color: #4aa999; }
.btn.primary:hover { box-shadow: 0 0 0 4px var(--ring); background: linear-gradient(180deg, #183538, #142b2e); }

.hero-art {
  position: absolute; inset: 0; height: 420px; z-index: -1;
  background:
    radial-gradient(600px 180px at 50% 0%, rgba(108,197,178,.14), transparent 60%),
    radial-gradient(600px 220px at 30% 20%, rgba(88,146,164,.12), transparent 60%),
    radial-gradient(420px 180px at 70% 10%, rgba(165,216,214,.12), transparent 60%);
  filter: blur(18px);
}

.section { padding: 3.5rem 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00)); border-top: 1px solid #223137; border-bottom: 1px solid #223137; }

.two-col { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hero-inner { padding: 4rem 0 2.5rem; } }

.about-intro { font-size: 1.05rem; }
.about-points { margin: 1rem 0 0; padding-left: 1.2rem; }

.kv { list-style: none; padding: 0; margin: .25rem 0 0; }
.kv li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed #2a3a3f; }
.kv li:last-child { border-bottom: none; }
.kv span { color: var(--text); opacity: .9; }

.card {
  background: linear-gradient(180deg, var(--card), #0f1416);
  border: 1px solid #23363a;
  border-radius: .9rem;
  padding: 1.1rem 1rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.card h3 { margin-top: 0; }
.card, .card p, .card li, .card a { color: var(--text); }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 1100px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list, .social-list { list-style: none; margin: 0; padding: 0; }
.contact-list a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.contact-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.social-list a {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--muted);
  text-decoration: none; padding: .4rem .55rem; border-radius: .5rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.social-list a:hover {
  background: #162125;
  color: var(--accent);
}

/* Size and color for brand icons */
.social-list svg { width: 20px; height: 20px; display: inline-block; }
.social.telegram svg { fill: #2aa4e0; }
.social.instagram svg { fill: #e1306c; }
.social.whatsapp svg { fill: #25d366; }

.cta-row { margin-top: 1.25rem; display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 520px) { .cta-row .btn { flex: 1 1 100%; } }

.address-link a {
  color: var(--muted);
  opacity: 0.9;
  text-decoration: none; /* Make sure it's not underlined by default */
  transition: opacity 0.15s ease, color 0.15s ease;
}
.address-link a:hover {
  opacity: 1;
  color: var(--accent);
  text-decoration: underline; /* Add underline on hover */
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: .6rem;
  display: block;
  background: #0d1214;
}

/* Ensure media never overflows the container */
img, video, iframe, svg, object, embed { max-width: 100%; height: auto; display: block; }
table { max-width: 100%; display: block; overflow-x: auto; }
pre, code { max-width: 100%; overflow-x: auto; word-wrap: break-word; }

/* Minimal scrollbars on desktop (pointer: fine) */
@media (hover: hover) and (pointer: fine) {
  html {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(165, 216, 214, 0.45) transparent;
  }
  /* WebKit browsers */
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background-color: rgba(108, 197, 178, 0.35);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }
  ::-webkit-scrollbar-thumb:hover { background-color: rgba(108, 197, 178, 0.55); }
}

.site-footer { padding: 2rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1.2rem; flex-wrap: nowrap; border-top: 0; }
.site-footer p { margin: 0; }
@media (max-width: 700px) { .footer-inner { flex-direction: column; align-items: flex-start; } }

.to-top {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.to-top:hover {
  color: var(--accent);
}

/* Reduce motion for sensitive users */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}