/* ============================================================
   HABINNOVA — Lead generation site
   Brand: green→teal gradient leaf, slate wordmark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --green:      #36b86b;
  --green-deep: #2aa45f;
  --teal:       #14a8a2;
  --teal-deep:  #0f8f95;
  --ink:        #313d41;   /* logo wordmark slate */
  --ink-soft:   #5a686c;
  --line:       #e4eae8;
  --bg:         #ffffff;
  --bg-soft:    #f4f8f6;
  --bg-mint:    #eef7f2;
  --gold:       #f0a93b;   /* RGE / aides accent */
  --grad:       linear-gradient(120deg, var(--green) 0%, var(--teal) 100%);
  --grad-soft:  linear-gradient(120deg, #eaf8ef 0%, #e6f6f4 100%);
  --shadow-sm:  0 2px 10px rgba(31,61,52,.06);
  --shadow-md:  0 14px 40px rgba(31,61,52,.12);
  --shadow-lg:  0 30px 70px rgba(31,61,52,.18);
  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 16px;
  padding: 15px 28px; border-radius: 100px;
  cursor: pointer; border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 24px rgba(20,168,162,.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(20,168,162,.42); }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 34px; font-size: 17px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; gap: 24px;
  height: 76px;
}
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: 18px; }
.nav a {
  font-weight: 600; font-size: 15.5px; color: var(--ink-soft);
  position: relative; padding: 4px 0;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--grad); transition: width .22s ease;
}
.nav a:hover::after { width: 100%; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.phone-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px;
}
.phone-link .ico {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-mint); color: var(--teal-deep);
}
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2.4px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 60px 0 80px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 78% -10%, var(--bg-mint), transparent 60%);
  z-index: -1;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 16px 8px 10px; border-radius: 100px;
  font-weight: 700; font-size: 13.5px; color: var(--teal-deep);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; }
.hero h1 .grad-text { display: inline; }
.hero p.lead {
  font-size: 19px; color: var(--ink-soft); margin: 22px 0 30px; max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap;
}
.hero-trust .item { display: flex; flex-direction: column; }
.hero-trust .num {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800;
  font-size: 30px; line-height: 1;
}
.hero-trust .lbl { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; font-weight: 600; }
.hero-trust .div { width: 1px; background: var(--line); align-self: stretch; }

/* Hero visual + floating form */
.hero-visual { position: relative; }
.hero-photo {
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5; position: relative;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -22px; bottom: 34px;
  background: #fff; border-radius: 16px; padding: 16px 20px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 14px;
  max-width: 250px;
}
.hero-badge .rge { height: 38px; width: auto; }
.hero-badge .txt { font-size: 13px; color: var(--ink-soft); font-weight: 600; line-height: 1.35; }
.hero-badge .txt b { color: var(--ink); display: block; font-size: 14px; }

/* ---------- Lead form card ---------- */
.lead-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  padding: 28px; 
}
.lead-card .head { text-align: center; margin-bottom: 20px; }
.lead-card h3 { font-size: 22px; }
.lead-card .sub { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.lead-card .sub b { color: var(--green-deep); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); transition: border .18s, box-shadow .18s, background .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 4px rgba(20,168,162,.12);
}
.field input.err, .field select.err { border-color: #e05a4e; background: #fdf3f2; }
.field .msg { font-size: 12px; color: #d8483c; margin-top: 5px; display: none; }
.field.show-err .msg { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--teal); }
.consent label { font-size: 12px; color: var(--ink-soft); line-height: 1.45; }
.form-note { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; }
.form-note .lock { color: var(--green-deep); font-weight: 700; }

.form-success {
  display: none; text-align: center; padding: 18px 8px;
}
.form-success.on { display: block; }
.form-success .check {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; background: var(--grad); color: #fff;
}
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Logos / RGE strip ---------- */
.assure {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-soft); padding: 22px 0;
}
.assure .wrap { display: flex; align-items: center; justify-content: center; gap: 38px; flex-wrap: wrap; }
.assure .a-item { display: flex; align-items: center; gap: 11px; font-weight: 600; color: var(--ink-soft); font-size: 14.5px; }
.assure .a-item svg { color: var(--green-deep); flex-shrink: 0; }
.assure img.rge { height: 40px; }

