/* Responsive overrides for SARAL PLUS - responsive-version preview
   This file applies mobile-first responsive fixes to the root CSS.
   Goal: Keep layout consistent across desktop widths (1366–1920px) and zoom levels,
   prevent horizontal overflow, scale typography and containers safely.
*/


:root {
  --container-max-width: 80rem;
  --container-gutter: 2rem;
}

html { 
  font-size: calc(1.1vw + 0.01px);
}
body { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }

/* Preview overrides: FAQ section enforcement to match core styles */
.faq-section {
  padding: clamp(24px, 4vw, 56px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--white) !important;
}

.faq-container {
  max-width: var(--container-max-width) !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
  display: grid !important;
  gap: clamp(12px, 2.2vw, 28px) !important;
}

.faq-title { font-size: clamp(1.4rem, 3.6vw, 2.6rem) !important; text-align: center !important; margin-bottom: clamp(16px, 2.4vw, 28px) !important; }
.faq-question { padding: clamp(12px,2.4vw,20px) clamp(16px,3vw,36px) !important; font-size: clamp(1rem,1.6vw,1.125rem) !important; }
.faq-answer { font-size: clamp(0.98rem,1.6vw,1.05rem) !important; transition: max-height 0.36s cubic-bezier(.2,.8,.2,1) !important; }
.faq-question::after, .faq-question::before { right: clamp(16px,2.2vw,28px) !important; }

/* Main containers: ensure they don't exceed viewport width */
.hero-container,
.why-choose-container,
.our-gloves-container,
.manufactured-container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
  width: 100%;
  box-sizing: border-box;
}

/* Hero section: responsive two-column layout */
.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
}

/* Desktop: make a two-column layout and allow the image to break out */
@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr minmax(20rem, 40%);
    gap: 5rem;
  }
}

/* Decorative plus */
.decor-plus {
  position: absolute;
  font-size: 3rem;
  color: #F15A24;
  z-index: 10;
  pointer-events: none;
}

/* Decorative plus sizing and positioning */
.hero-card .decor-plus {
  top: -2.5rem !important;
  left: -4.75rem !important;
  width: 10rem !important;
  height: 10rem !important;
  font-size: 4.5rem !important;
}

.hero-card .decor-plus::before,
.hero-card .decor-plus::after {
  border-radius: 0.5rem !important;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12) !important;
}

/* Fixed-size bars so the plus keeps correct proportions at any scale */
.hero-card .decor-plus::before {
  width: 1.2rem !important;
  height: 7rem !important;
}

.hero-card .decor-plus::after {
  width: 7rem !important;
  height: 1.2rem !important;
}

/* Basic hero content styles */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  text-align: left;
}

/* Hero brand (SARAL PLUS text) */
.hero-brand {
  font-size: 0.75rem !important;
  letter-spacing: 0.125rem !important;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  margin: 0;
}

.hero-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Badges styling */
.badge {
  padding: 0.5rem 1rem !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.0625rem !important;
}

/* Quote button styling */
.quote-btn {
  padding: 1rem 1.5rem !important;
  font-size: 0.875rem !important;
  gap: 0.5rem !important;
}

.hero-card {
  /* Keep the card visually fixed to the viewport so it doesn't scroll away. */
  position: fixed !important;
  top: 50% !important;
  right: 0 !important;
  transform: translateY(-50%) translateX(-15%) !important;
  width: 30rem !important;
  height: auto;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  z-index: 5 !important;
}

/* Prevent content shrink on zoom out */
.hero-content,
.why-choose-container,
.our-gloves-container,
.manufactured-container,
.features-row,
.products-grid,
.faq-container {
  min-width: 0;
}

.feature-card,
.product-card {
  min-width: 100%;
}

/* Hero image: right side card */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.gloves-heart-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-2, #f3f7f6);
}

.gloves-heart-placeholder img,
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Preview-specific overrides for our-gloves section to ensure parity with main stylesheet */
.our-gloves {
  /* preview override: bottom padding removed to match core styles */
  padding-top: clamp(5px, 1vw, 11px) !important;
  padding-bottom: 0 !important;
}

.our-gloves-container {
  max-width: var(--container-max-width) !important;
  padding-left: var(--container-gutter) !important;
  padding-right: var(--container-gutter) !important;
}

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: clamp(12px, 2.2vw, 32px) !important;
}

