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

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: Georgia, 'Times New Roman', serif;
}

/* ── Full-page diagonal canvas ─────────────────────── */
/* Fixed behind everything; hero-bg overrides within the hero viewport */
#page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Same diagonal motif as the hero; thin darker stripe sharpens the edge */
  background: linear-gradient(
    135deg,
    #ffffff    0%  44%,
    #0a5c2a   44%  45.5%,
    #178d49   45.5% 100%
  );
}

/* ── Hero ──────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Extended so parallax shift never exposes a blank edge */
#hero-bg {
  position: absolute;
  inset: -40% 0;
  background: linear-gradient(to bottom right, #ffffff 50%, #fff7b3 50%);
  will-change: transform;
}

#hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  will-change: transform;
}

#hero-content h1 {
  color: #004E95;
  font-size: clamp(1.1rem, 2.8vw, 1.75rem);
  max-width: 560px;
  line-height: 1.4;
}

#hero-content p {
  color: #1a1a1a;
  max-width: 480px;
  line-height: 1.75;
  font-size: 1rem;
}

/* ── Read-more button ──────────────────────────────── */
.read-more-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 0.5rem;
  padding: 12px 28px;
  background: transparent;
  color: #000;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid #000;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.read-more-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.btn-arrow {
  display: inline-block;
  font-size: 1.6rem;
  line-height: 1;
  animation: arrowBounce 1.8s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ── Floating logo ─────────────────────────────────── */
/* Starts invisible; JS controls all position, size, and reveal */
#floating-logo {
  position: fixed;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}

#floating-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Navbar strip ──────────────────────────────────── */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#navbar.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Content sections ──────────────────────────────── */
.content-section {
  /* Semi-transparent so the diagonal canvas shows through */
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 80px 12%;
  position: relative;
  z-index: 10;
  /* Thin gap between panels is handled by margin-top below */
}

/* Thin seam between panels reveals the diagonal */
.content-section + .content-section {
  margin-top: 6px;
}

/* About panel: angled top edge that echoes the hero diagonal */
#about {
  clip-path: polygon(0 52px, 100% 0, 100% 100%, 0 100%);
  padding-top: 132px; /* 80px base + 52px to compensate for clip */
}

.content-section h2 {
  color: #004E95;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid #004E95;
  display: inline-block;
}

.content-section p {
  line-height: 1.85;
  color: #333;
  max-width: 800px;
  font-size: 1.05rem;
  margin-top: 1rem;
  white-space: pre-line;
}

.section-sep {
  border: none;
  border-top: 1px solid #dde;
  margin: 60px 0;
}
