/*
 * 4RE Brand Design System v2.1.0
 * Matches "4 re.pdf" deck aesthetic
 * Cool Grey #C8C8C8 | Yellow Highlight #FFFF00 | Near Black #1A1A1A
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,300;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --4re-yellow: #FFFF00;
  --4re-dark: #1A1A1A;
  --4re-grey: #C8C8C8;
  --4re-grey-light: #D4D4D4;
  --4re-grey-mid: #A0A0A0;
  --4re-grey-dark: #808080;
  --4re-white: #FFFFFF;
  --4re-font-body: 'DM Sans', 'Helvetica Neue', 'Arial', sans-serif;
  --4re-font-mono: 'DM Mono', 'Courier New', monospace;
  --4re-transition: 0.3s ease;
}

/* ═══ BASE ═══ */
body {
  font-family: var(--4re-font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--4re-dark);
  background-color: var(--4re-grey);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--4re-dark); text-decoration: none; transition: opacity var(--4re-transition); }
a:hover { opacity: 0.7; }
::selection { background: var(--4re-yellow); color: var(--4re-dark); }

/* ═══ HIDE PAGE TITLES ═══ */
.page .entry-title,
.page .page-title,
.page-header .page-title,
.woocommerce-page .page-title,
.page .entry-header,
body.page .entry-header {
  display: none !important;
}

/* ═══ TYPOGRAPHY — clean geometric, editorial ═══ */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--4re-font-body);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--4re-dark);
  text-transform: none;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1.5em; font-weight: 300; }

/* Yellow highlight marker effect — the PDF signature */
.re-highlight, mark {
  background: var(--4re-yellow);
  color: var(--4re-dark);
  padding: 2px 6px;
  font-weight: 400;
  text-decoration: none;
}

/* Black label with text */
.re-label-dark {
  background: var(--4re-dark);
  color: var(--4re-white);
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Yellow label */
.re-label-yellow {
  background: var(--4re-yellow);
  color: var(--4re-dark);
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Mono/data text */
.re-mono {
  font-family: var(--4re-font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* Arrow bullet lists — the PDF style */
.re-arrow-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.re-arrow-list li {
  padding: 0.5rem 0;
  padding-left: 2rem;
  position: relative;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
}
.re-arrow-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--4re-grey-mid);
  font-weight: 300;
}

/* ═══ LAYOUT ═══ */
.re-container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
.re-container-wide { max-width: 1400px; margin: 0 auto; padding: 0 3rem; }
.re-section { padding: 5rem 0; }

/* Split layout — text left, visual right (editorial style) */
.re-split {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4rem;
  align-items: start;
}

/* ═══ GRID UTILITIES (WordPress strips inline grid styles) ═══ */
.re-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 3rem;
}
.re-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem;
}
.re-grid-3-tight {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0;
}
.re-grid-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 2rem;
}

