:root {
  --sky-top: #b8dcea;
  --sky-mid: #c8e3ec;
  --sky-horizon: #ffe5b4;
  --sun: #ffd27f;
  --sun-glow: rgba(255, 233, 176, 0.65);
  --cloud: #ffffff;
  --water-deep: #2a6f9e;
  --water-mid: #4a90c2;
  --water-light: #8fc7e0;
  --earth-near: #6b4423;
  --earth-mid: #8b5a3c;
  --earth-far: #a87e5e;
  --grass: #6b8e4b;
  --text: #2d3e50;
  --text-soft: #5a6c7f;
  --card-bg: rgba(255, 252, 245, 0.94);
  --card-border: rgba(107, 68, 35, 0.18);
  --accent: #2a6f9e;
  --accent-strong: #1f5478;
  --shadow-sm: 0 2px 8px rgba(45, 62, 80, 0.08);
  --shadow-md: 0 6px 24px rgba(45, 62, 80, 0.14);
  --radius: 10px;
  --font-body: "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Animated scene background ---------- */

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      var(--sky-top) 0%,
      var(--sky-mid) 40%,
      var(--sky-horizon) 70%,
      var(--sky-horizon) 75%
    );
}

.scene .sun {
  position: absolute;
  top: 9%;
  right: 12%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0%, var(--sun) 45%, var(--sun-glow) 60%, rgba(255,233,176,0) 75%);
  filter: blur(0.5px);
  animation: sun-pulse 8s ease-in-out infinite;
}

@keyframes sun-pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.06); opacity: 1; }
}

.scene .cloud {
  position: absolute;
  background: var(--cloud);
  border-radius: 50%;
  opacity: 0.92;
  filter: blur(0.4px);
  box-shadow:
    35px 8px 0 -4px var(--cloud),
    -35px 8px 0 -4px var(--cloud),
    70px 14px 0 -10px var(--cloud),
    -70px 14px 0 -10px var(--cloud);
  will-change: transform;
}

.scene .cloud.c1 { top: 12%; width: 60px; height: 22px; animation: drift1 90s linear infinite; }
.scene .cloud.c2 { top: 22%; width: 48px; height: 18px; animation: drift2 130s linear infinite; opacity: 0.78; }
.scene .cloud.c3 { top: 6%;  width: 80px; height: 28px; animation: drift1 110s linear infinite; animation-delay: -40s; }
.scene .cloud.c4 { top: 30%; width: 40px; height: 16px; animation: drift2 160s linear infinite; animation-delay: -70s; opacity: 0.7; }

@keyframes drift1 {
  from { transform: translateX(-15vw); }
  to   { transform: translateX(115vw); }
}
@keyframes drift2 {
  from { transform: translateX(115vw); }
  to   { transform: translateX(-15vw); }
}

/* Distant hills + water + foreground earth, all fixed at bottom of viewport */
.scene .horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30vh;
  min-height: 240px;
}

.scene .horizon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.scene .water-shimmer {
  position: absolute;
  left: 0; right: 0;
  bottom: 10vh;
  height: 6vh;
  min-height: 40px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 40%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.25) 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  mix-blend-mode: overlay;
  animation: shimmer 12s linear infinite;
  pointer-events: none;
}

@keyframes shimmer {
  from { background-position: -100% 0; }
  to   { background-position: 100% 0; }
}

/* Subtle wind streak across the sky */
.scene .wind {
  position: absolute;
  top: 18%;
  left: 0;
  width: 100%;
  height: 60px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 80px,
    rgba(255,255,255,0.12) 80px,
    rgba(255,255,255,0.12) 120px
  );
  animation: wind 18s linear infinite;
  pointer-events: none;
}

@keyframes wind {
  from { background-position: 0 0; }
  to   { background-position: 200px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scene * { animation: none !important; }
}

/* ---------- Header / nav ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(255, 252, 245, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--earth-near);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand .dot { color: var(--water-deep); }

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover { color: var(--accent); }
.site-nav a.active { border-color: var(--accent); color: var(--accent-strong); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 640px) {
  .site-header { padding: 14px 20px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 252, 245, 0.97);
    border-bottom: 1px solid var(--card-border);
    padding: 8px 20px 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--card-border); }
  .site-nav a:last-child { border-bottom: none; }
}

/* ---------- Main content ---------- */

main {
  flex: 1;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.hero {
  text-align: center;
  padding: 40px 20px 60px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.15;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero .cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  box-shadow: var(--shadow-sm);
}

.hero .cta:hover { background: var(--accent-strong); }
.hero .cta:active { transform: translateY(1px); }

.page-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 8px;
  color: var(--text);
}

.page-lede {
  color: var(--text-soft);
  font-size: 1.1rem;
  margin: 0 0 32px;
  max-width: 720px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card h2 {
  font-family: var(--font-head);
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.5rem;
}

.card p { margin: 0 0 12px; color: var(--text-soft); }
.card p:last-child { margin-bottom: 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.cards-grid .card { margin-bottom: 0; }

.elements-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.element {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.element .icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 8px;
}

.element.earth .icon { color: var(--earth-mid); }
.element.water .icon { color: var(--water-deep); }
.element.air   .icon { color: var(--accent); }
.element.sun   .icon { color: #c98a1a; }

.element h3 {
  font-family: var(--font-head);
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.element p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Contact form ---------- */

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form button {
  justify-self: start;
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover { background: var(--accent-strong); }

.form-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  display: none;
}

.form-status.success { display: block; background: #e6f4ea; color: #1e6b34; border: 1px solid #b7dfc1; }
.form-status.error   { display: block; background: #fde8e8; color: #8a1f1f; border: 1px solid #f5b9b9; }

/* ---------- Footer ---------- */

.site-footer {
  background: rgba(107, 68, 35, 0.88);
  color: #f5ede2;
  padding: 24px 32px;
  text-align: center;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

.site-footer a { color: #ffd9a8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
