/* =====================================================================
   Cairo Home Plumbing — Hydraulic Elegance Design System
   Nile Depth #0A2342 · Refresh Teal #00A896 · Architectural White
   ===================================================================== */

:root {
  --nile: #0A2342;
  --nile-soft: #14365c;
  --teal: #00A896;
  --teal-dark: #008f80;
  --teal-tint: #e6f7f4;
  --white: #ffffff;
  --slate: #F4F7F9;
  --gray-line: #E9ECEF;
  --text: #0A2342;
  --muted: #5b6b7d;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 35, 66, 0.04);
  --shadow-md: 0 10px 30px rgba(10, 35, 66, 0.08);
  --shadow-lg: 0 18px 48px rgba(10, 35, 66, 0.12);
  --maxw: 1200px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--nile); }

h1, h2, h3, h4 { color: var(--nile); line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--muted); }
p.lead { font-size: 1.125rem; color: var(--nile-soft); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--slate { background: var(--slate); }
.section--nile { background: var(--nile); color: #dfe7f1; }
.section--nile h2, .section--nile h3 { color: #fff; }
.section--nile p { color: #c4d2e2; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.section-intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }

/* conduit line */
.rule { height: 1px; background: var(--gray-line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(0, 168, 150, 0.28); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 168, 150, 0.34); }
.btn--ghost { background: transparent; color: var(--nile); border-color: var(--gray-line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-3px); }
.btn--light { background: #fff; color: var(--nile); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--nile); }
.btn--block { width: 100%; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--nile); font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--nile); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--nile), var(--teal));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--nile); font-weight: 600; font-size: 0.95rem;
  padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover, .nav a.active { background: var(--slate); color: var(--teal-dark); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-call { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.header-call span { font-size: 0.7rem; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.header-call a { font-size: 1.05rem; font-weight: 800; color: var(--nile); }
.header-call a:hover { color: var(--teal-dark); }

.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--gray-line);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--nile);
  border-radius: 2px; transition: transform .3s, opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); }
.nav-toggle.open span::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero p.lead { margin-bottom: 30px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.9rem; color: var(--muted); }
.hero-trust div { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--teal); width: 18px; height: 18px; flex-shrink: 0; }
.hero-media { position: relative; }
.hero-media .img-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media .img-wrap img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.hero-card {
  position: absolute; left: -18px; bottom: -22px;
  background: #fff; border-radius: var(--radius-sm); padding: 16px 20px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; max-width: 260px;
}
.hero-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex-shrink: 0; box-shadow: 0 0 0 4px var(--teal-tint); }
.hero-card strong { display: block; color: var(--nile); font-size: 0.95rem; }
.hero-card span { font-size: 0.8rem; color: var(--muted); }

/* ---------- Service cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius);
  padding: 30px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: var(--shadow-md); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--teal-tint);
  display: grid; place-items: center; margin-bottom: 20px; transition: background .3s;
}
.card:hover .card-icon { background: var(--teal); }
.card-icon svg { width: 28px; height: 28px; color: var(--teal-dark); transition: color .3s, transform .4s ease; }
.card:hover .card-icon svg { color: #fff; transform: scale(1.08); }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%; background: var(--nile); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(10,35,66,0.22);
}
.step h3 { margin-bottom: 8px; }
.step p { margin-bottom: 0; }
.steps-line { display: none; }

/* ---------- Split / home visit ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.split .img-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split .img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split ul.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.split ul.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--nile-soft); font-weight: 500; }
.split ul.checklist svg { color: var(--teal); width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }

/* ---------- Why choose ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 26px; background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius); }
.feature .card-icon { margin-bottom: 16px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { font-size: 0.93rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
details.faq {
  background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius-sm);
  padding: 4px 24px; transition: border-color .25s, box-shadow .25s;
}
details.faq[open] { border-color: var(--teal); box-shadow: var(--shadow-sm); }
details.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--nile);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .chev { flex-shrink: 0; color: var(--teal); transition: transform .3s; }
details.faq[open] summary .chev { transform: rotate(45deg); }
details.faq p { padding: 0 0 20px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact-info h2 { margin-bottom: 14px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--gray-line); }
.info-row:last-child { border-bottom: 0; }
.info-row .card-icon { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 0; }
.info-row .card-icon svg { width: 22px; height: 22px; }
.info-row .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; margin-bottom: 3px; }
.info-row .value { color: var(--nile); font-weight: 700; font-size: 1.05rem; }
.info-row a.value:hover { color: var(--teal-dark); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-line); box-shadow: var(--shadow-sm); margin-top: 24px; }
.map-wrap iframe { width: 100%; height: 260px; border: 0; display: block; }

.form-card { background: #fff; border: 1px solid var(--gray-line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); box-shadow: var(--shadow-sm); }
.form-card h3 { margin-bottom: 6px; }
.form-card p.sub { margin-bottom: 22px; font-size: 0.95rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--nile); margin-bottom: 7px; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--gray-line); border-radius: 12px;
  font: inherit; color: var(--nile); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint);
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; text-align: center; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-tint); display: grid; place-items: center; margin: 0 auto 18px; }
.form-success .check svg { color: var(--teal-dark); width: 32px; height: 32px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--nile), var(--nile-soft)); color: #fff; border-radius: var(--radius); padding: clamp(36px, 5vw, 56px); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #c4d2e2; max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn--primary { background: var(--teal); }
.cta-band .phone-big { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.3rem; font-weight: 800; margin-top: 18px; }
.cta-band .phone-big:hover { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--nile); color: #b9c6d6; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer p { color: #9fb0c4; font-size: 0.9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: #b9c6d6; font-size: 0.92rem; }
.footer-links a:hover { color: var(--teal); }
.footer-contact a { color: #fff; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 0.84rem; color: #7e91a8; }
.footer-bottom a { color: #9fb0c4; }
.footer-bottom a:hover { color: var(--teal); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--slate); padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--gray-line); }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { max-width: 640px; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--teal-dark); }
.breadcrumb a:hover { color: var(--nile); }

/* ---------- Legal pages ---------- */
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 30px; }
.legal h2 { font-size: 1.3rem; margin-top: 34px; margin-bottom: 10px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal ul li { margin-bottom: 8px; }
.legal .prose { max-width: 780px; }

/* ---------- Floating mobile call bar ---------- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--gray-line); box-shadow: 0 -6px 20px rgba(10,35,66,0.08);
}
.call-bar .btn { flex: 1; }

/* ---------- Accessibility focus ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav, .header-call { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav {
    position: fixed; inset: 70px 0 auto 0; background: #fff; padding: 16px 24px 26px;
    border-bottom: 1px solid var(--gray-line); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .35s ease; z-index: 49;
    display: flex; flex-direction: column; gap: 4px;
  }
  .mobile-nav.open { transform: translateY(0); }
  .mobile-nav a { padding: 13px 12px; border-radius: 10px; color: var(--nile); font-weight: 600; }
  .mobile-nav a:hover { background: var(--slate); color: var(--teal-dark); }
  .mobile-nav .btn { margin-top: 10px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 520px; }
  .hero-card { left: 12px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .call-bar { display: flex; }
  body { padding-bottom: 70px; }
}

@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .hero-card { display: none; }
  .header-actions .btn--primary { display: none; }
}

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