/* ==========================================================
   Builder Co-Op — One-page site
   Palette: white / very light gray / navy / gold
   ========================================================== */

:root{
  --white: #ffffff;
  --light: #f5f7fb;     /* very light gray */
  --navy: #0b1f3b;      /* deep navy */
  --navy-2:#112d52;     /* hover navy */
  --gold: #caa24a;      /* warm gold */
  --text: #152238;
  --muted:#5b667a;

  --radius: 18px;
  --shadow: 0 14px 40px rgba(11, 31, 59, 0.10);
  --border: 1px solid rgba(11, 31, 59, 0.10);

  --max: 1100px;
}

/* Base */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
p{ margin: 0 0 14px; }
h1,h2,h3{ margin: 0 0 12px; line-height: 1.15; letter-spacing: -0.01em; }
h1{ font-size: clamp(2rem, 3.6vw, 3.2rem); }
h2{ font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3{ font-size: 1.25rem; }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section{
  padding: 78px 0;
  position: relative;
}

.center{ text-align: center; }
.muted{ color: var(--muted); }

/* Header / Nav */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 31, 59, 0.08);
}

.nav-inner{
  min-height: 64px;                 /* not super tall for horizontal logo */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.logo{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy);
  text-transform: uppercase;
}

.logo-mark{
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  box-shadow: 0 10px 26px rgba(11,31,59,0.18);
}

.nav-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.nav-links a{
  position: relative;
  opacity: 0.86;
  padding: 6px 2px;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:2px;
  height:2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 220ms ease;
}

.nav-links a:hover{ opacity: 1; }
.nav-links a:hover::after{ transform: scaleX(1); }

/* Mobile menu */
.menu-btn{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: var(--border);
  background: var(--white);
  color: var(--navy);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.menu-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(11, 31, 59, 0.14);
}

.menu-icon{
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.menu-icon::before,
.menu-icon::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 180ms ease, top 180ms ease, bottom 180ms ease;
}

.menu-icon::before{ top:0; }
.menu-icon::after{ bottom:0; }

.menu-btn.is-open .menu-icon::before{
  top: 5px;
  transform: rotate(45deg);
}

.menu-btn.is-open .menu-icon::after{
  bottom: 5px;
  transform: rotate(-45deg);
}

.mobile-menu{
  border-top: 1px solid rgba(11, 31, 59, 0.08);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
}

.mobile-links{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0 14px;
  display: grid;
  gap: 8px;
}

.mobile-links a{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 59, 0.10);
  background: rgba(11,31,59,0.02);
  font-weight: 700;
  color: var(--navy);
}

.mobile-links a:hover{
  background: rgba(202,162,74,0.10);
  border-color: rgba(202,162,74,0.35);
}

/* Hero */
.hero{
  padding: 120px 0 110px;
  overflow: hidden;
}

