/* ============================================================
   CHANAKYA — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --charcoal:  #1C1C1E;
  --red:       #C0392B;
  --red-dark:  #a93226;
  --bg:        #F7F7F5;
  --surface:   #FFFFFF;
  --muted:     #6B6B6B;
  --border:    #E0E0E0;
  --green:     #27AE60;
  --green-dark:#229954;
  --radius:    6px;
  --shadow:    0 1px 4px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { color: var(--muted); }

/* ── Layout ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: #fff; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-outline-white:hover { background: #fff; color: var(--charcoal); }

.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-size: 1.375rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.01em;
  position: relative;
  padding-bottom: 4px;
}
.nav__logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  color: rgba(255,255,255,.8);
  font-size: .9375rem;
  font-weight: 500;
  transition: color .15s;
}
.nav__links a:hover { color: #fff; }

.nav__cta { margin-left: 16px; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Mobile nav open state */
.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  background: var(--charcoal);
  padding: 96px 0 80px;
  text-align: center;
}

.hero h1 { color: #fff; max-width: 760px; margin: 0 auto 20px; }

.hero__sub {
  color: rgba(255,255,255,.7);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__badges {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 40px;
  flex-wrap: wrap;
}

.hero__badge {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.hero__badge:last-child { border-right: none; }

.hero__badge-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}
.hero__badge-label {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  font-weight: 500;
}

/* ── Section headers ── */
.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

/* ── Product Category Cards ── */
.categories { background: var(--surface); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card__icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card__icon svg { width: 20px; height: 20px; fill: #fff; }

.card h3 { color: var(--charcoal); margin-bottom: 4px; }
.card p  { font-size: .9375rem; margin-bottom: 0; flex: 1; }

.card__link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.card__link:hover { color: var(--red-dark); }
.card__link::after { content: '→'; }

/* ── Why Chanakya ── */
.why { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why-item { display: flex; flex-direction: column; gap: 12px; }

.why-item__icon {
  width: 44px;
  height: 44px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-item__icon svg { width: 20px; height: 20px; stroke: var(--red); fill: none; }

.why-item h3 { color: var(--charcoal); font-size: 1.05rem; }
.why-item p  { font-size: .9375rem; }

/* ── Applications ── */
.applications { background: var(--surface); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* ── Footer ── */
.footer {
  background: var(--charcoal);
  padding: 56px 0 32px;
  color: rgba(255,255,255,.75);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}
.footer__logo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--red);
}

.footer__tagline { font-size: .875rem; }

.footer h4 {
  color: #fff;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer ul li { margin-bottom: 10px; }
.footer ul a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color .15s;
}
.footer ul a:hover { color: #fff; }

.footer address {
  font-style: normal;
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(255,255,255,.65);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
  font-size: .875rem;
  color: rgba(255,255,255,.4);
}

/* ── Page Header (inner pages) ── */
.page-header {
  background: var(--charcoal);
  padding: 56px 0 48px;
}
.page-header h1 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 12px; }
.page-header p  { color: rgba(255,255,255,.65); max-width: 640px; font-size: 1rem; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: .875rem;
}
.breadcrumb ol { display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--red); }
.breadcrumb li::after { content: '/'; color: var(--muted); margin-left: 8px; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li:last-child { color: var(--muted); }

/* ── Products Page ── */
.products-section { background: var(--surface); padding: 64px 0; }
.products-section + .products-section { background: var(--bg); }
.products-section + .products-section + .products-section { background: var(--surface); }

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 36px;
}

.product-cards { display: flex; flex-direction: column; gap: 20px; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.product-card--bg { background: var(--bg); }

.product-card__body { flex: 1; }
.product-card__body h3 { margin-bottom: 8px; }
.product-card__body p { font-size: .9375rem; }

.product-card__action { flex-shrink: 0; padding-top: 4px; }

.products-note {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}
.products-note p { margin-bottom: 20px; font-size: 1rem; }

/* ── Product Detail Page ── */
.product-detail { padding: 64px 0; }

.product-detail__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}

.product-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #D8D8D8;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .875rem;
  color: var(--muted);
  font-weight: 500;
  border: 1px solid var(--border);
}

.product-detail__right h1 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 16px;
}

.product-detail__desc {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.features-list { margin-bottom: 32px; }
.features-list h3 { margin-bottom: 16px; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.features-list ul { display: flex; flex-direction: column; gap: 10px; }
.features-list li {
  font-size: .9375rem;
  color: var(--charcoal);
  padding-left: 20px;
  position: relative;
}
.features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 2px;
  background: var(--red);
}

/* Tech table */
.tech-table-wrap { margin-bottom: 32px; overflow-x: auto; }
.tech-table-wrap h3 { margin-bottom: 16px; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.tech-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--charcoal);
  border-bottom: 2px solid var(--charcoal);
  white-space: nowrap;
}
.tech-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal);
}
.tech-table tr:last-child td { border-bottom: none; }