.product-image { aspect-ratio: 4/3 !important; }
.product-image img { object-fit: cover !important; width: 100% !important; height: 100% !important; }
/* Preview override: add inner padding so images are inset from card borders */
.product-image {
  padding: clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px) 0 !important;
  box-sizing: border-box !important;
}
.product-image img { border-radius: 6px !important; }

/* Preview overrides: lock product card typography so it doesn't scale */
.product-title { font-size: 18px !important; line-height: 1.15 !important; }
.product-sizes { font-size: 14px !important; }
.product-content p { font-size: 14px !important; }
.feature-tag { font-size: 12px !important; }
.comfort-tag { font-size: 13px !important; }

/* Strong preview override scoped under .our-gloves to beat other rules */
.our-gloves .product-title { font-size: 18px !important; line-height: 1.15 !important; }
.our-gloves .product-sizes, .our-gloves .product-content p { font-size: 14px !important; }
.our-gloves .feature-tag { font-size: 12px !important; }
.our-gloves .comfort-tag { font-size: 13px !important; }
.our-gloves .product-quote-btn { font-size: 14px !important; }

/* Header integration: overlay hero section */
.header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100 !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 220ms ease, box-shadow 220ms ease;
  margin-bottom: 0 !important;
}

.header.scrolled {
  position: fixeds !important;
  background: #fff !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Header container: scale with rem */
.header-container {
  max-width: 75rem !important;
  padding: 0 2rem !important;
  height: 5rem !important;
}

/* Header content: scale font sizes and spacing with rem */
.nav-logo .logo-placeholder {
  width: 6.25rem !important;
  height: 2.5rem !important;
  font-size: 0.6875rem !important;
}

.nav-menu {
  gap: 2rem !important;
}

.nav-link {
  font-size: 0.875rem !important;
  padding: 0.5rem 0.25rem !important;
}

.contact-btn {
  padding: 0.75rem 1.25rem !important;
  font-size: 0.75rem !important;
}

body.scrolled {
  padding-top: 5rem !important;
}

@media (max-width: 768px) {
  .header {
    height: 4.5rem !important;
  }
  
  .header-container {
    height: 4.5rem !important;
  }

  body.scrolled {
    padding-top: 4.5rem !important;
  }
}

/* Hero section: account for overlaid header */
.hero {
  position: relative !important;
  overflow: visible !important;
  padding-top: 11.25rem !important;
  padding-bottom: 6.25rem !important;
  margin-top: 0 !important;
}

/* Desktop+tablet: break the hero card out to touch viewport right edge while keeping content centered */
@media (min-width: 641px) {
  .hero {
    position: relative !important;
    overflow: visible !important;
  }

  .hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-gutter);
    padding-right: 0 !important;
    overflow: visible !important;
  }

  .hero-card {
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) translateX(15%) !important;
    width: 48vw !important;
    height: 35vw !important;
    min-width: 48vw !important;
    max-width: 48vw !important;
    min-height: 35vw !important;
    max-height: 35vw !important;
    z-index: 5 !important;
  }

  /* ensure the image fills the card */
  .hero-card .gloves-heart-placeholder,
  .hero-card .hero-img {
    width: 48vw !important;
    height: 35vw !important;
    min-width: 48vw !important;
    max-width: 48vw !important;
    min-height: 35vw !important;
    max-height: 35vw !important;
    display: block;
    object-fit: cover !important;
  }
}

/* Keep the green right background slightly narrower than the hero image
   so the image visually breaks out to the right. */
@media (min-width: 992px) {
  .hero::before {
    width: 32vw !important;
    min-width: 0 !important;
  }
}

/* On small screens keep the hero-card in-flow so it doesn't cover content */
@media (max-width: 640px) {
  .hero-card {
    position: relative !important;
    transform: none !important;
    width: 100% !important;
    right: auto !important;
    top: auto !important;
  }
}

/* Why Choose: feature cards grid */
.why-choose-container {
  padding: 80px var(--container-gutter);
}

