/* =============================================================
   The Nuqat Club — design system
   Premium travel-rewards brand. Midnight navy + gold.
   No build step; plain CSS with custom properties.
   ============================================================= */

:root {
  /* Brand palette */
  --navy-900: #0a1c33;
  --navy-800: #0e2646;
  --navy-700: #143156;
  --navy-600: #1d4272;
  --gold-500: #c9a227;
  --gold-400: #d9b64a;
  --gold-300: #e7cd7e;
  --cream:    #f7f4ec;
  --cream-200:#efe9db;
  --ink:      #14181f;
  --ink-soft: #46505f;
  --line:     #e4ded0;
  --white:    #ffffff;

  /* Semantic */
  --bg:        var(--cream);
  --surface:   var(--white);
  --text:      var(--ink);
  --text-soft: var(--ink-soft);
  --brand:     var(--gold-500);
  --brand-ink: var(--navy-900);

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --wrap: 1120px;
  --wrap-narrow: 720px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 48px -24px rgba(10, 28, 51, 0.45);
  --shadow-sm: 0 8px 24px -16px rgba(10, 28, 51, 0.4);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration-color: rgba(29,66,114,.35); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--brand-ink); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: var(--wrap-narrow); }
.eyebrow { font-family: var(--sans); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: var(--gold-500); margin: 0 0 .8em; }
.lead { font-size: 1.22rem; color: var(--text-soft); }
.center { text-align: center; }
.muted { color: var(--text-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  padding: .8em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { color: var(--navy-900); box-shadow: 0 12px 30px -14px rgba(201,162,39,.7); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-outline { border-color: var(--navy-600); color: var(--navy-700); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,28,51,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6em; text-decoration: none; }
.brand svg, .brand img { height: 34px; width: auto; display: block; }
.site-footer .brand img { height: 30px; }
.hero-logo { height: clamp(72px, 12vw, 104px); width: auto; margin-bottom: 1.3rem;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); }
.brand .brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--white); letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .98rem; font-weight: 500; }
.nav-links a:hover { color: var(--white); }
.nav-links .btn { padding: .55em 1.1em; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; padding: .2em; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: .5rem 22px 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links .btn { margin-top: .8rem; justify-content: center; }
}

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(201,162,39,.22), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(29,66,114,.55), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #eaf0f8;
}
.hero-inner { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: rgba(234,240,248,.85); max-width: 52ch; }
.hero .arabic { font-size: 1.1rem; color: var(--gold-300); letter-spacing: .04em; margin-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-trust { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; color: rgba(234,240,248,.7); font-size: .92rem; }
.hero-trust b { color: var(--gold-300); font-family: var(--serif); font-size: 1.3rem; display: block; }

/* ---- Sections ---- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--cream-200); }
.section.navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: #eaf0f8; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---- Grid & cards ---- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.card .icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); color: var(--navy-900); font-size: 1.3rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--text-soft); font-size: .98rem; }

/* ---- Post cards ---- */
.post-list { display: grid; gap: 1.2rem; }
.post-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.6rem; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.post-card .meta { display: flex; gap: .7rem; align-items: center; font-size: .82rem; color: var(--text-soft); margin-bottom: .5rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy-700); background: var(--cream-200); border: 1px solid var(--line); padding: .25em .7em; border-radius: 999px; }
.post-card h3 { font-size: 1.35rem; color: var(--brand-ink); margin-bottom: .3em; }
.post-card p { margin: 0; color: var(--text-soft); font-size: .98rem; }
.post-card .readmore { display: inline-block; margin-top: .8rem; color: var(--gold-500); font-weight: 600; font-size: .92rem; }

/* ---- Article / prose ---- */
.article { padding: clamp(2.2rem, 5vw, 3.5rem) 0 4rem; }
.article-head { margin-bottom: 2rem; }
.article-head .meta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; color: var(--text-soft); font-size: .9rem; margin-top: 1rem; }
.prose { font-size: 1.12rem; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote { margin: 1.6em 0; padding: .4em 1.2em; border-left: 4px solid var(--gold-400);
  background: var(--cream-200); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--navy-800); font-style: italic; }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .98rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7em .9em; text-align: left; }
.prose th { background: var(--cream-200); font-family: var(--sans); }
.prose a { color: var(--navy-700); font-weight: 500; }
.callout { background: linear-gradient(180deg, #fff, var(--cream)); border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.8em 0; }
.callout strong { color: var(--navy-800); }

/* ---- Newsletter band ---- */
.newsletter {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(201,162,39,.25), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #eaf0f8; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem);
  box-shadow: var(--shadow); text-align: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(234,240,248,.82); max-width: 48ch; margin-left: auto; margin-right: auto; }
.newsletter .embed-wrap { max-width: 520px; margin: 1.6rem auto 0; }
.subscribe-form { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.subscribe-form input[type=email] {
  flex: 1 1 260px; min-width: 0; padding: .85em 1.1em; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1rem; font-family: var(--sans);
}
.subscribe-form input::placeholder { color: rgba(234,240,248,.6); }
.subscribe-form input:focus { outline: none; border-color: var(--gold-400); background: rgba(255,255,255,.14); }
.form-note { font-size: .82rem; color: rgba(234,240,248,.6); margin-top: .9rem; }

/* ---- Newsletter embed card ---- */
.embed-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem; max-width: 540px; margin: 1.8rem auto 0; min-height: 150px; }
.embed-card iframe { display: block; width: 100%; border: 0; border-radius: calc(var(--radius) - 5px); background: #fff; }

/* ---- Disclosure inline ---- */
.disclosure-inline { font-size: .86rem; color: var(--text-soft); background: var(--cream-200);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 0 0 1.6rem; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-900); color: rgba(234,240,248,.72); padding: 3rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.6rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .9rem; }
.site-footer a { color: rgba(234,240,248,.72); text-decoration: none; display: block; padding: .28rem 0; font-size: .95rem; }
.site-footer a:hover { color: var(--gold-300); }
.footer-brand p { font-size: .95rem; max-width: 34ch; }
.footer-social { display: flex; gap: .8rem; margin-top: 1rem; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15); padding: 0; }
.footer-social a:hover { border-color: var(--gold-400); background: rgba(201,162,39,.12); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.2rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .85rem; }

/* ---- Breadcrumb ---- */
.crumb { font-size: .88rem; color: var(--text-soft); margin-bottom: 1rem; }
.crumb a { color: var(--navy-600); text-decoration: none; }

/* ---- Utilities ---- */
.stack > * + * { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
