/* Gulf Localise — maroon and white, mobile-first */

:root {
  --maroon: #8a1538;
  --maroon-hover: #6e102c;
  --maroon-deep: #3f0a1a;
  --cream: #f6f1ec;
  --paper: #fffdfa;
  --sand: #e8dfd4;
  --gold: #c4a46a;
  --ink: #1c1416;
  --muted: #5e5557;
  --line: #e6ddd6;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(28, 20, 22, 0.08);
  --radius: 14px;
  --header-h: 4.25rem;
  --max: 70rem;
  --gutter: 1.25rem;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body,
html[lang="ar"] { font-family: var(--font-ar); }

html[lang="ar"] body { line-height: 1.8; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--maroon-hover); }

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

.skip {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: -4rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  z-index: 1000;
  border-radius: 8px;
}
.skip:focus { top: 0.75rem; }

/* Language visibility. Default (no JS) shows English. */
.t-ar { display: none; }
html[lang="ar"] .t-ar { display: revert; }
html[lang="ar"] .t-en { display: none; }
html[lang="en"] .t-ar { display: none; }
html[lang="en"] .t-en { display: revert; }

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }

h1 { font-size: clamp(2rem, 5.4vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.15rem; }

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
}

.section { padding: 4.5rem 0; }
.section-head { margin-bottom: 2.25rem; max-width: 40rem; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.65rem;
}
html[lang="ar"] .kicker { letter-spacing: 0.04em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { color: inherit; }
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: var(--maroon-hover); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-on-light { background: var(--maroon); color: var(--white); }
.btn-on-light:hover { background: var(--maroon-hover); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}
.btn-outline:hover { background: var(--maroon); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 253, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 2.25rem; height: 2.25rem; flex-shrink: 0; display: block; }
.brand-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
html[lang="ar"] .brand-name { letter-spacing: 0; }

.nav {
  margin-inline-start: auto;
  display: none;
  align-items: center;
  gap: 0.2rem 1.15rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: var(--maroon); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-inline-start: auto;
}
.nav + .header-actions { margin-inline-start: 0.5rem; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  line-height: 1;
  min-width: 2.4rem;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--maroon);
  color: var(--white);
}
.lang-switch button:focus-visible { outline-offset: -2px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg { pointer-events: none; }
.menu-toggle .icon-close { display: none; }
body.nav-open .menu-toggle .icon-open { display: none; }
body.nav-open .menu-toggle .icon-close { display: block; }

.header-cta { display: none; }

@media (min-width: 880px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .header-actions { margin-inline-start: 0; }
  .header-cta { display: inline-flex; }
  .nav + .header-actions { margin-inline-start: 1rem; }
}

/* Mobile drawer */
.drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper);
  z-index: 40;
  padding: 1.25rem var(--gutter) 2rem;
  overflow: auto;
}
body.nav-open .drawer { display: block; }
.drawer nav { display: flex; flex-direction: column; gap: 0.25rem; }
.drawer a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: 1.25rem; width: 100%; }
@media (min-width: 880px) { .drawer { display: none !important; } }

/* Hero */
.hero {
  background: var(--maroon);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 3.75rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 18px,
    rgba(255,255,255,0.035) 18px 19px
  );
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 46rem; }
.hero .kicker { color: var(--gold); }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 38rem; margin: 0 0 1.5rem; }

.promise {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.2rem;
  margin: 0 0 1.6rem;
  border-inline-start: 4px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
html[lang="ar"] .promise { border-inline-start-width: 4px; }
.promise strong {
  display: block;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.45;
  font-weight: 600;
  color: var(--maroon-deep);
}
html[lang="ar"] .promise strong { line-height: 1.6; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Services */
.services { background: var(--paper); }
.service-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1020px) {
  .service-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.9rem;
  color: var(--maroon);
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0 0 1rem; color: var(--muted); font-size: 0.98rem; flex: 0 0 auto; }
.price-list { list-style: none; margin: auto 0 0; padding: 0.75rem 0 0; border-top: 1px solid var(--line); }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.95rem;
}
.price-list .label { color: var(--ink); }
.price-list .amount {
  font-weight: 600;
  color: var(--maroon);
  text-align: end;
  flex: 0 1 auto;
  max-width: 58%;
  line-height: 1.3;
}
.price-list .qar { white-space: nowrap; }
.price-list .usd {
  font-weight: 500;
  font-size: 0.82em;
  opacity: 0.82;
}
.card-note {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Recent work */
.work { background: var(--cream); }
.work-note {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 0 0 2rem;
}
.work-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
}

