/* ================================================================
   RAGHAV POLYMERS — Page-Specific Styles
   Supplements brand-system.css with per-page overrides
   ================================================================ */


/* ======== CONTACT PAGE ======== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.contact-form-wrap {
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}
.contact-form-wrap h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.contact-form-wrap .form-intro {
  font-size: 13.5px;
  color: var(--rp-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-sidebar {}
.contact-card {
  padding: 32px 28px;
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.contact-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rp-red);
  margin-bottom: 16px;
}
.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.contact-card p {
  font-size: 13.5px;
  color: var(--rp-text-body);
  line-height: 1.7;
}
.contact-card a {
  color: var(--rp-text-dark);
  font-weight: 600;
  transition: color 0.2s;
}
.contact-card a:hover { color: var(--rp-red); }

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--rp-red);
  stroke-width: 1.5;
  fill: none;
}
.contact-info-text {
  font-size: 14px;
  color: var(--rp-text-body);
  line-height: 1.6;
}
.contact-info-text a {
  color: var(--rp-text-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.contact-info-text a:hover { color: var(--rp-red); }

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.form-note {
  font-size: 11px;
  color: var(--rp-text-muted);
  line-height: 1.5;
}

/* Map embed */
.contact-map {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--rp-border);
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .contact-form-wrap { padding: 32px 24px; }
}


/* ======== PRODUCTS PAGE ======== */
.product-category-section {
  scroll-margin-top: 80px;
}
.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.category-header h2 {
  font-size: 28px;
  font-weight: 800;
}
.category-count {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rp-text-muted);
  padding: 4px 12px;
  background: var(--rp-off-white);
  border: 1px solid var(--rp-border);
  border-radius: 3px;
}
.product-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-list-card {
  display: block;
  padding: 28px 24px;
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.product-list-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rp-red);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-list-card:hover {
  border-color: rgba(200,16,46,0.12);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-list-card:hover::after { width: 100%; }
.product-list-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.product-list-card p {
  font-size: 12.5px;
  color: var(--rp-text-muted);
  line-height: 1.6;
}
.product-list-card .product-arrow {
  position: absolute;
  top: 28px;
  right: 24px;
  font-size: 14px;
  color: var(--rp-text-light);
  transition: color 0.2s, transform 0.2s;
}
.product-list-card:hover .product-arrow {
  color: var(--rp-red);
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .product-list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .product-list-grid { grid-template-columns: 1fr; }
}


/* ======== WHY-US PAGE ======== */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.problem-card {
  padding: 32px 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}
.problem-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--rp-white);
  margin-bottom: 8px;
}
.problem-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
}

.scrolly-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  min-height: 400px;
}
.scrolly-sticky {
  position: sticky;
  top: 120px;
  align-self: start;
}
.scrolly-steps {}
.scrolly-step {
  padding: 48px 0;
  border-bottom: 1px solid var(--rp-border);
  opacity: 0.4;
  transition: opacity 0.4s;
}
.scrolly-step.active { opacity: 1; }
.scrolly-step-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rp-red);
  margin-bottom: 12px;
}
.scrolly-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.scrolly-step p {
  font-size: 14px;
  color: var(--rp-text-body);
  line-height: 1.75;
}

.stat-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-highlight {
  text-align: center;
  padding: 48px 24px;
  position: relative;
}
.stat-highlight:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}
.stat-highlight-num {
  font-family: var(--font-accent);
  font-size: 48px;
  font-weight: 700;
  color: var(--rp-white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-highlight-num span { color: var(--rp-red); }
.stat-highlight-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 1024px) {
  .problem-cards { grid-template-columns: repeat(2, 1fr); }
  .scrolly-wrap { grid-template-columns: 1fr; }
  .scrolly-sticky { position: static; }
}
@media (max-width: 768px) {
  .problem-cards { grid-template-columns: 1fr; }
  .stat-highlight-grid { grid-template-columns: 1fr; }
  .stat-highlight:not(:last-child)::after { display: none; }
  .stat-highlight { padding: 32px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
}


/* ======== ABOUT PAGE ======== */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.timeline {
  position: relative;
  padding: 48px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--rp-border);
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  position: relative;
  margin-bottom: 64px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--rp-red);
  border-radius: 50%;
  border: 3px solid var(--rp-warm-white);
  z-index: 2;
}
.timeline-year {
  font-family: var(--font-accent);
  font-size: 48px;
  font-style: italic;
  color: var(--rp-red);
  text-align: right;
  padding-right: 48px;
}
.timeline-content {
  padding-left: 48px;
}
.timeline-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-content p {
  font-size: 14px;
  color: var(--rp-text-body);
  line-height: 1.75;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  text-align: center;
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--rp-sand);
}
.team-body {
  padding: 24px 20px 28px;
}
.team-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.team-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rp-red);
  margin-bottom: 12px;
}
.team-bio {
  font-size: 13px;
  color: var(--rp-text-muted);
  line-height: 1.65;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  padding: 32px 24px;
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.value-card:hover {
  border-color: rgba(200,16,46,0.12);
  box-shadow: var(--shadow-sm);
}
.value-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 13px;
  color: var(--rp-text-muted);
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .about-hero-graphic { display: none; }
  .page-hero .container { grid-template-columns: 1fr !important; }
  .about-hero-media { transform: scale(0.85) translateX(0) !important; margin: 0 auto; max-width: 320px; }
  .about-story-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .photo-collage { grid-template-columns: 1fr 1fr !important; grid-template-rows: 160px 160px 160px !important; }
  .photo-collage > div:first-child { grid-row: 1/2 !important; }
  .timeline::before { left: 20px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-dot { left: 20px; }
  .timeline-year { text-align: left; padding: 0 0 0 48px; font-size: 36px; }
  .timeline-content { padding-left: 48px; }
  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .values-grid { grid-template-columns: 1fr; }
}
