/* =========================================================================
   B Pradipkumar & Co — Editorial Premium
   Hand-written, dependency-free stylesheet.
   Palette drawn from the company logo: deep navy + cotton-leaf green on paper.
   ========================================================================= */

:root {
  /* Brand */
  --navy:        #143653;
  --navy-deep:   #0d2438;
  --navy-soft:   #24506f;
  --green:       #3f8a4d;
  --green-deep:  #2f6b3b;
  --green-soft:  #5bb06a;

  /* Neutrals (warm paper) */
  --paper:       #f7f4ee;
  --paper-2:     #fefdfb;
  --card:        #ffffff;
  --ink:         #1a2831;
  --muted:       #5c6a72;
  --line:        #e7dfd1;

  /* Type */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max:    1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(13,36,56,.06), 0 4px 14px rgba(13,36,56,.05);
  --shadow-md: 0 10px 40px rgba(13,36,56,.10);
  --shadow-lg: 0 30px 70px rgba(13,36,56,.18);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green-soft); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; color: var(--navy); letter-spacing: -.01em; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--green-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--green); opacity: .7; }
.eyebrow.center::after { content: ""; width: 26px; height: 1px; background: var(--green); opacity: .7; }

.section-head { max-width: 46rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.15rem); margin: .8rem 0 0; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 1rem 0 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover { color: var(--green-deep); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,244,238,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-color: var(--line); background: rgba(247,244,238,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand .mark { width: 38px; height: 38px; color: var(--green); flex: none; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--navy); letter-spacing: -.01em; }
.brand .brand-tag { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { font-weight: 500; color: var(--ink); font-size: .96rem; transition: color .15s ease; }
.nav-links a:not(.btn):hover { color: var(--green-deep); }

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-menu { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 74px 0 auto 0; z-index: 55;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s ease;
  }
  .mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; padding: .85rem .2rem; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border: 0; margin-top: .6rem; }
  .mobile-menu .btn { display: flex; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-copy .eyebrow { margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); margin: 0; }
.hero h1 .accent { color: var(--green-deep); font-style: italic; }
.hero-copy p.lead { font-size: 1.18rem; color: var(--muted); max-width: 34rem; margin: 1.7rem 0 2.3rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-meta { display: flex; gap: 2.2rem; margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.hero-meta .stat b { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy); display: block; line-height: 1; }
.hero-meta .stat span { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

/* Visual panel — looks premium with no photo; drop a real image via --hero-img */
.hero-visual {
  position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
  background:
    var(--hero-img, none),
    radial-gradient(120% 90% at 20% 10%, #1c4869 0%, var(--navy) 45%, var(--navy-deep) 100%);
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-lg);
}
.hero-visual .motif { position: absolute; inset: auto -18% -20% auto; width: 78%; color: rgba(123,200,136,.16); }
.hero-visual .motif.top { inset: -14% -12% auto auto; width: 46%; color: rgba(255,255,255,.06); }
.hero-visual .visual-tag {
  position: absolute; left: 22px; bottom: 22px; right: 22px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px); border-radius: 14px; padding: 1rem 1.2rem; color: #fff;
}
.hero-visual .visual-tag b { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.hero-visual .visual-tag span { font-size: .84rem; color: rgba(255,255,255,.72); }

.marquee-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.marquee-strip .container { display: flex; flex-wrap: wrap; gap: 1rem 2.6rem; justify-content: space-between; padding-block: 1.4rem; }
.marquee-strip span { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: .55rem; }
.marquee-strip span svg { width: 16px; height: 16px; color: var(--green); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 16 / 12; order: -1; }
  .hero-meta { gap: 1.6rem; }
}

/* ---------- Values / Why ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.value-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2rem; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, #eaf3ec, #dcebdf); color: var(--green-deep); margin-bottom: 1.4rem; }
.value-card .ic svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.4rem; margin: 0 0 .6rem; }
.value-card p { color: var(--muted); margin: 0; font-size: .98rem; }

@media (max-width: 860px) { .values-grid { grid-template-columns: 1fr; } }

/* ---------- Products ---------- */
.products { background: linear-gradient(180deg, var(--paper) 0%, #efe9de 100%); }
.products-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab { background: transparent; border: 1.5px solid var(--line); color: var(--muted); padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: .18s ease; }
.tab:hover { color: var(--navy); border-color: var(--navy-soft); }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: clamp(2rem, 4vw, 3rem); }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .pc-top { padding: 1.9rem 1.8rem 1.4rem; flex: 1; }
.product-card .badge { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--green-deep); }
.product-card h3 { font-size: 1.85rem; margin: .5rem 0 .7rem; }
.product-card .desc { color: var(--muted); font-size: .95rem; margin: 0 0 1.4rem; }
.spec { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.spec:first-of-type { border-top: 1px solid var(--line); }
.spec .k { color: var(--muted); }
.spec .v { font-weight: 600; color: var(--navy); }
.spec .v.eco { color: var(--green-deep); }
.product-card .pc-foot { padding: 1.15rem 1.8rem; background: #faf8f3; border-top: 1px solid var(--line); }

@media (max-width: 980px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- Estimator ---------- */
.estimator-card { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-radius: 26px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.estimator-card .motif { position: absolute; inset: auto auto -30% -12%; width: 42%; color: rgba(123,200,136,.10); }
.estimator-info { position: relative; }
.estimator-info h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: .7rem 0 1rem; }
.estimator-info p { color: rgba(255,255,255,.72); font-size: 1rem; }
.estimator-info .notes { margin-top: 1.6rem; display: grid; gap: .6rem; }
.estimator-info .notes div { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; color: rgba(255,255,255,.82); }
.estimator-info .notes svg { width: 17px; height: 17px; color: var(--green-soft); flex: none; margin-top: 2px; }

.estimator-panel { background: var(--card); color: var(--ink); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.2rem); }
.slider-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.slider-head label { font-weight: 600; color: var(--navy); }
.slider-head .val { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--green-deep); }
input[type="range"] { width: 100%; height: 6px; border-radius: 999px; background: #e5e0d6; appearance: none; accent-color: var(--navy); cursor: pointer; }
.estimator-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1.8rem; }
.out-cell { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.out-cell .lbl { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.out-cell .num { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); margin-top: .3rem; }
.out-cell .sub { font-size: .68rem; color: var(--muted); }

@media (max-width: 860px) { .estimator-card { grid-template-columns: 1fr; } .estimator-out { grid-template-columns: 1fr; } }

/* ---------- Quote form ---------- */
.quote { background: var(--paper-2); border-top: 1px solid var(--line); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-md); padding: clamp(1.6rem, 4vw, 3rem); max-width: 780px; margin: clamp(2rem, 4vw, 3rem) auto 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .86rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; padding: .85rem .9rem; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper-2); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(36,80,111,.12); }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-actions { margin-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions .btn { width: 100%; }
@media (max-width: 640px) { .form-actions { grid-template-columns: 1fr; } }
.form-note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.form-alert { margin-top: 1.2rem; border-radius: 12px; padding: 1rem 1.2rem; font-size: .92rem; font-weight: 500; display: none; }
.form-alert.show { display: block; }
.form-alert.ok { background: #e9f5ec; color: var(--green-deep); border: 1px solid #cfe7d4; }
.form-alert.err { background: #fdecec; color: #a33; border: 1px solid #f3cccc; }

@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-top: clamp(2rem, 4vw, 3rem); }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-card .tagline { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); font-weight: 700; }
.contact-card h3 { font-size: 1.35rem; margin: .5rem 0 1rem; }
.contact-card .line { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); font-size: .95rem; margin-bottom: .7rem; }
.contact-card .line svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
.contact-card .line a:hover { color: var(--navy); }

@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #25d366; color: #062e12; font-weight: 700; font-size: .92rem;
  padding: .85rem 1.15rem; border-radius: 999px; box-shadow: 0 12px 30px rgba(37,211,102,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(37,211,102,.45); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float .lbl { display: inline; }
@media (max-width: 520px) { .wa-float .lbl { display: none; } .wa-float { padding: .9rem; } }

/* ---------- Footer ---------- */
/* extra bottom padding so the fixed WhatsApp button never covers footer links */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.68); padding: clamp(3rem, 6vw, 4.5rem) 0 5.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 1.35rem; color: #fff; }
.footer-brand .mark { width: 34px; height: 34px; color: var(--green-soft); }
.footer-brand p { font-size: .92rem; margin: 1rem 0 0; max-width: 26rem; }
.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.68); font-size: .92rem; margin-bottom: .6rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.8rem; font-size: .82rem; }

@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Scroll reveal ---------- */
/* Hidden state only applies when JS is active (html.js), so the site is
   fully visible even if the script fails to load or is disabled. */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
