/*
 * =========================================================================
 *   RC FRESH FOOD — Inner Pages CSS
 *   Covers: products.php, contact.php, about.php, wholesale.php
 *   Scope: ALL classes missing from style.css for inner pages
 *   Load order: After style.css, responsive.css, hero-upgrade.css
 * =========================================================================
 *
 *   CRITICAL GLOBAL FIX: SVGs without width/height expand to 100% by default.
 *   The CSS reset sets `svg { max-width: 100%; }` which makes unsized inline
 *   SVGs fill their container. This file adds size constraints everywhere.
 * =========================================================================
 */


/* =========================================================================
   0. GLOBAL SVG SAFETY NET
   Every inline SVG that doesn't have an explicit width/height attribute
   must be contained. We target the specific wrapper classes that hold them.
   ========================================================================= */

/* Any SVG inside these containers must NOT be huge */
.contact-detail-row__icon svg,
.sidebar-box__title svg,
.catalog-info-box svg,
.convenience__item-icon svg,
.value-card svg,
.quick-connect-btn svg,
.about-fact svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  display: block;
}

/* SVGs inside heading tags in sidebar-box__title */
.sidebar-box__title svg {
  width: 18px;
  height: 18px;
}

/* Broad safety: any inline SVG that ONLY has viewBox (no width/height)
   inside a section or main will be clamped. This is the nuclear fix. */
main svg:not([width]):not([height]) {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


/* =========================================================================
   1. PAGE HERO — used on products, contact, about, wholesale pages
   ========================================================================= */

.page-hero {
  background-color: #F8F6EF;
  padding: clamp(2.5rem, 4vw, 4rem) 0 clamp(2rem, 3.5vw, 3.25rem);
  border-bottom: 1px solid rgba(18, 61, 43, 0.08);
}

.page-hero__inner {
  max-width: 760px;
}

.page-hero__title {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #123D2B;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0.5rem 0 0.85rem;
}

.page-hero__desc {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  color: #4D5850;
  line-height: 1.65;
  max-width: 580px;
}

/* Eyebrow label — used on all pages */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #B99A58;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #B99A58;
  border-radius: 1px;
  flex-shrink: 0;
}


/* =========================================================================
   2. PRODUCTS PAGE
   ========================================================================= */

/* Info box above product grid */
.catalog-info-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #FFFFFF;
  border: 1px solid rgba(18, 61, 43, 0.1);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.catalog-info-box__text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #4D5850;
  line-height: 1.55;
  flex: 1;
  min-width: 0;
}

.catalog-info-box__text svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: #123D2B;
  margin-top: 2px;
  flex-shrink: 0;
}

.catalog-info-box strong {
  color: #242923;
}


/* =========================================================================
   3. CONTACT PAGE
   ========================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid rgba(18, 61, 43, 0.09);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

/* Each contact row: icon + text */
.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(18, 61, 43, 0.07);
}

.contact-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Icon circle */
.contact-detail-row__icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: #F0F5F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #123D2B;
  flex-shrink: 0;
}

.contact-detail-row__icon svg {
  width: 18px;
  height: 18px;
}

.contact-detail-row__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6C746C;
  margin-bottom: 0.25rem;
}

.contact-detail-row__val {
  font-size: 1rem;
  font-weight: 600;
  color: #123D2B;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.contact-detail-row__val a {
  color: #123D2B;
  text-decoration: none;
  transition: color 0.18s;
}

.contact-detail-row__val a:hover {
  color: #B99A58;
}

.contact-detail-row__sub {
  font-size: 0.8375rem;
  color: #6C746C;
  line-height: 1.6;
}


/* =========================================================================
   4. SIDEBAR BOX — used on contact & wholesale pages
   ========================================================================= */

.sidebar-box {
  background: #FFFFFF;
  border: 1px solid rgba(18, 61, 43, 0.09);
  border-radius: 14px;
  padding: 1.5rem;
}

.sidebar-box--highlight {
  background: #F0F5F2;
  border-color: rgba(18, 61, 43, 0.14);
}

.sidebar-box__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: #123D2B;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.sidebar-box__title svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex-shrink: 0;
  color: #123D2B;
}

.sidebar-box p {
  font-size: 0.875rem;
  color: #4D5850;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.sidebar-box p:last-child {
  margin-bottom: 0;
}

/* Quick connect list */
.quick-connect-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.quick-connect-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
  border: 1.5px solid transparent;
}

.quick-connect-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.quick-connect-btn--call {
  background: #123D2B;
  color: #FFFFFF;
  border-color: #123D2B;
}

.quick-connect-btn--call:hover {
  background: #0D2B1E;
}

.quick-connect-btn--whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

.quick-connect-btn--whatsapp:hover {
  background: #1EBE5D;
}

.quick-connect-btn--email {
  background: #FFFFFF;
  color: #123D2B;
  border-color: rgba(18, 61, 43, 0.2);
}

