/* =========================================
   KAMYAR SHAH — kamyarshah.name
   Design: Dark premium personal brand
   Palette: Deep navy #0D1B2A, gold accent #C9A84C,
            off-white #F0EDE6, muted #8A9BA8
   Type: Georgia (display), system-ui (body)
   ========================================= */

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

:root {
  --bg:         #0D1B2A;
  --bg-alt:     #111F30;
  --bg-card:    #162436;
  --gold:       #C9A84C;
  --gold-light: #E2C97E;
  --white:      #F0EDE6;
  --muted:      #8A9BA8;
  --border:     rgba(201,168,76,0.18);
  --max-w:      960px;
  --radius:     6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,27,42,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.nav-logo {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--bg) !important;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* HERO */
.hero {
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(180deg, #0D1B2A 0%, #0A1520 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; }
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-name {
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.hero-title {
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}
.hero-location {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.hero-summary {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  color: rgba(240,237,230,0.82);
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-secondary {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* SECTIONS */
.section-about,
.section-services,
.section-credentials,
.section-courses,
.section-faq,
.section-contact { padding: 4rem 1.5rem; }

.section-about { background: var(--bg-alt); }
.section-services { background: var(--bg); }
.section-credentials { background: var(--bg-alt); }
.section-courses { background: var(--bg); }
.section-faq { background: var(--bg-alt); }
.section-contact {
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  margin: 2rem 0 0.75rem;
  border-left: 3px solid var(--gold);
  padding-left: 0.75rem;
}

p {
  color: rgba(240,237,230,0.82);
  margin-bottom: 1rem;
  max-width: 720px;
}

a { color: var(--gold); }
a:hover { color: var(--gold-light); }

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--gold); }
.service-card h3 {
  border-left: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--gold-light);
  font-size: 1.05rem;
}
.service-card p { font-size: 0.9rem; margin-bottom: 1rem; }
.service-link { font-size: 0.85rem; color: var(--gold); text-decoration: none; }
.service-link:hover { text-decoration: underline; }
.section-cta { margin-top: 2rem; }

/* CREDENTIALS */
.credential-list {
  list-style: none;
  margin: 0.5rem 0 1.5rem;
}
.credential-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem;
  color: rgba(240,237,230,0.85);
}
.credential-list li:last-child { border-bottom: none; }
.credential-list strong { color: var(--white); }

/* COURSES */
.course-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.3rem 1.5rem;
  margin: 0.5rem 0 1.5rem;
}
.course-list li {
  font-size: 0.87rem;
  color: rgba(240,237,230,0.75);
  padding: 0.2rem 0;
  padding-left: 0.9rem;
  position: relative;
}
.course-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.5;
}

/* FAQ */
.faq-list dt {
  font-family: Georgia, serif;
  font-size: 1rem;
  color: var(--white);
  margin: 1.75rem 0 0.4rem;
  cursor: default;
}
.faq-list dd {
  color: rgba(240,237,230,0.80);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 720px;
}

/* FOOTER */
.site-footer {
  background: #080F18;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-inner p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  max-width: none;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-schema { font-size: 0.75rem !important; color: rgba(138,155,168,0.5) !important; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .course-list { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem 2.5rem; }
}

/* =========================================
   MEDIA & PUBLICATIONS section (post-Hero)
   ========================================= */
.section-media {
  padding: 4rem 1.5rem 4rem;
  background: linear-gradient(180deg, #0A1520 0%, #0D1B2A 100%);
  border-bottom: 1px solid var(--border);
}
.section-media h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.section-media .section-lead {
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.media-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}
.media-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.media-num {
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}
.media-label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.media-list-lead {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin: 2.5rem 0 1rem;
  letter-spacing: 0.04em;
}
.media-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  max-width: 760px;
  margin: 0 auto;
}
.media-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

/* =========================================
   COURSES — PDF link pattern (mirrors kamyarshah.page)
   ========================================= */
.course-category {
  margin: 2rem 0;
}
.course-category h3 {
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.course-count {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-family: system-ui, sans-serif;
  font-weight: 500;
}
.course-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.4rem 1.2rem;
}
.course-list li {
  font-size: 0.92rem;
  line-height: 1.5;
}
.course-link {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px dotted rgba(201,168,76,0.4);
  transition: color 0.2s, border-color 0.2s;
  padding-bottom: 1px;
}
.course-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.course-link::after {
  content: " ↗";
  color: var(--muted);
  font-size: 0.78em;
  opacity: 0.6;
}
.course-link:hover::after {
  color: var(--gold);
  opacity: 1;
}

/* Mobile adjustments for media stats */
@media (max-width: 600px) {
  .media-stats { gap: 1.5rem; }
  .media-num { font-size: 2.25rem; }
  .section-media h2 { font-size: 1.6rem; }
  .course-list { grid-template-columns: 1fr; }
}