.standard-sizes { margin-bottom: 32px; }
.standard-sizes h3 { margin-bottom: 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.app-instructions { margin-bottom: 32px; }
.app-instructions h3 { margin-bottom: 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.app-instructions ol { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: decimal; }
.app-instructions li { font-size: .9375rem; }

/* ── Product CTA Block ── */
.product-cta {
  background: var(--red);
  padding: 56px 0;
  text-align: center;
}
.product-cta h2 { color: #fff; margin-bottom: 12px; }
.product-cta p  { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 1rem; }
.product-cta__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.product-cta__note { font-size: .8125rem; color: rgba(255,255,255,.65); margin-top: 16px; }

/* ── Product Image Gallery ── */
.product-gallery { display: flex; flex-direction: column; gap: 12px; }

.product-gallery__main {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f0f0f0;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  flex-shrink: 0;
  background: #f0f0f0;
  transition: border-color .15s;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.active { border-color: var(--red); }

/* ── Disclaimer ── */
.disclaimer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.disclaimer p {
  font-size: .8125rem;
  color: var(--muted);
  max-width: 800px;
}

/* ── Contact Page ── */
.contact-section { padding: 72px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 28px; }

.contact-block { margin-bottom: 24px; }
.contact-block h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-block p, .contact-block address {
  font-style: normal;
  font-size: .9375rem;
  color: var(--charcoal);
  line-height: 1.7;
}
.contact-block a { color: var(--charcoal); }
.contact-block a:hover { color: var(--red); }

.contact-whatsapp { margin: 28px 0; }

.export-note {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 32px;
}
.export-note h4 { font-size: .875rem; color: var(--charcoal); margin-bottom: 6px; }
.export-note p { font-size: .875rem; }

/* ── Form ── */
.enquiry-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow); }
.enquiry-form h2 { margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.form-group label .req { color: var(--red); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  color: var(--charcoal);
  background: var(--bg);
  transition: border-color .15s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--charcoal);
}

.form-group textarea { resize: vertical; }

.form-note { font-size: .8125rem; color: var(--muted); margin-top: 12px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .product-detail__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 52px 0; }

  /* Nav mobile */
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--charcoal);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 8px 0 16px;
    z-index: 99;
  }
  .nav--open .nav__links { display: flex; }
  .nav__links a { padding: 12px 24px; width: 100%; font-size: 1rem; }
  .nav__cta { padding: 12px 24px; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .nav { position: sticky; }

  /* Hero */
  .hero { padding: 64px 0 56px; }
  .hero__badges { flex-direction: column; gap: 24px; }
  .hero__badge { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 0 0 24px; }
  .hero__badge:last-child { border-bottom: none; padding-bottom: 0; }

  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }
  .why-grid    { grid-template-columns: 1fr; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .enquiry-form { padding: 24px 20px; }

  /* Product card */
  .product-card { flex-direction: column; }
  .product-card__action { width: 100%; }
  .product-card__action .btn { width: 100%; justify-content: center; }

  /* Product detail */
  .product-detail__grid { grid-template-columns: 1fr; }
  .product-image-placeholder { max-width: 100%; }

  /* CTA */
  .product-cta__buttons .btn { width: 100%; justify-content: center; }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}
