/* ==========================================================
   AlAadiyaat AlHaditha – CLASSIC design
   Palette taken from the logo: crimson red, silver, navy accent
   ========================================================== */
:root {
  --red: #b3121b;
  --red-dark: #8c0d14;
  --red-soft: #fbeaeb;
  --navy: #1d3557;
  --ink: #1b1f24;
  --text: #3a4049;
  --muted: #6b7380;
  --line: #e4e6ea;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --silver: #c9ccd1;
  --green: #1f8a4c;
  --amber: #b7791f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; }
p { margin: 0 0 1em; }
.ic { flex-shrink: 0; vertical-align: middle; }
[dir="rtl"] .ic-arrow { transform: scaleX(-1); }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #dfe6ef; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar-info { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.topbar a { color: #dfe6ef; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { color: #fff; }
.open-pill { font-size: .75rem; font-weight: 700; padding: 1px 10px; border-radius: 99px; }
.open-pill.is-open { background: rgba(46,204,113,.18); color: #8ef0b5; }
.open-pill.is-closed { background: rgba(255,255,255,.1); color: #c4cad3; }
.lang-switch { font-weight: 700; border: 1px solid rgba(255,255,255,.25); padding: 2px 12px; border-radius: 99px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); min-width: 0; }
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--silver); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: .98rem; line-height: 1.3; font-weight: 800; }
.brand-text small { color: var(--red); font-weight: 700; font-size: .8rem; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a:not(.btn) { color: var(--text); font-weight: 600; padding: .5rem .7rem; border-radius: 8px; font-size: .95rem; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--red); background: var(--red-soft); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 700; border-radius: 10px; padding: .65rem 1.2rem; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--red); }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; padding: 64px 0 0; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 40%),
    linear-gradient(135deg, var(--red-dark) 0%, var(--red) 55%, #d42a32 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; background: rgba(255,255,255,.15); padding: 2px 14px; border-radius: 99px; font-weight: 700; font-size: .85rem; margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4.2vw, 3rem); margin-bottom: .4em; }
.lead { font-size: 1.15rem; opacity: .95; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-visual { display: flex; justify-content: center; }
.hero-logo { width: min(320px, 70vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 10px rgba(255,255,255,.12); }
.hero-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.hero-photo { width: 100%; max-width: 460px; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 6px rgba(255,255,255,.15); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 48px; border: 1px solid var(--line); }
.stat { padding: 1.4rem 1rem; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat strong { display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: 1.8rem; color: var(--red); font-weight: 800; line-height: 1.2; }
.stat strong .ic { color: #f5b301; fill: #f5b301; }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0 72px; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { position: relative; padding-bottom: .5rem; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red); border-radius: 4px; margin: .5rem auto 0; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.service-card { display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 12px 32px rgba(179,18,27,.12); }
.service-card p { color: var(--muted); flex: 1; }
.service-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; margin-bottom: 1rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.gallery figure { margin: 0; padding: 0; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption { padding: .75rem 1rem; font-weight: 600; color: var(--ink); font-size: .95rem; }

.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.about-text { font-size: 1.05rem; }
.why-card { border-top: 4px solid var(--red); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-weight: 600; color: var(--ink); }
.checklist li:last-child { border-bottom: 0; }
.checklist .ic { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; margin-top: 3px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .6rem .25rem; border-bottom: 1px solid var(--line); text-align: start; font-weight: 600; }
.hours td { text-align: end; color: var(--ink); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today { background: var(--red-soft); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--red); }
.text-closed { color: var(--muted); }
.badge { font-size: .7rem; background: var(--red); color: #fff; padding: 0 8px; border-radius: 99px; margin-inline-start: .35rem; vertical-align: middle; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list li > div { display: flex; flex-direction: column; }
.contact-list small { color: var(--muted); font-size: .8rem; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 700; }
.ci { width: 42px; height: 42px; border-radius: 10px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex-shrink: 0; }
.map-wrap { padding: 0; overflow: hidden; }
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; flex-wrap: wrap; }
.map-head h3 { margin: 0; }
.map-wrap iframe { display: block; width: 100%; height: 400px; border: 0; }

.cta-band { background: var(--navy); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .25rem; }
.cta-band p { margin: 0; opacity: .85; }

/* ---------- Inner pages ---------- */
.page-head { background: linear-gradient(135deg, var(--red-dark), var(--red)); color: #fff; padding: 48px 0 40px; text-align: center; }
.page-head h1 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: .25rem; }
.page-head p { opacity: .92; margin: 0 auto; max-width: 40em; }

.alert { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; border-radius: 10px; margin: 0 0 1rem; font-weight: 600; border: 1px solid; }
.alert-success { background: #e8f6ee; border-color: #b6e2c6; color: #146c3a; }
.alert-error { background: #fdecec; border-color: #f5c2c2; color: #9b1c1c; }
.alert-info { background: #eef3fa; border-color: #cbd8ea; color: var(--navy); }
main > .container:first-child .alert { margin-top: 1rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 .5rem; display: grid; gap: 1rem; min-width: 0; }
.form legend { font-weight: 800; color: var(--ink); font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; padding-bottom: .5rem; margin-bottom: .25rem; border-bottom: 2px solid var(--red-soft); width: 100%; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; color: var(--ink); font-size: .93rem; }
.form label em { color: var(--red); font-style: normal; }
.form label .muted { font-weight: 400; font-size: .8rem; }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea {
  font: inherit; font-weight: 400; width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px rgba(179,18,27,.12); }
.form textarea { resize: vertical; }
[dir="rtl"] input[dir="ltr"] { text-align: right; }
.has-error input, .has-error select, .has-error textarea { border-color: #d93636 !important; }
.field-error { color: #c62828; font-size: .82rem; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.tabs { display: flex; gap: .5rem; margin-bottom: 1rem; background: var(--bg-alt); padding: .35rem; border-radius: 12px; }
.tab { flex: 1; text-align: center; padding: .65rem; border-radius: 9px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: .4rem; }
.tab.active { background: #fff; color: var(--red); box-shadow: var(--shadow); }

.success-card { text-align: center; padding: 2.5rem 1.5rem; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; background: #e8f6ee; color: var(--green); display: grid; place-items: center; margin: 0 auto 1rem; }
.ref-box { display: inline-flex; flex-direction: column; background: var(--bg-alt); border: 2px dashed var(--silver); border-radius: 12px; padding: .75rem 2rem; margin: .5rem 0 1.5rem; }
.ref-box strong { font-size: 1.5rem; color: var(--red); letter-spacing: .05em; }

.track-result { margin-top: 1rem; }
.track-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 1.1rem; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.25rem; margin: 0; }
.dl dt { font-weight: 700; color: var(--muted); }
.dl dd { margin: 0; color: var(--ink); }
.status { display: inline-block; padding: 2px 12px; border-radius: 99px; font-size: .82rem; font-weight: 700; }
.status-new, .status-pending { background: #fff4e0; color: #9a5b00; }
.status-under_review, .status-confirmed { background: #e6efff; color: #1d4ed8; }
.status-in_progress { background: #efe7ff; color: #6d28d9; }
.status-resolved, .status-completed { background: #e8f6ee; color: #146c3a; }
.status-closed { background: #eceef1; color: #4b5563; }
.status-rejected, .status-cancelled { background: #fdecec; color: #9b1c1c; }

/* Star rating (inputs rendered 5→1, displayed reversed) */
.rating-list { display: grid; gap: .25rem; }
.rating-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rating-label { font-weight: 700; color: var(--ink); }
.rating-label em { color: var(--red); font-style: normal; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { cursor: pointer; color: #d5d8dd; transition: color .1s, transform .1s; display: block !important; }
.stars label .ic { fill: currentColor; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #f5b301; }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--red); border-radius: 4px; }
.recommend { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pill-choice { display: flex; gap: .5rem; }
.pill-choice label { flex-direction: row !important; }
.pill-choice input { position: absolute; opacity: 0; }
.pill-choice span { padding: .45rem 1.4rem; border: 1.5px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 700; }
.pill-choice input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.pill-choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(179,18,27,.2); }

/* ---------- Footer ---------- */
.site-footer { background: #121820; color: #b7bfca; padding-top: 56px; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2rem; }
.brand-footer { margin-bottom: 1rem; }
.brand-footer strong { color: #fff; }
.brand-footer img { width: 48px; height: 48px; }
.site-footer .muted { color: #8792a2; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links li { display: flex; gap: .5rem; align-items: flex-start; }
.footer-links .ic { margin-top: 5px; color: var(--red); }
.footer-links a { color: #b7bfca; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1rem 0; font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 60; }
.wa-float:hover { color: #fff; transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch; padding: .75rem 16px 1rem; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: .75rem; }
  .main-nav .btn { margin-top: .5rem; }
}
@media (max-width: 860px) {
  .hero-inner, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-logo { width: 180px; }
  .hero { padding-top: 40px; text-align: center; }
  .hero-actions { justify-content: center; }
  .lead { margin-inline: auto; }
}
@media (max-width: 600px) {
  .hide-sm { display: none !important; }
  .brand-text strong { font-size: .82rem; }
  .brand img { width: 46px; height: 46px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .card { padding: 1.1rem; }
  .map-wrap iframe { height: 300px; }
  .hero-actions .btn { width: 100%; }
  .dl { grid-template-columns: 1fr; }
  .dl dd { margin-bottom: .5rem; }
}
