/* One-page workshop theme. Mobile-first, no external fonts or libraries.
   Brand colours can be set in site.txt (brand_color / accent_color); no need to edit this file. */
:root {
  --brand: #1f3a5f;        /* main colour (header, headings) */
  --accent: #e07a1f;       /* highlight colour */
  --wa: #1fa855;           /* WhatsApp green */
  --text: #1d232b;
  --muted: #5a6573;
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --radius: 12px;
  --max: 1100px;
  --font: "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); background: var(--bg-alt); }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.3; color: var(--brand); margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }

.skip-link { position: absolute; inset-inline-start: -999px; }
.skip-link:focus { inset-inline-start: 8px; top: 8px; background: #fff; padding: 8px; z-index: 100; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-lg { min-height: 52px; padding: 10px 24px; font-size: 1.05rem; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--brand); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { color: #fff; font-weight: 800; font-size: 1.05rem; line-height: 1.3; text-decoration: none; }
.header-actions { display: flex; gap: 8px; }
.header-actions .btn { min-height: 40px; padding: 6px 14px; font-size: .95rem; }

/* Hero */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--bg-alt), #fff); }
.hero-inner { display: grid; gap: 28px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 8px; }
.lead-en { color: var(--muted); margin: 0 0 20px; font-size: .95rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li { background: #fff; border: 1px solid #dde3ea; border-radius: 999px; padding: 4px 14px; font-size: .95rem; }

/* Services */
.cards { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid #e3e8ee; border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding-top: 6px; }
.more-work { margin-top: 20px; text-align: center; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; background: var(--bg-alt); border-radius: var(--radius); padding: 18px 18px 18px 18px; display: grid; gap: 4px; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; }
.steps span { color: var(--muted); }

/* FAQ */
details { background: #fff; border: 1px solid #e3e8ee; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Contact */
.contact { display: grid; gap: 28px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list span { font-size: .85rem; color: var(--muted); }
.contact-list a { font-weight: 700; font-size: 1.1rem; text-decoration: none; justify-self: start; }

/* Footer + floating WhatsApp */
.site-footer { background: var(--brand); color: #fff; padding: 24px 0 96px; text-align: center; font-size: .95rem; }
.site-footer p { margin: 0; }
.wa-float { position: fixed; bottom: 18px; inset-inline-end: 18px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 60; }

/* Layouts adapt to how much content exists (classes set by build.py) */
.cards-1, .gallery-1 { max-width: 640px; }
.gallery-1 { grid-template-columns: 1fr; }
.hero:not(.hero-has-img) .hero-text { max-width: 760px; }

/* Larger screens */
@media (min-width: 720px) {
  .cards-2, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-3, .gallery-4 { grid-template-columns: repeat(3, 1fr); }
  .steps-2 { grid-template-columns: repeat(2, 1fr); }
  .steps-3 { grid-template-columns: repeat(3, 1fr); }
  .contact-has-img { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero-has-img .hero-inner { grid-template-columns: 1.1fr 1fr; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .gallery-4 { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