.features-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .features-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* FEATURE CARD: proportional gap */
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-img {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 12px;
  overflow: hidden;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Products grid: responsive layout */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* PRODUCT CARD: proportional gap */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Manufactured section: center content */
.manufactured-container {
  text-align: center;
  padding: 60px var(--container-gutter);
}

.manufactured-title {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 20px 0;
}

.manufactured-description {
  font-size: clamp(0.95rem, 1.8vw, 1rem);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Why Choose title */
.why-choose-title {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 40px 0;
}

/* Our Gloves title */
.our-gloves-title {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin: 0 0 40px 0;
}

/* FAQ section: responsive container */
.faq-container {
  padding: 0 var(--container-gutter);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

}

.faq-item:last-child {
  border-bottom: none;
}

/* FAQ QUESTION: proportional scaling */
.faq-question {
  width: 100%;
  text-align: left;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  padding: 0.75rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

/* Navigation: responsive menu */
.nav-menu {
  display: none;
  gap: 24px;
}

@media (min-width: 768px) {
.hero-image {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
  .nav-menu {
    display: flex !important;
  }
}

.nav-toggle {
  display: block;
}

.decor-plus,
.dashed-vertical,
.circle-vertical-start,
.decor-dots,
.circle-horizontal-end {
  max-width: 100%;
  position: absolute;
  pointer-events: none;
}

/* Ensure decorative dots/rails sit above the hero card so they remain visible
   after we moved them out of the transformed .hero-card. Kept minimal so
   positional rules from `style.css` still apply; this only sets stacking. */
.hero .hero-image .dashed-vertical,
.hero .hero-image .circle-vertical-start,
.hero .hero-image .decor-dots,
.hero .hero-image .circle-horizontal-end {
  z-index: 6 !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* Mobile: return to normal flow */
@media (max-width: 759px) {

  /* single column: green area will sit under content; keep visual intact */
  .hero .hero-container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero::before {
    width: 100%;
    left: 0;
    right: 0;
    border-radius: 0;
    /* full-width green under image */
    top: calc(-1 * var(--hero-header-overlap));
  }

  .hero .gloves-heart-placeholder {
    width: 100%;
    max-width: 100%;
    height: clamp(240px, 48vw, 360px);
    border-radius: 20px;
  }

  .hero .gloves-heart-placeholder::before {
    border-radius: 16px;
    inset: calc(var(--hero-image-stroke) / 2);
  }

  .hero .gloves-heart-placeholder::after {
    display: none;
  }

  /* hide vertical accent on small */
  .hero::after {
    display: none;
  }

  /* hide large plus on small screens */
  .hero .hero-image::after {
    display: none;
  }

  /* hide rail on small */
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none !important;
  }
}

.manufactured-container {
  text-align: center;
  /* bottom padding increased by another 50%: 144px -> 216px */
  padding: 60px var(--container-gutter) 216px var(--container-gutter) !important;
  overflow-x: visible !important;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.manufactured-section {
  overflow-x: visible !important;
  width: 100%;
  max-width: 100vw;
}
/* Ensure all major sections have safe sizing */
.hero,
.why-choose,
.manufactured-section,
.our-gloves,
.faq-section,
.site-strip {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Images: responsive and safe */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Badges and buttons: responsive text and spacing */
.badge {
  padding: 8px 16px;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
}

.quote-btn,
.product-quote-btn {
  padding: 12px 24px;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Pseudo-elements safety */
*::before,
*::after {
  box-sizing: inherit;
}

/* Hero decorative elements: prevent overflow */
.decor-plus,
.dashed-vertical,
.circle-vertical-start,
.decor-dots,
.circle-horizontal-end {
  max-width: 100%;
}

/* Small screens: adjust hero padding */
@media (max-width: 640px) {
  .hero {
    padding: 7.5rem 0 4.375rem !important;
  }

  .hero-container {
    gap: 1.5rem;
  }

  .hero-badges {
    flex-wrap: wrap;
  }

  .features-row {
    gap: 1rem;
  }

  .products-grid {
    gap: 1.25rem;
  }
}

/* Medium screens: fine-tune spacing */
@media (min-width: 641px) and (max-width: 1023px) {
  .hero {
    padding: 10rem 0 5rem !important;
  }

  .why-choose-title,
  .our-gloves-title,
  .manufactured-title {
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  }
}

/* Large screens: ensure consistent layout */
@media (min-width: 1024px) {
  .hero {
    padding: 11.25rem 0 7.5rem !important;
  }

  .why-choose-container {
    padding: 6.25rem var(--container-gutter);
  }

  .our-gloves-container {
    padding: 100px var(--container-gutter);
  }

  .manufactured-container {
    /* keep top padding but ensure bottom padding follows the 50% increase */
    padding: 80px var(--container-gutter) 216px var(--container-gutter);
  }
}


