/* ========== Base / Reset ========== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: #30302e;
  font: 400 16px/1.6 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ========== Layout helpers ========== */
.container { max-width: 1100px; margin-inline: auto; padding: 1.25rem; }
/* .section → split by concrete blocks */
.hero, .intro, .feature, .videos, .site-footer { padding-block: 2.5rem; }
/* .section--tight → .tight */
.tight { padding-block: 1.25rem; }
.grid { display: grid; gap: 2rem; }

/* ========== Header ========== */
.site-header { padding-block: 1rem; }

.logo {
  display: block;
  margin: 20px auto 5px;
  width: 300px;
  max-width: 90vw;
}

@media (max-width: 600px) {
  .logo {
    width: clamp(160px, 55vw, 220px);  
    height: auto;                      
    object-fit: contain;               
  }
}

/* ========== Typography ========== */
.heading-xl {
  font-family: "Lora", serif;
  font-weight: 600;              
  font-variation-settings: "wght" 600;
  font-size: 28px;
  line-height: 38px;
  color: #8C8D77;
  text-align: center;
  margin: 0 0 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.heading-xl .i {
  font-style: italic;
  display: inline-block;
  transform: skew(4deg);
}

.lead {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;               
  line-height: 30px;             
  font-weight: 400;
  color: #000;
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
}

/* ========== Hero (top video) ========== */
.hero { padding-top: 0; }

/* .section.hero > .container → .hero > .container */
.hero > .container {
  max-width: 1200px;    
  padding-left: 0;
  padding-right: 0;
}

.hero .video-card {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
}

.hero .video-card::before {
  content: "";
  display: block;
  padding-top: 56.25%; 
}

/* .hero + .section → .hero + .intro */
.hero + .intro { padding-block: 0rem; }

/* .section + .feature → .intro + .feature */
.intro + .feature { padding-top: 1.75rem; }


/* ===========================
   Feature blocks (image + text)
   - .feature            : base block
   - .feature--reverse   : second block (image on right)
   - .featured           : spacer element used above the features
   =========================== */

/* ---- Context spacer above the features ---- */
.featured { 
  margin-top: 40px; 
}

/* ---- Base feature container & grid ---- */
.feature > .container {
  max-width: 1050px;
  padding-left: 0;
  padding-right: 0;
  align-items: center;             
}

/* Two columns, centered content in each cell */
.feature .feature__grid {
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
  align-items: center;               
  justify-items: center;          
}

/* Content alignment inside each cell */
.feature__content,
.feature__media { 
  justify-self: center;
}

/* Image presentation */
.feature__media img {
  width: 100%;
  max-width: 350px;                  
  height: auto;
  border-radius: 0;               
}

/* Text block alignment */
.feature__content { 
  text-align: center; 
}

/* ---- Variant: second feature (image on the right) ---- */
/* Push the content column before media at the same row */
.feature--reverse .feature__grid { 
  grid-auto-flow: dense; 
}
.feature--reverse .feature__content { 
  order: -1; 
}

/* Copy widths (kept separate per comp requirements) */
.feature .lead { 
  max-width: 32rem;                 
}
.feature--reverse .lead { 
  max-width: 30rem;                  
}

/* ---- Gray band behind ONLY the first feature ---- */
.feature:not(.feature--reverse) {
  position: relative;
  padding: .4rem 0;
  background-image: linear-gradient(#f6f5f4, #f6f5f4);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 295px;     
}

/* ---- Vertical rhythm between the two features ---- */
/* Generic sibling spacing */
.feature + .feature { 
  padding-top: 1rem; 
}
.feature:not(.feature--reverse) { 
  padding-bottom: 0.5rem; 
}

/* Fine-tune spacing specifically around the reverse feature */
.feature + .feature.feature--reverse { 
  padding-top: 0.75rem; 
}
.feature.feature--reverse { 
  padding-bottom: 0.75rem; 
}

/* ---- Responsive (stack on small screens) ---- */
@media (max-width: 900px) {
  .feature .feature__grid { 
    grid-template-columns: 1fr;      
  }
  .feature__content { 
    text-align: center; 
  }
  .feature__media img { 
    max-width: 460px;               
  }

  .feature > .container { 
    padding-inline: 1rem;          
  }

  .feature .feature__content { 
    padding-inline: .5rem;          
  }

  .feature .heading-xl,
  .feature .lead {
    max-width: 32rem;                 
    margin-inline: auto;            
    text-wrap: balance;              
  }

  .feature:not(.feature--reverse) {
    background: none;
  }

  .feature:not(.feature--reverse) .feature__media {
    position: relative;
  }

  .feature:not(.feature--reverse) .feature__media::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);  
    width: 100vw;                        
    height: clamp(180px, 55vw, 295px);   
    background: #f6f5f4;
    z-index: -1;                        
    pointer-events: none;
  }
}

/* ========== Videos (bottom grid) ========== */
.videos .videos-grid {
  display: flex;
  flex-direction: column;
  gap: 5rem;          
  max-width: 1250px;
  margin: 0 auto;
}

/* Reusable video card */
.video-card {
  position: relative; 
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}

/* Maintain 16:9 */
.video-card::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

/* Layer poster/iframe INSIDE the card (not the card itself) */
.video-card__poster,
.video-card.is-playing iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure playing card doesn't jump/resize */
.video-card.is-playing {
  position: relative;
  inset: auto;
  height: auto;
}

/* Subtle hover gray*/
.video-card:hover { filter: brightness(0.95); }

.videos{
  margin-bottom: 40px;
}

/* ========== Footer ========== */
.site-footer {
  background: #F2F1F0;
  border-top: 1px solid #e9e9e9;
  text-align: center;
}

.footer .heading-xl { 
  color: #8b8c77; 
  margin-bottom: 30px; 
}

.footer .lead{
  max-width: 550px;
  margin-bottom: 28px; 
}

.socials {
  display: flex;
  justify-content: center;
  gap: .70rem;
  margin: 1rem 0;
  margin-bottom: 28px;
}

.socials__icon { width: 44px; height: auto; display: block; }

.contact { margin: .75rem 0; font-weight: 500; margin-bottom: 50px; font-size: 18px;}
.legal { margin: 1.5rem 0 0; font-weight: 300; color: #30302e; margin-bottom: 30px;}

.site-footer .legal a {
  text-decoration: underline;
  text-underline-offset: 2px;  
}

/* ========== for very small screens ========== */
@media (max-width: 600px) {
  .logo { height: 32px; }
  .lead { font-size: 1rem; }
}