/* ================================================
   Aaray PACKAGING — LAYOUT
   layout.css — grid systems, containers, section spacing, hero layout
   ================================================ */

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ---- Sections ---- */
section {
  padding: var(--section-padding) var(--container-pad);
  position: relative;
}

.section-dark {
  background: var(--gradient-section-b);
}

.section-light {
  background: var(--color-white);
}

.section-off {
  background: var(--gradient-section-a);
}

.section-tinted {
  background: var(--gradient-section-c);
  position: relative;
}

/* Decorative blobs for glass visibility on light sections */
.section-off::before,
.section-tinted::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: 0;
}

.section-off > *,
.section-tinted > * {
  position: relative;
  z-index: 1;
}

/* ---- Section header ---- */
.section-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-header h2 {
  margin-top: 8px;
  margin-bottom: 14px;
}

.section-header p {
  margin: 0 auto;
  font-size: 1rem;
}

/* ---- Grids ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}

.grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
}

.grid-align-center {
  align-items: center;
}

/* ---- Flex helpers ---- */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.gap-24 {
  gap: 24px;
}
.gap-32 {
  gap: 32px;
}
.gap-48 {
  gap: 48px;
}

/* ---- Hero layout ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding: 0 var(--container-pad);
  position: relative;
  overflow: hidden;
}

/* Mesh blobs inside hero for depth */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 10% 20%,
      rgba(201, 168, 76, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 90% 80%,
      rgba(138, 43, 226, 0.07) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 60% 10%,
      rgba(15, 18, 57, 0.05) 0%,
      transparent 45%
    );
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: center;
  padding: 120px 0 80px;
}

.hero__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--color-navy);
  color: var(--color-gold);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  width: fit-content;
}

.hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.15;
  max-width: 18ch;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 52ch;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.hero__trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
}

.hero__right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

/* ---- Founder card ---- */
.hero__founder-card {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(15, 18, 57, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.hero__founder-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: linear-gradient(145deg, #d0d8ff 0%, #c8d5ff 40%, #e8d8ff 100%);
}

.hero__founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.hero__founder-card:hover .hero__founder-photo {
  transform: scale(1.03);
}

.hero__founder-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(15, 18, 57, 0.75) 100%
  );
}

.hero__founder-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero__founder-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero__founder-company {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.05em;
}

.hero__founder-body {
  padding: 16px 20px 20px;
  background: rgba(255, 255, 255, 0.05);
}

.hero__founder-quote {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.65;
  font-style: italic;
  max-width: none;
  display: flex;
  gap: 8px;
}

.hero__founder-quote .fa-quote-left {
  color: var(--color-gold);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero__img-2 {
  width: 195px;
  height: 195px;
  bottom: 15%;
  left: 0;
}

.hero__img-3 {
  width: 155px;
  height: 155px;
  bottom: 20%;
  right: 0;
}

/* ---- Scroll animation section ---- */
.scroll-anim-section {
  position: relative;
  height: 3000px;
}

.scroll-anim-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-off-white);
}

.scroll-anim-inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.scroll-anim-canvas {
  display: block;
  max-width: 100%;
  width: 620px;
  height: 620px;
  object-fit: cover;
  margin: 0 auto;
}

/* ---- Masonry gallery ---- */
.masonry-grid {
  columns: 3;
  column-gap: 20px;
}

.masonry-grid .gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
}

/* ---- Products grid ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(32px, 4vw, 56px);
}

/* ---- Testimonials row ---- */
.testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

/* ---- About stats row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

/* ---- Vision-Mission ---- */
.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ---- Decorative quote strip ---- */
.quote-strip {
  padding: clamp(40px, 5vw, 64px) var(--container-pad);
  background: var(--gradient-navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-strip blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  color: var(--color-white);
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.5;
}

.quote-strip__author {
  color: var(--color-gold);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 20px;
  letter-spacing: 0.05em;
}

/* ---- Variant cards ---- */
.variants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.variant-card {
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

.variant-card__img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 12px;
}

.variant-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-navy);
}

.variant-card__desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: none;
}

/* ---- Product detail section ---- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.product-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-detail__main-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--radius-card);
  background: rgba(15, 18, 57, 0.03);
  padding: 24px;
}

/* ---- Related products ---- */
.related-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

/* ---- Text utilities ---- */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mt-48 {
  margin-top: 48px;
}

.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.mb-32 {
  margin-bottom: 32px;
}

/* ---- Horizontal rule ---- */
.gold-rule {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
  margin: 0 auto 24px;
}

.gold-rule--left {
  margin: 0 0 24px;
}
