/* Hindustan Products — brochure-inspired corporate styles */

:root {
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --text: #334155;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-gradient: linear-gradient(145deg, #f1f5f9 0%, #ffffff 45%, #e8eef5 100%);
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(15 23 42 / 0.07), 0 2px 4px -2px rgb(15 23 42 / 0.05);
  --shadow-lg: 0 20px 40px -12px rgb(15 23 42 / 0.12), 0 8px 16px -8px rgb(15 23 42 / 0.08);
  --radius: 8px;
  --radius-lg: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}

.logo-link:hover {
  text-decoration: none;
  color: var(--navy-soft);
}

.logo-mark {
  flex-shrink: 0;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy-soft);
  text-decoration: none;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--navy);
  text-decoration: none;
}

.nav-desktop a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0 1.25rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.875rem 0;
  font-weight: 500;
  color: var(--navy-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ——— Layout ——— */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 2.5rem;
  font-size: 1.0625rem;
}

/* ——— Hero ——— */
.hero {
  background: var(--bg-gradient);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 4rem;
  margin-top: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-tagline {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-soft);
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  max-width: 28rem;
}

.hero-tactile {
  font-size: 0.9375rem;
  color: var(--navy-soft);
  margin: 0 0 1.5rem;
  max-width: 30rem;
  line-height: 1.65;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--navy);
  text-decoration: none;
  color: var(--navy);
}

.hero-visual {
  position: relative;
}

.hero-visual .hero-carousel-caption {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.9375rem;
}

/* ——— Hero carousel (plate showcase) ——— */
.hero-carousel {
  width: 100%;
}

.hero-carousel-label {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-carousel-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(15 23 42 / 0.06);
  background: linear-gradient(165deg, #eef2f7 0%, #f8fafc 40%, #e2e8f0 100%);
}

.hero-carousel-viewport {
  position: relative;
  touch-action: pan-y;
  overflow: hidden;
  border-radius: inherit;
}

.hero-carousel-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #e8edf3 0%, #f1f5f9 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.75s ease, transform 0.75s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: opacity 0.3s ease, transform none;
  }
}

.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgb(15 23 42 / 0.12);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.hero-carousel-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgb(15 23 42 / 0.18);
}

.hero-carousel-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-carousel-btn--prev {
  left: 0.75rem;
}

.hero-carousel-btn--next {
  right: 0.75rem;
}

.hero-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 1.5rem 3.5rem 1.15rem;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgb(15 23 42 / 0.5) 0%,
    rgb(15 23 42 / 0.18) 55%,
    transparent 100%
  );
}

.hero-carousel-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  pointer-events: auto;
  background: none;
  border: none;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.38);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.hero-carousel-dot:hover {
  background: rgb(255 255 255 / 0.55);
}

.hero-carousel-dot.is-active {
  background: #fff;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.45);
  transform: scale(1.2);
}

.hero-carousel-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-carousel-caption {
  margin: 1.35rem 0 0;
  padding: 0.35rem 0.75rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.55;
  min-height: 3rem;
  background: none;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-carousel-overlay {
    padding: 1.25rem 2.85rem 1rem;
  }
}

/* ——— Products (gradient banners + catalog) ——— */
.products-section {
  background: var(--bg-subtle);
  padding-bottom: 3rem;
}

.product-catalog {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 0.5rem;
}

.product-category {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg);
}

.product-category__banner {
  padding: 1.65rem 1.75rem 1.75rem 2rem;
  background: linear-gradient(
    90deg,
    #050810 0%,
    #0f172a 24%,
    #172554 55%,
    #1d4ed8 82%,
    #2563eb 100%
  );
  color: #f8fafc;
}

@media (max-width: 640px) {
  .product-category__banner {
    padding: 1.35rem 1.35rem 1.5rem;
  }
}

.product-category__badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  background: rgb(15 23 42 / 0.5);
  border: 1px solid rgb(255 255 255 / 0.14);
  color: #f1f5f9;
}

.product-category__title {
  margin: 0.75rem 0 0;
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #ffffff;
}

.product-category__lede {
  margin: 0.55rem 0 0;
  max-width: 42rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgb(226 232 240 / 0.9);
}

.product-category__split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  min-height: 0;
}

/* Printed polyester vs custom patterns: first panel ~65% more area (1.65:1 width at shared height). */
@media (min-width: 641px) {
  .product-category__split--printed-bias {
    grid-template-columns: 1.65fr auto 1fr;
  }
}

.product-category__divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
  align-self: stretch;
}

@media (max-width: 640px) {
  .product-category__split {
    grid-template-columns: 1fr;
  }

  .product-category__divider {
    display: none;
  }

  .product-category__split .product-panel:first-of-type {
    border-bottom: 1px solid var(--border);
  }
}

.product-panel {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.5rem 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .product-panel {
    grid-template-columns: minmax(120px, 34%) 1fr;
    align-items: start;
  }
}

.product-panel__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  aspect-ratio: 4 / 3;
}

.product-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-panel__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.product-panel__blurb {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.55;
}

.spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.spec-chip {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--navy-soft);
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.product-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.product-panel__link:hover {
  text-decoration: none;
  color: var(--accent-hover);
}

/* ——— About ——— */
.about-section {
  border-top: 1px solid var(--border);
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.about-section-title {
  margin: 0 0 1.75rem;
  max-width: 40rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.about-col p {
  margin: 0 0 1rem;
  color: var(--text);
}

.about-col p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .about-section-title {
    margin-bottom: 1.25rem;
  }
}

/* ——— Contact ——— */
.contact-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}

.contact-wrap {
  max-width: 28rem;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  color: var(--navy);
}

.contact-role {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1.5rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.contact-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-list strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-list a {
  color: var(--navy);
  font-weight: 600;
}

.contact-note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-brand .logo-text {
  color: #fff;
  font-size: 1.125rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 22rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #cbd5e1;
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.8125rem;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ——— Product detail pages ——— */
.page-hero {
  background: var(--bg-gradient);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.02em;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0 4rem;
  align-items: start;
}

.detail-media {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  align-self: start;
}

.detail-media .detail-image {
  position: static;
}

.detail-media .hero-carousel-caption {
  margin-top: 1.1rem;
  padding: 0;
  text-align: center;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.5;
  min-height: 2.75rem;
}

.detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-subtle);
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.detail-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-image > .hero-carousel-frame {
  box-shadow: 0 4px 24px rgb(15 23 42 / 0.08);
}

.detail-content h2 {
  font-size: 1.125rem;
  color: var(--navy);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.detail-content p {
  margin: 0 0 1rem;
  color: var(--text);
}

.detail-content p.detail-artwork-note {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.85rem;
  row-gap: 0.65rem;
}

.design-pattern-list {
  margin: 0 1.25rem 1rem;
  padding: 0 0 0 1.25rem;
  color: var(--navy);
  font-weight: 500;
  columns: 2;
  column-gap: 2rem;
}

.design-pattern-list li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

@media (max-width: 640px) {
  .design-pattern-list {
    columns: 1;
  }
}

.spec-table-wrap {
  margin-top: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.spec-table-wrap h3 {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.spec-table-wrap > p {
  margin: 1rem 1.25rem 0;
  color: var(--text);
  font-size: 0.9375rem;
}

.spec-table-wrap > p:last-child {
  margin-bottom: 1rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.spec-table th,
.spec-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  color: var(--text-muted);
  font-weight: 500;
  width: 38%;
  background: rgb(248 250 252 / 0.5);
}

.spec-table td {
  color: var(--navy);
  font-weight: 600;
}

.detail-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-image {
    position: static;
  }

  .detail-media {
    position: static;
  }
}
