/* ============================================================
   خصمك — GCC Coupon Codes
   Design tokens
   ------------------------------------------------------------
   --ink        #1F2A24  deep pine ink (text)
   --sand       #FBF7EF  warm paper (background)
   --palm       #0E6B5C  gulf palm green (primary / trust)
   --palm-dark  #0A5347  hover state
   --saffron    #E8A13D  saffron accent (codes & highlights)
   --line       #E4DCCB  hairline sand
   ============================================================ */

:root {
  --ink: #1f2a24;
  --ink-soft: #4d5a53;
  --sand: #fbf7ef;
  --card: #ffffff;
  --palm: #0e6b5c;
  --palm-dark: #0a5347;
  --palm-tint: #e8f2ef;
  --saffron: #e8a13d;
  --saffron-tint: #fdf3e2;
  --line: #e4dccb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 42, 36, 0.08);
  --font: "IBM Plex Sans Arabic", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

a { color: var(--palm); }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo .dot { color: var(--saffron); }

.main-nav { display: flex; gap: 22px; }

.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover { color: var(--palm); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; text-align: center; }

.hero .eyebrow {
  display: inline-block;
  background: var(--palm-tint);
  color: var(--palm);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero h1 em {
  font-style: normal;
  color: var(--palm);
}

.hero p {
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---------- Coupon ticket cards ---------- */
.coupons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  padding: 30px 0 70px;
}

.ticket {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ticket-top { padding: 26px 26px 20px; flex: 1; }

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.ticket h2, .ticket h3 { font-size: 1.2rem; font-weight: 700; }

.ticket .cat {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.ticket .desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

/* perforation between ticket body and stub */
.perforation {
  position: relative;
  border-top: 2px dashed var(--line);
}

.perforation::before,
.perforation::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sand);
}

.perforation::before { right: -11px; }
.perforation::after { left: -11px; }

.ticket-stub {
  padding: 18px 26px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.code-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--saffron-tint);
  border: 1.5px dashed var(--saffron);
  border-radius: 10px;
  padding: 10px 16px;
}

.code {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: var(--ink);
  direction: ltr;
}

.copy-btn {
  background: var(--palm);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-btn:hover { background: var(--palm-dark); }

.copy-btn.copied { background: var(--saffron); color: var(--ink); }

.store-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-inline-start: auto;
}

.store-link:hover { text-decoration: underline; }

/* brand colors */
.mark-alhome { background: #8c5a3c; }
.mark-ikea { background: #0058a3; }
.mark-nice { background: #c2427e; }
.mark-cardial { background: #2f6db5; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }

.section.alt { background: var(--card); border-block: 1px solid var(--line); }

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--palm);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.steps li strong { display: block; margin-bottom: 6px; }
.steps li span { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::after { content: "+"; color: var(--palm); font-size: 1.3rem; }

.faq details[open] summary::after { content: "−"; }

.faq details p { color: var(--ink-soft); padding-top: 10px; font-size: 0.96rem; }

/* ---------- Brand page hero ---------- */
.brand-hero { padding: 56px 0 30px; text-align: center; }

.brand-hero .brand-mark { width: 72px; height: 72px; font-size: 1.6rem; margin: 0 auto 18px; }

.brand-hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 10px; }

.brand-hero p { color: var(--ink-soft); max-width: 560px; margin: 0 auto; }

.single-ticket { max-width: 480px; margin: 30px auto 60px; }

.terms-note {
  max-width: 720px;
  margin: 0 auto;
  background: var(--saffron-tint);
  border-inline-start: 4px solid var(--saffron);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfd8d3;
  padding: 40px 0 30px;
  margin-top: 40px;
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.site-footer a { color: #fff; }

.disclosure {
  font-size: 0.82rem;
  color: #9fb0a8;
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  /* Stack the logo above a compact, horizontally scrollable brand nav
     so mobile visitors keep access to every brand page. CSS-only —
     no JS toggle, to stay within the strict Content-Security-Policy. */
  .site-header .container {
    flex-direction: column;
    height: auto;
    gap: 8px;
    padding-block: 10px;
  }
  .main-nav {
    gap: 18px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { white-space: nowrap; }
  .ticket-stub { justify-content: center; }
  .store-link { margin-inline-start: 0; }
}
