/* ============================================================
   BlueFlow Plumbing — styles
   Brand: navy + bright blue, clean & trustworthy
   ============================================================ */

:root {
  --navy:      #0A2A5E;
  --navy-700:  #0E356F;
  --blue:      #1A7AE0;
  --blue-400:  #3F9BF0;
  --sky:       #DCEBFB;
  --ink:       #102A43;
  --muted:     #5A6B82;
  --bg:        #F7FAFD;
  --white:     #FFFFFF;
  --line:      #E3ECF6;
  --whatsapp:  #25D366;

  --shadow-sm: 0 2px 8px rgba(10,42,94,.06);
  --shadow-md: 0 10px 30px rgba(10,42,94,.10);
  --shadow-lg: 0 24px 60px rgba(10,42,94,.16);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1120px;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; color: var(--navy); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left, 0px));
  padding-right: max(22px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) { .container { padding-left: clamp(24px, 4vw, 40px); padding-right: clamp(24px, 4vw, 40px); } }

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

/* --------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn .ic { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(26,122,224,.35); }
.btn-primary:hover { background: #1466c0; box-shadow: 0 12px 30px rgba(26,122,224,.45); }

.btn-whatsapp { background: var(--whatsapp); color: #073b1e; box-shadow: 0 8px 24px rgba(37,211,102,.3); }
.btn-whatsapp:hover { background: #1fc25c; }

.btn-call { background: var(--navy); color: #fff; }
.btn-call:hover { background: var(--navy-700); }

/* --------------------------- Header --------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.brand-text strong { font-size: 1.18rem; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.brand-text strong .accent { color: var(--blue); }
.brand-text em { font-style: normal; font-size: .62rem; letter-spacing: .28em; color: var(--muted); font-weight: 600; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-weight: 600; color: var(--ink); font-size: .98rem; position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--blue); transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-call { padding: 11px 20px; font-size: .95rem; }
.header-call .ic { width: 17px; height: 17px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 8px; margin-left: 4px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --------------------------- Hero --------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(63,155,240,.10), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 90px);
}

.hero-logo { width: clamp(160px, 22vw, 230px); height: auto; margin-bottom: 22px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px;
}
.hero-tag::before { content: ""; width: 26px; height: 2px; background: var(--blue); border-radius: 2px; }

.hero h1 {
  color: var(--navy); font-size: clamp(1.9rem, 5.2vw, 3.7rem); font-weight: 800; margin-bottom: 20px;
  overflow-wrap: break-word; hyphens: auto;
}
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 520px; margin-bottom: 30px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.trust-row {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 18px 0 0; margin: 0;
  border-top: 1px solid var(--line);
}
.trust-row li { color: var(--muted); font-size: .96rem; }
.trust-row strong { color: var(--navy); font-weight: 700; }

/* Hero photo */
.hero-media { position: relative; }
.hero-media img {
  width: 100%; height: clamp(320px, 38vw, 480px); object-fit: cover;
  border-radius: 22px; box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.hero-badge {
  position: absolute; left: -14px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--navy); font-weight: 700; font-size: .92rem;
  padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-md);
  font-family: var(--font-display);
}
.hero-badge-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 4px rgba(37,211,102,.2); }

/* --------------------------- Sections --------------------------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--tint { background: linear-gradient(180deg, #fff, var(--sky)); }

.section-head { max-width: 640px; margin: 0 auto clamp(36px, 6vw, 60px); text-align: center; }
.kicker {
  display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
  background: var(--sky); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* --------------------------- Service cards --------------------------- */
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cfe0f5; }
.service-ic {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-400), var(--blue)); margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(26,122,224,.3);
}
.service-ic svg { width: 28px; height: 28px; fill: #fff; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .98rem; }

.service-card--accent {
  background: linear-gradient(160deg, var(--navy), var(--navy-700));
  border-color: transparent;
}
.service-card--accent h3 { color: #fff; }
.service-card--accent p { color: #c7dbf5; }
.service-card--accent .service-ic { background: rgba(255,255,255,.14); box-shadow: none; }

/* --------------------------- Why us --------------------------- */
.why-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 900px; margin-inline: auto;
}
.why-grid li {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px; font-weight: 600; font-size: 1.02rem; box-shadow: var(--shadow-sm);
}
.why-grid .check {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: .9rem; font-weight: 700;
}

/* --------------------------- About + Mission/Vision --------------------------- */
.about-grid { display: grid; gap: 44px; grid-template-columns: 1fr 1fr; align-items: center; }
.about-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.about-copy p { color: var(--muted); font-size: 1.08rem; }
.about-copy .kicker { margin-bottom: 14px; }

.mv-cards { display: grid; gap: 18px; }
.mv-card {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.mv-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--navy); margin-bottom: 14px; }
.mv-ic svg { width: 26px; height: 26px; fill: #fff; }
.mv-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.mv-card p { color: var(--muted); }

/* --------------------------- CTA band --------------------------- */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(115deg, rgba(10,42,94,.96) 38%, rgba(10,42,94,.62) 100%),
    url("/assets/hero-pipes.jpeg") center right / cover no-repeat;
  background-color: var(--navy);
}
.cta-band-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding-block: clamp(44px, 7vw, 72px);
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta-band p { color: #d6e6fb; margin-top: 8px; max-width: 460px; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: #eaf2fd; }

/* --------------------------- Contact --------------------------- */
.contact-grid {
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
a.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-ic { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: var(--sky); margin-bottom: 10px; }
.contact-ic svg { width: 26px; height: 26px; fill: var(--blue); }
.contact-label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-value { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.12rem; word-break: break-word; }
.contact-card--static { background: linear-gradient(160deg, #fff, var(--sky)); }

/* --------------------------- Footer --------------------------- */
.site-footer { background: var(--navy); color: #c7d6ec; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap;
  padding-top: 48px; padding-bottom: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 10px; }
.footer-brand p { font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .14em; color: #8fb0db; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.footer-contact a:hover { color: #fff; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; }
.footer-bar p { font-size: .9rem; color: #7f9cc4; }

/* --------------------------- Floating WhatsApp --------------------------- */
.fab-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp);
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.5);
  transition: transform .2s ease;
  animation: fab-pulse 2.6s infinite;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 32px; height: 32px; fill: #fff; }
@keyframes fab-pulse {
  0%   { box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 26px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* --------------------------- Scroll reveal --------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
/* staggered hero load */
.hero-logo.reveal { transition-delay: .04s; }
.hero-tag.reveal { transition-delay: .1s; }
.hero h1.reveal { transition-delay: .16s; }
.hero .hero-lead.reveal { transition-delay: .24s; }
.hero .hero-cta.reveal { transition-delay: .32s; }
.hero .trust-row.reveal { transition-delay: .4s; }
.hero-media.reveal { transition-delay: .2s; }

/* --------------------------- Responsive --------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .hero-media img { height: clamp(220px, 50vw, 320px); }
  .hero-badge { left: 12px; bottom: 12px; }
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
}

@media (max-width: 760px) {
  .header-call { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .main-nav a::after { display: none; }
}

/* --------------------------- Reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service-card:hover, a.contact-card:hover { transform: none; }
}
