/* RESET / GLOBAL */
*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  scroll-behavior:smooth;
}

body{
  margin:0;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  font-family:Arial, Helvetica, sans-serif;
  background:#081c2c;
  color:#ffffff;
  line-height:1.6;
}

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

.swiper{
  max-width:100%;
}

.section{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:80px 20px;
}

.section-narrow{
  max-width:850px;
  margin:0 auto;
  text-align:center;
}

h1,
h2,
h3{
  margin:10px 0;
}

h2{
  color:#d68c2a;
}

p{
  opacity:0.96;
}

.intro{
  margin-top:10px;
  margin-bottom:30px;
}

.eyebrow{
  text-transform:uppercase;
  letter-spacing:2px;
  font-size:13px;
  opacity:0.85;
  color:#f2c15a;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:10px;
  padding:12px 22px;
  border:none;
  border-radius:6px;
  background:#02334e;
  color:#ffffff;
  text-decoration:none;
  text-align:center;
  cursor:pointer;
  transition:0.3s ease;
}

.btn:hover{
  opacity:0.88;
  transform:translateY(-1px);
}

.btn.gold{
  background:#d68c2a;
  color:#081c2c;
  font-weight:700;
}

/* HERO */
.hero{
  position:relative;
  min-height:84vh;
  width:100%;
  max-width:100%;
  overflow:hidden;
  display:grid;
  place-items:center;
  text-align:center;
  isolation:isolate;
  background:#031928;
}

.hero-bg-fallback{
  position:absolute;
  inset:0;
  z-index:0;
  background-image:url('https://contentosocialhomes.com/impact-2026/hero-images/1.jpg');
  background-size:cover;
  background-position:50% 30%;
  background-repeat:no-repeat;
  transform:scale(1.01);
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.56) 55%, rgba(3,25,40,0.84) 100%),
    linear-gradient(90deg, rgba(2,51,78,0.34) 0%, rgba(2,51,78,0.10) 35%, rgba(214,140,42,0.08) 100%);
}

.hero-slider{
  position:absolute;
  inset:0;
  z-index:1;
  width:100% !important;
  height:100% !important;
  overflow:hidden;
}

.hero-slider .swiper-wrapper{
  width:100% !important;
  height:100% !important;
}

.hero-slider .swiper-slide{
  position:relative;
  width:100% !important;
  height:100% !important;
}

.hero-slide-bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background-size:cover;
  background-position:50% 30%;
  background-repeat:no-repeat;
}

.hero-overlay{
  position:relative;
  z-index:3;
  width:min(920px, calc(100% - 32px));
  margin:0 auto;
  padding:40px 16px 30px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.hero-overlay > *{
  max-width:100%;
}

.logo{
  width:190px;
  max-width:70%;
  margin:0 auto 18px;
}

.hero-overlay h1{
  max-width:900px;
  margin:10px auto 14px;
  font-size:clamp(2rem, 5vw, 3.4rem);
  line-height:1.1;
}

.hero-overlay h2{
  max-width:760px;
  margin:0 auto 16px;
  font-weight:400;
  font-size:clamp(1rem, 2.2vw, 1.45rem);
  line-height:1.45;
  color:#f1c15d;
}

.hero-text{
  max-width:760px;
  margin:0 auto 24px;
  font-size:1rem;
}

.hero-buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:10px;
  width:100%;
}

/* INTRO */
.intro-block{
  text-align:center;
}

/* REPORT / PDF VIEWER */
.report-section{
  text-align:center;
  overflow:hidden;
}

.report-buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin:25px 0 30px;
}

.flipbook-wrap{
  width:100%;
  max-width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  overflow:hidden;
}

#flipbook-container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:16px;
  overflow:hidden;
  text-align:center;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:14px;
  box-shadow:0 18px 40px rgba(0,0,0,0.22);
}

.pdf-toolbar{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.pdf-toolbar-group{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:10px;
}

.pdf-toolbar button{
  padding:10px 14px;
  border:none;
  border-radius:6px;
  background:#02334e;
  color:#ffffff;
  cursor:pointer;
  font-size:0.95rem;
}

.pdf-toolbar button:hover{
  opacity:0.9;
}

#page-info,
#zoom-level{
  font-size:0.95rem;
  opacity:0.95;
}

#pdf-viewport{
  position:relative;
  width:100%;
  max-width:100%;
  height:75vh;
  padding:12px;
  overflow:auto;
  overflow-x:auto;
  overflow-y:auto;
  border-radius:10px;
  background:rgba(0,0,0,0.12);
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y pinch-zoom;
  overscroll-behavior:contain;
}

#pdf-spread{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:14px;
  width:max-content;
  min-width:100%;
  margin:0 auto;
}

#pdf-canvas-left,
#pdf-canvas-right{
  display:block;
  width:auto;
  max-width:none;
  height:auto;
  background:#ffffff;
  border-radius:8px;
  box-shadow:0 12px 30px rgba(0,0,0,0.16);
}

/* IMPACT CARDS */
.impact-cards{
  padding:80px 20px;
  text-align:center;
  background:#021420;
}

.card-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
  max-width:1050px;
  margin:40px auto 0;
}

.impact-card{
  min-height:170px;
  padding:28px 22px;
  background:#02334e;
  border-radius:12px;
  box-shadow:0 10px 26px rgba(0,0,0,0.18);
}

.impact-card h3{
  margin-bottom:10px;
  font-size:2rem;
  color:#d68c2a;
}

