/* ============================================================
   Hydro Blue Projects — stylesheet
   Modern, light theme with a deepened brand-blue palette
   ============================================================ */

:root {
  /* Brand palette (deepened, white background retained) */
  --navy:        #0E2C63;   /* primary deep blue            */
  --navy-deep:   #081E40;   /* darkest — footer / accents   */
  --blue:        #1577C4;   /* primary blue                 */
  --blue-bright: #23A0EC;   /* bright accent                */
  --blue-soft:   #E9F3FC;   /* icon tiles / tints           */
  --grey:        #8A94A3;   /* silver                       */
  --ink:         #14202F;   /* body text                    */
  --muted:       #55627A;   /* secondary text               */
  --line:        #E5EBF3;   /* borders                      */
  --bg:          #FFFFFF;
  --bg-soft:     #F4F8FC;   /* off-white sections           */
  --whatsapp:    #25D366;
  --star:        #F5B301;

  --radius:      16px;
  --radius-lg:   24px;
  --shadow-xs:   0 1px 2px rgba(8, 30, 64, .06);
  --shadow-sm:   0 4px 14px rgba(8, 30, 64, .07);
  --shadow-md:   0 14px 36px rgba(8, 30, 64, .10);
  --shadow-lg:   0 30px 70px rgba(8, 30, 64, .16);
  --gradient:    linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  --gradient-deep: linear-gradient(160deg, #123566 0%, #081E40 100%);
  --max:         1160px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.14; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h2.section-title { font-size: clamp(1.8rem, 3.7vw, 2.6rem); font-weight: 800; }
.section-lead { color: var(--muted); max-width: 640px; margin: 16px auto 0; font-size: 1.06rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px rgba(21,119,196,.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(21,119,196,.42); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.30); }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(37,211,102,.42); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn svg { width: 19px; height: 19px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 74px; width: auto; }
.brand-name { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.16rem; line-height: 1; letter-spacing: .01em; }
.brand-name span { color: var(--blue); }
.brand-name small { display: block; font-size: .62rem; letter-spacing: .24em; color: var(--grey); font-weight: 700; text-transform: uppercase; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > li > a { font-weight: 500; color: var(--ink); font-size: .96rem; transition: color .15s; }
.nav-links > li > a:hover { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px auto; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (white, premium) ---------- */
.hero { position: relative; background: var(--bg); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(680px 520px at 82% 12%, rgba(35,160,236,.16), transparent 60%),
    radial-gradient(560px 460px at 8% 90%, rgba(14,44,99,.08), transparent 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: radial-gradient(rgba(14,44,99,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 54px; align-items: center; padding: 84px 0 92px; }
.hero h1 { font-size: clamp(2.2rem, 5.1vw, 3.55rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lead { font-size: 1.18rem; color: var(--muted); margin: 20px 0 32px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero-trust div { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--navy); font-size: .93rem; }
.hero-trust svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

.hero-card {
  position: relative;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 38px 32px 34px; border: 1px solid var(--line);
}
.hero-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(35,160,236,.5), rgba(14,44,99,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.hero-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: .76rem; letter-spacing: .04em; padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(21,119,196,.35); white-space: nowrap;
}
.hero-card img.logo-showcase { width: 74%; margin: 8px auto 18px; }
.hero-card .hc-title { font-family: var(--font-head); text-align: center; font-weight: 800; color: var(--navy); font-size: 1.28rem; letter-spacing: .02em; }
.hero-card .hc-title span { color: var(--blue); }
.hero-card .hc-sub { text-align: center; color: var(--grey); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.hero-card .hc-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.hero-card .hc-tags span {
  background: var(--bg-soft); color: var(--navy); font-weight: 600; font-size: .8rem;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; box-shadow: var(--shadow-xs);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-icon {
  width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 18px;
  background: var(--blue-soft); display: grid; place-items: center;
  transition: background .22s ease;
}
.service-card:hover .service-icon { background: linear-gradient(135deg, rgba(35,160,236,.18), rgba(14,44,99,.10)); }
.service-icon svg { width: 42px; height: 42px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; font-weight: 700; }
.service-card p { color: var(--muted); font-size: .92rem; }

/* ---------- Process / how it works ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 52px; position: relative; }
.process-step { position: relative; text-align: center; padding: 0 10px; }
.process-num {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--gradient); color: #fff; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 10px 24px rgba(21,119,196,.3); position: relative; z-index: 1;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .96rem; max-width: 300px; margin: 0 auto; }
.process-grid::before {
  content: ""; position: absolute; top: 31px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 20px);
}

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.why-list { display: grid; gap: 22px; }
.why-item { display: flex; gap: 16px; }
.why-item .num {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head);
  box-shadow: 0 8px 18px rgba(21,119,196,.28);
}
.why-item h3 { font-size: 1.12rem; margin-bottom: 4px; }
.why-item p { color: var(--muted); font-size: .96rem; }
.why-visual {
  background: var(--gradient-deep); border-radius: var(--radius-lg); padding: 48px 36px; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.why-visual::after { content: ""; position: absolute; bottom: -80px; right: -70px; width: 260px; height: 260px; border-radius: 50%; background: rgba(35,160,236,.16); }
.why-visual .stat { position: relative; z-index: 1; }
.why-visual .stat + .stat { margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); }
.why-visual .stat b { display: block; font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; }
.why-visual .stat span { opacity: .9; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.testi-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-xs); text-align: left; position: relative;
}
.testi-card::before {
  content: "\201C"; position: absolute; top: 6px; right: 22px;
  font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; color: var(--blue-soft);
}
.stars { color: var(--star); margin-bottom: 12px; letter-spacing: 2px; position: relative; z-index: 1; }
.testi-card blockquote { color: var(--ink); font-size: 1rem; position: relative; z-index: 1; }
.testi-who { margin-top: 18px; font-weight: 700; color: var(--navy); font-family: var(--font-head); }
.testi-who span { display: block; font-weight: 500; color: var(--muted); font-size: .88rem; font-family: var(--font-body); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 46px auto 0; text-align: left; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 24px; margin-bottom: 14px; box-shadow: var(--shadow-xs);
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--navy); padding: 18px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gradient-deep); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 500px; height: 300px; background: radial-gradient(circle, rgba(35,160,236,.22), transparent 65%); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { opacity: .92; max-width: 580px; margin: 14px auto 30px; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact / quote page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info .info-item { display: flex; gap: 15px; margin-bottom: 26px; }
.contact-info .info-item .ico {
  flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft);
  display: grid; place-items: center; color: var(--blue);
}
.contact-info .info-item .ico svg { width: 23px; height: 23px; }
.contact-info h3 { font-size: 1.02rem; margin-bottom: 2px; }
.contact-info a, .contact-info p { color: var(--muted); }
.contact-info a:hover { color: var(--blue); }
.contact-quick { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .9rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,160,236,.16);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #cfe0f5; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 42px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.site-footer a { color: #cfe0f5; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 340px; color: #9fb6d6; font-size: .95rem; }
.footer-brand .brand-name, .footer-brand .brand-name span { color: #fff; }
.footer-links li { margin-bottom: 11px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 46px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: #8ea6c8; font-size: .88rem;
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp);
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: waPulse 2.4s infinite;
}
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 31px; height: 31px; color: #fff; position: relative; z-index: 1; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(120px);
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 300; transition: transform .35s ease; max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .hero-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 430px; margin: 0 auto; }
  .why-visual { order: -1; }
  .process-grid { grid-template-columns: 1fr; gap: 34px; }
  .process-grid::before { display: none; }
}
@media (max-width: 720px) {
  .nav { height: 74px; }
  .brand img { height: 60px; }
  .brand-name small { letter-spacing: .18em; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 22px 22px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { flex-direction: column; align-items: stretch; padding-top: 14px; gap: 10px; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-bottom { justify-content: flex-start; }
}
