/* =========================================
   Global Design Tokens (Scalable System)
========================================= */
@media (max-width: 600px) {
  header {
    clip-path: ellipse(100% 70% at 50% 0%);
    padding: 5rem 1.5rem 6rem;
  }
}
:root {
  /* Brand palette */
  --primary: #2b6777;
  --secondary: #52ab98;
  --accent: #ff7b54;
  --neutral-100: #ffffff;
  --neutral-200: #f4f6f9;
  --neutral-700: #2d2d2d;

  /* Typography scale */
  --font-base: clamp(15px, 0.95vw, 17px);
  --font-lg: clamp(18px, 1.2vw, 21px);
  --font-xl: clamp(28px, 3vw, 40px);
  --font-xxl: clamp(38px, 5vw, 56px);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 45px rgba(0,0,0,0.12);

  /* Transition curve */
  --move: cubic-bezier(0.4, 0, 0.2, 1);

  /* Gradient systems */
  --gradient-main: linear-gradient(135deg, var(--secondary), var(--primary));
  --gradient-accent: linear-gradient(135deg, #ff9068, #fd746c);

  /* Layout scale */
  --space: clamp(1rem, 2vw, 1.5rem);
}

/* =========================================
   Base
========================================= */
body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  margin: 0;
  background: var(--neutral-200);
  color: var(--neutral-700);
  font-size: var(--font-base);
  line-height: 1.75;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin-top: 3rem;
  font-weight: 700;
  line-height: 1.2;
  flex-direction: column;
}

h1 { font-size: var(--font-xxl); color: var(--neutral-100);text-shadow: 1px 1px 2px rgba(0,0,0,0.8);; }
h2 { font-size: var(--font-xl); color: var(--primary); margin-bottom: 0.75rem; }
h3 { font-size: var(--font-lg); color: var(--secondary); }

@media (max-width: 768px) {
  h1 {
    margin-top: 4rem;
  }
}

.container {
  width: min(90%, 1200px);
  margin-inline: auto;
  padding-block: calc(var(--space) * 2);
}

/* =========================================
   Header (Hero)
========================================= */
.site-logo {
  max-height: 150px;   /* keeps logo from being too tall */
  vertical-align: middle;
  flex-direction: column;
}

header .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header {
  background: var(--gradient-main);
  color: var(--neutral-100);
  text-align: center;
  padding: 7rem 2rem 8rem;
  clip-path: ellipse(130% 95% at 50% 0%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -12px 30px rgba(0,0,0,0.15);
  flex-direction: column;
}

header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 70%);
  transform: rotate(25deg);
  flex-direction: column;
}

header p {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  max-width: 700px;
  font-size: var(--font-lg);
  opacity: 0.9;
  flex-direction: column;
}

/* =========================================
   Sections
========================================= */
section {
  margin-block: calc(var(--space) * 2.2);
  padding: calc(var(--space) * 2);
  border-radius: var(--radius-lg);
  background: var(--neutral-100);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.4s var(--move), box-shadow 0.4s var(--move);
}
section:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-md);
}

section h2::after {
  content: "";
  display: block;
  height: 4px;
  width: 70px;
  margin-top: 0.6rem;
  border-radius: 50px;
  background: var(--secondary);
  animation: growLine 0.8s var(--move) forwards;
}

/* Highlight Feature Section */
.highlight-box {
  background: linear-gradient(145deg, #eefdf6, #fcfffd);
  border-left: 6px solid var(--secondary);
  position: relative;
  overflow: hidden;
}
.highlight-box::after {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 160px; height: 160px;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0.08;
}
/* =========================================
   Animations
========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.9s var(--move), transform 0.9s var(--move);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes growLine {
  from {width: 0;}
  to {width: 70px;}
}
