/* =========================================================
   New India Furniture — design tokens
========================================================= */
:root {
  --color-walnut: #3d2b1f;
  --color-walnut-dark: #241811;
  --color-terracotta: #b5502e;
  --color-terracotta-dark: #93401f;
  --color-cream: #faf5ee;
  --color-cream-alt: #f1e7d8;
  --color-sand: #e7d9c4;
  --color-ink: #241d17;
  --color-ink-soft: #5a4d40;
  --color-white: #ffffff;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

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

  --shadow-card: 0 12px 32px -16px rgba(36, 24, 17, 0.35);
  --shadow-lift: 0 20px 48px -20px rgba(36, 24, 17, 0.45);

  --header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-walnut-dark);
  margin: 0 0 var(--space-sm);
  line-height: 1.15;
  font-weight: 600;
}

p { margin: 0 0 var(--space-sm); color: var(--color-ink-soft); }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin: 0 0 var(--space-2xs);
}

.section { padding: var(--space-2xl) 0; }
.section--muted { background: var(--color-cream-alt); }

.section-head { max-width: 640px; margin: 0 auto var(--space-lg); text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-sub { font-size: 1.05rem; }

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--color-terracotta-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-walnut-dark);
}
.btn-outline:hover { background: rgba(61, 43, 31, 0.08); }

/* =========================================================
   Header / Nav
========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

/* Blur lives on a non-ancestor sibling layer so it never becomes the
   containing block for the fixed mobile nav panel. */
.site-header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 245, 238, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(61, 43, 31, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled .site-header-bg {
  background: rgba(250, 245, 238, 0.97);
  box-shadow: 0 8px 24px -16px rgba(36, 24, 17, 0.3);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--space-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.brand-mark {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--color-walnut);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-walnut-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-tag {
  font-size: 0.72rem;
  color: var(--color-ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav { flex-shrink: 0; }
.nav-toggle { flex-shrink: 0; }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
}
.nav-links li { display: flex; align-items: center; }

/* Scope link styling away from the .btn CTA so the CTA keeps its own padding */
.nav-links a:not(.btn) {
  padding: 0.4rem 0.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink);
  position: relative;
  white-space: nowrap;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 1101;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-walnut-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(36, 24, 17, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1040;
}
.nav-scrim.is-active { opacity: 1; visibility: visible; }

/* =========================================================
   Hero
========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 16, 11, 0.25) 0%, rgba(24, 16, 11, 0.15) 40%, rgba(24, 16, 11, 0.55) 100%),
    linear-gradient(100deg, rgba(24, 16, 11, 0.94) 0%, rgba(24, 16, 11, 0.86) 38%, rgba(24, 16, 11, 0.55) 68%, rgba(24, 16, 11, 0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.hero-content .eyebrow { color: var(--color-sand); }
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: var(--space-md);
}
.hero-sub {
  color: rgba(250, 245, 238, 0.88);
  font-size: 1.1rem;
  max-width: 540px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  min-width: 0;
  margin-top: var(--space-md);
}
.hero-cta-row .btn { flex: 0 1 auto; min-width: 0; }
.hero .btn-outline {
  color: var(--color-white);
  border-color: rgba(250, 245, 238, 0.7);
}
.hero .btn-outline:hover { background: rgba(250, 245, 238, 0.12); }

.hero-trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin: var(--space-xl) 0 0;
  padding: var(--space-md) 0 0;
  border-top: 1px solid rgba(250, 245, 238, 0.25);
}
.hero-trust-row li { display: flex; flex-direction: column; min-width: 0; }
.trust-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
}
.trust-label {
  font-size: 0.8rem;
  color: rgba(250, 245, 238, 0.75);
}

/* =========================================================
   Highlights strip
========================================================= */
.strip {
  background: var(--color-walnut);
  padding: var(--space-md) 0;
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}
.strip-item {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--color-cream);
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 0;
}
.strip-icon { font-size: 1.2rem; flex-shrink: 0; }

/* =========================================================
   Collections grid
========================================================= */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.collection-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.collection-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.collection-media { aspect-ratio: 4 / 3; overflow: hidden; }
.collection-media img { width: 100%; height: 100%; object-fit: cover; }
.collection-body { padding: var(--space-md); min-width: 0; }
.collection-body h3 { font-size: 1.2rem; margin-bottom: var(--space-2xs); }
.collection-body p { font-size: 0.95rem; margin-bottom: 0; }

.collection-card--cta {
  background: var(--color-terracotta);
  justify-content: center;
}
.collection-body--cta { text-align: center; }
.collection-card--cta h3,
.collection-card--cta p { color: var(--color-white); }
.collection-card--cta .btn-primary {
  background: var(--color-white);
  color: var(--color-terracotta-dark);
  box-shadow: none;
}
.collection-card--cta .btn-primary:hover { background: var(--color-cream); }

/* =========================================================
   About
========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}
.about-media {
  align-self: stretch;
  height: 100%;
}
.about-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 520px;
  min-height: 360px;
}
.about-copy { min-width: 0; }
.about-points {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.about-points li {
  padding-left: var(--space-md);
  position: relative;
  color: var(--color-ink-soft);
}
.about-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-terracotta);
}
.about-points strong { color: var(--color-ink); }

/* =========================================================
   Gallery
========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 220px;
  gap: var(--space-sm);
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-width: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item--wide { grid-column: span 2; }
@media (max-width: 640px) {
  .gallery-item--wide { grid-column: span 1; }
}

/* =========================================================
   Testimonials
========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: 0;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.testimonial-card blockquote {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-ink);
  line-height: 1.5;
}
.testimonial-card figcaption {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-terracotta-dark);
}

/* =========================================================
   CTA band
========================================================= */
.cta-band {
  background: var(--color-walnut-dark);
  padding: var(--space-xl) 0;
}
.cta-band-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-band-inner h2 { color: var(--color-white); }
.cta-band-inner p { color: rgba(250, 245, 238, 0.8); }
.cta-band-inner .hero-cta-row { justify-content: center; }
.cta-band-inner .btn-outline {
  color: var(--color-white);
  border-color: rgba(250, 245, 238, 0.7);
}
.cta-band-inner .btn-outline:hover { background: rgba(250, 245, 238, 0.12); }

/* =========================================================
   Visit / Contact
========================================================= */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--space-xl);
  align-items: stretch;
}
.info-list {
  list-style: none;
  margin: var(--space-md) 0 var(--space-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.info-list li { display: flex; gap: var(--space-sm); min-width: 0; }
.info-icon { font-size: 1.3rem; flex-shrink: 0; }
.info-list strong { display: block; color: var(--color-ink); margin-bottom: 0.2em; }
.info-list p { margin: 0; }

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 320px;
}
.visit-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* =========================================================
   Footer
========================================================= */
.site-footer {
  background: var(--color-walnut-dark);
  padding: var(--space-lg) 0;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-bottom: var(--space-sm);
}
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 0.85rem; }
.footer-brand .brand-name { color: var(--color-cream); font-size: 1rem; }
.footer-note, .footer-copy {
  color: rgba(250, 245, 238, 0.6);
  font-size: 0.85rem;
  margin: 0 0 var(--space-2xs);
}

