/* ============================================================
   Furntec — Main Stylesheet
   www.furntec.in | Bhasvat Industries Private Limited
   ============================================================ */

:root {
  --bg:           #0a0a0f;
  --surface:      #12121a;
  --card:         #1a1a24;
  --border:       #2a2a38;
  --accent:       #c9a227;
  --accent-light: #e8c547;
  --wood:         #8b5e3c;
  --muted:        #8b8b9e;
  --white:        #f0f0f5;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

/* ── Typography ─────────────────────────────────────────── */
.font-display { font-family: 'Playfair Display', Georgia, serif; }

.gradient-text {
  background: linear-gradient(135deg, #e8c547 0%, #c9a227 50%, #8b5e3c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--surface { background: rgba(18,18,26,.5); }

/* ── Cards ──────────────────────────────────────────────── */
.card-glass {
  background: rgba(26,26,36,.6);
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
}

.card-glass:hover { border-color: rgba(201,162,39,.3); }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: .8rem 2rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  transition: background .2s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--accent-light); }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--white);
  padding: .8rem 2rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: rgba(201,162,39,.5); background: var(--card); }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #2a2a38; border-radius: 4px; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 4rem;
  border-bottom: 1px solid rgba(42,42,56,.5);
  background: rgba(10,10,15,.8);
  backdrop-filter: blur(20px);
}

.navbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand .logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.navbar__brand .logo-by {
  font-size: .7rem;
  color: var(--muted);
  margin-top: .15rem;
}

.navbar__nav { display: flex; align-items: center; gap: .25rem; }

.navbar__nav a {
  padding: .5rem .75rem;
  border-radius: .5rem;
  font-size: .875rem;
  color: var(--muted);
  transition: color .2s;
}
.navbar__nav a:hover, .navbar__nav a.active { color: var(--white); }

.navbar__cta {
  margin-left: .5rem;
  background: var(--accent);
  color: var(--bg) !important;
  padding: .5rem 1.2rem !important;
  border-radius: 999px;
  font-weight: 500;
  transition: background .2s !important;
}
.navbar__cta:hover { background: var(--accent-light) !important; }

/* Mobile hamburger */
.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: .5rem;
}

.navbar__mobile {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1rem;
  flex-direction: column;
  gap: .25rem;
  background: var(--bg);
}

.navbar__mobile a {
  display: block;
  padding: .6rem .75rem;
  border-radius: .5rem;
  font-size: .875rem;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.navbar__mobile a:hover { background: var(--surface); color: var(--white); }

@media (max-width: 768px) {
  .navbar__nav { display: none; }
  .navbar__hamburger { display: block; }
  .navbar__mobile.open { display: flex; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 4rem;
  text-align: center;
}

.hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201,162,39,.15), transparent);
  pointer-events: none;
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .4;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 6rem 1.5rem;
}

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__tagline {
  margin-top: 4rem;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .05em;
}

.hero__fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--bg), transparent);
}

/* ── Stats grid ─────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1rem;
}

@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4,1fr); } }

.stat-card {
  padding: 1.5rem;
}
.stat-card__value {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -.02em;
}
.stat-card__label { margin-top: .5rem; font-size: .85rem; font-weight: 500; color: var(--accent); }
.stat-card__sub   { margin-top: .2rem; font-size: .75rem; color: var(--muted); }

/* ── Section headings ───────────────────────────────────── */
.section-eyebrow {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
}

.section-desc {
  color: var(--muted);
  max-width: 640px;
  margin-top: .75rem;
}

/* ── Product line cards ─────────────────────────────────── */
.product-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3,1fr); } }

.product-card {
  display: block;
  padding: 2rem;
  transition: border-color .2s;
  position: relative;
  overflow: hidden;
}

.product-card__title { font-size: 1.25rem; font-weight: 600; color: var(--white); margin-bottom: .75rem; }
.product-card__desc  { font-size: .875rem; color: var(--muted); }
.product-card__tier  { margin-top: 1rem; font-size: .75rem; font-weight: 500; color: var(--accent); }
.product-card__asp   { font-size: .75rem; color: var(--muted); margin-top: .2rem; }
.product-card__link  { display: inline-block; margin-top: 1.5rem; font-size: .875rem; font-weight: 500; color: var(--accent); }
.product-card__link:hover { text-decoration: underline; }

/* ── Transparency steps ─────────────────────────────────── */
.transparency-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) { .transparency-grid { grid-template-columns: repeat(2,1fr); } }

.step-card { padding: 1.25rem; }
.step-card__label { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.step-card__title { font-size: 1rem; font-weight: 600; color: var(--white); margin-top: .25rem; }
.step-card__desc  { font-size: .875rem; color: var(--muted); margin-top: .5rem; }

.steps-list { display: flex; flex-direction: column; gap: 1rem; }

/* ── Tools grid ─────────────────────────────────────────── */
.tools-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) { .tools-grid { grid-template-columns: repeat(3,1fr); } }

.tool-card { display: block; padding: 1.5rem; transition: border-color .2s; }
.tool-card__title { font-size: 1rem; font-weight: 600; color: var(--white); }
.tool-card__desc  { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.tool-card__link  { display: inline-block; margin-top: 1rem; font-size: .875rem; color: var(--accent); }

/* ── CTA ────────────────────────────────────────────────── */
.cta-section { text-align: center; }
.cta-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.cta-desc { color: var(--muted); max-width: 520px; margin: 0 auto 2.5rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(4,1fr); } }