.quick-connect-btn--email:hover {
  border-color: #B99A58;
  background: #FAF7F0;
}


/* =========================================================================
   5. WHOLESALE PAGE LAYOUT
   ========================================================================= */

.wholesale-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.wholesale-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 100px;
}

/* Form card */
.wholesale-form-card {
  background: #FFFFFF;
  border: 1px solid rgba(18, 61, 43, 0.09);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.wholesale-form-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(18, 61, 43, 0.08);
}

.wholesale-form-title {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #123D2B;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.wholesale-form-sub {
  font-size: 0.875rem;
  color: #4D5850;
  line-height: 1.65;
}


/* =========================================================================
   6. FORM ELEMENTS — form-group, form-row, form-label, form-control
   ========================================================================= */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-label {
  font-size: 0.8375rem;
  font-weight: 600;
  color: #242923;
  line-height: 1.4;
}

.required {
  color: #C02B2B;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  height: 44px;
  padding: 0 0.875rem;
  font-family: 'DM Sans', 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  color: #242923;
  background: #FFFFFF;
  border: 1.5px solid rgba(18, 61, 43, 0.18);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
}

textarea.form-control {
  height: 100px;
  padding: 0.75rem 0.875rem;
  resize: vertical;
  min-height: 80px;
}

select.form-control {
  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='%23123D2B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-control:focus {
  border-color: #123D2B;
  box-shadow: 0 0 0 3px rgba(18, 61, 43, 0.1);
}

.form-control::placeholder {
  color: #9BA89C;
}

.form-control.is-invalid {
  border-color: #C02B2B;
  box-shadow: 0 0 0 3px rgba(192, 43, 43, 0.1);
}

.form-error-msg {
  font-size: 0.78rem;
  color: #C02B2B;
  font-weight: 500;
  display: none;
}

.form-group.has-error .form-error-msg {
  display: block;
}

.form-group.has-error .form-control {
  border-color: #C02B2B;
}

.form-privacy-note {
  font-size: 0.78rem;
  color: #6C746C;
  line-height: 1.65;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #F8F6EF;
  border-radius: 8px;
  border-left: 3px solid #B99A58;
}

.form-privacy-note strong {
  color: #242923;
}


/* =========================================================================
   7. ABOUT PAGE CLASSES
   ========================================================================= */

.about-summary__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.about-summary__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-summary__content p {
  color: #4D5850;
  line-height: 1.72;
  margin-bottom: 1rem;
}

.about-summary__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(18, 61, 43, 0.1);
}

.about-fact {
  padding: 1rem;
  background: #F0F5F2;
  border-radius: 10px;
}

.about-fact__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6C746C;
  display: block;
  margin-bottom: 0.4rem;
}

.about-fact__val {
  font-size: 0.9rem;
  font-weight: 600;
  color: #123D2B;
  line-height: 1.4;
  margin: 0;
}

/* Values grid */
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value-card {
  background: #FFFFFF;
  border: 1px solid rgba(18, 61, 43, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(18, 61, 43, 0.08);
}

.value-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #123D2B;
  margin-bottom: 0.6rem;
  margin-top: 0.75rem;
}

.value-card__text {
  font-size: 0.875rem;
  color: #4D5850;
  line-height: 1.65;
  margin: 0;
}

/* Icon circle for about & value cards */
.convenience__item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #F0F5F2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #123D2B;
}

.convenience__item-icon svg {
  width: 20px;
  height: 20px;
}


/* =========================================================================
   8. SECTION BACKGROUNDS (section--surface, section--neutral, section--ivory)
   ========================================================================= */

.section--surface {
  background-color: #FFFFFF;
}

.section--neutral {
  background-color: #F2EFE7;
}

.section--ivory {
  background-color: #F8F6EF;
}

.section--white {
  background-color: #FFFFFF;
}


/* =========================================================================
   9. BTN SIZE VARIANTS (sm, full) — if missing from style.css
   ========================================================================= */

.btn--sm {
  height: 36px;
  padding: 0 1rem;
  font-size: 0.8rem;
  border-radius: 7px;
}

.btn--full {
  width: 100%;
  justify-content: center;
}


/* =========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================= */

@media (max-width: 991px) {
  .wholesale-layout {
    grid-template-columns: 1fr;
  }

  .wholesale-sidebar {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-summary__grid {
    grid-template-columns: 1fr;
  }

  .value-props-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-summary__facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .value-props-grid {
    grid-template-columns: 1fr;
  }

  .about-summary__facts {
    grid-template-columns: 1fr;
  }

  .catalog-info-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero__title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .wholesale-form-card,
  .contact-card,
  .sidebar-box {
    padding: 1.25rem;
  }

  .contact-detail-row {
    gap: 0.75rem;
  }
}

@media (max-width: 390px) {
  .wholesale-form-title {
    font-size: 1.25rem;
  }

  .form-control {
    font-size: 0.875rem;
  }
}
