/* =========================================================
   HARINIVAS ENTERPRISES — Design tokens
   Palette lifted directly from the company logo:
   Harbor Navy / Signal Blue, on white with an ice-blue tint
   for section separation. Slab display type echoes the
   logo's bold "HARINIVAS" lettering; the italic serif tagline
   face echoes the script "Enterprises" wordmark.
   ========================================================= */
:root{
  --navy:        #0c275b;
  --navy-2:      #163a7a;
  --navy-ink:    #0a1f47;
  --blue:        #0690da;
  --blue-2:      #37a9e6;
  --blue-soft:   #e8f4fc;
  --ice:         #eff5fb;
  --white:       #ffffff;
  --ink:         #17233d;
  --slate:       #56698a;
  --slate-soft:  #8698b8;
  --line:        #dce6f0;
  --gold:        #d7a339;
  --success:     #1f9d6c;
  --danger:      #d1483f;

  --shadow-sm: 0 1px 2px rgba(12,39,91,.06), 0 1px 1px rgba(12,39,91,.04);
  --shadow-md: 0 8px 24px rgba(12,39,91,.10);
  --shadow-lg: 0 20px 48px rgba(12,39,91,.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container: 1180px;
  --nav-h: 84px;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500;600;700;800&family=EB+Garamond:ital,wght@0,500;1,500;1,600&family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior:smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body{
  margin:0;
  font-family:'Inter', sans-serif;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:'Roboto Slab', serif;
  color:var(--navy);
  line-height:1.15;
  margin:0 0 .5em;
  font-weight:700;
}
h1{ font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3{ font-size: 1.3rem; }
p{ margin:0 0 1em; color:var(--slate); }
.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
section{ padding: 84px 0; }
.section-tight{ padding: 56px 0; }
.bg-ice{ background:var(--ice); }
.bg-navy{ background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%); color:#fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3{ color:#fff; }
.bg-navy p{ color:#c7d6ee; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'Inter'; font-weight:700; font-size:.72rem;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--blue); margin-bottom:14px;
}
.eyebrow::before{ content:''; width:22px; height:2px; background:var(--blue); border-radius:2px; }
.tagline-script{
  font-family:'EB Garamond', serif; font-style:italic; font-weight:500;
  color:var(--blue); font-size:1.15rem;
}

.center{ text-align:center; }
.head-max{ max-width:640px; }
.mx-auto{ margin-left:auto; margin-right:auto; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:100px; font-weight:700; font-size:.95rem;
  border:2px solid transparent; cursor:pointer; transition:.2s ease; white-space:nowrap;
}
.btn-primary{ background:var(--blue); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:#057cbe; transform:translateY(-1px); box-shadow:var(--shadow-md); }
.btn-outline{ background:transparent; border-color:rgba(255,255,255,.5); color:#fff; }
.btn-outline:hover{ background:rgba(255,255,255,.12); }
.btn-navy-outline{ background:transparent; border-color:var(--navy); color:var(--navy); }
.btn-navy-outline:hover{ background:var(--navy); color:#fff; }
.btn-gold{ background:var(--gold); color:#fff; }
.btn-block{ width:100%; }
.btn-sm{ padding:9px 18px; font-size:.82rem; }

/* =============== HEADER =============== */
.topbar{
  background:var(--navy-ink); color:#cfe0f5; font-size:.82rem;
}
.topbar .container{ display:flex; justify-content:space-between; align-items:center; padding-top:8px; padding-bottom:8px; flex-wrap:wrap; gap:6px; }
.topbar a{ color:#cfe0f5; display:inline-flex; align-items:center; gap:6px; }
.topbar a:hover{ color:#fff; }
.topbar-left{ display:flex; gap:22px; flex-wrap:wrap; }

.site-header{
  position:sticky; top:0; z-index:100; background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--line);
  height:var(--nav-h);
}
.site-header .container{ height:var(--nav-h); display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.brand img{ height:52px; width:auto; }

.main-nav{ display:flex; align-items:center; gap:6px; }
.main-nav > ul{ display:flex; align-items:center; gap:2px; }
.main-nav a.nav-link{
  padding:10px 14px; border-radius:8px; font-weight:600; font-size:.92rem; color:var(--navy);
  display:flex; align-items:center; gap:6px;
}
.main-nav a.nav-link:hover{ background:var(--ice); color:var(--blue); }
.has-dropdown{ position:relative; }
.has-dropdown .chev{ width:9px; height:9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin-top:-4px; transition:.2s; }
.has-dropdown:hover .chev{ transform:rotate(225deg); margin-top:4px; }
.dropdown{
  position:absolute; top:100%; left:0; background:#fff; min-width:250px;
  border-radius:var(--radius-md); box-shadow:var(--shadow-lg); border:1px solid var(--line);
  padding:10px; opacity:0; visibility:hidden; transform:translateY(6px); transition:.18s ease;
}
.has-dropdown:hover .dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.dropdown a{ display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; font-weight:600; font-size:.9rem; color:var(--ink); }
.dropdown a:hover{ background:var(--blue-soft); color:var(--blue); }
.dropdown .dd-ic{ width:30px; height:30px; border-radius:8px; background:var(--blue-soft); display:flex; align-items:center; justify-content:center; color:var(--blue); flex-shrink:0; }

.header-cta{ display:flex; align-items:center; gap:10px; }
.icon-btn{
  width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--ice); color:var(--navy); flex-shrink:0;
}
.icon-btn.whatsapp{ background:#e6f7ee; color:#1f9d3f; }
.icon-btn:hover{ filter:brightness(0.95); }

.burger{ display:none; width:42px; height:42px; border-radius:8px; background:var(--ice); border:none; cursor:pointer; align-items:center; justify-content:center; }
.burger span, .burger span::before, .burger span::after{
  content:''; display:block; width:20px; height:2px; background:var(--navy); position:relative; transition:.2s;
}
.burger span::before{ position:absolute; top:-6px; }
.burger span::after{ position:absolute; top:6px; }

/* =============== HERO growth-bars signature motif =============== */
.growth-bars{ display:flex; align-items:flex-end; gap:6px; height:56px; }
.growth-bars i{ display:block; width:9px; border-radius:3px 3px 0 0; background:linear-gradient(180deg, var(--blue-2), var(--navy)); }
.growth-bars.on-dark i{ background:linear-gradient(180deg, #bfe4fa, #ffffff); }
.growth-arrow{ position:relative; }
.growth-arrow svg{ overflow:visible; }

.hero{ position:relative; overflow:hidden; padding:72px 0 96px; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap:56px; align-items:center; }
.hero-badges{ display:flex; gap:28px; margin-top:34px; flex-wrap:wrap; }
.hero-badge b{ display:block; font-family:'Roboto Slab'; font-size:1.6rem; color:#fff; }
.hero-badge span{ font-size:.8rem; color:#a9c2e6; }
.hero-actions{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }
.hero-visual{
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius-lg); padding:30px; backdrop-filter:blur(6px);
}
.hero-visual-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; }
.hero-visual-head span{ color:#a9c2e6; font-size:.8rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.hero-stat-row{ display:flex; justify-content:space-between; align-items:flex-end; margin-top:18px;}
.hero-chip{ background:rgba(255,255,255,.08); border-radius:12px; padding:14px 16px; margin-top:10px; display:flex; justify-content:space-between; align-items:center; }
.hero-chip b{ color:#fff; }
.hero-chip span{ color:#9fc0e6; font-size:.82rem; }

/* =============== Cards / Grid =============== */
.grid{ display:grid; gap:26px; }
.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-md);
  padding:30px; box-shadow:var(--shadow-sm); transition:.2s ease;
}
.card:hover{ box-shadow:var(--shadow-md); transform:translateY(-3px); border-color:transparent; }
.card-ic{
  width:54px; height:54px; border-radius:14px; background:var(--blue-soft); color:var(--blue);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.card ul{ margin-top:14px; }
.card ul li{ display:flex; gap:8px; font-size:.88rem; color:var(--slate); padding:4px 0; align-items:flex-start; }
.card ul li::before{ content:'✓'; color:var(--blue); font-weight:800; flex-shrink:0; }
.card .link-arrow{ display:inline-flex; align-items:center; gap:6px; margin-top:16px; font-weight:700; color:var(--blue); font-size:.88rem; }

.stat-strip{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.stat{ flex:1; min-width:150px; text-align:center; }
.stat b{ font-family:'Roboto Slab'; font-size:2.2rem; color:var(--navy); display:block; }
.stat span{ font-size:.85rem; color:var(--slate); }

.divider-bars{ display:flex; justify-content:center; align-items:flex-end; gap:5px; height:30px; opacity:.5; margin: 0 auto 18px; }
.divider-bars i{ width:6px; background:var(--blue); border-radius:2px 2px 0 0; }

/* =============== Testimonials =============== */
.t-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-md); padding:26px; }
.t-stars{ color:var(--gold); letter-spacing:2px; margin-bottom:10px; }
.t-person{ display:flex; align-items:center; gap:12px; margin-top:16px; }
.t-avatar{ width:42px; height:42px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-family:'Roboto Slab'; }
.t-person b{ display:block; font-size:.92rem; color:var(--navy); }
.t-person span{ font-size:.78rem; color:var(--slate-soft); }

.google-badge{ display:flex; align-items:center; gap:14px; background:#fff; border:1px solid var(--line); border-radius:var(--radius-md); padding:18px 22px; }
.google-badge b{ font-size:1.6rem; color:var(--navy); font-family:'Roboto Slab'; }

/* =============== Forms =============== */
.form-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:38px; box-shadow:var(--shadow-md); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-weight:700; font-size:.84rem; color:var(--navy); margin-bottom:7px; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 14px; border:1.5px solid var(--line); border-radius:10px;
  font-family:'Inter'; font-size:.94rem; color:var(--ink); background:#fbfdff; transition:.15s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--blue); background:#fff; box-shadow:0 0 0 4px var(--blue-soft);
}
.field textarea{ resize:vertical; min-height:100px; }
.form-note{ font-size:.78rem; color:var(--slate-soft); margin-top:10px; }
.form-success{ display:none; background:#e6f7ee; border:1px solid #b7e6cd; color:#1a7a4d; padding:16px; border-radius:10px; font-weight:600; margin-top:16px; }
.form-success.show{ display:block; }

/* =============== FAQ accordion =============== */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{ width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:22px 4px; display:flex; justify-content:space-between; align-items:center; gap:16px; font-family:'Roboto Slab'; font-weight:600; font-size:1.05rem; color:var(--navy); }
.faq-q .plus{ width:24px; height:24px; border-radius:50%; background:var(--blue-soft); color:var(--blue); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:1.1rem; transition:.2s; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); background:var(--navy); color:#fff; }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-item.open .faq-a{ max-height:400px; }
.faq-a p{ padding:0 4px 22px; }

/* =============== Footer =============== */
footer{ background:var(--navy-ink); color:#b8c9e4; padding-top:64px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; padding-bottom:40px; }
.footer-grid h4{ color:#fff; font-size:1rem; margin-bottom:16px; }
.footer-grid ul li{ margin-bottom:10px; }
.footer-grid a{ color:#b8c9e4; font-size:.9rem; }
.footer-grid a:hover{ color:#fff; }
.footer-brand img{ height:46px; margin-bottom:14px; }
.footer-brand p{ color:#93a8cc; font-size:.9rem; max-width:280px; }
.social-row{ display:flex; gap:10px; margin-top:18px; }
.social-row a{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; }
.social-row a:hover{ background:var(--blue); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding:22px 0; display:flex; justify-content:space-between; font-size:.82rem; color:#7f92b3; flex-wrap:wrap; gap:10px; }
.footer-contact li{ display:flex; gap:10px; align-items:flex-start; font-size:.9rem; }
.footer-contact svg{ flex-shrink:0; margin-top:3px; color:var(--blue-2); }

/* =============== Floating widgets =============== */
.float-stack{ position:fixed; right:22px; bottom:22px; display:flex; flex-direction:column; gap:12px; z-index:200; }
.float-btn{
  width:58px; height:58px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-lg); color:#fff; position:relative;
}
.float-btn.wa{ background:#25D366; }
.float-btn.call{ background:var(--blue); }
.float-btn.cb{ background:var(--navy); width:auto; height:auto; border-radius:100px; padding:13px 22px; font-weight:700; font-size:.86rem; gap:8px; }
.pulse-ring{ position:absolute; inset:0; border-radius:50%; border:2px solid #25D366; animation:pulse 2s infinite; }
@keyframes pulse{ 0%{transform:scale(1); opacity:.7;} 100%{transform:scale(1.7); opacity:0;} }

/* =============== Modal =============== */
.modal-overlay{ position:fixed; inset:0; background:rgba(10,20,45,.55); z-index:300; display:none; align-items:center; justify-content:center; padding:20px; backdrop-filter:blur(2px); }
.modal-overlay.show{ display:flex; }
.modal-box{ background:#fff; border-radius:var(--radius-lg); max-width:520px; width:100%; padding:34px; position:relative; max-height:90vh; overflow-y:auto; }
.modal-close{ position:absolute; top:18px; right:18px; width:34px; height:34px; border-radius:50%; background:var(--ice); border:none; cursor:pointer; font-size:1.1rem; color:var(--navy); }

/* =============== EMI Calculator =============== */
.emi-wrap{ display:grid; grid-template-columns: 1fr .85fr; gap:40px; align-items:start; }
.slider-group{ margin-bottom:30px; }
.slider-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px; }
.slider-head label{ font-weight:700; color:var(--navy); font-size:.92rem; }
.slider-head .val{ font-family:'Roboto Slab'; color:var(--blue); font-weight:700; font-size:1.1rem; }
input[type=range]{ -webkit-appearance:none; width:100%; height:6px; border-radius:4px; background:var(--line); outline:none; }
input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; width:22px; height:22px; border-radius:50%; background:var(--blue); border:4px solid #fff; box-shadow:0 0 0 1.5px var(--blue); cursor:pointer; }
input[type=range]::-moz-range-thumb{ width:22px; height:22px; border-radius:50%; background:var(--blue); border:4px solid #fff; box-shadow:0 0 0 1.5px var(--blue); cursor:pointer; }
.emi-result{ background:linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%); border-radius:var(--radius-lg); padding:32px; color:#fff; position:sticky; top:110px; }
.emi-amount{ font-family:'Roboto Slab'; font-size:2.6rem; font-weight:700; margin:6px 0 20px; }
.emi-breakup{ display:flex; flex-direction:column; gap:14px; margin-top:20px; }
.emi-breakup-row{ display:flex; justify-content:space-between; font-size:.9rem; border-bottom:1px dashed rgba(255,255,255,.2); padding-bottom:10px; }
.emi-donut{ margin:20px auto; }

/* =============== Misc pages =============== */
.page-hero{ background:linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%); padding:60px 0 46px; color:#fff; }
.breadcrumb{ font-size:.85rem; color:#a9c2e6; margin-bottom:10px; }
.breadcrumb a{ color:#a9c2e6; } .breadcrumb a:hover{ color:#fff; }

.map-wrap{ border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow-md); }
.map-wrap iframe{ width:100%; height:420px; border:0; display:block; }

.timeline{ position:relative; padding-left:32px; }
.timeline::before{ content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background:var(--line); }
.timeline-item{ position:relative; padding-bottom:34px; }
.timeline-item::before{ content:''; position:absolute; left:-32px; top:2px; width:14px; height:14px; border-radius:50%; background:var(--blue); border:3px solid var(--blue-soft); }
.timeline-item b{ color:var(--navy); font-family:'Roboto Slab'; }

.tag-list{ display:flex; gap:10px; flex-wrap:wrap; }
.tag{ background:var(--blue-soft); color:var(--blue); font-weight:700; font-size:.78rem; padding:8px 14px; border-radius:100px; }

/* =============== Responsive =============== */
@media (max-width: 980px){
  .main-nav, .topbar-left, .header-cta .icon-btn.desktop-only{ display:none; }
  .burger{ display:flex; }
  .hero-grid, .emi-wrap{ grid-template-columns:1fr; }
  .form-row, .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .emi-result{ position:static; }
}
@media (max-width:560px){
  .footer-grid{ grid-template-columns:1fr; }
  section{ padding:56px 0; }
  .form-card{ padding:24px; }
  .hero{ padding:48px 0 64px; }
}

/* Mobile nav drawer */
.mobile-nav{
  position:fixed; inset:0 0 0 auto; width:88%; max-width:340px; background:#fff; z-index:400;
  transform:translateX(100%); transition:.28s ease; box-shadow:var(--shadow-lg); overflow-y:auto;
}
.mobile-nav.open{ transform:translateX(0); }
.mobile-nav-head{ display:flex; justify-content:space-between; align-items:center; padding:20px; border-bottom:1px solid var(--line); }
.mobile-nav ul{ padding:14px; }
.mobile-nav a{ display:block; padding:13px 12px; font-weight:600; color:var(--navy); border-radius:8px; }
.mobile-nav a:hover{ background:var(--ice); }
.mobile-nav .sub-label{ font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--slate-soft); padding:14px 12px 4px; font-weight:700; }
.nav-scrim{ position:fixed; inset:0; background:rgba(10,20,45,.5); z-index:399; display:none; }
.nav-scrim.show{ display:block; }
