/* Reset & base */
*{margin:0;padding:0;box-sizing:border-box;font-family:"Segoe UI",sans-serif;}
:root{
  --font-color:#ffffff;
  --gameschedgo-gradient: linear-gradient(to right,#00c9ff,#92fe9d);

  /* Overlay controls for SECTION 1 */
  --blur-base: rgba(0,0,0,1);
  --blur-a: .62;
  --blur-h: 0;
  --blur-s: 100;
  --blur-l: 105;

  --fade-shift: 0px;

  /* Greens (2nd section darker & richer) */
  --green-900:#041a13;
  --green-700:#0f3023;
  --mint-100:#b7ffcf;
  --mint-050:#e9fff4;
  --btn-green:#0f3b2b;
  --btn-green-hover:#0c2f22;

  /* Width set by JS to match animated logo */
  --headline-w: ;

  /* NEW: spacing controls */
  --space-hero-to-cms: 100px;
  --space-cms-text-to-images: 48px;
}
html, body{ height:100%; background:#000; color:var(--font-color); }
body{
  position:relative;min-height:100vh;background:#000;
  display:flex;flex-direction:column;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Background for Section 1 */
.feature{
  position:absolute;top:0;left:0;right:0;height:auto;min-height:100vh;z-index:0;
  background:url('') no-repeat center/cover;
}
.feature::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:var(--blur-base);
  opacity:var(--blur-a);
}
.feature::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(120% 80% at 50% 20%,
      rgba(0,0,0,.22) 0%,
      rgba(0,0,0,.32) 60%,
      rgba(0,0,0,.48) 100%),
    linear-gradient(to bottom,
      rgba(0,0,0,.12),
      rgba(0,0,0,.30));
}

/* Section 1: HERO */
.welcome{
  text-align:center;
  padding:clamp(48px, 6vh, 100px) 20px;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  position:relative;z-index:2;
}
.city-logo{
  width:clamp(96px, 16vw, 170px);
  height:auto;margin-bottom:10px;
}
.welcome h2{
  font-size:clamp(22px, 3.2vw, 42px);
  margin-bottom:10px;
  font-family:"Times New Roman",serif;color:var(--font-color);
  line-height:1.2;
}
/* animated brand */
.welcome h1{
  font-size:clamp(34px, 14vw, 120px);
  line-height:0.95;
  font-family:"Times New Roman",serif;font-weight:800;
  background:var(--gameschedgo-gradient);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;color:transparent;
  display:flex;flex-wrap:wrap;gap:0.02em;justify-content:center;
  text-align:center;max-width:min(1000px, 92vw);margin-inline:auto;
}
.animated-logo span{
  display:inline-block;font-weight:800;
  background:var(--gameschedgo-gradient);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
  background-clip:text;color:transparent;
  transition:transform .25s ease;cursor:default;
}
.animated-logo .wb{ display:none; }
.animated-logo span:hover{transform:translateY(-2px) scale(1.08);}
.welcome p{
  margin-top:10px;
  font-size:clamp(14px, 2.9vw, 32px);
  letter-spacing:.2px;font-family:"Times New Roman",serif;color:var(--font-color);
  max-width:900px;
  margin-bottom: var(--space-hero-to-cms);
}

/* Section 1: CMS block */
.headline{
  width: min(var(--headline-w, 1000px), 92vw);
  max-width: min(var(--headline-w, 1000px), 92vw);
  margin:0 auto 0 auto;
}
.headline h2{
  font-size:clamp(24px,4vw,40px);
  margin-bottom:12px;font-family:"Times New Roman",serif;font-weight:bold;color:var(--mint-100);
  text-align: justify; text-align-last: center;
}

/* Lock the paragraph itself to exact width and spacing to images */
#cmsBody{
  width: min(var(--headline-w, 1000px), 92vw);
  max-width: min(var(--headline-w, 1000px), 92vw);
  margin-left:auto;margin-right:auto;
  font-size:clamp(15px,2.1vw,20px);
  line-height:1.8;
  margin-bottom: var(--space-cms-text-to-images);
  font-family:"Times New Roman",serif;color:var(--mint-050);
  text-align: justify; text-justify: inter-word;
  text-align-last: center;
}

/* CMS images strip shares the same width */
.cms-images{
  max-width: min(var(--headline-w, 1000px), 92vw);
  margin-left:auto;margin-right:auto;
  display:flex;gap:min(4vw,42px);align-items:flex-end;justify-content:center;
  flex-wrap:wrap;margin-top:0;padding:6px 0;
}
.cms-images figure{
  margin:0;opacity:0;transform:translateY(24px);
  transition:transform .8s cubic-bezier(.2,.7,.1,1), opacity .6s ease;
}
.cms-images figure.in-view{opacity:1;transform:translateY(0);}
.cms-images img{
  display:block;height:clamp(160px, 28vw, 400px);width:auto;object-fit:cover;
  border:3px solid rgba(255,255,255,.8);border-radius:14px;
  box-shadow:0 8px 30px rgba(0,0,0,.45), 0 18px 60px rgba(0,0,0,.35);
  background:#0e0e0e;
}
.cms-images img:hover{ transform: scale(1.05); filter: brightness(1.15); cursor: pointer; }

/* ===========================
   Section 2: Features
   =========================== */
