/* ====== GLOBAL SCROLL / LAYOUT (unchanged where not relevant) ====== */
html {
  scroll-padding-top: var(--navbar-height);  /* don’t hide under nav */
  scroll-behavior: smooth;
  overflow-x: hidden;
}
html, body {
  height: 100%;
  overflow-y: auto;              /* page scroll only */
  scroll-snap-type: y mandatory; /* snap on vertical scroll */
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height); /* don’t hide under fixed nav */
}
.section { position: relative; }
.sections-container { height: auto; overflow: visible; }

/* Snap panels */
.section,
.section-content {
  min-height: 100vh;            /* base fill */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#section3 { min-height: 0; }

/* ====== HERO (left as-is) ====== */
.hero {
  background: url('../images/background.jpg') no-repeat center center;
  background-size: cover;
  height: 60vh;
  position: relative;
  margin-top: calc(-1 * var(--navbar-height));
  padding-top: var(--navbar-height);
  min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: always;
}
.hero-nav {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; z-index: 10;
}
.hero-nav__btn {
  padding: 2rem 6rem;
  background: #fff; color: #000;
  font-size: 1rem; cursor: pointer; border: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  font-weight: 400;
}
.hero-nav__btn:hover { color: var(--primary-color); }
.hero-content {
  position: absolute; inset: 0;
  display:flex; align-items:center; justify-content:center;
  text-align:center; color: #fff;
}
.hero-content h1 { font-size: 4rem; white-space: nowrap; }
.subtitle { margin-top: .5rem; font-size: 1.2rem; }

/* ====== SECTION CONTENT (applies to your Section 2 too) ====== */
/* Professional spacing + not-too-tall panels for content sections */
.section-content {
  padding: clamp(1.5rem, 4vw, 3rem);
}
.section,
.section-content,
footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Prefer 70svh feel (full but not empty) for non-hero content */
.section-content {
  min-height: 70svh;
  padding-block: clamp(2.5rem, 6vw, 6rem);
  scroll-snap-align: start;
}

/* ====== SECTION 1 & 2 common layout (unchanged) ====== */
#section1, #section2 { padding: 5rem 0; }
#section1, #section2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ====== TYPO for section titles/subtitles in Section 2 ====== */
.section-title{
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  color: #0f172a;
  letter-spacing: .2px;
  margin: 0 0 .35rem;
}
.section-subtitle{
  text-align:center;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  color: #667085;
  margin: 0 0 1.25rem;
  line-height: 1.5;
  font-style: italic;
  padding-bottom: 0; /* remove heavy extra gap */
}

/* ====== BUSINESS GRID (applies to your icon list) ====== */
.business-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  max-width: 1100px;
  width: 100%;
  margin: 1.25rem auto 0;
  align-items: stretch;
}

/* Icon “cards”: cleaner, sharper, lighter (professional) */
.icon-item{
  background: #fff;
  border: 1px solid #e5e7eb;    /* subtle border, no heavy shadow */
  border-radius: 8px;           /* modest radius for crispness */
  padding: 2rem;
  text-align: center;
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
  box-shadow: none;
}
.icon-item:hover{
  border-color: #cfd7e3;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  transform: translateY(-2px);
}
.icon-item img{
  display:block;
  width: 88px;
  height: 88px;
  object-fit: contain;          /* consistent icon sizing */
  margin: 0 auto .75rem;
}
.icon-subtitle{
  font-weight: 600;
  font-size: 1.05rem;
  color: #0f172a;
}

/* ====== SECTION 2 BACKGROUND (softer, cleaner fades) ====== */
/* Modern (color-mix) — stronger blue tint */
#section2{
  --fade: 96px;
  --top-bg: #fff;
  --bottom-bg: #fff;
  --primary: var(--primary-color, #2563eb);

  background:
    /* edge fades */
    linear-gradient(to bottom, var(--top-bg) 0, rgba(255,255,255,0) var(--fade)),
    linear-gradient(to top,    var(--bottom-bg) 0, rgba(255,255,255,0) var(--fade)),

    /* brighter mesh spots */
    radial-gradient(1200px 300px at 85% -15%, color-mix(in oklab, var(--primary) 35%, #fff), transparent 62%),
    radial-gradient(900px 260px  at 10% 115%, color-mix(in oklab, var(--primary) 25%, #fff), transparent 68%),

    /* base wash */
    linear-gradient(180deg, #f0f5ff 0%, #e9f1ff 35%, #ffffff 100%);
}
/* Fallback for browsers without color-mix */
@supports not (color: color-mix(in oklab, red 50%, white)) {
  #section2{
    background:
      linear-gradient(to bottom, #fff 0, rgba(255,255,255,0) 96px),
      linear-gradient(to top,    #fff 0, rgba(255,255,255,0) 96px),
      radial-gradient(1200px 300px at 85% -15%, rgba(37,99,235,.35), transparent 62%),
      radial-gradient(900px 260px  at 10% 115%, rgba(37,99,235,.25), transparent 68%),
      linear-gradient(180deg, #f0f5ff 0%, #e9f1ff 35%, #ffffff 100%);
  }
}


/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero { height: 100vh; }
  .hero-nav__btn { padding: 1rem 2rem; white-space: nowrap; }
  .hero-content h1 { font-size: 2.5rem; white-space: nowrap; }

  /* Proper grid behavior on mobile (no flex fallbacks) */
  .business-grid { grid-template-columns: 1fr; }
}
