*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Root font-size scales fluidly on large viewports so the whole UI grows
   proportionally (a built-in "zoom to fit") instead of leaving big side
   margins on wide monitors. Flat at 16px up to ~1300px, so laptops and
   phones are unchanged; scales to a 1.2rem (~19px) cap by ~1920px. Using
   1rem for the floor keeps a user's changed browser default respected. */
html { scroll-behavior: smooth; font-size: clamp(1rem, 0.58rem + 0.52vw, 1.2rem); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: white;
  box-shadow: 0 4px 20px rgba(26,138,74,0.4);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(26,138,74,0.5);
}

.btn-primary:hover::after { left: 160%; }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════ */
.section {
  padding: 100px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(46,204,113,0.65) 20%, rgba(46,204,113,0.65) 80%, transparent);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal2));
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 56px;
  line-height: 1.75;
}

/* Dark section overrides */
.principals .section-label,
.distribution-reach .section-label,
.branches .section-label,
.certifications .section-label {
  color: var(--teal2);
}

.principals .section-label::before,
.distribution-reach .section-label::before,
.branches .section-label::before,
.certifications .section-label::before {
  background: linear-gradient(90deg, var(--teal2), #A5D6A7);
}

.principals .section-title,
.distribution-reach .section-title,
.branches .section-title,
.certifications .section-title { color: white; }

.principals .section-sub,
.distribution-reach .section-sub,
.branches .section-sub,
.certifications .section-sub { color: rgba(255,255,255,0.55); }

/* ═══════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ═══════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--teal), var(--teal2));
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(26,138,74,0.5);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(26,138,74,0.6);
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
}