.footer__brand-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; font-weight: 600; }
.footer__brand-desc { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.footer__brand-info { font-size: .75rem; color: var(--muted); margin-top: 1rem; line-height: 1.8; }

.footer__col-title { font-size: .875rem; font-weight: 500; color: var(--white); margin-bottom: .75rem; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer__links li a { font-size: .875rem; color: var(--muted); transition: color .2s; }
.footer__links li a:hover { color: var(--white); }
.footer__links li span { font-size: .875rem; color: var(--muted); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: .75rem;
  color: var(--muted);
}

/* ── Page hero (inner pages) ────────────────────────────── */
.page-hero {
  padding: 7rem 0 4rem;
}
.page-hero__eyebrow { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .2em; color: var(--accent); }
.page-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  margin-top: .5rem;
}
.page-hero__desc { color: var(--muted); max-width: 740px; margin-top: 1rem; }
.page-hero__link { display: inline-block; margin-top: 1.5rem; font-size: .875rem; font-weight: 500; color: var(--accent); }
.page-hero__link:hover { text-decoration: underline; }

/* ── Product items grid ─────────────────────────────────── */
.items-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}
@media (min-width: 640px) { .items-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .items-grid { grid-template-columns: repeat(3,1fr); } }

.item-card { padding: 1.5rem; }
.item-card__tier  { font-size: .75rem; font-weight: 500; text-transform: uppercase; color: var(--accent); }
.item-card__name  { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-top: .25rem; }
.item-card__spec  { font-size: .875rem; color: var(--muted); margin-top: .5rem; }
.item-card__price { font-size: .875rem; font-weight: 500; color: var(--white); margin-top: 1rem; }

/* ── About page ─────────────────────────────────────────── */
.about-card { padding: 2rem; margin-top: 2rem; }
.about-card__title { font-weight: 600; color: var(--white); margin-bottom: 1rem; }
.about-desc { color: var(--muted); line-height: 1.8; }
.about-dl { display: flex; flex-direction: column; gap: .5rem; }
.about-dl div { display: flex; gap: 1rem; font-size: .875rem; }
.about-dl dt { color: var(--white); min-width: 140px; }
.about-dl dd { color: var(--muted); }

/* ── Configurator ───────────────────────────────────────── */
.configurator-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 1024px) { .configurator-grid { grid-template-columns: repeat(2,1fr); } }

.config-panel { padding: 2rem; }
.config-panel__title { font-size: 1.1rem; font-weight: 600; margin-bottom: .25rem; }
.config-panel__sub   { font-size: .875rem; color: var(--muted); margin-bottom: 1.5rem; }

.form-field { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .08em; }

.form-select, .form-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .6rem .75rem;
  font-size: .875rem;
  color: var(--white);
  outline: none;
  transition: border-color .2s;
  appearance: none;
  font-family: inherit;
}
.form-select:focus, .form-input:focus { border-color: rgba(201,162,39,.5); }
.form-select option { background: var(--surface); }

.tier-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.tier-btn {
  padding: .4rem 1rem;
  border-radius: 999px;
  font-size: .875rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
  font-family: inherit;
}
.tier-btn.active, .tier-btn:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.dim-row { display: flex; gap: 1rem; }
.dim-row .form-field { flex: 1; }

/* BOM result */
.bom-panel { padding: 2rem; }
.bom-panel__title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }

.bom-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.bom-table th { text-align: left; color: var(--muted); padding: .4rem 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.bom-table td { padding: .5rem 0; border-bottom: 1px solid rgba(42,42,56,.5); vertical-align: top; }
.bom-table td:last-child { text-align: right; font-weight: 500; color: var(--white); }

.price-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: .75rem; padding: .75rem 0; border-top: 1px solid var(--border); }
.price-row__label { font-size: .875rem; color: var(--muted); }
.price-row__val { font-size: 1.1rem; font-weight: 600; color: var(--white); }
.price-row--accent .price-row__val { color: var(--accent); }
.price-row--total .price-row__val { font-size: 1.5rem; }

/* Payment form */
.pay-form { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.pay-form__title { font-size: .875rem; font-weight: 500; margin-bottom: 1rem; color: var(--white); }

#bom-result, #pay-section { display: none; }

/* ── Business plan ──────────────────────────────────────── */
.bizplan-hero { padding: 7rem 0 3rem; }
.bizplan-hero__tag { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); }
.bizplan-hero__title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; margin-top: .4rem; }
.bizplan-hero__desc { font-size: .875rem; color: var(--muted); margin-top: .75rem; max-width: 640px; }

.bizplan-section { margin-bottom: 2.5rem; }
.bizplan-section__title { font-size: 1rem; font-weight: 600; color: var(--accent); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.bizplan-section p { font-size: .875rem; color: var(--muted); line-height: 1.8; margin-bottom: .75rem; }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.anim-fadeup  { animation: fadeUp  .7s ease-out forwards; }
.anim-fadein  { animation: fadeIn  .6s ease-out forwards; }
.anim-delay-1 { animation-delay: .1s; opacity: 0; }
.anim-delay-2 { animation-delay: .2s; opacity: 0; }
.anim-delay-3 { animation-delay: .3s; opacity: 0; }
.anim-delay-4 { animation-delay: .4s; opacity: 0; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 .4rem; }

/* ── Alert ──────────────────────────────────────────────── */
.alert { padding: 1rem 1.5rem; border-radius: .75rem; font-size: .875rem; margin-bottom: 1rem; }
.alert--success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2); color: #4ade80; }
.alert--error   { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.2); color: #f87171; }
