/*
Theme Name: Helminthix Minimal
Theme URI: https://helminthix.org
Author: Helminthix
Author URI: https://helminthix.org
Description: A modern, minimal WordPress theme for Helminthix with clean lines and subtle scroll effects.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: helminthix-minimal
Tags: one-column, custom-logo, accessibility-ready, responsive-layout, block-styles
*/

:root {
  color-scheme: light;
  --bg: #fbf9f3; /* light cream */
  --surface: #ffffff;
  --surface-soft: #fbf7ee;
  --text: #163028; /* dark grey-green */
  --muted: #556a63;
  --accent: #2a9d8f;
  --accent-strong: #21776a;
  --border: rgba(16, 24, 20, 0.06);
  --shadow: 0 18px 40px rgba(22,36,30,0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(125, 211, 252, 0.14), transparent 18%),
              radial-gradient(circle at 15% 70%, rgba(134, 239, 172, 0.08), transparent 15%);
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(6px);
  background: rgba(255,255,250,0.9);
  border-bottom: 1px solid var(--border);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-logo {
  height: 2.3rem;
  width: auto;
  display: block;
}

.site-title {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

/* Custom nav list + dropdown */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.nav-list li {
  position: relative;
}
.nav-list a {
  color: var(--muted);
  padding: 0.25rem 0.35rem;
  display: inline-block;
}
.nav-list a:hover {
  color: var(--text);
}
.nav-list .has-dropdown > a::after {
  content: " ▾";
  font-size: 0.8rem;
  margin-left: 0.25rem;
  color: var(--muted);
}
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.6rem 0.4rem;
  border-radius: 8px;
  min-width: 160px;
  display: none;
  box-shadow: var(--shadow);
}
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: 0.45rem 0.8rem; color: var(--muted); }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }

.eyebrow { opacity: 0.9; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 0.6rem; }

.hero {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero.hero--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,250,0.0), rgba(251,249,243,0.92));
}

.hero.hero--photo::after {
  background: linear-gradient(180deg, rgba(6, 16, 26, 0.35), rgba(6, 16, 26, 0.75));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero.hero--photo .hero-inner,
.hero.hero--photo .hero-inner h1,
.hero.hero--photo .hero-inner p,
.hero.hero--photo .hero-inner .eyebrow,
.hero.hero--photo .hero-inner .button-secondary,
.hero.hero--photo .hero-inner .button {
  color: #ffffff;
}

.hero.hero--photo .button-secondary {
  border-color: rgba(255,255,255,0.25);
}

.hero.hero--photo .button {
  background: rgba(255,255,255,0.88);
  color: #07101a;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 1.4rem auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button,
.button-secondary {
  border: 1px solid transparent;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.24s ease, background-color 0.24s ease, border-color 0.24s ease;
}

.button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #07101a;
}

.button-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.section {
  padding: 7rem 1.5rem;
  position: relative;
}

.section--about {
  background: rgba(9, 18, 32, 0.96);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.section p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(125,211,252,0.26);
  transform: translateY(-6px);
}

.card img {
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-hero {
  display: grid;
  gap: 1rem;
}

.card-hero p {
  line-height: 1.85;
}

.section.dark {
  background: #06101a;
}

.section-feature .card img { max-height: 320px; width:100%; object-fit:cover; }
.section-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.section-gallery .card-large {
  padding: 0;
  overflow: hidden;
}

.section-gallery .card-large img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.section-gallery .card-content {
  padding: 1.6rem;
}

.section-gallery .card-content h3 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .section-gallery .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.section-gallery .grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Page hero splash */
.site-hero {
  height: 36vh;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 64px; /* space below fixed header */
}
.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,250,0.1), rgba(251,249,243,0.85));
}
.site-hero-inner { position: relative; z-index: 2; text-align:center; }
.site-hero-title { margin: 0; font-size: clamp(1.4rem, 3vw, 2.0rem); color: var(--text); }

.section-impact {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.section-impact h2 {
  margin-bottom: 1rem;
}

.section-impact p {
  font-size: 1.1rem;
  color: var(--muted);
}

.footer {
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.82s ease, transform 0.82s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    padding: 1rem 1rem;
  }

  .hero {
    padding-top: 8rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 8vw, 4.2rem);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}
