/* =========================================================
   RELUME – EXTRACTED & NORMALIZED (Kirby Native)
   Purpose: Native pages parity + utility foundation
   ========================================================= */

/* =========================
   FONT IMPORTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,500;0,700;1,400&family=Bree+Serif&display=swap');

/* =========================
   TOKENS
========================= */
:root {
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-muted: #cccccc;
  --color-primary: #4CAF50;

  --border-primary: #ffffff;

  --font-body: 'Alegreya', serif;
  --font-heading: 'Bree Serif', serif;
}

/* =========================
   BASE
========================= */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

p {
  margin: 0.75rem 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text);
}

/* =========================
   HEADINGS
========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
}

/* =========================
   CONTAINER
========================= */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   FLEX
========================= */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* =========================
   GRID
========================= */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:gap-x-20 { column-gap: 5rem; }
}

/* =========================
   GAPS
========================= */
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* =========================
   SPACING – PADDING
========================= */
.px-\[5\%\] { padding-left: 5%; padding-right: 5%; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.p-8 { padding: 2rem; }

@media (min-width: 768px) {
  .md\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:p-12 { padding: 3rem; }
}

@media (min-width: 1024px) {
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
}

/* =========================
   SPACING – MARGINS
========================= */
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

/* =========================
   TYPOGRAPHY UTILITIES
========================= */
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

.text-md { font-size: 1.125rem; line-height: 1.6; }
.text-2xl { font-size: 1.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.1; }

@media (min-width: 768px) {
  .md\:text-7xl { font-size: 4.5rem; line-height: 1.05; }
}

@media (min-width: 1024px) {
  .lg\:text-8xl { font-size: 6rem; line-height: 1; }
}

/* =========================
   BORDERS & MEDIA
========================= */
.border { border: 1px solid var(--border-primary); }
.border-border-primary { border-color: var(--border-primary); }
.inline-block { display: inline-block; }
.w-full { width: 100%; }
.object-cover { object-fit: cover; }

/* =========================
   GRID CARD IMAGES (home proven section)
========================= */
.card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
}
.card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   ✅ FINAL BUTTON SYSTEM (OVAL + GREEN)
========================================================= */
a.border.inline-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0.85rem 1.75rem;

  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;

  border-radius: 9999px;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;

  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
a.border.inline-block:hover {
  background-color: #43a047;
  border-color: #43a047;
}

/* =========================================================
   PRODUCTS CAROUSEL – BASE (works when Webflow is not fighting it)
========================================================= */
.products-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
}

.products-slide {
  flex: 0 0 90%;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
.products-slide {
  flex: 0 0 75%;
  scroll-snap-align: start;
}
}
@media (min-width: 640px) {
  .products-slide { flex-basis: 60%; }
}
@media (min-width: 768px) {
  .products-slide { flex-basis: 40%; }
}
@media (min-width: 1024px) {
  .products-slide { flex-basis: 25%; }
}

/* Image container (Relume aspect-[5/6]) */
.products-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.products-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.products-arrow {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: 1px solid var(--border-primary);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.products-arrow:hover {
  background: rgba(255,255,255,0.08);
}

/* =========================================================
   PRODUCTS NATIVE – OVERRIDE WEBFLOW (wins via scope + !important)
   IMPORTANT: your products-native template should have:
     class="products-native-scope"
   on the section wrapper.
========================================================= */
.products-native-scope .products-track {
  display: flex !important;
  gap: 24px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
}

.products-native-scope .products-slide {
  flex: 0 0 90% !important;
  scroll-snap-align: start !important;
}

@media (min-width: 640px) {
  .products-native-scope .products-slide { flex-basis: 80% !important; }
}
@media (min-width: 768px) {
  .products-native-scope .products-slide { flex-basis: 50% !important; }
}
@media (min-width: 1024px) {
  .products-native-scope .products-slide { flex-basis: 33% !important; }
}

.products-native-scope .products-media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 5 !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.05) !important;
}

.products-native-scope .products-media-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
/* =========================================================
   PRODUCTS – CARD TYPOGRAPHY TWEAKS
   ========================================================= */

.products-native-scope h3 {
  font-size: 1.25rem;        /* smaller than default */
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .products-native-scope h3 {
    font-size: 1.375rem;
  }
}
.products-native-scope .text-md {
  font-size: 1.5rem;          /* bigger price */
  font-weight: 700;
  margin-top: 0.25rem;
  color: var(--color-text);
}

/* Section-level headings (between h2 and h3 visually) */
.section-heading {
  font-size: 2.25rem;   /* ~36px */
  line-height: 1.2;
  font-weight: 400;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 2.75rem; /* ~44px */
  }
}
/* =========================================================
   IMAGE GRID – FINAL, POLISHED (SIZE + SPACING + OVERLAY)
   ========================================================= */

/* Card container */
.image-grid-card {
  position: relative;
  aspect-ratio: 10 / 8;          /* ✅ wider, less tall */
  overflow: hidden;
  border-radius: 16px;          /* ✅ rounded corners */
}

/* Image */
.image-grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay (between image and text) */
.image-grid-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0)
  );
}

/* Overlay text container */
.image-grid-card .absolute {
  position: absolute;
  inset: 0;
  z-index: 2;                  /* ✅ above gradient */
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Overlay heading */
.image-grid-card h3 {
  font-size: 1.375rem;          /* ✅ clear hierarchy */
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

/* Overlay subtext */
.image-grid-card p {
  font-size: 0.95rem;           /* ✅ smaller than heading */
  line-height: 1.4;
  opacity: 0.9;
}

/* Grid spacing + overall size */
.products-native-scope .container.grid {
  gap: 2rem;                   /* ✅ spacing between cards */
}

@media (min-width: 1024px) {
  .products-native-scope .container.grid {
    max-width: 70%;             /* ✅ ~30% smaller */
    margin-inline: auto;        /* ✅ centered */
  }
}

/* =========================================================
   GLOBAL SECTION SEPARATION (WEBFLOW / RELUME STYLE)
   ========================================================= */

/* Add subtle space between stacked sections */
.products-native-scope > section + section {
  margin-top: 4rem; /* adjusts the "gap" between sections */
}

@media (min-width: 768px) {
  .products-native-scope > section + section {
    margin-top: 6rem;
  }
}
