/* ===== R Flow Plumbing Solutions — stylesheet ===== */

:root {
  --blue: #1E63E9;
  --blue-dark: #154BB8;
  --blue-soft: rgba(30, 99, 233, 0.1);
  --ink: #0F1521;
  --ink-70: rgba(15, 21, 33, 0.7);
  --white: #FFFFFF;
  --mist: #F1F5FB;
  --line: #D7DEE8;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  --font-head: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(15, 21, 33, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 21, 33, 0.1);

  --nav-h: 76px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 14px 24px; border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; border-radius: 9px; }

.btn--whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--whatsapp svg { fill: currentColor; stroke: none; }
.btn--whatsapp:hover { background: var(--whatsapp-dark); box-shadow: var(--shadow-md); }

.btn--outline { background: rgba(255,255,255,0.08); color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); backdrop-filter: blur(2px); }
.btn--outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--outline-blue { background: var(--white); color: var(--blue); border: 1.5px solid var(--blue); }
.btn--outline-blue:hover { background: var(--blue); color: var(--white); box-shadow: var(--shadow-md); }

/* ---- Eyebrow / section head ---- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow--light { color: #BFD3FF; }

.eyebrow__flow { display: inline-block; width: 30px; height: 2px; background: var(--blue); position: relative; overflow: visible; }
.eyebrow__flow--light { background: #BFD3FF; }

.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head--light { max-width: 640px; }
.section__head h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.section__intro { margin-top: 14px; color: var(--ink-70); font-size: 1.02rem; }

.section { padding: clamp(56px, 6vw, 96px) 0; }
.section--mist { background: var(--mist); }

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  height: var(--nav-h); display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.navbar.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }

.navbar__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.navbar__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.navbar__logo span { color: var(--blue); font-weight: 600; }
.navbar__logo-img { width: 34px; height: 34px; object-fit: contain; flex: none; }

.navbar__nav { display: flex; align-items: center; gap: 30px; }
.navbar__nav > a { font-weight: 500; font-size: 0.95rem; position: relative; padding: 6px 0; }
.navbar__nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--blue);
  transition: right 0.2s ease;
}
.navbar__nav > a:hover::after { right: 0; }

.navbar__actions { display: flex; align-items: center; gap: 14px; margin-left: 6px; }
.navbar__phone { font-weight: 600; font-size: 0.92rem; }

.navbar__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.navbar__burger span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; color: var(--white); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(35%) saturate(85%); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9,14,26,0.72) 0%, rgba(9,14,26,0.82) 55%, rgba(8,12,22,0.94) 100%),
    linear-gradient(115deg, rgba(9,20,50,0.55) 0%, rgba(20,40,90,0.2) 45%, rgba(9,14,26,0) 70%);
}
.hero__flow {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; pointer-events: none;
}
.hero__flow path { stroke: #4E86F5; stroke-width: 2; fill: none; }

.hero__inner { position: relative; z-index: 1; padding: 108px 24px 84px; max-width: 760px; }
.hero__title { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.hero__slogan { font-family: var(--font-head); font-weight: 600; color: #9DBBFF; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); margin-top: 16px; }
.hero__sub { margin-top: 20px; font-size: 1.05rem; color: rgba(255,255,255,0.85); max-width: 560px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; font-size: 0.88rem; font-weight: 500; color: rgba(255,255,255,0.75); }

.google-reviews-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.35);
  padding: 10px 18px; border-radius: 999px; backdrop-filter: blur(2px);
  font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; color: var(--white);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.google-reviews-btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); transform: translateY(-2px); }
.google-reviews-btn .icon--google { width: 18px; height: 18px; flex: none; stroke: none; }
.google-reviews-btn__stars { display: inline-flex; gap: 2px; }
.google-reviews-btn__stars svg { width: 13px; height: 13px; fill: #F5A623; stroke: none; }

/* ---- Services ---- */
.grid { display: grid; gap: 20px; }
.grid--services { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-soft); }

.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; background: var(--blue-soft); color: var(--blue);
  margin-bottom: 16px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card p { color: var(--ink-70); font-size: 0.92rem; }

.card--service { padding: 0; overflow: hidden; }
.card--service .card__body { padding: 22px 22px 26px; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.3s ease; }
.card__media img.obj-pos-40 { object-position: center 40%; }
.card__media img.obj-pos-60 { object-position: center 60%; }

.card__toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; color: var(--blue);
}
.card__toggle-icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card__toggle[aria-expanded="true"] .card__toggle-icon { transform: rotate(180deg); }
.card__toggle:hover { color: var(--blue-dark); }