.hero-media{
  position: absolute;
  inset: 0;

  /* Image first, then overlay gradients on top */
  background-image:
    radial-gradient(1200px 550px at 20% 10%, rgba(202, 162, 74, 0.18), transparent 80%),
    radial-gradient(1200px 650px at 85% 30%, rgba(11, 31, 59, 0.16), transparent 80%),
    url("images/Builder-Co-Op-Hero.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: saturate(1.1);
}


.hero-overlay{
  position:absolute;
  inset:0;
  background: rgba(255,255,255,0.85); /* opaque overlay over image */
}

.hero-content{
  position: relative;
  text-align: center;
  max-width: 900px;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}

.eyebrow::before,
.eyebrow::after{
  content:"";
  height: 2px;
  width: 36px;
  background: var(--gold);
  opacity: 0.9;
  border-radius: 2px;
}

.lead{
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  color: var(--muted);
  margin: 0 auto 24px;
}

.button-row{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: var(--border);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  will-change: transform;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(11, 31, 59, 0.16);
}

.btn-primary{
  background: var(--navy);
  color: var(--white);
  border-color: rgba(11, 31, 59, 0.35);
}

.btn-primary:hover{
  background: var(--navy-2);
}

.btn-secondary{
  background: var(--white);
  color: var(--navy);
}

.btn-block{
  width: 100%;
  margin-top: 10px;
}

/* Split sections */
.split{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.split-reverse{
  grid-template-columns: 0.85fr 1.15fr;
}

.split-text{ padding-right: 4px; }
.split-media{ display: flex; justify-content: center; min-width: 0; }

.image-placeholder{
  width: 100%;
  min-height: 310px;
  border-radius: var(--radius);
  border: 1px dashed rgba(11, 31, 59, 0.22);
  background:
    linear-gradient(135deg, rgba(202, 162, 74, 0.08), rgba(11, 31, 59, 0.06));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  color: var(--navy);
}

.image-placeholder span{
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.image-placeholder small{
  display:block;
  margin-top: 6px;
  color: var(--muted);
}

.callout{
  margin-top: 18px;
  padding: 16px 16px;
  border-radius: var(--radius);
  border: var(--border);
  background: rgba(202, 162, 74, 0.08);
}

.tagline{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tagline span{
  padding: 9px 12px;
  border-radius: 999px;
  border: var(--border);
  background: var(--white);
  font-weight: 700;
  color: var(--navy);
}

/* Lists */
.bullets{
  margin: 10px 0 16px;
  padding-left: 18px;
}

.bullets li{ margin: 6px 0; }

.keep-list{
  list-style: none;
  padding: 0;
  margin: 10px 0 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.keep-list li{
  border: var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 700;
  color: var(--navy);
  background: rgba(11,31,59,0.02);
  text-align: center;
}

.note{
  color: var(--muted);
  margin-top: 10px;
}

/* Two-card sections */
.section-alt{ background: var(--light); }

.cards-2{
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card{
  background: var(--white);
  border-radius: var(--radius);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 22px;
}

.divider{
  height: 1px;
  background: rgba(11, 31, 59, 0.10);
  margin: 16px 0;
}

/* How it works strip */
.section-navy{
  background: var(--navy);
  color: var(--white);
}

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

.steps{
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.step{
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 18px 16px;
  background: rgba(255,255,255,0.04);
  text-align: center;
}

.step-num{
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.step p{ margin: 0; color: rgba(255,255,255,0.92); }

/* Vision pills */
.pill-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 10px;
}

.pill{
  border-radius: 999px;
  padding: 10px 12px;
  border: var(--border);
  background: rgba(11,31,59,0.02);
  font-weight: 800;
  color: var(--navy);
}

.pill:last-child{
  font-weight: 700;
  color: var(--muted);
}

/* Footer */
.footer{
  padding: 70px 0 44px;
  border-top: 1px solid rgba(11, 31, 59, 0.08);
  background: linear-gradient(180deg, var(--white), rgba(11,31,59,0.02));
}

.footer-lead{
  max-width: 860px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.logo-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px 22px;
  align-items: center;
  margin: 26px 0 30px;
}

/* Remove the stitched boxes */
.logo-tile{
  height: 70px;              /* consistent row height */
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 0;
  overflow: hidden;

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

/* Logos stay proportional and centered */
.logo-tile img{
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 44px;              /* normalize by height */
  object-fit: contain;
}

.footer-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(11, 31, 59, 0.08);
  padding-top: 16px;
  color: var(--muted);
}

.back-top{
  font-weight: 700;
  color: var(--navy);
}

.back-top:hover{
  color: var(--navy-2);
  text-decoration: underline;
}

/* Fade-in on scroll */
.fade{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}

.fade.in-view{
  opacity: 1;
  transform: translateY(0);
}



/* When a placeholder is used as an image frame, override the "placeholder text" layout */
.image-placeholder.image-frame{
  padding: 0;           /* remove placeholder padding so images don't bleed on small screens */
  display: block;       /* override display:grid */
  text-align: left;
  min-height: 0;
  border-style: solid;  /* a cleaner frame when real images are used */
}

.image-placeholder.image-frame img{
  display: block;
}

/* Responsive image frame (prevents squish + prevents overflow) */
.image-frame{
  aspect-ratio: 16 / 9;      /* change to 4/3 if you want taller */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(11,31,59,0.04);
  border: 1px solid rgba(11, 31, 59, 0.10);
}

.image-frame .section-img{
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;         /* crops instead of stretching */
  object-position: center;   /* adjust if needed, e.g. 50% 35% */
}

.logo-img{
  height: 24px;      /* controls nav height */
  width: auto;
  display: block;
  object-fit: contain;
}


/* Responsive */
@media (max-width: 960px){
  .nav-links{ display: none; } /* keep nav short + centered logo feel */
  .menu-btn{ display: inline-flex; }

  .split, .split-reverse{
    grid-template-columns: 1fr;
  }
  .image-placeholder{ min-height: 240px; }
  .image-placeholder.image-frame{ min-height: 0; }
  .cards-2{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .hero{ padding: 104px 0 92px; }
  .steps{ grid-template-columns: 1fr; }
  .logo-grid{
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px 16px;
  }
  .logo-tile{
    height: 60px;
    padding: 8px 10px;
  }
  .logo-tile img{
    height: 36px;
  }
}