/* =========================================================
   Responsive — dense nav needs a wide drawer breakpoint
========================================================= */
@media (max-width: 899px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--color-walnut-dark);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2xs);
    width: 100%;
  }
  .nav-links li { display: block; }
  .nav-links a:not(.btn) {
    display: block;
    width: 100%;
    padding: var(--space-sm) var(--space-2xs);
    color: var(--color-cream);
    font-size: 1.05rem;
    -webkit-tap-highlight-color: rgba(181, 80, 46, 0.25);
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { width: 100%; margin-top: var(--space-sm); }

  .nav-toggle { display: flex; }

  /* header stacking context must outrank the scrim (1040) at the root level */
  .site-header { z-index: 1100; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--color-cream);
  }
  .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);
    background: var(--color-cream);
  }
}

@media (max-width: 780px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { order: -1; height: auto; }
  .about-media img { height: 320px; max-height: none; min-height: 0; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .visit-map { min-height: 280px; }
}

@media (max-width: 480px) {
  .brand-tag { display: none; }
  .hero-cta-row .btn { flex: 1 1 auto; text-align: center; }
  :root { --header-height: 72px; }
}

/* =========================================================
   Collection detail pages
========================================================= */
.breadcrumb-bar {
  padding-top: calc(var(--header-height) + var(--space-md));
  padding-bottom: var(--space-md);
}
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3xs);
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}
.breadcrumb a { color: var(--color-terracotta-dark); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-3xs);
  color: var(--color-ink-soft);
  opacity: 0.5;
}
.breadcrumb li[aria-current] { color: var(--color-ink); }

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 16, 11, 0.15) 0%, rgba(24, 16, 11, 0.35) 55%, rgba(24, 16, 11, 0.82) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-xl);
  max-width: 720px;
}
.page-hero-content .eyebrow { color: var(--color-sand); }
.page-hero-content h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: var(--space-sm);
}
.page-hero-content p {
  color: rgba(250, 245, 238, 0.9);
  font-size: 1.05rem;
  max-width: 600px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}
.detail-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.detail-copy > p { font-size: 1.05rem; }

.spec-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  min-width: 0;
}
.spec-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}
.spec-list {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.spec-list li {
  display: flex;
  gap: var(--space-2xs);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-cream-alt);
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  min-width: 0;
}
.spec-list li:last-child { border-bottom: none; padding-bottom: 0; }
.spec-list li strong { color: var(--color-ink); flex-shrink: 0; }
.spec-card .btn { width: 100%; }
.spec-card .btn-whatsapp { margin-top: var(--space-sm); border-color: #25d366; color: #1f8a4c; }
.spec-card .btn-whatsapp:hover { background: rgba(37, 211, 102, 0.1); }

.detail-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.detail-photo-grid .gallery-item { aspect-ratio: 4 / 3; }
.detail-photo-grid .gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.feature-points {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}
.feature-points li {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  min-width: 0;
  box-shadow: var(--shadow-card);
}
.feature-points strong { display: block; color: var(--color-terracotta-dark); margin-bottom: 0.2em; font-size: 0.95rem; }
.feature-points span { font-size: 0.9rem; color: var(--color-ink-soft); }

.related-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
}
.related-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  min-width: 0;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease;
}
.related-card:hover { transform: translateY(-3px); }
.related-card img { width: 100%; height: 100%; object-fit: cover; }
.related-card span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-sm);
  background: linear-gradient(0deg, rgba(24, 16, 11, 0.85), transparent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
