/* ================================
   THEME & TOKENS
   ================================ */

:root {
  --color-bg: #020617;           /* deep navy background */
  --color-surface: #0b1120;      /* slightly lighter navy for cards/sections */
  --color-primary: #e5e7eb;      /* main heading/body light gray */
  --color-primary-soft: #f9fafb; /* lightest “white-ish” heading color */
  --color-accent: #facc6b;       /* warm gold accent (buttons, highlights, tagline) */
  --color-text: #e5e7eb;         /* main body text */
  --color-muted: #9ca3af;        /* muted gray text */

  --shadow-soft: 0 18px 45px rgba(0,0,0,0.6);
  --radius-lg: 18px;
  --radius-sm: 10px;
  --spacing-section: 4.5rem;     /* vertical spacing between sections */
}

/* ================================
   BASE
   ================================ */

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================
   HEADER & NAVBAR
   ================================ */

header {
  background: rgba(2, 6, 23, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-soft);
}

.logo-sub {
  font-size: 0.8rem;
  /* tagline in gold */
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

/* ================================
   MAIN & PAGE LAYOUT
   ================================ */

main {
  flex: 1;

  /* Hoplite helmet watermark background */
  background-image: url('helmet-gold.png'); /* adjust path if needed */
  background-repeat: no-repeat;
  background-position: right 3rem bottom 2rem;
  background-size: 500px auto;
  background-attachment: fixed;
}

.page-hero {
  padding: 3.25rem 0 2.25rem;
}

.page-hero h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--color-primary-soft);
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--color-muted);
}

.section {
  padding: var(--spacing-section) 0;
}

.section h2 {
  font-size: 1.4rem;
  margin: 0 0 1.4rem;
  color: var(--color-primary-soft);
}

.section p {
  margin: 0 0 0.75rem;
}

/* ================================
   CARDS
   ================================ */

.card {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-bottom: 1.75rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  color: var(--color-primary-soft);
}

.card ul {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* ================================
   HERO (HOME PAGE)
   ================================ */

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 2rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  margin: 0 0 0.75rem;
  color: var(--color-primary-soft);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  max-width: 36rem; /* shorter lines for readability */
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

/* ================================
   BUTTONS
   ================================ */

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.1s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

/* Gold primary button */
.btn-primary {
  background: var(--color-accent);
  color: #020617;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #fbbf24;
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

/* Subtle outlined button */
.btn-ghost {
  background: transparent;
  color: var(--color-primary-soft);
  border-color: rgba(148, 163, 184, 0.6);
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.12);
}

/* ================================
   CONTACT FORM
   ================================ */

.contact-card {
  max-width: 640px;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.contact-row-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

label {
  font-size: 0.85rem;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.15rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  background: #020617;
  color: var(--color-text);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-family: inherit;
  font-size: 0.95rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

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

input::placeholder,
textarea::placeholder {
  color: var(--color-muted);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(250, 204, 107, 0.6);
  background: #020617;
}

.helper-text {
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* gold asterisk for required fields */
.required {
  color: var(--color-accent);
}

/* ================================
   FOUNDER SECTION
   ================================ */

.founder-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.founder-photo-wrap {
  flex: 0 0 200px; /* photo column */
}

.founder-photo {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.6);
  object-fit: cover;
}

.founder-text {
  flex: 1 1 260px;
}

/* ================================
   PAEON SUBSTUDIES
   ================================ */

.substudies {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.substudies-header {
  margin-bottom: 0.6rem;
}

.substudies-kicker {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.1rem;
}

.substudies-subtitle {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.substudy {
  margin-top: 0.75rem;
  padding: 0.7rem 0.75rem 0.8rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8); /* slightly darker mini-card */
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* subtle separator between substudies (back to original tone) */
.substudy + .substudy {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.substudy h5 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--color-primary-soft);
}

.substudy p {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
}

/* ================================
   FOOTER
   ================================ */

footer {
  padding: 1.5rem 0 2rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.96);
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 800px) {
  .hero-intro {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .founder-layout {
    flex-direction: column;
    align-items: center;
  }

  .founder-photo-wrap {
    flex-basis: auto;
  }

  .founder-photo {
    max-width: 200px;
  }

  .founder-text {
    width: 100%;
  }

  .contact-row-inline {
    grid-template-columns: 1fr;
  }

  main {
    background-size: 260px auto;
    background-position: right 1.5rem bottom 1.5rem;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none; /* simple mobile behavior */
  }

  .page-hero {
    padding-top: 2.3rem;
  }
}
