/* Global Styles for Punawa Valve Website */
:root {
  --primary: #0077c8;
  --primary-dark: #00528a;
  --accent: #f9a826;
  --text: #1b1f23;
  --muted: #6b7280;
  --bg: #f4f6fb;
  --white: #ffffff;
  --border: #e5e7eb;
}

html, body {
  height: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo img {
  height: 52px;
}

.menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
}

.menu-toggle span {
  transition: background 0.2s ease;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-nav {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
}

.hero-carousel {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.carousel-shell {
  position: relative;
  padding: 0.75rem 0 1.25rem;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  background: #020617;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-slide {
  min-width: 100%;
  flex: 0 0 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 5;
}

.carousel-control.prev {
  left: 0.75rem;
}

.carousel-control.next {
  right: 0.75rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.carousel-dots .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.carousel-dots .dot.is-active {
  background: var(--primary);
}

.hero {
  padding: 3.5rem 0 3rem;
  background: radial-gradient(circle at top left, #e0f2ff 0, #f4f6fb 45%, #ffffff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text {
  max-width: 36rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero p {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 119, 200, 0.25);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  background: var(--white);
  color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
}

.btn.secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn.ghost {
  background: transparent;
  color: var(--primary-dark);
  border: 1px solid transparent;
}

.btn.ghost:hover {
  border-color: var(--primary);
}

.hero-card {
  background: radial-gradient(circle at top left, #e0f4ff, #ffffff);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.hero-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.hero-card ul {
  list-style: none;
}

.hero-card li {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-card li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.highlights {
  padding: 2rem 0 2.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-img-wrap {
  width: 100%;
  min-height: 200px;
  padding: 1.5rem;
  background: linear-gradient(135deg, #e0f2ff 0%, #f0f9ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.manufacturing-unit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.manufacturing-unit-card {
  background: #ffffff;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.manufacturing-unit-card:hover {
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.15);
  border-color: rgba(0, 119, 200, 0.25);
}

.manufacturing-unit-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  border-color: rgba(0, 119, 200, 0.2);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.section-products {
  background: #f9fafb;
}

.products-grid {
  align-items: stretch;
}

.product-card {
  padding: 1.8rem 1.6rem 1.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-media {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
  padding: 1.25rem 1rem;
  border-radius: 1.25rem;
  background: #eef2ff;
}

.product-media img {
  max-height: 170px;
  width: auto;
}

.product-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.product-card > p {
  margin-bottom: 0.8rem;
}

.section-blog {
  background: #f9fafb;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: #ffffff;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-media {
  background: #f9fafb;
  padding: 0.85rem 0.85rem 0.75rem;
  display: flex;
  justify-content: center;
  margin: -1.4rem -1.4rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.blog-media img {
  max-height: 180px;
  width: auto;
}

.blog-card-body {
  padding: 1.25rem 1.3rem 1.35rem;
}

.blog-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.blog-title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.blog-excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.blog-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.blog-link:hover {
  text-decoration: underline;
}

.blog-link::after {
  content: '→';
  font-size: 0.9rem;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.25);
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section {
  padding: 3rem 0 2.75rem;
}

.section-header {
  margin-bottom: 1.75rem;
}

.testimonials .section-header {
  text-align: center;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.testimonials {
  background: #f9fafb;
  padding: 0 1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  justify-content: center;
  gap: 2rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1rem;
}

.testimonial-card {
  background: #ffffff;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 1.4rem;
  border-radius: 1rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.testimonial-quote {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.testimonial-author {
  font-weight: 600;
  margin-top: 0.4rem;
}

.success-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.metric {
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 0.9rem 0.8rem;
  border: 1px solid var(--border);
}

.metric-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.card figure {
  margin: 0 0 0.75rem;
}

.card figcaption {
  margin: 0;
}

.list-checks {
  list-style: none;
  margin-top: 1rem;
}

.list-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.list-checks span.icon {
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  flex-shrink: 0;
  border-radius: 999px;
  border: 2px solid var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--primary);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pill {
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: var(--primary-dark);
}

.table-shell {
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.table-shell table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-shell thead {
  background: #f3f4f6;
}

.table-shell th,
.table-shell td {
  padding: 0.75rem 0.9rem;
  text-align: left;
}

.table-shell tbody tr:nth-child(even) {
  background: #f9fafb;
}

.table-shell tbody tr:hover {
  background: #eef2ff;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.green {
  background: #dcfce7;
  color: #166534;
}

.badge.blue {
  background: #e0f2fe;
  color: #1d4ed8;
}

.cta-band {
  border-top: 1px solid var(--border);
  background: linear-gradient(90deg, #0f172a, #020617);
  color: white;
  padding: 2rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner p {
  color: #e5e7eb;
}

.site-footer {
  padding: 1.6rem 0;
  background: #020617;
  color: #9ca3af;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
}

.footer-note {
  color: #6b7280;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
}

.textarea {
  min-height: 120px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.info-list {
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.info-list li {
  margin-bottom: 0.5rem;
}

.info-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.map-placeholder {
  margin-top: 1.2rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  padding: 1.1rem 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.whatsapp-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  background: #22c55e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.5);
  transition: background 0.2s ease, transform 0.2s ease;
}

.whatsapp-fab:hover {
  background: #16a34a;
  transform: scale(1.08);
}

@media (max-width: 900px) {
  .header-inner {
    gap: 0.5rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.35rem;
    padding: 0.75rem 1.25rem 0.9rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  }

  .cards-grid-2,
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Responsive product card grids - 3-column becomes 2-column on medium screens */
  .cards-grid[style*="repeat(3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .main-nav.open {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-toggle.open span {
    background: transparent;
  }

  .menu-toggle.open span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle.open span::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .nav-link {
    width: 100%;
  }

  .hero-inner,
  .split-layout,
  .contact-grid,
  .cards-grid,
  .cta-inner,
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3rem;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .success-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid-2,
  .cards-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .manufacturing-unit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* All card grids become 1 column on small screens */
  .cards-grid[style*="repeat(2"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .whatsapp-fab {
    right: 1rem;
    bottom: 1rem;
    padding-inline: 0.8rem;
  }
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 11, 35, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  z-index: 9999;
}

.popup-overlay.active {
  display: flex;
}

.popup-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  max-width: 540px;
  width: min(100%, 540px);
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  position: relative;
}

.popup-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.popup-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: rgba(0, 119, 200, 0.12);
  color: var(--primary);
  font-size: 2rem;
  border: 1px solid rgba(0, 119, 200, 0.22);
}

.popup-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.8rem;
  color: var(--primary-dark);
}

.popup-line {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 600;
}

.popup-line--success {
  color: #16a34a;
  white-space: nowrap;
}

.popup-line--info {
  color: #fb923c;
}

.popup-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px rgba(0, 119, 200, 0.18);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-close:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 119, 200, 0.2);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-overlay.active {
  display: flex;
}

.popup-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.popup-card h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.popup-card p {
  margin: 0 1rem 1.5rem;
  line-height: 1.5;
}

.popup-close {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  background: #0f5d8b;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}
