/* ═══════════════════════════════════════════════════════
   SHAMA KALAM SIDDIQUI — Global Stylesheet
   Cloudflare Pages · All pages share this file
═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400;1,600;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&display=swap');

/* ── TOKENS ── */
:root {
  --ink:        #0B0F1A;
  --ink2:       #0F1525;
  --ink3:       #141c2e;
  --ink4:       #060910;
  --gold:       #C8A45A;
  --gold-lt:    #DFBF7A;
  --gold-dk:    #9B7A35;
  --gold-glow:  rgba(200,164,90,0.10);
  --gold-rim:   rgba(200,164,90,0.22);
  --snow:       #F0EDE6;
  --snow-80:    rgba(240,237,230,0.80);
  --snow-60:    rgba(240,237,230,0.60);
  --snow-30:    rgba(240,237,230,0.30);
  --snow-10:    rgba(240,237,230,0.07);
  --seam:       rgba(240,237,230,0.07);
  --r:          3px;
  --max:        1160px;
  --ease:       cubic-bezier(.4,0,.2,1);
  --t:          0.32s;
  --display:    'Cormorant Garamond', Georgia, serif;
  --body:       'DM Sans', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--ink);
  color: var(--snow);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--gold-dk); }

/* ── NAV ── */
#nav {
  position: fixed; inset: 0 0 auto; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; padding: 0 52px;
  transition: background var(--t) var(--ease), border-bottom var(--t) var(--ease);
}
#nav.solid {
  background: rgba(11,15,26,0.95);
  border-bottom: 1px solid var(--seam);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-logo {
  font-family: var(--display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--snow); text-decoration: none;
  letter-spacing: 0.01em; white-space: nowrap;
}
.nav-logo sup { color: var(--gold); font-size: 0.52rem; vertical-align: super; letter-spacing: 0.04em; }
.nav-menu { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-menu a {
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--snow-60); text-decoration: none;
  transition: color var(--t); position: relative;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 100%;
  height: 1px; background: var(--gold);
  transition: right var(--t) var(--ease);
}
.nav-menu a:hover { color: var(--snow); }
.nav-menu a:hover::after, .nav-menu a.active::after { right: 0; }
.nav-menu a.active { color: var(--snow); }
.nav-pill {
  border: 1px solid var(--gold-rim) !important;
  color: var(--gold) !important;
  padding: 7px 18px; border-radius: 100px;
  transition: all var(--t) var(--ease) !important;
}
.nav-pill:hover { background: var(--gold) !important; color: var(--ink) !important; }
.nav-pill::after { display: none !important; }
.hbg { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; padding: 4px; }
.hbg span { width: 22px; height: 1.5px; background: var(--snow); display: block; transition: var(--t); }

/* ── FLOAT CTA ── */
.float-cta {
  position: fixed; bottom: 32px; right: 28px; z-index: 800;
  background: var(--gold); color: var(--ink);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  text-decoration: none; padding: 13px 22px;
  border-radius: 100px;
  box-shadow: 0 6px 30px rgba(200,164,90,0.38);
  transition: all var(--t) var(--ease);
  display: flex; align-items: center; gap: 7px;
}
.float-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 44px rgba(200,164,90,0.50); color: var(--ink); }
.float-cta svg { width: 13px; height: 13px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px 52px 72px;
  background:
    radial-gradient(ellipse 60% 60% at 60% 40%, rgba(200,164,90,0.06) 0%, transparent 65%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink2) 100%);
  border-bottom: 1px solid var(--seam);
  position: relative; overflow: hidden;
}
.page-hero-lines {
  position: absolute; inset: 0; opacity: 0.02;
  background-image: repeating-linear-gradient(-45deg, var(--gold) 0, var(--gold) 1px, transparent 1px, transparent 48px);
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; position: relative; z-index: 2; }

/* ── SECTION BASE ── */
section, .sec { padding: 88px 52px; }
.wrap { max-width: var(--max); margin: 0 auto; }

.sec-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.sec-tag::before { content: ''; width: 28px; height: 1px; background: var(--gold); }

.sec-h {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.01em; color: var(--snow);
}
.sec-h em { font-style: italic; color: var(--gold); }
.sec-sub { font-size: 0.95rem; color: var(--snow-60); max-width: 540px; margin-top: 14px; line-height: 1.85; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; padding: 14px 28px;
  border-radius: var(--r); border: none; cursor: pointer;
  transition: all var(--t) var(--ease);
}
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 4px 20px rgba(200,164,90,0.28); }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,164,90,0.40); color: var(--ink); }
.btn-border { background: transparent; border: 1px solid var(--gold-rim); color: var(--snow); }
.btn-border:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-dim { background: var(--snow-10); color: var(--snow-60); border: 1px solid var(--seam); }
.btn-dim:hover { background: rgba(240,237,230,0.12); color: var(--snow); }
.btn-sm { padding: 10px 20px; font-size: 0.7rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── BADGES / PILLS ── */
.badge {
  display: inline-block;
  background: var(--gold-glow); border: 1px solid var(--gold-rim);
  color: var(--gold); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 2px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 0.67rem; color: var(--snow-60);
  border: 1px solid var(--seam); padding: 4px 10px;
  border-radius: 100px; transition: all var(--t);
}
.tag:hover { border-color: var(--gold-rim); color: var(--gold); }

/* ── FORM ELEMENTS ── */
.f-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.f-group label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--snow-30); }
.f-group input,
.f-group select,
.f-group textarea {
  background: rgba(240,237,230,0.04);
  border: 1px solid var(--seam);
  border-radius: var(--r);
  padding: 12px 14px;
  color: var(--snow); font-family: var(--body); font-size: 0.88rem;
  outline: none; transition: border-color var(--t); width: 100%;
}
.f-group input::placeholder, .f-group textarea::placeholder { color: var(--snow-30); }
.f-group input:focus, .f-group select:focus, .f-group textarea:focus { border-color: var(--gold); }
.f-group select option { background: var(--ink2); color: var(--snow); }
.f-group textarea { resize: vertical; min-height: 100px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── RIBBON / LOGO BAR ── */
.ribbon {
  border-top: 1px solid var(--seam);
  border-bottom: 1px solid var(--seam);
  padding: 26px 52px;
}
.ribbon-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.ribbon-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--snow-30); white-space: nowrap; margin-right: 36px; flex-shrink: 0; }
.ribbon-items { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ribbon-item { font-family: var(--display); font-size: 0.86rem; font-weight: 600; color: var(--snow-30); letter-spacing: 0.03em; transition: color var(--t); }
.ribbon-item:hover { color: var(--gold); }
.ribbon-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-dk); flex-shrink: 0; }

