/* =========================
   Helen Petry Stowe Campaign
   Master Stylesheet
   Last updated: 2025-06-17
   ========================= */

/* ---------- Core palette ---------- */
:root {
  --brand-blue:   #2155ff;
  --brand-red:    #e41f2d;
  --brand-purple: #5936ff;
  --brand-light:  #f4f7ff;
  --text-dark:    #1b1b1b;
  --soft-gray:    #e2e6f0;
}

/* ---------- Base reset & typography ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
}

a       { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: #ffffffee;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  z-index: 1000;
}

header .logo { font-size: 1.5rem; font-weight: 700; color: var(--brand-purple); }

nav ul  { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
nav a   { font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  height: 100vh;
  background: url("/assets/hero.jpg") center/cover no-repeat fixed;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5%;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
               rgba(33,85,255,.9) 0%,
               rgba(89,54,255,.8) 100%);
  mix-blend-mode: multiply;
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  max-width: 600px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin: 0 0 1rem;
  line-height: 1.15;
  font-weight: 800;
}

.hero p { font-size: 1.25rem; margin-bottom: 2rem; }

/* ---------- Signup (hero form) ---------- */
.signup-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 720px;
}

.signup-form input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #c2c8d6;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
}

/* Outline-style CTA button so it pops even over purple gradient */
.signup-form button {
  grid-column: 1 / -1;
  justify-self: center;
  background: transparent;
  border: 2px solid var(--brand-light);
  color: #fff;
  padding: 1rem 2.75rem;
  border-radius: 6px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.signup-form button:hover {
  background: var(--brand-light);
  color: var(--brand-purple);
}

/* ---------- Contact form ---------- */
.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 620px;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;             /* two-column desktop */
}
.contact-form .field       { display: flex; flex-direction: column; }
.contact-form .field-full  { grid-column: 1 / -1; }

.contact-form label  { font-weight: 600; margin-bottom: .35rem; }

.contact-form input,
.contact-form textarea {
  padding: .85rem 1rem;
  border: 1px solid #c2c8d6;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: border-color .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 2px rgba(89,54,255,.2);
}

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

.contact-form button {
  grid-column: 1 / -1;
  justify-self: center;
  background: var(--brand-purple);
  border: 1px solid var(--brand-purple);
  color: #fff;
  padding: 1rem 2.75rem;
  border-radius: 6px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter .2s;
  margin-top: .25rem;
}
.contact-form button:hover { filter: brightness(1.1); }

/* ---------- Layout helpers ---------- */
section { padding: 4rem 5%; max-width: 900px; margin: 0 auto; }
section h2 { font-size: 2rem; margin: 0 0 1rem; color: var(--brand-purple); }

footer {
  background: #111;
  color: #fff;
  padding: 2rem 5%;
  text-align: center;
  font-size: .875rem;
  clear: both;
}

.center { text-align: center; }

@media (max-width: 600px) {
  .contact-form { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  body   { color: #eaeaea; background: #121212; }
  header { background: #1c1c1cdd; }
  a      { color: #8da8ff; }
}