.features-strip{
  background:var(--green-900);
  padding:90px 16px;
  position:relative; z-index:2; margin:0;
}
.features-wrap{ width:min(1200px,94vw); margin:0 auto; }
.features-header{ text-align:center; margin-bottom:40px; }
.features-title{
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;
  font-weight:700; font-size:clamp(28px,4.2vw,52px); color:#eaf9f0; margin-bottom:12px;
}
.features-subtext{
  max-width:980px; margin:0 auto 26px; color:#cfeedd; font-size:clamp(15px,2.2vw,20px); line-height:1.7;
}
.features-grid{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px;
}
.feat-card{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap:12px; padding:32px; min-height:220px; text-decoration:none; color:#eaf9f0;
  background:var(--green-700); border:1px solid rgba(255,255,255,.08);
  border-radius:20px; box-shadow:0 10px 22px rgba(0,0,0,.36);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
  transform:translateY(22px); opacity:0;
}
.feat-card:hover{
  transform: translateY(-3px);
  box-shadow:0 16px 32px rgba(0,0,0,.46);
  border-color:rgba(183,255,207,.35);
  background:#0d2a1f;
}
.feat-card.in{ transform:translateY(0); opacity:1; }
.feat-icon{
  width:80px;height:80px;display:grid;place-items:center;border-radius:20px;
  background:rgba(255,255,255,.07);
  font-size:36px;color:var(--mint-100);
}
.feat-title{ font-weight:700; font-size:22px; }
.feat-desc{ color:#cfeedd; font-size:16px; line-height:1.6; }

/* ===========================
   Section 3: About
   =========================== */
.about-strip{
  position:relative; min-height:64vh; display:grid; place-items:center; text-align:center;
  background-image:url("about_us_section.jpg"); background-size:cover; background-position:center center;
  z-index:2; margin:0;
}
.about-overlay{
  position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,.68), rgba(0,0,0,.78)),
             radial-gradient(120% 85% at 50% 10%, rgba(0,0,0,.08) 0%, rgba(0,0,0,.28) 60%, rgba(0,0,0,.48) 100%);
  box-shadow: inset 0 0 90px rgba(0,0,0,.6);
}
.about-content{ position:relative; width:min(1000px,92vw); padding:84px 16px 88px; }
.about-title{
  margin:0 0 14px; color:var(--mint-100); font-size:clamp(26px,3.8vw,44px);
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif; font-weight:700;
}
.about-text{ margin:0 auto 26px; max-width:850px; color:#e6fff3; line-height:1.75; text-align:center; }
.about-btn{
  display:inline-flex; align-items:center; gap:.4rem;
  padding:12px 20px; background:var(--btn-green); color:#eafff4;
  border-radius:999px; text-decoration:none; font-weight:700;
  transition:transform .15s ease, filter .15s ease, background-color .15s ease;
  box-shadow:0 8px 20px rgba(0,0,0,.35);
}
.about-btn:hover{ background:var(--btn-green-hover); filter:brightness(1.03); transform:translateY(-2px); }
.reveal-up{ opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .7s ease; }
.reveal-up.in{ opacity:1; transform:translateY(0); }

/* Footer flush to image */
#footer-container{ position:relative; z-index:2; margin-top:0 !important; background:transparent; }
#footer-container > *:first-child{ margin-top:0 !important; }
#footer-container footer{ margin-top:0 !important; }

/* ===========================
   Small screens adjustments
   =========================== */
@media (max-width: 991.98px){

  /* LESS dark background + softer shadow on small screens */
  .feature::after{ opacity:.68; }
  .feature::before{
    background:
      radial-gradient(140% 95% at 50% 15%,
        rgba(0,0,0,.26) 0%,
        rgba(0,0,0,.44) 55%,
        rgba(0,0,0,.62) 100%),
      linear-gradient(to bottom, rgba(0,0,0,.22), rgba(0,0,0,.58));
    box-shadow: inset 0 -34px 80px rgba(0,0,0,.55);
  }

  .welcome{padding:56px 16px;}

  /* ONE-LINE animated logo on mobile */
  .welcome h1{
    max-width:96vw;
    font-size:clamp(28px, 10vw, 120px);
    display:flex;
    flex-wrap:nowrap;
    gap:0.01em;
    white-space:nowrap;
  }
  .animated-logo .wb{ display:none !important; }
  .animated-logo span:hover{transform:none;}

  /* CMS THREE images in one row (no wrap + scroll if very narrow) */
  .cms-images{
    gap:16px;
    flex-wrap:nowrap;          /* single row */
    justify-content:flex-start;/* left align so first image is never cut */
    overflow-x:auto;           /* allow horizontal scroll if needed */
    -webkit-overflow-scrolling:touch;
    padding-bottom:8px;
  }
  .cms-images figure{ flex:0 0 auto; opacity:1; transform:none; } /* always visible on mobile */
  .cms-images img{
    height:160px;              /* consistent height */
    width:auto;                /* keep aspect ratio */
    border-width:2px;border-radius:12px;
  }

  /* Center the feature cards and keep them tidy */
  .features-grid{
    grid-template-columns:1fr;
    justify-items:center;      /* center each grid item */
  }
  .feat-card{
    min-height:200px; padding:28px;
    width:min(560px, 92vw);    /* centered max width */
    margin-inline:auto;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .animated-logo span,
  .cms-images figure{transition:none}
  .cms-images img:hover{transform:none;filter:none}
  .reveal-up{transition:none}
}
