/* ===========================================================
   Al Noor Carpet & Curtains — interior-editorial design system
   Signature motif: the pointed Islamic arch (from the logo)
   used to frame rooms, echoing the showroom opposite Al Khalid
   Mosque on Naif Road.
   =========================================================== */

:root {
  --bg:        #F7F1E8;
  --surface:   #FBF7F0;
  --surface-2: #F0E7D8;
  --text:      #2A211B;
  --muted:     #756B60;
  --primary:   #8A6A4A;  /* camel brown */
  --primary-d: #6F543A;
  --secondary: #2F4A3C;  /* deep green   */
  --secondary-d:#243a2f;
  --accent:    #C77E4F;  /* terracotta   */
  --accent-d:  #b06b3e;
  --border:    #E2D5C4;
  --gold:      #C9A24B;
  --focus:     #2F4A3C;
  --ink-panel: #211a14;

  --ff-display: "Cormorant Garamond", Georgia, serif;
  --ff-body:    "Manrope", system-ui, -apple-system, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(18px, 5vw, 56px);
  --radius: 14px;

  --shadow-sm: 0 1px 2px rgba(42,33,27,.06), 0 4px 14px rgba(42,33,27,.06);
  --shadow-md: 0 8px 30px rgba(42,33,27,.12);
  --shadow-lg: 0 24px 60px rgba(42,33,27,.20);

  --header-h: 64px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--text);
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
}
.eyebrow.center::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
}

.tabnum { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- Arch motif (the signature device) ---------- */
.archclip { clip-path: url(#anArch); }

.arch {
  position: relative;
  isolation: isolate;
}
.arch > .arch-mat {
  position: absolute;
  inset: -7px;
  background: var(--primary);
  clip-path: url(#anArch);
  z-index: 0;
}
.arch.green > .arch-mat { background: var(--secondary); }
.arch.cream > .arch-mat { background: var(--surface); box-shadow: var(--shadow-md); }
.arch > .arch-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url(#anArch);
  background: var(--surface-2);
}
.arch > .arch-key {            /* the little finial keystone dot */
  position: absolute;
  z-index: 2;
  top: -2px; left: 50%;
  width: 11px; height: 11px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--secondary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--secondary-d); box-shadow: var(--shadow-md); }
.btn-accent  { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-d); box-shadow: var(--shadow-md); }
.btn-ghost   { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); background: rgba(138,106,74,.06); }
.btn-light   { background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.32); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Rating chip ---------- */
.ratingchip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 13.5px;
  font-weight: 600;
}
.ratingchip .stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.ratingchip b { font-weight: 800; }
.ratingchip .src { color: var(--muted); font-weight: 600; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section.tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 5.4vw, 50px); margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; margin: 14px 0 0; }

.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--text); }

/* ---------- Generic card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

hr.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

.kbd-note {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}

/* tiny seam / pleat texture used on deep panels */
.pleat {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255,255,255,.05) 0 2px,
    rgba(0,0,0,.05) 2px 11px,
    rgba(255,255,255,.04) 11px 13px,
    rgba(0,0,0,.06) 13px 22px);
}

/* lattice (carpet) hairline texture */
.lattice {
  background-color: var(--secondary);
  background-image:
    radial-gradient(circle at 50% 0, transparent 9px, rgba(255,255,255,.05) 9px 10px, transparent 10px),
    radial-gradient(circle at 0 50%, transparent 9px, rgba(255,255,255,.05) 9px 10px, transparent 10px);
  background-size: 28px 28px;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}
