/* Daneen AC & Washing Machine Service — Riyadh
   Palette: cooled petrol + water teal, amber signal for calls. */

:root {
  --ink:      #0B2530;
  --ink-soft: #2C4C58;
  --teal:     #0E7B7B;
  --teal-dk:  #095E5E;
  --frost:    #E7F1F2;
  --frost-dk: #C8DFE1;
  --paper:    #FFFFFF;
  --amber:    #D9821B;
  --amber-dk: #B36713;

  --measure: 68ch;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --pad-x: clamp(1.1rem, 5vw, 4rem);
  --shell: 1180px;

  --r-s: 4px;
  --r-m: 10px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

html[dir="ar"] body { line-height: 1.95; }

img { max-width: 100%; display: block; }

a { color: var(--teal-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-dk); }

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

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
html[dir="ar"] h1, html[dir="ar"] h2,
html[dir="ar"] h3, html[dir="ar"] h4 { letter-spacing: 0; line-height: 1.45; }

h1 { font-size: clamp(1.95rem, 1.3rem + 3vw, 3.35rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.15rem); }
h3 { font-size: clamp(1.14rem, 1.02rem + 0.6vw, 1.4rem); }

p { margin: 0 0 1.1em; max-width: var(--measure); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 100;
}
.skip:focus { inset-inline-start: 0; }

/* ---------- Header ---------- */

.top {
  background: var(--ink);
  color: #EAF3F4;
  font-size: 0.86rem;
}
.top .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
  padding-block: 0.5rem;
}
.top a { color: #EAF3F4; text-decoration: none; }
.top a:hover { color: var(--amber); text-decoration: underline; }
.top .spacer { margin-inline-start: auto; }

.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--frost-dk);
}
.head .shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand .mark {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: var(--r-s);
  background: linear-gradient(150deg, var(--teal) 0%, var(--ink) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand .name { font-weight: 700; line-height: 1.2; font-size: 1.02rem; }
.brand .kicker { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.2; }

.nav-toggle {
  margin-inline-start: auto;
  display: none;
  background: var(--frost);
  border: 1px solid var(--frost-dk);
  border-radius: var(--r-s);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

nav.main { margin-inline-start: auto; }
nav.main ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0; padding: 0;
}
nav.main a {
  display: block;
  padding: 0.45rem 0.72rem;
  border-radius: var(--r-s);
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  white-space: nowrap;
}
nav.main a:hover { background: var(--frost); color: var(--ink); }
nav.main a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--amber);
}

