/* Mr Cleaner — style.css
   Palette taken from the brand's teal identity. Edit tokens here only. */
:root {
  --teal-900: #0E4F4A;   /* deep teal: headings, footer */
  --teal: #2E9C92;       /* brand teal: buttons, clean cushions */
  --teal-600: #237F77;   /* hover / pressed */
  --mist: #EAF5F3;       /* clean surface */
  --ink: #12312E;        /* body text */
  --muted: #4E6966;      /* secondary text */
  --white: #FFFFFF;
  --dust: #CBBFA9;       /* “before” fabric */
  --dust-dark: #A99B83;
  --saffron: #F4B740;    /* price chips only */
  --line: #CFE3E0;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 28px;
  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  font-weight: 400;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0; color: var(--teal-900); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--teal-600); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--teal-900); color: var(--white); padding: 8px 14px; border-radius: var(--radius-s); z-index: 100; }
.skip:focus { top: 8px; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-600); }
.btn-outline { border-color: var(--teal-900); color: var(--teal-900); background: transparent; }
.btn-outline:hover { background: var(--teal-900); color: var(--white); }
.btn-ghost { color: var(--teal-900); padding: 0 12px; min-height: 42px; }
.btn-ghost:hover { background: var(--mist); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-logo { align-self: center; border-radius: 50%; }
.brand-name { font-weight: 700; font-size: 1.25rem; color: var(--teal-900); letter-spacing: .01em; }
.brand-tag { font-size: .875rem; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .975rem; }
.nav a:hover { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle { font: 600 .9rem var(--font); background: var(--mist); color: var(--teal-900); border: 0; border-radius: 999px; min-width: 44px; min-height: 40px; cursor: pointer; }
.lang-toggle:hover { background: var(--line); }
.phone-text { direction: ltr; unicode-bidi: isolate; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; background: var(--mist); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-flag { display: inline-flex; gap: 8px; align-items: center; font-size: .925rem; font-weight: 500; color: var(--teal-900); background: var(--white); border: 1px solid var(--line); padding: 4px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { max-width: 17ch; text-wrap: balance; }
.hero-sub { margin-top: 18px; font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; justify-content: start; }
.hero-facts li { display: grid; padding-inline-start: 14px; border-inline-start: 3px solid var(--teal); }
.hero-facts strong { color: var(--teal-900); font-weight: 600; }
.hero-facts span { font-size: .9rem; color: var(--muted); }

/* ---------- Calculator (the signature element) ---------- */
.calc {
  background: var(--white); border-radius: var(--radius-l); padding: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(14, 79, 74, .35);
}
.calc-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.calc-head h2 { font-size: 1.5rem; }
.calc-rate { color: var(--muted); font-size: .95rem; }
.rate-chip { background: var(--saffron); color: var(--ink); border-radius: 999px; padding: 2px 12px; font-weight: 600; }
.sofa-stage {
  margin: 22px 0 18px; min-height: 170px; border-radius: var(--radius-m);
  background: linear-gradient(180deg, var(--mist) 0 72%, #DCEDEA 72% 100%);
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px 16px; padding: 18px 12px;
}
.sofa { height: auto; flex: none; max-width: 100%; }
.sofa .frame { fill: var(--teal-900); }
.sofa .leg { fill: var(--ink); }
.sofa .cush-base { fill: var(--dust); }
.sofa .cush-clean { fill: var(--teal); transform-box: fill-box; transform-origin: right center; }
[dir="ltr"] .sofa .cush-clean { transform-origin: left center; }
.sofa .cush-shine { fill: rgba(255,255,255,.28); }
.sofa .cush-new .cush-clean { animation: wipe .7s cubic-bezier(.6,0,.2,1) .15s both; }
@keyframes wipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .sofa .cush-new .cush-clean { animation: none; } }

.calc-controls { display: flex; align-items: center; justify-content: center; gap: 22px; }
.step-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--teal-900);
  background: var(--white); color: var(--teal-900); font: 500 1.6rem/1 var(--font); cursor: pointer;
}
.step-btn:hover { background: var(--teal-900); color: var(--white); }
.step-btn:disabled { opacity: .35; cursor: not-allowed; background: var(--white); color: var(--teal-900); }
.seat-count { min-width: 120px; text-align: center; font-size: 1.1rem; color: var(--muted); }
.seat-count b { font-size: 2.2rem; color: var(--teal-900); font-weight: 700; display: block; line-height: 1.1; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); margin-top: 18px; padding-top: 16px; margin-bottom: 18px; color: var(--muted); }
.calc-total strong { font-size: 1.9rem; color: var(--teal-900); font-weight: 700; }
.calc-note { font-size: .9rem; color: var(--muted); margin: -8px 0 14px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head p { margin-top: 10px; color: var(--muted); }

/* Services: ruled list, not cards */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.service { display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.service:nth-child(-n+2) { border-top: 1px solid var(--line); }
.s-ico { width: 44px; height: 44px; fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); font-size: .95rem; }
.price { white-space: nowrap; font-size: .95rem; color: var(--ink); background: var(--saffron); border-radius: 999px; padding: 4px 12px; font-weight: 500; }
.price b { font-weight: 700; }
.price.quote { background: transparent; color: var(--teal-600); border: 1px solid var(--line); }

/* How */
.how { background: var(--teal-900); color: var(--white); }
.how h2, .how h3 { color: var(--white); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: none; }
.steps li { position: relative; padding-top: 20px; border-top: 2px solid rgba(255,255,255,.25); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 700; margin-bottom: 14px; }
.steps p { color: rgba(255,255,255,.78); margin-top: 6px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-m); background: var(--mist); }
.text-link { display: inline-block; margin-top: 20px; font-weight: 600; }

/* Areas */
.areas { background: var(--mist); }
.areas-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.areas-row p { margin-top: 10px; color: var(--muted); }
.area-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 500; color: var(--teal-900); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 600; color: var(--teal-900); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 65ch; }