/* Flex row utility */
.re-flex {
  display: flex !important;
  gap: 1rem;
}
.re-flex-wrap {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.re-flex-center {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

/* Ingredient card with image — flex row */
.re-ingredient-row {
  display: flex !important;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.re-ingredient-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.re-ingredient-row img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ═══ FULL-BLEED SECTIONS (break out of theme container) ═══ */
.re-section-dark,
.re-section-white,
.re-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ═══ SECTION VARIANTS ═══ */
.re-section-grey { background: var(--4re-grey); }
.re-section-dark { background: var(--4re-dark); color: var(--4re-grey-light); }
.re-section-dark h1, .re-section-dark h2, .re-section-dark h3, .re-section-dark h4 { color: var(--4re-white); }
.re-section-dark p { color: var(--4re-grey-mid); }
.re-section-dark .re-arrow-list li { color: var(--4re-grey-mid); }
.re-section-white { background: var(--4re-white); }

/* Section separator (thin line between sections) */
.re-divider {
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* ═══ BUTTONS — minimal, editorial ═══ */
.re-btn,
.elementor-button,
.single_add_to_cart_button,
.button,
.woocommerce a.button,
.woocommerce button.button {
  font-family: var(--4re-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 36px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--4re-transition);
  display: inline-block;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}

/* Primary: dark bg */
.re-btn-primary,
.elementor-button,
.single_add_to_cart_button,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background-color: var(--4re-dark) !important;
  color: var(--4re-white) !important;
}
.re-btn-primary:hover,
.elementor-button:hover,
.single_add_to_cart_button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background-color: var(--4re-yellow) !important;
  color: var(--4re-dark) !important;
}

.re-btn-yellow {
  background: var(--4re-yellow);
  color: var(--4re-dark);
}
.re-btn-yellow:hover {
  background: var(--4re-dark);
  color: var(--4re-white);
}

.re-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.re-btn-outline:hover {
  background: var(--4re-white);
  color: var(--4re-dark);
}

.re-btn-full {
  width: 100%;
  text-align: center;
}

/* ═══ BAR CHARTS — PDF data visualization style ═══ */
.re-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.re-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.re-bar-fill {
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--4re-font-mono);
  font-size: 0.8rem;
  font-weight: 500;
}
.re-bar-fill-yellow {
  background: var(--4re-yellow);
  color: var(--4re-dark);
}
.re-bar-fill-dark {
  background: var(--4re-dark);
  color: var(--4re-white);
}
.re-bar-label {
  font-size: 0.9rem;
  font-weight: 400;
  white-space: nowrap;
}

/* Vertical bar chart */
.re-vbar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 200px;
}
.re-vbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.re-vbar-fill {
  width: 60px;
}
.re-vbar-fill-yellow { background: var(--4re-yellow); }
.re-vbar-fill-dark { background: var(--4re-dark); }

/* ═══ STAT NUMBERS ═══ */
.re-stat-big {
  font-family: var(--4re-font-body);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 400;
  color: var(--4re-dark);
  line-height: 1;
}
.re-stat-yellow {
  color: var(--4re-yellow);
  background: var(--4re-dark);
  padding: 2px 8px;
}

/* ═══ CARDS — white on grey ═══ */
.re-card {
  background: var(--4re-white);
  padding: 2rem;
  transition: all var(--4re-transition);
}