.card__details {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
}
.card__details.is-open { max-height: 160px; opacity: 1; margin-top: 12px; }
.card__details-label {
  font-family: var(--font-head); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px;
}
.card__price-list { display: flex; flex-direction: column; gap: 4px; }
.card__price-list li { font-size: 0.88rem; color: var(--ink-70); }
.card__price-list strong { color: var(--ink); }
.card--service:hover .card__media img { transform: scale(1.05); }
.spoed-banner {
  margin-top: 32px; padding: 28px 30px; background: var(--ink); color: var(--white);
  border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 24px; position: relative; overflow: hidden;
}
.spoed-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 220px at 90% 0%, rgba(30,99,233,0.4), transparent 70%);
  pointer-events: none;
}
.spoed-banner__text { position: relative; max-width: 480px; }
.spoed-banner__text h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 8px; }
.spoed-banner__text p { color: rgba(255,255,255,0.78); font-size: 0.94rem; }
.spoed-banner__note { margin-top: 10px; color: #BFD3FF; font-size: 0.9rem; }
.spoed-banner__note strong { color: var(--white); }
.spoed-banner__actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.spoed-banner__actions .btn--outline-blue { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.spoed-banner__actions .btn--outline-blue:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---- Waarom / trust ---- */
.grid--trust { grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--blue); margin-bottom: 14px;
}
.trust__icon svg { width: 22px; height: 22px; }
.trust h3 { font-size: 1rem; margin-bottom: 4px; }
.trust p { color: var(--ink-70); font-size: 0.92rem; }

/* ---- Reviews ---- */
.grid--reviews { grid-template-columns: repeat(3, 1fr); }

.review-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.review-card__stars { display: flex; gap: 3px; margin-top: 2px; margin-bottom: 12px; }
.review-card__stars svg { width: 16px; height: 16px; fill: #F5A623; stroke: none; }
.review-card__quote { font-size: 0.96rem; color: var(--ink); margin-bottom: 12px; }
.review-card__author { font-size: 0.85rem; color: var(--ink-70); }

/* ---- Contact ---- */
.section--contact { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.section--contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 0%, rgba(30,99,233,0.35), transparent 70%);
  pointer-events: none;
}
.section--contact h2 { color: var(--white); }

.contact__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; position: relative; }

.contact__card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius);
  padding: 22px; transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.contact__card:hover { background: rgba(255,255,255,0.11); transform: translateY(-3px); border-color: rgba(255,255,255,0.3); }
.contact__card .icon--lg { width: 26px; height: 26px; flex: none; color: #9DBBFF; }
.contact__card--whatsapp .icon--lg { color: var(--whatsapp); fill: var(--whatsapp); stroke: none; }
.contact__card strong { display: block; font-family: var(--font-head); font-size: 1rem; }
.contact__card em { display: block; font-style: normal; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 3px; }

.contact__meta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 40px; color: rgba(255,255,255,0.75); font-size: 0.95rem; position: relative; }
.contact__meta strong { color: var(--white); }

/* ---- Footer ---- */
.footer { background: var(--ink); color: rgba(255,255,255,0.85); border-top: 1px solid rgba(255,255,255,0.1); }
.footer__inner { padding: 44px 24px 28px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__logo-img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.footer__logo { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.footer__slogan { margin-top: 6px; color: #9DBBFF; font-size: 0.92rem; }
.footer__links { display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.footer__links a:hover { color: var(--white); }
.footer__hours { font-size: 0.92rem; }
.footer__copy { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.45); padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .navbar__nav {
    position: fixed; inset: var(--nav-h) 0 auto 0; background: var(--white);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  }
  .navbar__nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
  .navbar__nav > a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .navbar__actions { flex-direction: column; align-items: flex-start; width: 100%; gap: 12px; margin: 14px 0 4px; }
  .navbar__burger { display: flex; }
}

@media (max-width: 860px) {
  .grid--trust { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .grid--services { grid-template-columns: repeat(2, 1fr); }
  .grid--reviews { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .hero__inner { padding: 64px 24px 56px; }

  .grid--services { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid--trust { grid-template-columns: 1fr; }

  .spoed-banner { flex-direction: column; align-items: flex-start; }
  .spoed-banner__actions { width: 100%; }
  .spoed-banner__actions .btn { flex: 1; }
}

@media (max-width: 480px) {
  .grid--services { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .contact__card:hover { transform: none; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