/* ── BLOCKQUOTE / PULL QUOTE ── */
.quote-break {
  padding: 72px 52px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink2) 50%, var(--ink) 100%);
  border-top: 1px solid var(--seam); border-bottom: 1px solid var(--seam);
}
.quote-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.qmark { font-family: var(--display); font-size: 5.5rem; color: var(--gold); opacity: 0.2; line-height: 0.5; display: block; margin-bottom: 16px; }
blockquote { font-family: var(--display); font-size: clamp(1.3rem,2.4vw,1.8rem); font-style: italic; font-weight: 400; color: var(--snow); line-height: 1.5; margin-bottom: 22px; }
.q-attr { font-size: 0.7rem; color: var(--snow-30); letter-spacing: 0.09em; text-transform: uppercase; }
.q-attr strong { color: var(--gold-lt); }

/* ── FOOTER ── */
footer {
  background: var(--ink4);
  border-top: 1px solid var(--seam);
  padding: 60px 52px 36px;
}
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--seam);
}
.ft-brand { }
.ft-brand .nav-logo { display: inline-block; margin-bottom: 14px; }
.ft-brand p { font-size: 0.76rem; color: var(--snow-30); line-height: 1.85; margin-bottom: 18px; }
.ft-socials { display: flex; gap: 9px; }
.ft-social {
  width: 34px; height: 34px; border: 1px solid var(--seam); border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  color: var(--snow-30); font-size: 0.68rem; font-weight: 700;
  text-decoration: none; transition: all var(--t);
}
.ft-social:hover { border-color: var(--gold-rim); color: var(--gold); }
.ft-col h5 { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.ft-links { list-style: none; }
.ft-links li { margin-bottom: 9px; }
.ft-links a { font-size: 0.76rem; color: var(--snow-30); text-decoration: none; transition: color var(--t); }
.ft-links a:hover { color: var(--snow-60); }
.footer-bottom {
  max-width: var(--max); margin: 28px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.ft-tagline { font-family: var(--display); font-style: italic; font-size: 0.88rem; color: var(--snow-30); }
.ft-copy { font-size: 0.66rem; color: var(--snow-30); }

/* ── POPUP ── */
.overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.overlay.on { opacity: 1; pointer-events: all; }
.popup {
  background: var(--ink2); border: 1px solid var(--gold-rim);
  border-radius: 6px; padding: 42px 38px;
  max-width: 450px; width: 90%; position: relative;
  transform: translateY(18px); transition: transform 0.4s var(--ease);
}
.overlay.on .popup { transform: translateY(0); }
.popup::before {
  content: ''; position: absolute; top: 0; left: 16px; right: 16px;
  height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.popup-x {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; background: none; border: none;
  cursor: pointer; color: var(--snow-30); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: color var(--t);
}
.popup-x:hover { color: var(--snow); }
.popup h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 700; color: var(--snow); margin-bottom: 10px; line-height: 1.2; }
.popup p { font-size: 0.82rem; color: var(--snow-60); line-height: 1.75; margin-bottom: 20px; }
.popup .badge { margin-bottom: 14px; display: inline-block; }
.popup-fine { font-size: 0.62rem; color: var(--snow-30); text-align: center; margin-top: 10px; }

/* ── SCROLL ANIMATION ── */
.anim { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.anim.show { opacity: 1; transform: translateY(0); }
.anim-d1 { transition-delay: 0.08s; }
.anim-d2 { transition-delay: 0.16s; }
.anim-d3 { transition-delay: 0.24s; }

/* ── RESPONSIVE ── */
@media (max-width: 1060px) {
  #nav { padding: 0 28px; }
  section, .sec { padding: 68px 28px; }
  .page-hero { padding: 120px 28px 60px; }
  .ribbon { padding: 22px 28px; }
  .quote-break { padding: 56px 28px; }
  footer { padding: 48px 28px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .f-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-menu { display: none; }
  .hbg { display: flex; }
  footer { padding: 40px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .float-cta { right: 16px; bottom: 22px; padding: 11px 18px; font-size: 0.65rem; }
}
