/* ==========================================================================
   OrbitFix Plumbing — shared stylesheet
   Your trusted plumber in Singapore (full-service)
   ========================================================================== */

:root {
  --navy: #0b2a4a;
  --blue: #0f4c81;
  --blue-600: #1463a8;
  --cyan: #00a7c4;
  --cyan-soft: #e6f7fb;
  --whatsapp: #25d366;
  --ink: #1c2b36;
  --slate: #54667a;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --amber: #ffb703;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 74, 0.08);
  --shadow-sm: 0 4px 14px rgba(11, 42, 74, 0.06);
  --maxw: 1140px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); letter-spacing: -.3px; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--slate); }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 2px;
  font-size: .75rem; font-weight: 700; color: var(--cyan); margin-bottom: 10px;
}
.lead { font-size: 1.12rem; color: var(--slate); max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--wa { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.btn--wa:hover { background: #1ebe5b; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(15,76,129,.28); }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 1.18rem; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .97rem; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, rgba(11,42,74,.93) 0%, rgba(15,76,129,.86) 60%, rgba(20,99,168,.82) 100%), url("brand/hero-1600x900.png") center/cover no-repeat; color: #fff; padding: 72px 0 80px; position: relative; overflow: hidden; }
.hero::after { content:""; position:absolute; right:-120px; top:-120px; width:380px; height:380px; border-radius:50%; background: radial-gradient(circle, rgba(0,167,196,.35), transparent 70%); }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 640px; }
.hero .eyebrow { color: #8fe3f2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(4px); }
.hero-card h3 { color: #fff; }
.hero-list { list-style: none; margin: 0; padding: 0; }
.hero-list li { color: rgba(255,255,255,.92); padding: 8px 0 8px 30px; position: relative; }
.hero-list li::before { content: "✓"; position: absolute; left: 0; color: #8fe3f2; font-weight: 800; }
.trust-bar { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 26px; }
.trust-bar span { color: rgba(255,255,255,.85); font-size: .92rem; display: flex; align-items: center; gap: 8px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--cyan-soft); display: grid; place-items: center; margin-bottom: 14px; font-size: 1.5rem; }
.card h3 { margin-bottom: 6px; }
.card p { margin-bottom: 0; font-size: .98rem; }
.svc-card a { font-weight: 700; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 64px; margin-bottom: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.step h3 { margin-bottom: 4px; }

/* pricing table */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .98rem; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td.price { font-weight: 800; color: var(--blue); white-space: nowrap; }
.price-note { font-size: .85rem; color: var(--slate); margin-top: 12px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; font-size: 1.4rem; color: var(--cyan); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; }

/* badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.badge { background: var(--cyan-soft); color: var(--blue); font-weight: 700; font-size: .85rem; padding: 8px 16px; border-radius: 999px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; border-radius: 18px; padding: 44px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* ---------- Forms ---------- */
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fcfdff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--cyan); border-color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 54px 0 26px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ---------- Sticky mobile WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; background: var(--whatsapp);
  color: #fff; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45); font-size: 1.7rem;
}
.wa-float:hover { text-decoration: none; transform: scale(1.05); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--slate); padding: 16px 0 0; }
.breadcrumb a { color: var(--slate); }

.pill-list { display:flex; flex-wrap:wrap; gap:10px; list-style:none; padding:0; margin: 14px 0 0; }
.pill-list li { background:#fff; border:1px solid var(--line); border-radius:999px; padding:7px 15px; font-size:.9rem; font-weight:600; color:var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column;
    gap: 0; border-bottom: 1px solid var(--line); padding: 8px 0; display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 20px; width: 100%; }
  .nav-toggle { display: block; }
  .nav .nav-cta .btn-desktop { display: none; }
  .cta-band { padding: 32px 20px; }
  .section { padding: 48px 0; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* ============================================================
   Refined trust components (homepage + intake form)
   ============================================================ */

/* Photographic hero (homepage) — gradient fallback if image fails */
.hero--photo {
  background:
    linear-gradient(180deg, rgba(8,30,53,.78) 0%, rgba(11,42,74,.86) 100%),
    linear-gradient(160deg, #0b2a4a 0%, #0f4c81 60%, #1463a8 100%);
  background-size: cover; background-position: center;
}
.hero--photo.has-photo {
  background:
    linear-gradient(180deg, rgba(8,30,53,.72) 0%, rgba(10,36,63,.82) 100%),
    var(--hero-photo) center/cover no-repeat, #0b2a4a;
}
.hero .rating-inline { display:flex; align-items:center; gap:10px; margin-top:20px; color:#fff; font-weight:600; font-size:.95rem; }
.stars { color:#ffb703; letter-spacing:2px; font-size:1.05rem; }

/* Trust micro-bar under hero */
.microbar { background:#fff; border-bottom:1px solid var(--line); }
.microbar .row { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; padding:20px 0; }
.microbar .item { display:flex; align-items:center; gap:12px; }
.microbar .item svg { flex:0 0 auto; }
.microbar .item b { display:block; color:var(--navy); font-size:.98rem; line-height:1.2; }
.microbar .item span { color:var(--slate); font-size:.82rem; }

/* SVG icon badge */
.ibadge { width:54px; height:54px; border-radius:13px; background:var(--cyan-soft); display:grid; place-items:center; flex:0 0 auto; }
.ibadge svg { width:28px; height:28px; }
.ibadge--navy { background:var(--navy); }
.ibadge--navy svg { stroke:#fff; }

/* Alternating image + text feature rows */
.feature-row { display:grid; grid-template-columns:1fr 1fr; gap:50px; align-items:center; }
.feature-row + .feature-row { margin-top:56px; }
.feature-row .photo { border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow); aspect-ratio:4/3; background:var(--bg-soft) var(--ph,none) center/cover no-repeat; min-height:280px; }
.feature-row--rev .photo { order:2; }
.feature-row ul.ticks { list-style:none; padding:0; margin:14px 0 22px; }
.feature-row ul.ticks li { position:relative; padding:7px 0 7px 30px; color:var(--ink); }
.feature-row ul.ticks li::before { content:""; position:absolute; left:0; top:13px; width:18px; height:18px; background:var(--cyan); border-radius:50%;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Media service card with photo */
.media-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .15s, box-shadow .15s; }
.media-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.media-card .pic { aspect-ratio:16/10; background:var(--bg-soft) var(--ph,none) center/cover no-repeat; }
.media-card .body { padding:24px; }
.media-card h3 { margin-bottom:8px; }
.media-card .body p { margin-bottom:12px; font-size:.97rem; }

/* Trust grid with icons */
.trust-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.trust-item { display:flex; gap:16px; align-items:flex-start; }
.trust-item b { color:var(--navy); display:block; margin-bottom:3px; }
.trust-item p { margin:0; font-size:.95rem; }

/* Guarantee band */
.guarantee { display:flex; gap:26px; align-items:center; background:linear-gradient(135deg,#0b2a4a,#0f4c81); color:#fff; border-radius:18px; padding:34px 38px; }
.guarantee .seal { flex:0 0 auto; width:88px; height:88px; border-radius:50%; border:3px solid var(--cyan); display:grid; place-items:center; }
.guarantee .seal svg { width:46px; height:46px; stroke:#8fe3f2; }
.guarantee h3 { color:#fff; margin-bottom:6px; }
.guarantee p { color:rgba(255,255,255,.86); margin:0; }

/* Reviews (honest placeholder) */
.reviews-head { display:flex; align-items:center; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:10px; }
.gbadge { display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:8px 16px; font-weight:700; color:var(--navy); box-shadow:var(--shadow-sm); }
.review-card { background:#fff; border:1px dashed var(--line); border-radius:var(--radius); padding:24px; text-align:center; }
.review-card .stars { display:block; margin-bottom:8px; }

/* Payment / credential badges */
.pay-badges { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:14px; }
.pay-badges .pb { background:#fff; border:1px solid var(--line); border-radius:10px; padding:9px 15px; font-weight:700; font-size:.85rem; color:var(--navy); }

/* Intake form */
.intake { background:#fff; border:1px solid var(--line); border-radius:18px; padding:30px; box-shadow:var(--shadow); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-grid .full { grid-column:1 / -1; }
.req { color:#e5484d; }
.form-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:8px; }
.consent { display:flex; gap:10px; align-items:flex-start; font-size:.85rem; color:var(--slate); }
.consent input { width:auto; margin-top:4px; }
.form-note { font-size:.82rem; color:var(--slate); }
.thankyou { display:none; background:#e9f9ef; border:1px solid #b7e9c9; color:#1c7a44; border-radius:12px; padding:16px 18px; font-weight:600; }
.thankyou.show { display:block; }

@media (max-width:880px){
  .microbar .row { grid-template-columns:1fr 1fr; }
  .feature-row, .trust-grid, .form-grid { grid-template-columns:1fr; }
  .feature-row--rev .photo { order:0; }
  .guarantee { flex-direction:column; text-align:center; padding:28px 22px; }
}
@media (max-width:520px){ .microbar .row { grid-template-columns:1fr; } }


/* ===== WhatsApp glyph (buttons + float) ===== */
:root{ --wa-glyph:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27%23000%27%20d%3D%27M17.472%2014.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94%201.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198%200-.52.074-.792.372-.272.297-1.04%201.016-1.04%202.479%200%201.462%201.065%202.875%201.213%203.074.149.198%202.096%203.2%205.077%204.487.709.306%201.262.489%201.694.625.712.227%201.36.195%201.872.118.571-.085%201.758-.719%202.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421%207.403h-.004a9.87%209.87%200%2001-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86%209.86%200%2001-1.51-5.26c.001-5.45%204.436-9.884%209.888-9.884%202.64%200%205.122%201.03%206.988%202.898a9.825%209.825%200%20012.893%206.994c-.003%205.45-4.437%209.884-9.885%209.884m8.413-18.297A11.815%2011.815%200%200012.05%200C5.495%200%20.16%205.335.157%2011.892c0%202.096.547%204.142%201.588%205.945L.057%2024l6.305-1.654a11.882%2011.882%200%20005.683%201.448h.005c6.554%200%2011.89-5.335%2011.893-11.893a11.821%2011.821%200%2000-3.48-8.413z%27%2F%3E%3C%2Fsvg%3E"); }
.btn--wa::before{ content:""; display:inline-block; width:18px; height:18px; flex:0 0 auto; background-color:currentColor;
  -webkit-mask:var(--wa-glyph) center/contain no-repeat; mask:var(--wa-glyph) center/contain no-repeat; }
.wa-float{ font-size:0; }
.wa-float::before{ content:""; display:block; width:32px; height:32px; background-color:#fff;
  -webkit-mask:var(--wa-glyph) center/contain no-repeat; mask:var(--wa-glyph) center/contain no-repeat; }

/* Photo tiles (galleries + inline shots) */
.shot{ border-radius:var(--radius); aspect-ratio:4/3; background:var(--bg-soft) center/cover no-repeat; box-shadow:var(--shadow-sm); min-height:200px; }
