/* ============================================================
   Golden Shelves — GLOBAL CSS
   Goes in: the CSS box of the "Global" block (IR Code Studio).
   Loads on every site page: tokens, base reset, shared components.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --gs-orange: #F15623;        /* brand orange (logo) */
  --gs-orange-btn: #D4430F;    /* button fill — AA contrast with white text */
  --gs-orange-btn-h: #B9390C;
  --gs-orange-ink: #C93E0E;    /* small orange text on light backgrounds */
  --gs-charcoal: #434345;      /* brand charcoal (logo) */
  --gs-ink: #1A1A1C;
  --gs-ink-2: #232326;
  --gs-text: #2B2B2E;
  --gs-muted: #5C5C60;
  --gs-muted-light: #B5B5B8;
  --gs-line: #E4E2DE;
  --gs-surface: #F7F5F2;
  --gs-white: #FFFFFF;
  --gs-footer: #111113;
  --gs-whatsapp: #25D366;
  --gs-danger: #B42318;
  --gs-success: #067647;

  --gs-font: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gs-radius: 6px;
  --gs-radius-lg: 12px;
  --gs-header-h: 72px;
  --gs-container: 1200px;
  --gs-gutter: 20px;
  --gs-shadow: 0 1px 2px rgba(26, 26, 28, .06), 0 8px 24px rgba(26, 26, 28, .06);
  --gs-shadow-lg: 0 2px 4px rgba(26, 26, 28, .06), 0 18px 40px rgba(26, 26, 28, .12);
}
@media (min-width: 640px)  { :root { --gs-gutter: 32px; } }
@media (min-width: 1024px) { :root { --gs-header-h: 84px; } }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--gs-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gs-text);
  background: var(--gs-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
*, *::before, *::after { box-sizing: border-box; }

:where(body) :where(h1, h2, h3, h4, p, figure, address, blockquote) { margin: 0; padding: 0; }
:where(body) :where(ul, ol)[class] { margin: 0; padding: 0; list-style: none; }
:where(body) :where(img, svg, video) { display: block; max-width: 100%; height: auto; }
:where(body) a { color: inherit; text-decoration: none; }
:where(body) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(body) :where(h1, h2, h3, h4) { line-height: 1.2; letter-spacing: -0.01em; color: inherit; }
:where(body) address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--gs-orange);
  outline-offset: 3px;
  border-radius: 4px;
}
[id] { scroll-margin-top: calc(var(--gs-header-h) + 16px); }

/* ---------- Helpers ---------- */
.gs-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gs-skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--gs-ink);
  color: var(--gs-white) !important;
  border-radius: var(--gs-radius);
  font-weight: 700;
}
.gs-skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.gs-container {
  width: 100%;
  max-width: calc(var(--gs-container) + var(--gs-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gs-gutter);
}

.gs-section { padding-block: 72px; }
.gs-section--alt { background: var(--gs-surface); }
.gs-section--dark { background: var(--gs-ink); color: var(--gs-white); }

.gs-section__head { max-width: 720px; margin-bottom: 40px; }
.gs-section__head--center { margin-inline: auto; text-align: center; }
.gs-section__head--center .gs-eyebrow { justify-content: center; }
.gs-section__intro { margin-top: 14px; color: var(--gs-muted); font-size: 1.0625rem; }
.gs-section--dark .gs-section__intro { color: var(--gs-muted-light); }

/* ---------- Typography ---------- */
.gs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gs-orange-ink);
}
.gs-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--gs-orange);
  flex: none;
}
.gs-eyebrow--light { color: var(--gs-orange); }

.gs-title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.625rem);
  font-weight: 800;
  color: var(--gs-ink);
}
.gs-title--light,
.gs-section--dark .gs-title { color: var(--gs-white); }

.gs-lead { font-size: 1.125rem; color: var(--gs-text); }

/* ---------- Buttons ---------- */
.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--gs-radius);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.gs-btn:hover { transform: translateY(-1px); }
.gs-btn:active { transform: translateY(0); }

.gs-btn--primary { background: var(--gs-orange-btn); color: var(--gs-white) !important; }
.gs-btn--primary:hover { background: var(--gs-orange-btn-h); box-shadow: 0 8px 20px rgba(212, 67, 15, .28); }

.gs-btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--gs-white) !important; }
.gs-btn--ghost:hover { border-color: var(--gs-white); background: rgba(255, 255, 255, .08); }

.gs-btn--dark { background: var(--gs-ink); color: var(--gs-white) !important; }
.gs-btn--dark:hover { background: var(--gs-charcoal); }

.gs-btn--light { background: var(--gs-white); color: var(--gs-ink) !important; }
.gs-btn--light:hover { background: var(--gs-ink); color: var(--gs-white) !important; }

.gs-btn--outline { border-color: var(--gs-ink); color: var(--gs-ink) !important; }
.gs-btn--outline:hover { background: var(--gs-ink); color: var(--gs-white) !important; }

.gs-btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.gs-btn--block { width: 100%; }
.gs-btn__icon { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* ---------- Inner page hero (About, Services, Contact ...) ---------- */
.gs-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 64px 56px;
  background: var(--gs-ink);
  color: var(--gs-white);
}
.gs-page-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}
.gs-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 90% 10%, rgba(241, 86, 35, .22), transparent 70%),
    linear-gradient(180deg, rgba(26, 26, 28, .6) 0%, rgba(26, 26, 28, .92) 100%);
}
.gs-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.gs-page-hero__inner > * { max-width: 760px; }
.gs-page-hero__title {
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.gs-page-hero__title span { color: var(--gs-orange); }
.gs-page-hero__text {
  margin-top: 16px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .82);
}
.gs-page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Breadcrumb */
.gs-breadcrumb { margin-bottom: 18px; font-size: .875rem; font-weight: 600; }
.gs-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gs-breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--gs-muted-light); }
.gs-breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .35); }
.gs-breadcrumb a { color: var(--gs-white); }
.gs-breadcrumb a:hover { color: var(--gs-orange); }
.gs-breadcrumb [aria-current="page"] { color: var(--gs-orange); }

/* ---------- Floating WhatsApp (HTML lives in the Footer block) ---------- */
.gs-wa-float {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gs-whatsapp);
  color: var(--gs-white) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  transition: transform .2s, box-shadow .2s;
}
.gs-wa-float:hover { transform: scale(1.06); box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
.gs-wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Reveal on scroll ----------
   Hidden from the first paint only when JS is on; the Global JS reveals it.
   Don't put .gs-reveal on anything in the first screen (hero). */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .gs-reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }
  .gs-reveal { transition: opacity .6s ease, transform .6s ease; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 1024px) {
  .gs-section { padding-block: 104px; }
  .gs-section__head { margin-bottom: 56px; }
  .gs-page-hero { padding-block: 104px 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}