/* ===========================================================
   Garage Al Eiman — stylesheet
   Palette: warm paper, graphite ink, Qatari maroon accent
=========================================================== */

:root{
  --paper: #faf8f3;
  --paper-2: #f2ede4;
  --paper-3: #ece5d8;
  --line: rgba(31,35,43,0.10);
  --line-strong: rgba(31,35,43,0.20);
  --ink: #23262d;
  --ink-soft: #3a3e46;
  --muted: #6d7078;
  --muted-2: #8d9097;
  --maroon: #8a1538;
  --maroon-deep: #6c0f2a;
  --maroon-soft: rgba(138,21,56,0.08);
  --brass: #a9833f;
  --maxw: 1180px;
  --radius: 2px;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family:'Work Sans', Arial, sans-serif;
  font-size: 16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering: optimizeLegibility;
}

body.lang-ar{ font-family:'Tajawal', Arial, sans-serif; }

h1,h2,h3,.brand-text{
  font-family:'Fraunces', Georgia, serif;
  font-weight:500;
  margin:0;
  letter-spacing:-0.01em;
}
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar .brand-text{
  font-family:'Amiri', Georgia, serif;
  letter-spacing:0;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

/* faint paper-grain texture, barely visible */
.noise{
  position:fixed; inset:0; pointer-events:none; z-index:1;
  opacity:0.025; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.wrap, .section > *, .site-header .bar{ max-width:var(--maxw); margin-inline:auto; }

/* ---------------- Header ---------------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,248,243,0.88);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom:1px solid var(--line);
}
.site-header::before{
  content:""; display:block; height:3px;
  background:linear-gradient(to right, var(--maroon), var(--brass));
}
.bar{
  display:flex; align-items:center; gap:28px;
  padding:16px 28px;
}
.brand{ display:flex; align-items:center; gap:10px; margin-inline-end:auto; }
.brand-mark{ width:30px; height:30px; color:var(--maroon); flex:none; }
.brand-mark svg{ width:100%; height:100%; fill:currentColor; }
.brand-mark svg circle[fill="var(--ink)"]{ fill:var(--paper); }
.brand-text{ font-size:1.12rem; color:var(--ink); white-space:nowrap; }
.brand-text b{ color:var(--maroon); font-weight:600; }

.main-nav{ display:flex; gap:30px; }
.main-nav a{
  position:relative; font-size:0.92rem; color:var(--muted);
  padding-block:4px; transition:color .2s ease;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0;
  height:1px; background:var(--maroon);
  transition:right .25s cubic-bezier(.4,0,.2,1);
}
.main-nav a:hover, .main-nav a:focus-visible{ color:var(--ink); }
.main-nav a:hover::after, .main-nav a:focus-visible::after{ right:0; }

.header-actions{ display:flex; align-items:center; gap:16px; }

.lang-pill{
  position:relative; display:flex; border:1px solid var(--line-strong);
  border-radius:999px; padding:3px; width:92px;
}
.lang-pill button{
  position:relative; z-index:2; flex:1; background:none; border:none;
  color:var(--muted); font-family:inherit; font-size:0.78rem; font-weight:600;
  padding:6px 0; cursor:pointer; letter-spacing:0.02em;
  transition:color .2s ease;
}
.lang-pill button.active{ color:#fff; }
.pill-thumb{
  position:absolute; top:3px; bottom:3px; inset-inline-start:3px;
  width:calc(50% - 3px); border-radius:999px; background:var(--maroon);
  transition:transform .25s cubic-bezier(.4,0,.2,1);
  z-index:1;
}
.lang-pill[data-active="ar"] .pill-thumb{ transform:translateX(100%); }
html[dir="rtl"] .lang-pill[data-active="ar"] .pill-thumb{ transform:translateX(-100%); }

.btn{
  display:inline-flex; align-items:center; gap:9px;
  padding:11px 22px; font-size:0.9rem; font-weight:600; font-family:'Work Sans',inherit;
  border-radius: var(--radius); border:1px solid transparent; cursor:pointer;
  white-space:nowrap; transition:all .2s ease;
}
.btn-primary{ background:var(--maroon); color:#fdfaf5; }
.btn-primary:hover{ background:var(--maroon-deep); transform:translateY(-1px); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--line-strong); }
.btn-outline:hover{ border-color:var(--maroon); color:var(--maroon); }
.btn-ghost{ color:var(--muted); font-size:0.88rem; padding:8px 4px; }
.btn-ghost:hover{ color:var(--maroon); }
@media (max-width:980px){ .main-nav, .call-btn{ display:none; } }

@media (max-width:980px){
  .main-nav{
    display:none; position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0; background:var(--paper);
    border-bottom:1px solid var(--line); padding:6px 28px;
  }
  .main-nav.open{ display:flex; }
  .main-nav a{ padding:14px 0; border-bottom:1px solid var(--line); }
  .main-nav a::after{ display:none; }
  .call-btn{ display:none; }
}

.menu-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:32px; height:32px; background:none; border:none; cursor:pointer; padding:0;
}
@media (max-width:980px){ .menu-toggle{ display:flex; } }
.menu-toggle span{
  display:block; height:1.5px; background:var(--ink); border-radius:1px;
  transition:transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero{ padding:76px 28px 60px; border-bottom:1px solid var(--line); overflow:clip; background:var(--paper); }
.hero-grid{
  max-width:var(--maxw); margin-inline:auto;
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:48px; align-items:center;
}
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }

.hero-copy h1{
  font-size:clamp(2.6rem, 5vw, 4rem); line-height:1.08; color:var(--ink); font-weight:500;
}
.hero-copy h1 .accent{ font-style:italic; }
.lead{
  margin:22px 0 32px; color:var(--muted); font-size:1.12rem; max-width:48ch; line-height:1.65;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:38px; }

.hero-facts{
  display:flex; gap:40px; flex-wrap:wrap;
  margin:0; padding-top:24px; border-top:1px solid var(--line);
}
.hero-facts dt{ font-size:0.76rem; color:var(--muted-2); letter-spacing:0.04em; margin-bottom:5px; }
.hero-facts dd{ margin:0; font-size:1.02rem; color:var(--ink); font-weight:600; font-family:'Work Sans',inherit; }

.hero-photo{
  position:relative; margin:0; border:1px solid var(--line-strong);
  background:var(--paper-3);
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; aspect-ratio:4/3; }
.hero-photo::before{
  content:""; position:absolute; top:-8px; inset-inline-start:-8px;
  width:34px; height:34px; border-top:2px solid var(--maroon); border-inline-start:2px solid var(--maroon);
}
.hero-photo::after{
  content:""; position:absolute; bottom:-8px; inset-inline-end:-8px;
  width:34px; height:34px; border-bottom:2px solid var(--maroon); border-inline-end:2px solid var(--maroon);
}
.hero-photo figcaption{
  position:absolute; inset-inline-start:0; inset-block-end:0;
  padding:10px 16px; font-size:0.82rem; color:#fdfaf5;
  background:linear-gradient(to top, rgba(20,16,12,0.72), rgba(20,16,12,0));
}
@media (max-width:900px){ .hero-photo{ max-width:420px; margin-inline:auto; } }

/* ---------------- Sections ---------------- */
.section{ padding:92px 28px; border-bottom:1px solid var(--line); background:var(--paper); }
.section-dark{ background:var(--paper-2); }
.no-border{ border-bottom:none; }
.section-head{
  max-width:var(--maxw); margin:0 auto 46px; max-width:60ch;
}
.section-head h2{ font-size:clamp(1.8rem, 3vw, 2.5rem); margin-bottom:14px; font-weight:500; }
.section-head p{ color:var(--muted); font-size:1.04rem; margin:0; line-height:1.65; }

/* ---------------- Process steps ---------------- */
.steps{
  max-width:var(--maxw); margin:0 auto; padding:0; list-style:none;
  display:grid; grid-template-columns:repeat(3,1fr); gap:0;
  border-top:1px solid var(--line);
}
@media (max-width:820px){ .steps{ grid-template-columns:1fr; } }
.steps li{
  padding:30px 32px 30px 0; border-bottom:1px solid var(--line);
}
.steps li:not(:last-child){ border-inline-end:1px solid var(--line); }
@media (max-width:820px){ .steps li:not(:last-child){ border-inline-end:none; } .steps li{ padding-inline-end:0; } }
.step-no{
  display:block; font-family:'Fraunces',Georgia,serif; font-size:1.6rem;
  color:var(--maroon); margin-bottom:10px; opacity:0.75;
}
.steps h3{ font-size:1.12rem; font-weight:500; margin-bottom:8px; }
.steps p{ margin:0; color:var(--muted); font-size:0.94rem; line-height:1.55; }

/* ---------------- Services ---------------- */
.service-list{
  max-width:var(--maxw); margin-inline:auto;
  display:grid; grid-template-columns:repeat(2,1fr);
  border-top:1px solid var(--line);
}
@media (max-width:760px){ .service-list{ grid-template-columns:1fr; } }
.service-item{
  display:flex; align-items:flex-start; gap:18px;
  padding:28px 6px; border-bottom:1px solid var(--line);
}
.service-list .service-item:nth-child(odd){ padding-inline-end:36px; border-inline-end:1px solid var(--line); }
@media (max-width:760px){ .service-list .service-item:nth-child(odd){ border-inline-end:none; padding-inline-end:6px; } }
.service-icon{
  flex:none; width:44px; height:44px; border:1px solid var(--line-strong);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--maroon); background:var(--paper); transition:border-color .2s ease, background .2s ease;
}
.service-item:hover .service-icon{ border-color:var(--maroon); background:var(--maroon-soft); }
.service-icon svg{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.5; }
.service-copy h3{ font-size:1.1rem; font-weight:500; margin-bottom:5px; font-family:'Fraunces',Georgia,serif; }
body.lang-ar .service-copy h3{ font-family:'Amiri',Georgia,serif; }
.service-copy span{ font-size:0.88rem; color:var(--muted-2); }

/* ---------------- Gallery ---------------- */
.gallery{
  max-width:var(--maxw); margin-inline:auto;
  display:grid; grid-template-columns:repeat(4, 1fr); grid-auto-rows:170px; gap:10px;
}
@media (max-width:900px){ .gallery{ grid-template-columns:repeat(2,1fr); grid-auto-rows:150px; } }
@media (max-width:520px){ .gallery{ grid-template-columns:1fr; grid-auto-rows:220px; } }

.tile{
  position:relative; overflow:hidden; border:1px solid var(--line);
  grid-column:span 1; grid-row:span 1; background:var(--paper-3);
}
.tile.big{ grid-column:span 2; grid-row:span 2; }
@media (max-width:520px){ .tile.big{ grid-column:span 1; grid-row:span 1; } }

.tile img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .6s cubic-bezier(.2,.7,.2,1), filter .4s ease;
  filter:saturate(0.96);
}
.tile:hover img{ transform:scale(1.06); filter:saturate(1.05); }
.tile .tag{
  position:absolute; inset-inline-start:0; inset-block-end:0; inset-inline-end:0;
  padding:14px 16px 12px;
  background:linear-gradient(to top, rgba(20,16,12,0.78), rgba(20,16,12,0));
  transform:translateY(8px); opacity:0.92;
  transition:transform .35s ease, opacity .35s ease;
}
.tile:hover .tag{ transform:translateY(0); opacity:1; }
.tile .tag b{
  display:block; font-size:0.68rem; letter-spacing:0.06em; text-transform:uppercase;
  color:#e8c589; margin-bottom:2px; font-weight:700;
}
.tile .tag span.cap{ font-size:0.86rem; color:#fdfaf5; }

/* ---------------- Location ---------------- */
.location-grid{
  max-width:var(--maxw); margin-inline:auto;
  display:grid; grid-template-columns:1.1fr 0.9fr; gap:44px; align-items:center;
}
@media (max-width:820px){ .location-grid{ grid-template-columns:1fr; } }
.address-card{
  border:1px solid var(--line-strong); padding:34px; margin:0; background:var(--paper);
}
.address-card dt{ font-size:0.76rem; letter-spacing:0.04em; color:var(--muted-2); margin-top:20px; }
.address-card dt:first-child{ margin-top:0; }
.address-card dd{ margin:5px 0 0; font-size:1.08rem; color:var(--ink); }
.map-link{ margin-top:26px; }

.compass-wrap{ display:flex; justify-content:center; }
.compass-wrap svg{ width:100%; max-width:260px; height:auto; }
.compass-wrap .ring{ fill:none; stroke:var(--line-strong); stroke-width:1; }
.compass-wrap .ring.faint{ stroke:var(--line); }
.compass-wrap .ticks line{ stroke:var(--muted-2); stroke-width:1; }
.compass-wrap .n-label{ fill:var(--muted-2); font-size:11px; font-family:'Fraunces',Georgia,serif; }
.compass-wrap .needle{ fill:var(--maroon); opacity:0.9; }
.compass-wrap .dot{ fill:var(--ink); }
.compass-wrap .coord{ fill:var(--muted); font-size:10px; font-family:'Work Sans',Arial,sans-serif; }

/* ---------------- Contact ---------------- */
.contact-grid{
  max-width:var(--maxw); margin-inline:auto;
  display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line-strong);
  background:var(--paper);
}
@media (max-width:900px){ .contact-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{
  padding:30px 24px; border-inline-end:1px solid var(--line-strong);
  transition:background .2s ease;
}
.contact-grid .contact-card:last-child{ border-inline-end:none; }
@media (max-width:900px){
  .contact-card:nth-child(2n){ border-inline-end:none; }
  .contact-card{ border-bottom:1px solid var(--line-strong); }
  .contact-grid .contact-card:nth-last-child(-n+2){ border-bottom:none; }
}
@media (max-width:560px){
  .contact-card{ border-inline-end:none !important; }
  .contact-grid .contact-card:last-child{ border-bottom:none; }
}
.contact-card:hover{ background:var(--maroon-soft); }
.contact-card .label{ display:block; font-size:0.74rem; letter-spacing:0.04em; color:var(--muted-2); margin-bottom:10px; }
.contact-card .number{
  display:block; font-family:'Fraunces',Georgia,serif; font-size:1.35rem; font-weight:500; color:var(--ink);
}
.contact-card .number.email{ font-size:1.02rem; word-break:break-word; }
body.lang-ar .contact-card .number{ font-family:'Amiri',Georgia,serif; }
.contact-card:hover .number{ color:var(--maroon); }
.contact-card .sub{ display:block; margin-top:6px; font-size:0.86rem; color:var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer{
  display:flex; flex-wrap:wrap; justify-content:center; gap:8px;
  padding:28px; text-align:center; font-size:0.82rem; color:var(--muted-2);
  background:var(--paper); border-top:1px solid var(--line);
}
.site-footer .dot{ opacity:0.5; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .tile img, .tile .tag, .main-nav a::after, .pill-thumb{ transition:none; }
}