/* Utah Valley Dev — palette aligned to logo: green — teal — blue on black */
:root {
  --brand-green: #40c26a;
  --brand-teal: #00a99d;
  --brand-blue: #1a73e8;
  --brand-ink: #000000;
  --bg: #f4faf8;
  --bg-alt: #e4f2ee;
  --text: #0c1420;
  --text-muted: #4a5f70;
  --accent: #00a99d;
  --accent-hover: #008a81;
  --link: #1a6ee6;
  --link-hover: #1257b8;
  --ink: #000000;
  --line: #c0ddd6;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --gradient-brand: linear-gradient(
    100deg,
    var(--brand-green) 0%,
    var(--brand-teal) 45%,
    var(--brand-blue) 100%
  );
  --gradient-hero: linear-gradient(165deg, #e6f5ef 0%, #e6f0ff 55%, #dce8fc 100%);
  --gradient-hero-glow: radial-gradient(
    ellipse 80% 50% at 70% 0%,
    rgba(0, 169, 157, 0.15),
    transparent 58%
  );
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  background: var(--brand-ink);
  color: #e8f4f2;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0, 169, 157, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 0.75rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.brand-logo {
  display: block;
  height: clamp(3rem, 20vw, 100px);
  width: auto;
  max-width: min(520px, 88vw);
  object-fit: contain;
  object-position: left center;
}

.footer-brand {
  display: inline-block;
  line-height: 0;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.footer-brand:hover {
  text-decoration: none;
  opacity: 0.9;
}

.footer-logo {
  display: block;
  height: clamp(3rem, 20vw, 100px);
  width: auto;
  max-width: min(520px, 100%);
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav-link {
  color: rgba(200, 235, 228, 0.85);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: #fff;
  text-decoration: none;
}

.nav-cta {
  color: #fff;
  background: var(--gradient-brand);
  background-size: 120% 100%;
  background-position: 50% 50%;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: none;
}

.nav-cta:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.08) saturate(1.05);
}

#main {
  flex: 1;
}

.messages {
  padding-top: 1rem;
}

.message {
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: #e2f2eb;
  border: 1px solid #5ec49a;
  color: #0b2818;
  font-size: 0.95rem;
}

.message-error {
  background: #f8e8e4;
  border-color: #d4a399;
  color: #4a1f12;
}

.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 4rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-glow);
  pointer-events: none;
}

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

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-teal);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-brand);
  background-size: 120% 100%;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.06) saturate(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-teal);
}

.btn-ghost:hover {
  background: rgba(0, 169, 157, 0.1);
  color: #0a1e14;
  border-color: var(--brand-blue);
  text-decoration: none;
}

section {
  padding: 3.5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 0 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

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

.muted {
  color: var(--text-muted);
}

.prose {
  max-width: 65ch;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--ink);
}

.stripe {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr 1.1fr;
  }
}

.form-stack label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form-stack p {
  margin: 0 0 1.1rem;
}

.form-stack input,
.form-stack textarea {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.form-stack input:focus,
.form-stack textarea:focus {
  outline: 2px solid rgba(0, 169, 157, 0.4);
  outline-offset: 1px;
  border-color: var(--brand-teal);
}

.form_errors {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: #f8e8e4;
  border-radius: 8px;
  color: #4a1f12;
  font-size: 0.9rem;
}

.site-footer {
  background: var(--brand-ink);
  color: rgba(200, 220, 230, 0.7);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-heading {
  color: #e8f4f2;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.footer-muted {
  margin: 0;
  line-height: 1.5;
  color: rgba(200, 220, 230, 0.65);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.4rem;
}

.footer-list a {
  color: rgba(150, 210, 255, 0.8);
}

.footer-list a:hover {
  color: #fff;
}

.footer-legal {
  border-top: 1px solid rgba(0, 169, 157, 0.2);
  padding-top: 1rem;
}

.footer-legal p {
  margin: 0;
  font-size: 0.85rem;
}