/* Card with dark header */
.re-card-header {
  background: var(--4re-dark);
  padding: 3rem;
  text-align: center;
  margin: -2rem -2rem 2rem;
}
.re-card-header p { margin: 0; }
.re-card-header .re-card-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
}
.re-card-header .re-card-subtitle {
  color: var(--4re-grey-dark);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ═══ INGREDIENT CARDS — editorial style ═══ */
.re-ingredient-card {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--4re-grey-mid);
}
.re-ingredient-card:last-child { border-bottom: none; }
.re-ingredient-card h4 { font-size: 1.1rem; font-weight: 500; margin: 0 0 0.25rem; }
.re-ingredient-card .re-inci {
  font-size: 0.75rem;
  color: var(--4re-grey-dark);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

/* Pillar cards on dark bg */
.re-pillar-card {
  background: rgba(255,255,255,0.05);
  padding: 2rem;
}
.re-pillar-label {
  color: var(--4re-yellow);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.re-pillar-number {
  color: var(--4re-grey-dark);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

/* Price row on dark bg */
.re-price-box {
  background: var(--4re-dark);
  padding: 2rem;
}
.re-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.re-price-row + .re-price-row {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1rem;
  padding-top: 1rem;
}

/* ═══ TEXT UTILITIES ═══ */
.re-text-center { text-align: center; }
.re-text-muted { color: var(--4re-grey-dark); }
.re-text-sm { font-size: 0.85rem; }
.re-text-xs { font-size: 0.75rem; }
.re-text-lg { font-size: 1.1rem; }
.re-text-white { color: #fff; }
.re-text-yellow { color: var(--4re-yellow); }
.re-max-700 { max-width: 700px; }
.re-max-800 { max-width: 800px; }
.re-max-900 { max-width: 900px; }
.re-mx-auto { margin-left: auto; margin-right: auto; }
.re-mt-1 { margin-top: 1rem; }
.re-mt-2 { margin-top: 2rem; }
.re-mt-3 { margin-top: 3rem; }
.re-mb-1 { margin-bottom: 1rem; }
.re-mb-2 { margin-bottom: 2rem; }
.re-mb-3 { margin-bottom: 3rem; }
.re-pt-2 { padding-top: 2rem; }
.re-border-top { border-top: 1px solid rgba(0,0,0,0.08); }

/* Hero section utility */
.re-hero {
  min-height: 80vh;
  display: flex !important;
  align-items: center;
}
.re-hero-sm {
  min-height: 50vh;
  display: flex !important;
  align-items: center;
}
.re-hero-xs {
  min-height: 30vh;
  display: flex !important;
  align-items: center;
}

/* ═══ NAVIGATION ═══ */
.site-header, .elementor-location-header {
  background: var(--4re-grey);
  border-bottom: none;
}
.elementor-nav-menu a, .site-navigation a {
  font-family: var(--4re-font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--4re-dark);
  text-transform: none;
}
.elementor-nav-menu a:hover, .site-navigation a:hover { opacity: 0.6; }

.site-branding .site-title {
  font-family: var(--4re-font-body);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* ═══ WOOCOMMERCE ═══ */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--4re-font-body);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--4re-dark);
}
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
}
.woocommerce .quantity .qty {
  font-family: var(--4re-font-mono);
  border: 1px solid var(--4re-grey-mid);
  border-radius: 0;
  padding: 8px 12px;
}
.woocommerce-tabs .tabs {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 0;
  border-bottom: 1px solid var(--4re-grey-mid);
}
.woocommerce-tabs .tabs li a {
  font-size: 0.85rem; font-weight: 400;
  padding: 1rem 1.5rem; display: block;
  color: var(--4re-grey-dark);
  border-bottom: 2px solid transparent;
}
.woocommerce-tabs .tabs li.active a {
  color: var(--4re-dark);
  border-bottom-color: var(--4re-dark);
}
.woocommerce-message, .woocommerce-info { border-top-color: var(--4re-yellow); }

/* ═══ FOOTER ═══ */
.site-footer, .elementor-location-footer {
  background-color: var(--4re-dark);
  color: var(--4re-grey-mid);
  padding: 4rem 0 2rem;
}
.site-footer a { color: var(--4re-grey-mid); }
.site-footer a:hover { color: var(--4re-yellow); }
.site-footer h3, .site-footer h4 { color: var(--4re-white); }

/* ═══ 4RE LOGO watermark — bottom left like PDF ═══ */
.re-logo-watermark {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  font-family: var(--4re-font-body);
  font-size: 2rem;
  font-weight: 500;
  color: rgba(26, 26, 26, 0.08);
  letter-spacing: 0.15em;
  pointer-events: none;
  z-index: 0;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .re-split { grid-template-columns: 1fr !important; gap: 2rem; }
  .re-grid-2 { grid-template-columns: 1fr !important; gap: 2rem; }
  .re-grid-3, .re-grid-3-tight { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .re-grid-4 { grid-template-columns: 1fr 1fr !important; gap: 1.5rem; }
  .re-container, .re-container-wide { padding: 0 1.5rem; }
  .re-section { padding: 3rem 0; }
  .re-hero { min-height: 60vh; }
  .re-hero-sm { min-height: 40vh; }
  .re-ingredient-row { flex-direction: column; }
  .re-ingredient-row img { width: 80px; height: 80px; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

/* ═══ ELEMENTOR OVERRIDES ═══ */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1200px; }
.elementor-widget-heading .elementor-heading-title { font-family: var(--4re-font-body); text-transform: none; font-weight: 400; }
.elementor-widget-text-editor { font-family: var(--4re-font-body); font-weight: 300; line-height: 1.7; }
.elementor-widget-button .elementor-button { border-radius: 0; font-family: var(--4re-font-body); }