.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.work-card header {
  padding: 0.95rem 1.1rem 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}
.work-card h3 { font-size: 1.05rem; margin: 0; }
.work-meta { color: var(--muted); font-size: 0.85rem; }
.badge {
  margin-inline-start: auto;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--maroon);
  background: #f3e6ea;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  white-space: nowrap;
}
html[lang="ar"] .badge { letter-spacing: 0; text-transform: none; }

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  background: #d9d2cb;
}
.compare figure {
  margin: 0;
  position: relative;
  background: #ece7e1;
}
.compare img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.compare figcaption {
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  background: rgba(28, 20, 22, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
}
html[lang="ar"] .compare figcaption { letter-spacing: 0; text-transform: none; }
.compare .after-shot.t-ar,
.compare .after-shot.t-en { width: 100%; }
.work-issue {
  padding: 0.7rem 1.1rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* How it works */
.steps {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: 1fr 1fr 1fr; }
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}
.step h3 { font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { background: var(--cream); }
.faq-list { display: grid; gap: 0.65rem; max-width: 48rem; }
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 14px rgba(28, 20, 22, 0.04);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.95rem 1.15rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-inline-end: 2px solid var(--maroon);
  border-bottom: 2px solid var(--maroon);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.15s ease;
  margin-top: -0.25rem;
}
html[lang="ar"] .faq-list summary::after {
  border-inline-end: 0;
  border-inline-start: 2px solid var(--maroon);
}
.faq-list details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.15rem;
}
.faq-list details p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--muted);
}

/* Contact */
.contact-box {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .contact-box { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
.email-link {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--maroon);
  text-decoration: none;
  word-break: break-word;
}
.email-link:hover { text-decoration: underline; }
.contact-aside {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}
.contact-aside h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.contact-aside p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.soon {
  display: inline-block;
  margin-inline-start: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--maroon);
  background: #f3e6ea;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  vertical-align: middle;
}

/* Footer */
.site-footer {
  background: var(--maroon-deep);
  color: rgba(255,255,255,0.82);
  padding: 2rem 0 2.25rem;
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 0.65rem; color: var(--white); font-weight: 600; }
.footer-brand .brand-mark { width: 1.85rem; height: 1.85rem; }
.footer-meta a { white-space: nowrap; }
.site-footer a { color: #f0d9b5; }
.site-footer a:hover { color: var(--white); }
@media (max-width: 520px) {
  .footer-inner { align-items: flex-start; }
  html[dir="rtl"] .footer-inner { align-items: flex-end; }
}

/* Privacy page */
.page-hero {
  background: var(--maroon);
  color: var(--white);
  padding: 2.5rem 0 2.25rem;
}
.page-hero h1 { color: var(--white); }
.prose { max-width: 42rem; padding: 3rem 0 4.5rem; }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.prose p { color: var(--ink); }
.prose .muted { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 679px) {
  .compare { grid-template-columns: 1fr; }
  .compare figure + figure { border-top: 1px solid #d0c9c2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .faq-list summary::after { transition: none; }
}

.btn-light { background: var(--white); color: var(--maroon); }
.btn-light:hover { background: var(--cream); color: var(--maroon-hover); }

.work-card header > div { flex: 1; min-width: 0; }
.work-card .badge { margin-inline-start: 0; flex-shrink: 0; align-self: start; }
.nowrap { white-space: nowrap; }
