/*
 Theme Name: GeneratePress Child
 Theme URI: https://generatepress.com
 Description: Child theme for GeneratePress.
 Author: Jon Winebrenner
 Template: generatepress
 Version: 1.0
*/

/* ================== GLOBAL TYPOGRAPHY ================== */
body {
  font-family: "Nunito Sans", sans-serif;
  color: #2B2B2B;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  color: #2B2B2B;
  font-weight: 700;
  line-height: 1.2;
}


/* ========================  BASE / LAYOUT  ======================== */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #FFFFFF;
}

#page.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content.site-content {
  flex: 1 0 auto;
}

.relay-footer {
  flex-shrink: 0;
}

:root {
  --relay-header-h: 75px;
}

/* Header only fixed on pages that use it */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border: none;
}

/* Optional: only fix header on homepage */
.home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--relay-header-h);
}

body { padding-top: 0; }

.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 30px;
  margin: 0 auto;
  max-width: 100%;
}

.main-navigation .main-nav ul li a,
#site-navigation ul.menu li a {
  line-height: var(--relay-header-h);
}

/* ========================  SHOP HEADER FIX  ======================== */
/* Commented out to avoid overriding WooCommerce header alignment
.woocommerce .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--relay-header-h);
}
.woocommerce #content,
.woocommerce .site-content {
  margin-top: var(--relay-header-h);
}
*/

/* ========================  NAVIGATION ============================= */
@media (min-width: 769px) {
  .main-navigation, #site-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .main-navigation .main-nav > ul, #site-navigation ul.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .main-navigation .main-nav ul li a, #site-navigation ul.menu li a {
    background: none;
    border: 0;
    text-decoration: none;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #111;
    line-height: var(--relay-header-h);
    padding: 0 18px;
    transition: color .2s ease;
  }
  .main-navigation .main-nav ul li a:hover, #site-navigation ul.menu li a:hover {
    color: #00ADEE;
  }
  .main-navigation .main-nav ul li:last-child a, #site-navigation ul.menu li:last-child a {
    background: #00ADEE;
    color: #fff;
    padding: 10px 22px;
    border-radius: 6px;
    line-height: normal;
    text-transform: uppercase;
    font-weight: 700;
    transition: background-color .25s ease;
  }
  .main-navigation .main-nav ul li:last-child a:hover,
  #site-navigation ul.menu li:last-child a:hover {
    background: #FF7A00;
  }
  .menu-toggle { display: none; }
}

@media (max-width: 768px) {
  .site-header .inside-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 10px 0;
  }
  .main-navigation:not(.toggled) .main-nav > ul { display: none; }
  .main-navigation.toggled .main-nav > ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: rgba(255,255,255,0.97);
    border-top: 1px solid #e0e0e0;
    margin: 0;
    padding: .5rem 0;
  }
  .main-navigation.toggled .main-nav ul li a {
    color: #111;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    line-height: 1.4;
  }
  .main-navigation.toggled .main-nav ul li:last-child a {
    background: none;
    color: #00ADEE;
  }
}

/* ========================  BRANDING  ============================= */
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-logo img { display: block; height: auto; max-height: 58px; }
.site-branding .site-description {
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  font-size: .95rem;
  font-weight: 500;
  color: #555;
  transform: translateY(6px);
}

/* ========================  CART / SHOP CUSTOM STYLING (commented)  ======================== */

/* The following custom classes can affect WooCommerce layout.
   They are commented out to restore native block styling.
*/

/*
.relay-shop-page,
.relay-shop-fullwidth,
.relay-shop-hero,
.relay-product-grid {
  all: unset;
}
.relay-product-grid .product,
.relay-product-grid .woocommerce-loop-product__title,
.relay-product-grid .price,
.relay-product-grid .button {
  all: unset;
}
*/

/* ========================  FAQ / OTHER STYLES (leave intact) ======================== */

.faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 40px;
  background: #F5F5F5;
  border-radius: 0;
  box-shadow: none;
  color: #2B2B2B;
}