/* Booking */
.book-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.book-copy p { margin-top: 12px; color: var(--muted); }
.book-copy .privacy { font-size: .9rem; padding: 12px 14px; background: var(--mist); border-radius: var(--radius-s); }
.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.book-form label { display: grid; gap: 6px; font-size: .925rem; font-weight: 500; color: var(--teal-900); }
.book-form .full { grid-column: 1 / -1; }
.book-form input, .book-form select, .book-form textarea {
  font: 400 1rem var(--font); color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; min-height: 50px; width: 100%;
}
.book-form textarea { resize: vertical; }
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(46,156,146,.2); }
.form-error { color: #A12A1E; font-size: .925rem; grid-column: 1 / -1; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 44px 0 110px; }
.site-footer .brand-name { color: var(--white); }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copy { font-size: .875rem; width: 100%; }

/* Mobile bar */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .book-grid, .areas-row { grid-template-columns: 1fr; gap: 36px; }
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .service-list { grid-template-columns: 1fr; }
  .service:nth-child(2) { border-top: 0; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .section { padding: 64px 0; }
  .hero { padding: 32px 0 48px; }
  .brand-tag, .phone-text { display: none; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
  .hero-facts li { padding-inline-start: 8px; }
  .hero-facts strong { font-size: .875rem; }
  .hero-facts span { font-size: .75rem; line-height: 1.4; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-ctas .btn-outline { display: none; } /* الاتصال موجود في الشريط الثابت */
  .hero-sub { font-size: 1.05rem; }
  .calc { padding: 20px; }
  .service { grid-template-columns: 40px 1fr; }
  .service .price { grid-column: 2; justify-self: start; }
  .s-ico { width: 36px; height: 36px; }
  .book-form { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
  }
  .mobile-bar a { display: grid; place-items: center; min-height: 48px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--teal-900); color: var(--teal-900); }
  .mobile-bar a.wa { background: var(--teal); border-color: var(--teal); color: var(--white); }
}
