/* =============================================================
   TGVC GLOBAL STYLES
   Non-critical styles — typography, layout utilities, sections,
   cards, contact drawer, and page-level components.
   ============================================================= */

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--dark-text);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.display-heading {
  font-family: var(--font-display);
  font-weight: 400;
}

/* ===== SECTION LAYOUT ===== */
.section {
  padding-block: var(--section-padding);
}
.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}
.section--cream { background: var(--cream); }
.section--off-white { background: var(--off-white); }
.section--white { background: var(--white); }

.section__header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section--dark .section__eyebrow { color: var(--gold); }
.section__title {
  margin-bottom: 0.75rem;
}
.section__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--mid-grey);
  max-width: 600px;
  margin-inline: auto;
}
.section--dark .section__sub { color: rgba(255,255,255,0.75); }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card__img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__img {
  transform: scale(1.04);
}
.product-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card__origin {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 0.6rem;
}
.product-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.product-card__desc {
  font-size: 0.95rem;
  color: var(--mid-grey);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}
.product-card__specs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-grey);
}
.product-card__spec {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}
.product-card__spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid-grey);
  font-weight: 600;
}
.product-card__spec-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  transition: gap 0.15s;
}
.product-card__link:hover { gap: 0.6em; color: var(--blue-bright); }
.product-card__link svg { transition: transform 0.15s; }
.product-card__link:hover svg { transform: translateX(3px); }

/* ===== PROCESS / HOW WE WORK ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: process-step;
}
.process-step {
  position: relative;
  padding-top: 1rem;
}
.process-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.process-step__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.process-step__desc {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
}

/* ===== TRUST / VALUES ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.value-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(1,133,255,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--blue);
}
.value-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.value-card__desc {
  font-size: 0.93rem;
  color: var(--mid-grey);
  line-height: 1.65;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--navy);
  padding-block: 2.5rem;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stats-bar__item {}
.stats-bar__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stats-bar__label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4a63 100%);
  padding-block: clamp(3rem, 5vw, 5rem);
  text-align: center;
  color: var(--white);
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-banner__sub {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.cta-banner__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CONTACT DRAWER ===== */
.contact-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}
.contact-drawer.is-open {
  pointer-events: all;
  visibility: visible;
}
.contact-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.25s;
}
.contact-drawer.is-open .contact-drawer__backdrop {
  opacity: 1;
}
.contact-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 95vw);
  background: var(--white);
  box-shadow: -4px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.contact-drawer.is-open .contact-drawer__panel {
  transform: translateX(0);
}
.contact-drawer__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background 0.15s;
}
.contact-drawer__close:hover { background: var(--light-grey); }
.contact-drawer__content {
  padding: 3rem 2rem 2rem;
}
.contact-drawer__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.contact-drawer__sub {
  color: var(--mid-grey);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
.contact-drawer__methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.contact-method:hover {
  background: #fff;
  border-color: var(--blue);
}
.contact-method--cta {
  background: var(--navy);
  color: var(--white);
}
.contact-method--cta:hover {
  background: #1e4a63;
  border-color: transparent;
}
.contact-method__icon {
  width: 42px;
  height: 42px;
  background: rgba(1,133,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.contact-method--cta .contact-method__icon {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.contact-method__icon--whatsapp {
  background: rgba(37,211,102,0.1);
  color: #25d366;
}
.contact-method__info {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.contact-method__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--mid-grey);
}
.contact-method--cta .contact-method__label { color: rgba(255,255,255,0.65); }
.contact-method__value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}
.contact-method--cta .contact-method__value { color: var(--white); }
.contact-drawer__hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--mid-grey);
  padding: 0.75rem 1rem;
  background: var(--off-white);
  border-radius: var(--radius-md);
}

/* ===== UTILITY CLASSES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 2rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 2rem; }

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-banner__actions {
    flex-direction: column;
    align-items: center;
  }
}