.faq-item{
  margin:0;
  border:0;
  box-shadow:none;
}

.faq-item h3,
.faq-item h4{
  cursor:pointer;
  position:relative;
  font-family:"Playfair Display",serif;
  font-weight:600;
  color:#2B2B2B;
  margin:0;
  padding:1rem 0 .75rem 1.5rem;
  border:0;
}

.faq-item h3::before,
.faq-item h4::before{
  content:"+";
  position:absolute;
  left:0;
  top:1rem;
  color:#00ADEE;
  font-weight:700;
  transition:transform .2s ease;
}
.faq-item h3.open::before,
.faq-item h4.open::before{
  content:"-";
  transform:rotate(180deg);
}

.faq-answer,
.faq-item > p{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease;
  color:#2B2B2B;
  font-family:"Nunito",sans-serif;
  line-height:1.5;
  margin:0;
  padding:0 0 0 1.5rem;
  border:0;
}

.faq-answer.open,
.faq-item > p.open{
  max-height:1000px;
  overflow:visible;
  padding:.25rem 0 1rem 1.5rem;
}

.faq-answer.open p,
.faq-item > p.open p{ margin:.4rem 0; }

/* ========================  FOOTER  =============================== */
.relay-footer {
  background: #FFFFFF;
  color: #2B2B2B;
  border-top: 1px solid #E0E0E0;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 36px 60px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left { flex: 1 1 300px; }
.footer-right { flex: 1 1 300px; text-align: right; }

.footer-logo {
  max-height: 40px;
  margin-bottom: 8px;
}

.footer-tagline { font-weight: 600; margin: 0; }

.footer-email a { color: #00ADEE; text-decoration: none; }
.footer-email a:hover { text-decoration: underline; }

.socials a { display: inline-block; margin-left: 10px; }

.footer-bottom {
  text-align: center;
  border-top: 1px solid #E0E0E0;
  padding-top: 16px;
}

.legal-line { margin: 0; }

.legal-line a { color: #00ADEE; text-decoration: none; }
.legal-line a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-right { text-align: center; }
  .socials a { margin: 0 8px; }
}



/* =====================  RE / HEADLINE (final Figma match)  ===================== */
.re-headline {
  display: flex;
  justify-content: center;
  align-items: baseline;
  text-align: center;
  margin: 0 auto 48px;
  line-height: 1.1;
}

/* “re/” mark */
.re-headline-logo {
  flex: 0 0 auto;
  display: block;
  height: 2.75em;                /* larger mark to match Figma */
  width: auto;
  position: relative;
  top: 0em;                 /* lift slightly for optical center */
  margin-right: -1.8em;        /* deeper overlap into first letter */
  z-index: 1;
}

/* headline text */
.re-headline-text {
  position: relative;
  z-index: 2;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(36px, 3.8vw, 56px);
  color: #2B2B2B;
  margin: 0;
  line-height: 1.1;
}

/* mobile */
@media (max-width: 640px) {
  .re-headline {
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
    margin: 0 auto 32px;
  }

  .re-headline-logo {
    height: 1.5em;
    margin-right: -0.3em;
    top: -0.08em;
  }

  .re-headline-text {
    font-size: clamp(28px, 6vw, 40px);
  }
}
/* =====================  HERO SECTION (Figma accurate layout)  ===================== */
.relay-hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Video backgrounds */
.relay-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.relay-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Only show desktop video by default */
.desktop-video { display: block; }
.mobile-video { display: none; }

/* Overlay content */
.relay-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;        /* move content to lower area */
  text-align: center;
  z-index: 2;
  color: #fff;
  padding-bottom: 20vh;             /* push above bottom edge */
  pointer-events: none;             /* prevents blocking video controls */
}

.relay-hero-overlay * {
  pointer-events: auto;             /* allows buttons to be clickable */
}

/* Headline + subhead */
.relay-tagline {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 64px);
  margin-bottom: 16px;
  color: #fff;
}

.relay-subhead {
  font-family: "Nunito Sans", sans-serif;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 32px;
  max-width: 600px;
}