/* IMPACT STATS */
.impact-stats{
  padding:80px 20px;
  text-align:center;
}

.impact-lead{
  max-width:960px;
  margin:0 auto;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:24px;
  max-width:1100px;
  margin:42px auto 0;
}

.stat{
  padding:10px 8px;
}

.stat h3{
  margin-bottom:10px;
  font-size:3rem;
  line-height:1;
  color:#d68c2a;
}

/* HOUSING GAP */
.housing-gap{
  padding:80px 20px;
  text-align:center;
  background:#021420;
}

.gap-intro{
  max-width:900px;
  margin:0 auto 34px;
}

.gap-visual{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:24px;
  margin-top:10px;
}

.gap-box{
  width:280px;
  max-width:100%;
  padding:28px 22px;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(0,0,0,0.20);
}

.supported{
  background:#02334e;
}

.declined{
  background:#8c1d1d;
}

.gap-box h3{
  margin-bottom:8px;
  font-size:3.2rem;
  color:#d68c2a;
}

.gap-divider{
  font-size:1.8rem;
  font-weight:700;
  color:#ffffff;
}

.gap-message{
  max-width:900px;
  margin:26px auto 0;
}

/* IMPACT STORY */
.impact-story{
  padding:80px 20px;
}

.story-container{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:36px;
  align-items:center;
  max-width:1200px;
  margin:0 auto;
}

.story-text{
  text-align:left;
}

.story-image img{
  width:100%;
  border-radius:12px;
  object-fit:cover;
  box-shadow:0 14px 30px rgba(0,0,0,0.22);
}

/* SPEAKERS */
.speakers{
  background:#021420;
}

.speaker-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
  margin-top:36px;
}

.speaker{
  padding:24px 22px;
  text-align:left;
  background:#02334e;
  border-radius:12px;
  box-shadow:0 10px 24px rgba(0,0,0,0.16);
}

.speaker-role{
  margin-bottom:10px;
  font-size:14px;
  color:#d68c2a;
}

/* TIMELINE */
.timeline-section{
  text-align:center;
}

.timeline{
  max-width:860px;
  margin:40px auto 0;
  padding:0;
  list-style:none;
  text-align:left;
}

.timeline li{
  margin-bottom:24px;
  padding:0 0 0 18px;
  border-left:3px solid #d68c2a;
}

.timeline strong{
  display:block;
  margin-bottom:6px;
  color:#d68c2a;
}

.timeline span{
  display:block;
}

/* GALLERY */
.gallery-section{
  text-align:center;
}

#gallery{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
  gap:12px;
  margin-top:34px;
}

.gallery-item{
  display:block;
  overflow:hidden;
  border-radius:8px;
  background:rgba(255,255,255,0.04);
}

.gallery-item img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  cursor:pointer;
  transition:transform 0.3s ease;
}

.gallery-item img:hover{
  transform:scale(1.04);
}

.gallery-message{
  grid-column:1 / -1;
  padding:20px;
  text-align:center;
  opacity:0.9;
}

/* SUPPORT */
.support{
  text-align:center;
  background:#021420;
}

.support-text{
  max-width:900px;
  margin:0 auto 10px;
}

.support-buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:20px;
}

/* SHARE */
.share-section{
  text-align:center;
}

.share{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  margin-top:20px;
}

.share a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  color:#ffffff;
  text-decoration:none;
  font-size:22px;
}

.share a:hover{
  background:rgba(255,255,255,0.14);
}

/* FOOTER */
footer{
  padding:26px 20px;
  text-align:center;
  font-size:14px;
  background:#000000;
}

/* RESPONSIVE */
@media (max-width:1100px){
  .stats-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .speaker-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .card-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:900px){
  .hero{
    min-height:76vh;
  }

  .story-container{
    grid-template-columns:1fr;
  }

  .story-text{
    text-align:center;
  }

  .stats-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  #pdf-viewport{
    height:68vh;
  }

  #pdf-spread{
    gap:0;
  }

  #pdf-canvas-right{
    display:none !important;
  }
}

@media (max-width:640px){
  .section,
  .impact-cards,
  .impact-stats,
  .housing-gap,
  .impact-story{
    padding:60px 16px;
  }

  .hero{
    min-height:72vh;
    padding:0 12px;
  }

  .hero-overlay{
    padding:24px 16px 20px;
  }

  .logo{
    width:145px;
  }

  .hero-overlay h1{
    font-size:1.9rem;
  }

  .hero-overlay h2{
    font-size:1rem;
    line-height:1.4;
  }

  .btn{
    width:100%;
    max-width:320px;
    margin:6px 0;
  }

  .hero-buttons,
  .report-buttons,
  .support-buttons{
    flex-direction:column;
  }

  #flipbook-container{
    padding:10px;
    border-radius:12px;
  }

  .pdf-toolbar{
    justify-content:center;
  }

  .pdf-toolbar button{
    min-width:92px;
    padding:10px 12px;
    font-size:0.9rem;
  }

  #pdf-viewport{
    height:65vh;
    padding:8px;
    touch-action:pan-x pan-y pinch-zoom;
  }

  .card-grid,
  .stats-grid,
  .speaker-grid{
    grid-template-columns:1fr;
  }

  .impact-card,
  .speaker,
  .gap-box{
    width:100%;
  }

  #gallery{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:10px;
  }

  .gap-divider{
    width:100%;
  }
}