/* Razan United Company — تصليح غسالات وطباخات الكويت */
:root {
  --navy: #0f2a4a;
  --navy-2: #173a63;
  --blue: #1d6fd8;
  --accent: #ff7a1a;
  --accent-dark: #e5630a;
  --wa: #25d366;
  --wa-dark: #1da851;
  --ink: #1b2533;
  --muted: #5b6878;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 42, 74, .08);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.4; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 16px; }
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; color: var(--accent-dark); font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.skip { position: absolute; right: -9999px; }
.skip:focus { right: 16px; top: 16px; background: #fff; padding: 8px 14px; z-index: 999; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s; text-decoration: none !important;
  font-family: inherit; line-height: 1.3;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-call { background: var(--accent); color: #fff; }
.btn-call:hover { background: var(--accent-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Top bar + header */
.topbar { background: var(--navy); color: #cfdbea; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; text-decoration: none !important; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand span { white-space: nowrap; display: flex; flex-direction: column; line-height: 1.2; }
.brand small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-soft); color: var(--blue); text-decoration: none; }
.header-cta { display: flex; gap: 8px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav { position: absolute; top: 100%; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #1f4f86 100%); color: #fff; padding: 56px 0 64px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.15rem; color: #d7e3f3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.trust { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; color: #e6eef8; }
.trust li { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.trust svg { width: 22px; height: 22px; color: #6ee7a8; flex: none; margin-top: 4px; }
.hero-art { max-width: 380px; margin-inline: auto; width: 100%; }
.page-hero { padding: 44px 0 48px; }
.page-hero .container { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .trust { grid-template-columns: 1fr; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: .9rem; color: #b9c9de; margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "‹"; margin-inline-end: 6px; }
.breadcrumbs a { color: #fff; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 52px; height: 52px; border-radius: 12px; background: #fff1e6; color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 14px; }
.card .icon svg { width: 28px; height: 28px; }
a.card { color: inherit; display: block; transition: .2s; }
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: #c9d6e6; }
.more { font-weight: 700; color: var(--blue); }

/* Split content */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-inline-start: 30px; }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 20px; height: 20px; border-radius: 50%;
  background: #e7f8ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Prose (long SEO text) */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top; }
.prose th { background: var(--bg-soft); color: var(--navy); }
.note { background: #fff8e6; border-inline-start: 4px solid #f5b400; padding: 14px 18px; border-radius: 8px; margin: 0 0 1.4em; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 1.6em; }
.toc strong { color: var(--navy); }
.toc ol { margin: .5em 0 0; }

/* Brands */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.brand-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px;
  color: var(--ink); text-align: center; min-height: 118px; transition: .2s;
}
.brand-tile:hover { text-decoration: none; border-color: var(--blue); box-shadow: var(--shadow); }
.brand-tile img { max-height: 46px; width: auto; max-width: 120px; object-fit: contain; }
.brand-tile span { font-size: .88rem; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .92rem; }
.chips a { color: var(--ink); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; inset-inline-start: 24px;
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800;
  display: grid; place-items: center; top: 20px;
}
.step.card { padding-top: 76px; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 16px; color: #33404f; }
.faq .answer p:last-child { margin: 0; }

/* Areas */
.areas { columns: 4 180px; gap: 20px; list-style: none; padding: 0; }
.areas li { break-inside: avoid; margin-bottom: 18px; }
.areas strong { color: var(--navy); display: block; }
.areas span { color: var(--muted); font-size: .95rem; }

/* Articles */
.post-card { display: flex; flex-direction: column; }
.post-card .tag { font-size: .8rem; font-weight: 700; color: var(--accent-dark); }
.post-card h3 { font-size: 1.1rem; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.2em; }
.article-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--accent) 0%, #ff9a3d 100%); color: #fff; border-radius: 20px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; color: #fff5ec; }
.cta-band .btn-call { background: var(--navy); }
.cta-band .btn-call:hover { background: #09192d; }
.inline-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4em 0; }

/* Contact form */
.form { display: grid; gap: 14px; }
.form label { font-weight: 700; color: var(--navy); display: grid; gap: 6px; }
.form input, .form select, .form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid #cfd8e3; border-radius: 10px; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }

/* Footer */
.footer { background: var(--navy); color: #c7d4e5; padding: 52px 0 24px; margin-top: 0; font-size: .95rem; }
.footer h3 { color: #fff; font-size: 1.05rem; }
.footer a { color: #e6eef8; }
.footer ul { list-style: none; padding: 0; }
.footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer .grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }
.disclaimer { font-size: .85rem; color: #9fb0c6; }

/* Floating WhatsApp + mobile bar */
.wa-float {
  position: fixed; left: 18px; bottom: 18px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: pulse 2.4s infinite;
}
.wa-float svg { width: 34px; height: 34px; }
.wa-float:hover { background: var(--wa-dark); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } html { scroll-behavior: auto; } }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; inset-inline: 0; z-index: 80; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; color: #fff; font-weight: 800; text-decoration: none; }
  .mobile-bar svg { width: 20px; height: 20px; }
  .mobile-bar .call { background: var(--accent); }
  .mobile-bar .wa { background: var(--wa); }
  .wa-float { bottom: 80px; width: 54px; height: 54px; }
}
@media (max-width: 640px) { .topbar { display: none; } }

/* دليل الأعطال */
.fault { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 22px; background: #fff; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.fault h3 { margin-top: 0; }
.fault h4 { font-size: 1rem; color: var(--navy); margin: 0 0 .4em; }
.fault-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .fault-cols { grid-template-columns: 1fr; } }
.fault .call { background: #fff1e6; border-radius: 8px; padding: 10px 14px; margin: 0; }
.fault .more-link { margin: 10px 0 0; font-size: .95rem; }
.fault-index { columns: 2 220px; margin: .5em 0 1em; }
.fault-index li { break-inside: avoid; }
.card .fault-index { columns: 1; }