.lang-btn {
  border: 1px solid var(--frost-dk);
  background: var(--paper);
  border-radius: var(--r-s);
  padding: 0.42rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--ink);
  white-space: nowrap;
}
.lang-btn:hover { background: var(--frost); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none;
    order: 10;
    width: 100%;
    margin-inline-start: 0;
    border-top: 1px solid var(--frost-dk);
    padding-top: 0.5rem;
  }
  nav.main.open { display: block; }
  nav.main ul { flex-direction: column; align-items: stretch; gap: 0; }
  nav.main a { padding: 0.62rem 0.4rem; }
  .head .shell { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.72rem 1.35rem;
  border-radius: var(--r-s);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-call { background: var(--amber); color: #1B1105; }
.btn-call:hover { background: var(--amber-dk); color: #fff; }
.btn-wa { background: var(--teal); color: #fff; }
.btn-wa:hover { background: var(--teal-dk); color: #fff; }
.btn-line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--frost); color: var(--ink); }
.btn-on-dark { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-on-dark:hover { background: rgba(255,255,255,.12); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-block: 1.3rem; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(120% 100% at 100% 0%, #14495A 0%, transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #08313A 100%);
  color: #EAF3F4;
  padding-block: clamp(2.6rem, 6vw, 4.6rem) clamp(2rem, 5vw, 3.4rem);
}
.hero h1 { color: #fff; }
.hero p { color: #C7DDE0; font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.2rem); }
.hero .lead-wrap { max-width: 42rem; }
.hero .btn-row { margin-top: 1.6rem; }

/* the "what broke?" chooser — the one loud element on the page */
.chooser {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-m);
  overflow: hidden;
}
.chooser a {
  background: #0A2C36;
  color: #EAF3F4;
  text-decoration: none;
  padding: 1.25rem 1.2rem 1.35rem;
  display: block;
  transition: background .18s ease;
}
.chooser a:hover, .chooser a:focus-visible { background: var(--teal-dk); color: #fff; }
.chooser .t { display: block; font-weight: 600; font-size: 1.08rem; margin-bottom: 0.15rem; }
.chooser .d { display: block; font-size: 0.87rem; color: #A9C8CC; line-height: 1.55; }
.chooser a:hover .d { color: #DCF0F1; }

/* page header for interior pages */
.phead {
  background: var(--ink);
  color: #EAF3F4;
  padding-block: clamp(2rem, 4.5vw, 3.2rem);
}
.phead h1 { color: #fff; margin-bottom: 0.35rem; }
.phead p { color: #BCD6DA; max-width: 46rem; margin-bottom: 0; }
.crumb { font-size: 0.85rem; color: #8FB3B8; margin-bottom: 0.8rem; }
.crumb a { color: #8FB3B8; }
.crumb a:hover { color: var(--amber); }

/* ---------- Sections ---------- */

section { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
section.tint { background: var(--frost); }
section.dark { background: var(--ink); color: #D6E8EA; }
section.dark h2 { color: #fff; }

.head-2 { max-width: 46rem; margin-bottom: 1.8rem; }
.head-2 p { color: var(--ink-soft); margin-bottom: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.4rem, 4vw, 3rem);
}

/* service entries: a rule on the leading edge, not a floating card */
.svc {
  border-inline-start: 3px solid var(--teal);
  padding-inline-start: 1.1rem;
}
.svc h3 { margin-bottom: 0.35rem; }
.svc p { font-size: 0.96rem; color: var(--ink-soft); margin-bottom: 0.5rem; }
.svc a { font-weight: 600; text-decoration: none; }
.svc a:hover { text-decoration: underline; }

/* symptom -> what we do, the core of each service page */
table.fix {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.2rem 1.8rem;
  font-size: 0.96rem;
}
table.fix caption {
  text-align: start;
  font-weight: 600;
  padding-bottom: 0.6rem;
  color: var(--ink);
}
table.fix th, table.fix td {
  text-align: start;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--frost-dk);
  vertical-align: top;
}
table.fix thead th {
  background: var(--frost);
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 2px solid var(--frost-dk);
}
table.fix td:first-child { font-weight: 600; width: 38%; }
table.fix tbody tr:hover { background: #F7FBFB; }

@media (max-width: 620px) {
  table.fix, table.fix tbody, table.fix tr, table.fix td { display: block; width: 100%; }
  table.fix thead { display: none; }
  table.fix tr { border-bottom: 1px solid var(--frost-dk); padding-block: 0.55rem; }
  table.fix td { border: 0; padding: 0.18rem 0; }
  table.fix td:first-child { width: auto; color: var(--ink); }
  table.fix td:last-child { color: var(--ink-soft); font-size: 0.93rem; }
}

/* steps — a real sequence, so numbering is meaningful */
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
ol.steps li {
  counter-increment: s;
  position: relative;
  padding-inline-start: 3rem;
  padding-block: 0.55rem;
  margin-bottom: 0.5rem;
}
ol.steps li::before {
  content: counter(s);
  position: absolute;
  inset-inline-start: 0;
  top: 0.5rem;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600; font-size: 0.92rem;
}
ol.steps strong { display: block; }
ol.steps span { color: var(--ink-soft); font-size: 0.95rem; }
section.dark ol.steps span { color: #A9C8CC; }

ul.ticks { list-style: none; margin: 0 0 1.2rem; padding: 0; }
ul.ticks li {
  position: relative;
  padding-inline-start: 1.55rem;
  margin-bottom: 0.5rem;
}
ul.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--amber);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--frost-dk);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
section.tint .chips li { background: var(--paper); }
section.dark .chips li { background: transparent; border-color: rgba(255,255,255,.28); color: #C7DDE0; }

/* facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--frost-dk);
  border-block: 1px solid var(--frost-dk);
}
.facts div { background: var(--paper); padding: 1.15rem var(--gap); }
.facts b { display: block; font-size: 1.3rem; font-weight: 700; color: var(--teal-dk); }
.facts span { font-size: 0.9rem; color: var(--ink-soft); }

/* FAQ */
details.faq {
  border-bottom: 1px solid var(--frost-dk);
  padding-block: 0.85rem;
  max-width: var(--measure);
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before {
  content: "+";
  color: var(--teal);
  font-weight: 700;
  flex: 0 0 auto;
}
details.faq[open] summary::before { content: "\2212"; }
details.faq p { margin: 0.6rem 0 0; padding-inline-start: 1.4rem; color: var(--ink-soft); font-size: 0.97rem; }

/* CTA band */
.cta {
  background: linear-gradient(120deg, var(--teal-dk) 0%, var(--ink) 100%);
  color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: #C7DDE0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
dl.info { margin: 0; }
dl.info dt { font-weight: 600; font-size: 0.86rem; color: var(--ink-soft); margin-top: 1.1rem; }
dl.info dd { margin: 0.15rem 0 0; font-size: 1.02rem; }
dl.info dd a { text-decoration: none; }
dl.info dd a:hover { text-decoration: underline; }

.map-frame {
  border: 1px solid var(--frost-dk);
  border-radius: var(--r-m);
  overflow: hidden;
  min-height: 320px;
  background: var(--frost);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

form.enquiry label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%;
  font: inherit;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--frost-dk);
  border-radius: var(--r-s);
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 0.95rem;
}
form.enquiry textarea { min-height: 120px; resize: vertical; }
form.enquiry input:focus, form.enquiry select:focus, form.enquiry textarea:focus { border-color: var(--teal); }

/* footer */
footer.site {
  background: var(--ink);
  color: #B6D2D6;
  padding-block: clamp(2rem, 4vw, 3rem) 1.4rem;
  font-size: 0.94rem;
}
footer.site h3 { color: #fff; font-size: 1rem; margin-bottom: 0.7rem; }
footer.site a { color: #B6D2D6; text-decoration: none; }
footer.site a:hover { color: var(--amber); text-decoration: underline; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 0.35rem; }
footer.site .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
  padding-bottom: 1.6rem;
}
footer.site .legal {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.87rem;
  color: #8FB3B8;
}
footer.site .legal .spacer { margin-inline-start: auto; }

/* sticky mobile call bar */
.callbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.15);
}
.callbar a {
  flex: 1;
  text-align: center;
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.97rem;
}
.callbar .c { background: var(--amber); color: #1B1105; }
@media (max-width: 760px) {
  .callbar { display: flex; }
  body { padding-bottom: 3.4rem; }
}

[hidden] { display: none !important; }

/* nav call button must beat the generic nav link rules */
nav.main a.btn {
  padding: 0.5rem 1.05rem;
  font-weight: 600;
  font-size: 0.94rem;
  margin-inline-start: 0.4rem;
}
nav.main a.btn-call { background: var(--amber); color: #1B1105; }
nav.main a.btn-call:hover { background: var(--amber-dk); color: #fff; }
@media (max-width: 900px) {
  nav.main a.btn { margin-inline-start: 0; text-align: center; margin-block: 0.5rem; }
}

/* ---------- Services dropdown ---------- */

.has-sub { position: relative; display: flex; align-items: center; }
.has-sub > .sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-inline-start: -0.42rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: var(--r-s);
}
.has-sub > .sub-btn svg { width: 11px; height: 8px; transition: transform .15s ease; }
.has-sub > .sub-btn:hover { background: var(--frost); color: var(--ink); }
.has-sub.open > .sub-btn svg { transform: rotate(180deg); }

nav.main ul.sub {
  position: absolute;
  inset-block-start: calc(100% + 0.4rem);
  inset-inline-start: 0;
  z-index: 70;
  min-width: 16.5rem;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--frost-dk);
  border-radius: var(--r-m);
  box-shadow: 0 14px 34px rgba(11, 37, 48, .16);
  display: none;
}
nav.main .has-sub:hover > ul.sub,
nav.main .has-sub:focus-within > ul.sub,
nav.main .has-sub.open > ul.sub { display: block; }

nav.main .sub a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  font-size: 0.93rem;
  white-space: normal;
  border-radius: var(--r-s);
}
.sub .sub-all { border-top: 1px solid var(--frost-dk); margin-top: 0.3rem; padding-top: 0.3rem; }
.sub .sub-all a { font-weight: 600; color: var(--teal); }

@media (max-width: 900px) {
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  nav.main ul.sub {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-inline-start: 2px solid var(--frost-dk);
    border-radius: 0;
    margin-inline-start: 0.5rem;
    padding-block: 0;
  }
  nav.main .has-sub:hover > ul.sub,
  nav.main .has-sub:focus-within > ul.sub { display: none; }
  nav.main .has-sub.open > ul.sub { display: block; }
}

/* ---------- Pictures ---------- */

.svc-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 260;
  object-fit: cover;
  max-width: 340px;
  margin-bottom: 0.85rem;
  border-radius: var(--r-m);
  background: var(--frost);
}
.hero-collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.7rem;
  width: 100%;
  margin-block: 1.8rem 0.4rem;
}
.hero-collage img {
  display: block;
  width: 100%;
  height: clamp(200px, 26vw, 340px);
  object-fit: cover;
  border-radius: var(--r-m);
}

.hero-collage.two { grid-template-columns: 1fr 1fr; }

@media (max-width: 760px) {
  .hero-collage { grid-template-columns: 1fr 1fr; }
  .hero-collage img { height: clamp(150px, 34vw, 240px); }
  .hero-collage img:first-child { grid-column: 1 / span 2; height: clamp(180px, 46vw, 300px); }
  .hero-collage.two img:first-child { grid-column: auto; height: clamp(150px, 40vw, 260px); }
  .hero-collage.two img { height: clamp(150px, 40vw, 260px); }
}

/* page heads: text keeps a readable width, collage spans the full page */
.phead .shell > .crumb,
.phead .shell > h1,
.phead .shell > p { max-width: min(100%, 60ch); }

/* thumbnails inside the services dropdown */
.sub-thumb {
  flex: 0 0 auto;
  object-fit: cover;
  width: 54px;
  height: 36px;
  object-fit: cover;
  border-radius: 5px;
  background: var(--frost);
}
.sub .sub-all a { display: block; }

/* page-head collage (all pages except home) */
.phead .hero-collage { margin-block: 1.6rem 0.2rem; }
.phead .hero-collage img { border: 1px solid rgba(255, 255, 255, .12); }

/* small screens: stop the brand name pushing the page wider than the phone */
@media (max-width: 560px) {
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand > span:not(.mark) { min-width: 0; }
  .brand .kicker { display: none; }
  .brand .name { font-size: 0.95rem; }
}

/* enquiry form: honeypot + status message */
form.enquiry .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.form-status { margin-top: 0.9rem; padding: 0.75rem 0.9rem; border-radius: var(--r-s); font-size: 0.95rem; line-height: 1.6; }
.form-status.ok   { background: #E3F4EC; color: #145C3A; border: 1px solid #A9DCC2; }
.form-status.err  { background: #FCEBEA; color: #8A2320; border: 1px solid #F0B9B5; }
.form-status.wait { background: var(--frost); color: var(--ink); border: 1px solid var(--frost-dk); }
.form-status a { color: inherit; font-weight: 600; }
form.enquiry button[disabled] { opacity: .6; cursor: wait; }