/* ---------- Section heading ---------- */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.shead { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.shead .kicker {
  font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 14px;
}
.shead h2 { font-size: clamp(28px, 3.4vw, 42px); }
.shead p { font-size: 17px; color: var(--ink-soft); margin-top: 16px; }

/* ---------- Why / advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.adv:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.adv .ic {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--teal-deep); margin-bottom: 20px;
}
.adv h3 { font-size: 19px; margin-bottom: 9px; }
.adv p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Solutions ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sol {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.sol:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.sol .ph { aspect-ratio: 16/11; overflow: hidden; }
.sol .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sol:hover .ph img { transform: scale(1.06); }
.sol .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.sol .tag {
  display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700;
  color: var(--green-deep); background: var(--bg-mint); padding: 5px 12px; border-radius: 100px;
  margin-bottom: 14px;
}
.sol h3 { font-size: 20px; margin-bottom: 10px; }
.sol p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; flex: 1; }
.sol .more { font-weight: 700; color: var(--teal-deep); font-size: 15px; display: inline-flex; align-items: center; gap: 7px; }
.sol .more svg { transition: transform .2s; }
.sol:hover .more svg { transform: translateX(4px); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { text-align: center; padding: 0 18px; position: relative; }
.step .n {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--teal);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 24px; color: var(--teal-deep);
  position: relative; z-index: 2;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-soft); }
.steps::before {
  content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  z-index: 1;
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery .g {
  border-radius: 14px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-sm);
}
.gallery .g.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery .g.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery .g:hover img { transform: scale(1.07); }

/* ---------- Stats band ---------- */
.band {
  background: var(--grad); color: #fff; border-radius: 26px; padding: 56px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center;
  position: relative; overflow: hidden;
}
.band::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  background: rgba(255,255,255,.08); border-radius: 50%;
}
.band .b .n { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 46px; line-height: 1; }
.band .b .l { font-size: 15px; opacity: .92; margin-top: 10px; }

/* ---------- CTA / final form section ---------- */
.cta-section { background: var(--bg-mint); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta-copy h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cta-copy p { font-size: 17px; color: var(--ink-soft); margin: 18px 0 26px; }
.cta-list { list-style: none; display: grid; gap: 14px; }
.cta-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 16px; }
.cta-list .ck {
  width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cdd6d4; padding: 64px 0 28px; }
.footer a { color: #cdd6d4; }
.footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .flogo { height: 40px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer .fabout { font-size: 14.5px; line-height: 1.65; opacity: .85; max-width: 320px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { font-size: 14.5px; }
.fcontact { display: grid; gap: 14px; }
.fcontact .fc { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; }
.fcontact .fc svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; opacity: .7; flex-wrap: wrap; gap: 10px; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line); padding: 10px 14px;
  gap: 10px; box-shadow: 0 -6px 24px rgba(0,0,0,.08);
}
.mobile-bar .btn { flex: 1; padding: 13px; font-size: 15px; }
.mobile-bar a.call { background: var(--bg-mint); color: var(--teal-deep); }

/* ---------- Contact page ---------- */
.page-hero { background: var(--grad-soft); padding: 56px 0; text-align: center; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 50px); font-weight: 800; }
.page-hero p { font-size: 18px; color: var(--ink-soft); margin-top: 16px; max-width: 620px; margin-inline: auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.info-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--grad-soft); color: var(--teal-deep); display: grid; place-items: center; flex-shrink: 0; }
.info-row .l { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.info-row .v { font-size: 17px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; margin-top: 2px; }
.hours-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px 30px; }
.hours-card h3 { color: #fff; font-size: 19px; margin-bottom: 16px; }
.hours-card .hr { display: flex; justify-content: space-between; padding: 9px 0; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.12); }
.hours-card .hr:last-child { border: none; }
.hours-card .hr .closed { opacity: .55; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-top: 20px; height: 220px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .steps::before { display: none; }
  .band { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .cta-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g.wide, .gallery .g.tall { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
}
@media (max-width: 680px) {
  .nav, .topbar-right .phone-link span.txt { display: none; }
  .burger { display: block; }
  .topbar .wrap { height: 66px; }
  .topbar-right { gap: 10px; }
  .section { padding: 60px 0; }
  .hero { padding: 36px 0 56px; }
  .adv-grid { grid-template-columns: 1fr; }
  .sol-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .hero-badge { left: 10px; bottom: 10px; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 70px; }
  .band { grid-template-columns: 1fr; padding: 40px 24px; }
  .hero-trust { gap: 18px; }
  .hero-trust .div { display: none; }
  .lead-card { padding: 20px 14px; }

}

/* Mobile nav drawer */
.drawer {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,30,28,.4);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer.on { opacity: 1; pointer-events: auto; }
.drawer .panel {
  position: absolute; top: 0; right: 0; width: min(320px, 84vw); height: 100%;
  background: #fff; padding: 26px 24px; transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; gap: 8px;
}
.drawer.on .panel { transform: none; }
.drawer .panel a { padding: 14px 12px; border-radius: 10px; font-weight: 600; font-size: 17px; }
.drawer .panel a:hover { background: var(--bg-soft); }
.drawer .x { align-self: flex-end; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--ink); margin-bottom: 10px; }
.drawer .panel .btn { margin-top: 14px; }
