/* ========================================
   GHH — Hassan Halak | Main Stylesheet
   ======================================== */

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

:root {
  --bg: #0d0d1a;
  --bg2: #111128;
  --bg3: #16162e;
  --surface: #1a1a38;
  --surface2: #20203d;
  --gold: #c9a84c;
  --gold2: #e0c068;
  --gold-dim: rgba(201,168,76,0.15);
  --white: #f5f5f0;
  --gray: #9898b8;
  --gray2: #6868a0;
  --text: #e8e8f0;
  --radius: 12px;
  --nav-h: 68px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --transition: 0.2s ease;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold2); }

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

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--gold);
  color: #0d0d1a;
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold2); border-color: var(--gold2); color: #0d0d1a; }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold-dim); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ── SECTION LABELS ── */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-sub {
  max-width: 640px;
  color: var(--gray);
  margin: 16px 0 48px;
  font-size: 1.05rem;
}

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 3px 4px 3px 0;
}

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(13,13,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  transition: background var(--transition);
}
#nav.scrolled { background: rgba(13,13,26,0.98); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.nav-logo:hover { color: var(--gold2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--gray);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--white); background: var(--surface); }
.nav-links .nav-cta {
  background: var(--gold);
  color: #0d0d1a !important;
  margin-left: 8px;
  font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--gold2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 28px 60px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-template-rows: auto auto;
  gap: 40px;
  align-items: center;
}

.hero-content { grid-column: 1; }

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin: 20px 0 24px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  border: 2px solid var(--gold-dim);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.1);
  object-fit: cover;
}

.hero-location {
  grid-column: 1;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray2);
}

/* ── SERVICES ── */
#services {
  padding: 100px 0;
  background: var(--bg2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: rgba(201,168,76,0.35);
  background: var(--surface2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.service-icon { font-size: 2rem; margin-bottom: 16px; }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: auto;
}
.service-link:hover { color: var(--gold2); }

/* ── STORY ── */
#story {
  padding: 100px 0;
  background: var(--bg3);
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}

.story-text h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
}
.story-text p {
  color: var(--gray);
  margin-bottom: 18px;
  font-size: 0.98rem;
  line-height: 1.8;
}
.story-text strong { color: var(--white); }
.story-text .btn { margin-top: 12px; }

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: rgba(201,168,76,0.4); }

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ── ENTITIES ── */
#entities {
  padding: 100px 0;
  background: var(--bg2);
}

#entities h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.entities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.entity-card {
  background: var(--surface);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
}
.entity-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.entity-code {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.entity-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.entity-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 16px;
}
.entity-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}
.entity-link:hover { color: var(--gold2); }

/* ── CTA ── */
#cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bg3) 0%, #1a1232 100%);
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
#cta h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 16px;
}
#cta p {
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

/* ── FOOTER ── */
footer {
  background: #08080f;
  padding: 48px 0;
  border-top: 1px solid rgba(201,168,76,0.08);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.88rem;
  color: var(--gray);
  font-weight: 500;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 0.8rem; color: var(--gray2); }

/* ── CONTACT PAGE ── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 60px;
  background: var(--bg2);
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin: 12px 0 16px;
}
.page-hero p {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  padding: 80px 0;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 20px;
}
.contact-info p {
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.75;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.contact-item:first-of-type { border-top: 1px solid rgba(201,168,76,0.1); }
.contact-item-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-item-value {
  color: var(--text);
  font-size: 0.95rem;
}
.contact-item-value a { color: var(--text); }
.contact-item-value a:hover { color: var(--gold); }

/* FORM */
.contact-form-wrap {
  background: var(--surface);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 16px;
  padding: 40px;
}
.contact-form-wrap h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group select option { background: var(--bg2); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { width: 100%; margin-top: 8px; padding: 14px; font-size: 1rem; cursor: pointer; }

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-status.success {
  display: block;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
}
.form-status.error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* ── BOOKS PAGE ── */
.series-section {
  padding: 72px 0;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}
.series-section:last-of-type { border-bottom: none; }
.series-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.series-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
}
.series-desc {
  color: var(--gray);
  max-width: 680px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.volumes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.volume-card {
  background: var(--surface);
  border: 1px solid rgba(201,168,76,0.08);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  transition: all var(--transition);
}
.volume-card:hover { border-color: rgba(201,168,76,0.3); }
.volume-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray2);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.volume-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.volume-status {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 600;
}
.status-editing { background: rgba(251,191,36,0.15); color: #fbbf24; }
.status-soon { background: rgba(99,102,241,0.15); color: #a5b4fc; }
.status-planned { background: rgba(255,255,255,0.06); color: var(--gray2); }

.book-status-card {
  background: var(--surface);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 24px;
}
.book-status-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.book-status-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; }

.books-cta {
  padding: 72px 0;
  text-align: center;
  background: var(--bg3);
}
.books-cta h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
}
.books-cta p { color: var(--gray); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ── MEDIA PAGE ── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 80px 0;
}
.media-card {
  background: var(--surface);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
}
.media-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-3px);
}
.media-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.media-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.media-card p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}
.media-coming {
  display: inline-block;
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  color: var(--gray2);
  font-weight: 600;
}

.speaking-section {
  padding: 0 0 80px;
}
.speaking-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
}
.speaking-section p { color: var(--gray); margin-bottom: 28px; max-width: 600px; }

/* ── 404 ── */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.page-404 .four04 {
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.5;
}
.page-404 h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 16px;
}
.page-404 p { color: var(--gray); margin-bottom: 36px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services-grid,
  .entities-grid { grid-template-columns: repeat(2, 1fr); }
  #hero { grid-template-columns: 1fr; }
  .hero-image { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .hero-image img { max-width: 320px; }
  .story-inner { grid-template-columns: 1fr; gap: 48px; }
  .story-stats { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .volumes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .services-grid,
  .entities-grid,
  .media-grid { grid-template-columns: 1fr; }
  .volumes-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(13,13,26,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; padding: 14px 32px; }
  .nav-toggle { display: flex; }
  #hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-content h1 { font-size: 2.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
}