/* CTA buttons */
.relay-buttons {
  display: flex;
  gap: 16px;
}

.relay-buttons a {
  text-decoration: none;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 12px 28px;
  transition: all 0.25s ease;
}

.relay-buttons a.orange {
  background: #FF7A00;
  color: #fff;
}

.relay-buttons a.orange:hover {
  background: #00ADEE;
}

.relay-buttons a.blue {
  background: #00ADEE;
  color: #fff;
}

.relay-buttons a.blue:hover {
  background: #FF7A00;
}

/* =====================  MOBILE VIDEO SWITCH  ===================== */
@media (max-width: 768px) {
  .desktop-video { display: none; }
  .mobile-video { display: block; }

  .relay-hero-wrapper {
    height: 85vh; /* better fit for portrait video */
  }

  .relay-hero-overlay {
    padding: 0 16px;
  }

  .relay-buttons {
    flex-direction: column;
    gap: 12px;
  }
}


/* =====================  re(Consider) Packaging Section  ===================== */
.packaging-section {
  padding: 100px 40px;
  background: #fff;
  color: #2B2B2B;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.packaging-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Subhead (under title) */
.relay-section-subhead {
  font-family: "Nunito Sans", sans-serif;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 500;
  color: #2B2B2B;
  max-width: 700px;
  line-height: 1.5;
  margin: 0 auto;
}

/* Embedded video */
.packaging-video {
  width: 100%;
  max-width: 800px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.packaging-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

/* Body text (below video) */
.relay-section-body {
  font-family: "Nunito Sans", sans-serif;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 400;
  color: #2B2B2B;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

/* Mobile spacing */
@media (max-width: 768px) {
  .packaging-section {
    padding: 60px 20px;
  }
  .packaging-inner {
    gap: 24px;
  }
  .packaging-video {
    max-width: 100%;
  }
}

/* Force GenerateBlocks headings to use brand fonts */
.gb-headline, .gb-headline-text {
  font-family: "Playfair Display", serif !important;
  font-weight: 700 !important;
  color: #2B2B2B;
  line-height: 1.2;
}

/* Ensure GenerateBlocks paragraph text uses Nunito */
.gb-container p, 
.gb-block p, 
.gb-button, 
.gb-button-text {
  font-family: "Nunito Sans", sans-serif !important;
  color: #2B2B2B;
  line-height: 1.6;
}

/* =====================  Section Headline Consistency  ===================== */
.gb-headline,
.gb-headline-text,
.relay-section-title,
.rethink-heading h2,
.reimagine-heading h2 {
  font-family: "Playfair Display", serif !important;
  font-weight: 700 !important;
  color: #2B2B2B;
  line-height: 1.15;
  font-size: clamp(36px, 3vw, 48px) !important; /* Figma scale */
  margin-bottom: 0.6em;
}

/* Optional smaller secondary headings */
h3, .gb-headline.h3, .relay-subheading {
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 600;
}

/* =====================  Fix Paragraph Font Consistency  ===================== */
.wp-block-media-text__content p,
.wp-block-media-text__content .wp-block-paragraph,
.wp-block-media-text__content li,
.wp-block-group p,
.wp-block-group .wp-block-paragraph {
  font-family: "Nunito Sans", sans-serif !important;
  font-size: clamp(15px, 1.1vw, 18px) !important;
  font-weight: 400 !important;
  color: #2B2B2B !important;
  line-height: 1.6 !important;
  margin-bottom: 1em;
}

/* =====================  Autoplay Inline Video (Media & Text block)  ===================== */
.wp-block-media-text video {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Hide controls & autoplay muted loop inline */
.wp-block-media-text video[controls] {
  display: block;
}
.wp-block-media-text video {
  autoplay: true;
  muted: true;
  loop: true;
  playsinline: true;
}

.gb-element-71fb83ce img {
  border-radius: 12px;
}

.relay-rounded img,
.relay-rounded {
  border-radius: 12px;
  overflow: hidden;
  display: block;
}
