/* =========================================================
   10th Ranger Regiment - Homepage (Forumify)
   File: themes/custom/homepage.css
   ========================================================= */

/* ===== TOKENS ===== */
:root{
  --green-950:#08110d;
  --green-900:#0b1a14;
  --green-850:#0e1d17;
  --green-800:#10241b;
  --green-750:#133025;
  --green-700:#173828;
  --green-650:#1b4230;
  --green-600:#1f4b36;

  --gold:#d4a017;
  --blue:#2e3b4e;

  --text:#e9f0ec;
  --muted:#b9c6bf;

  --shadow:0 14px 40px rgba(0,0,0,.38);
  --header-offset:70px;
}

/* ===== BASE / RESETS ===== */
*,
*::before,
*::after{ box-sizing:border-box; }

html,body{
  height:100%;
  margin:0;
  padding:0;
  overflow-x:hidden;
  background:var(--green-900);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.forumify-container,
.forumify-content,
.container{ padding:0 !important; }

/* Full-bleed sections */
section{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:72px 0;
}

/* Normal content width */
.wrap{
  max-width:1200px;
  margin:0 auto;
  width:100%;
  padding:0 24px;
}

/* Wide content width (still centered, NOT edge-to-edge) */
.wrap--full{
  max-width:1600px;     /* key fix: keeps spacing sane on wide monitors */
  margin:0 auto;
  width:100%;
  padding:0 24px;
}

/* ===== HERO ===== */
.hero--fullscreen{
  width:100vw!important;
  max-width:100vw!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
}

.hero{
  position:relative;
  min-height:calc(100vh - var(--header-offset));
  display:flex;
  align-items:center;
  text-align:center;
  overflow:hidden;
  box-shadow:var(--shadow);
  background:
    linear-gradient(rgba(6,14,11,.55), rgba(6,14,11,.65)),
    url('https://10thrr.com/storage/media/2025/8db8e47ed465e3b34ba91e15a89f3269.jpg')
    60% center / cover no-repeat;
}

.hero__overlay{
  position:absolute;
  inset:0;
  z-index:0;
  background:
    radial-gradient(900px 500px at 25% 25%, rgba(33,80,58,.28), transparent 60%),
    radial-gradient(700px 400px at 75% 70%, rgba(26,63,46,.28), transparent 60%);
}

.hero .wrap{ display:flex; justify-content:center; }

.hero__content{
  position:relative;
  z-index:1;
  max-width:900px;
  width:100%;
  transform:translateY(-12vh);
}

@media (max-width:768px){
  .hero__content{ transform:translateY(-6vh); }
}

.hero__logo{
  width:110px;
  margin:0 auto 14px;
  filter:drop-shadow(0 6px 16px rgba(0,0,0,.35));
}

.hero__title{
  font-size:clamp(2.4rem,5vw,3.6rem);
  line-height:1.2;
  margin:.1rem 0 .25rem;
}

.hero__subtitle{
  margin:.55rem 0 2.2rem;
  color:var(--muted);
}

/* Stats */
.hero__stats{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
  margin:0 auto 22px;
}

.stat{
  padding:14px 22px;
  min-width:220px;
  background:rgba(14,30,22,.55);
  border:1px solid rgba(255,255,255,.09);
  border-radius:40px;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.stat:hover{
  background:rgba(14,30,22,.7);
  box-shadow:0 0 16px rgba(33,80,58,.32);
  transform:translateY(-2px);
}

.stat__value{
  display:flex;
  justify-content:center;
  align-items:baseline;
  gap:4px;
  font-weight:800;
}

.count{ font-size:1.9rem; line-height:1.35; }
.suffix{ font-size:1.2rem; opacity:.9; }

.stat__label{
  font-size:.9rem;
  color:var(--muted);
  line-height:1.45;
  margin:6px 0 0;
}

/* CTAs */
.hero__primary-cta{
  display:flex;
  justify-content:center;
  margin-top:28px;
}

.hero__secondary-ctas{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:12px;
  flex-wrap:wrap;
}

.btn{
  display:inline-block;
  padding:12px 22px;
  border-radius:12px;
  font-weight:700;
  text-decoration:none;
  transition:transform .2s ease, filter .2s ease, background .2s ease, border-color .2s ease;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}

.btn--solid{ background:#2b7a4b; color:#fff; }
.btn--solid:hover{ filter:brightness(1.08); transform:translateY(-2px); }

.btn--outline{ border:2px solid #fff; background:transparent; color:#fff; }
.btn--outline:hover{ background:rgba(255,255,255,.08); transform:translateY(-2px); }

/* Hero edge fade */
.hero__edge{
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:96px;
  z-index:1;
  background:linear-gradient(to bottom,
    rgba(11,26,20,0) 0%,
    rgba(11,26,20,.85) 48%,
    var(--green-850) 100%);
}

/* ===== SECTIONS ===== */
.mission{ background:var(--green-850); text-align:center; }
.info{ background:var(--green-750); text-align:center; padding:64px 0; } /* slightly tighter */
.cta{ background:var(--green-700); text-align:center; }

.mission h2,.info h2,.cta h2{
  font-size:clamp(1.9rem,3vw,2.5rem);
  margin:0 0 14px;
}

.mission p,.info p,.cta p{
  color:var(--muted);
  margin:0 auto 18px;
  line-height:1.65;
  max-width:900px;
}

.mission__actions{
  display:flex;
  gap:12px;
  justify-content:center;
  margin-top:10px;
}

/* ===== INFO GRID (THE FIX) ===== */
.info-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(280px, 1fr));
  gap:18px;
  align-items:stretch;   /* equal height per row */
  margin-top:22px;
}

/* Cards: no forced tall height */
.info-grid .card{
  background:var(--green-650);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:22px 20px;
  box-shadow:var(--shadow);
  width:100%;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  text-align:center;
}

.info-grid .card h3{
  margin:0 0 10px;
  font-size:1.05rem;
  font-weight:700;
}

.info-grid .card p{
  margin:0;
  line-height:1.65;
}

/* Featured emphasis */
.info-grid .featured-card{
  box-shadow:0 16px 44px rgba(0,0,0,.42);
  border-color:rgba(255,255,255,.12);
}

/* Ribbon: hard-center + reliable */
.info-grid .featured-card .card-ribbon{
  position:absolute;
  top:-14px;
  left:50% !important;
  right:auto !important;
  transform:translateX(-50%) !important;

  background:var(--green-600);
  color:var(--text);
  font-size:.75rem;
  font-weight:800;
  padding:4px 12px;
  border-radius:7px 7px 0 0;
  z-index:2;
  white-space:nowrap;
}

/* ===== CTA BUTTON COLORS ===== */
.cta .wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.btn--gold{ background:var(--gold); color:#221e13; }
.btn--blue{ background:var(--blue); color:#fff; }

.btn--gold:hover,.btn--blue:hover{
  transform:translateY(-2px);
  filter:brightness(1.05);
}

/* ===== FOOTER ===== */
.site-footer{
  background:var(--green-950);
  color:var(--muted);
  text-align:center;
}

/* ===== FADE-IN ===== */
.fade-in{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .5s ease, transform .5s ease;
  will-change:opacity,transform;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width:1024px){
  .wrap{ max-width:920px; }
  .info-grid{ grid-template-columns:repeat(2, minmax(260px, 1fr)); }
}

@media (max-width:768px){
  section{ padding:60px 0; }
  .wrap{ padding:0 18px; }
  .wrap--full{ padding:0 18px; }
  .hero__secondary-ctas{ gap:10px; }
}

@media (max-width:640px){
  .hero__logo{ width:90px; }
  .stat{ width:100%; }
  .info-grid{ grid-template-columns:1fr; }
}

/* ================================
   HARD FIX: INFO CARDS ALWAYS EVEN
   ================================ */

/* Keep the info section centered and sane on wide screens */
.info .wrap,
.info .wrap--full{
  max-width: 1400px !important;
  margin: 0 auto !important;
}

/* If you used .info-grid OR the older .info-row, force grid either way */
.info .info-grid,
.info .info-row{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
  justify-items: stretch !important;
}

/* Force every card to be identical sizing rules */
.info .card,
.info .info-grid > article,
.info .info-row > article{
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;

  /* remove the “giant empty space” problem */
  min-height: 0 !important;

  /* consistent padding */
  padding: 22px 20px !important;

  display: flex !important;
  flex-direction: column !important;
}

/* Kill special per-card tweaks that cause unevenness */
.info .card-left,
.info .card-right,
.info .card-featured,
.info .featured-card{
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 22px 20px !important;
}

/* Ribbon: centered and not affecting layout */
.info .card-ribbon{
  position: absolute !important;
  top: -14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important;
  z-index: 2 !important;
}

/* Responsive: 2 columns then 1 column */
@media (max-width: 1024px){
  .info .info-grid,
  .info .info-row{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px){
  .info .info-grid,
  .info .info-row{
    grid-template-columns: 1fr !important;
  }
}