/* ============================================================
   Michele Flaherty — personal brand site
   Mobile-first, responsive, accessible.
   ============================================================ */

:root {
  --ink:   #0C2A30; /* primary text */
  --deep:  #0E3B45; /* dark teal hero base */
  --teal:  #14A6A6; /* primary accent */
  --green: #34C28A; /* secondary accent, used sparingly */
  --mist:  #F4FAF9; /* page background, cool off-white */
  --line:  #DCEAE8; /* subtle borders */

  --white: #FFFFFF;

  --maxw: 1080px;
  --radius: 16px;
  --shadow-soft: 0 18px 50px rgba(12, 42, 48, 0.12);
  --shadow-card: 0 6px 24px rgba(12, 42, 48, 0.08);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 { margin: 0 0 0.4em; line-height: 1.1; }

p { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}
.container--narrow { max-width: 680px; }

.section { padding-block: clamp(56px, 9vw, 104px); }

.section__heading {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--deep);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 250, 249, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px 22px;
}
.nav__brand {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--deep);
}
.nav__links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 2px;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--teal);
  transition: right 0.25s ease;
}
.nav__links a:hover::after { right: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.btn--primary {
  color: var(--white);
  background: linear-gradient(120deg, var(--teal), var(--green));
  box-shadow: 0 10px 26px rgba(20, 166, 166, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(20, 166, 166, 0.42);
}
.btn--primary:active { transform: translateY(0); }
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--mist);
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(52, 194, 138, 0.30), transparent 55%),
    linear-gradient(160deg, var(--deep) 0%, #0F4B52 45%, #11695F 100%);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 38px;
  padding-block: clamp(64px, 11vw, 120px);
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 14px;
}
.hero__name {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--white);
}
.hero__tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 600;
  max-width: 30ch;
  color: #EAFBF6;
}
.hero__support {
  font-size: 1.05rem;
  max-width: 52ch;
  color: rgba(234, 251, 246, 0.85);
  margin-bottom: 26px;
}

/* Soft translucent shapes behind hero */
.hero__shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.5;
}
.shape--1 {
  width: 340px; height: 340px;
  top: -90px; right: -70px;
  background: radial-gradient(circle, rgba(52,194,138,0.55), transparent 70%);
}
.shape--2 {
  width: 260px; height: 260px;
  bottom: -90px; left: -60px;
  background: radial-gradient(circle, rgba(20,166,166,0.55), transparent 70%);
}
.shape--3 {
  width: 180px; height: 180px;
  top: 40%; left: 55%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
}

/* Headshot */
.hero__media { align-self: center; }
.headshot {
  width: clamp(220px, 46vw, 280px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--teal), var(--green));
  box-shadow: 0 0 0 10px rgba(20, 166, 166, 0.18), var(--shadow-soft);
}
.headshot img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mist);
}

/* ---------- About ---------- */
.about { background: var(--mist); }
.about__body {
  max-width: 68ch;
  font-size: 1.08rem;
  color: var(--ink);
}
.about__body p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact {
  background:
    linear-gradient(180deg, var(--mist), var(--white));
  border-top: 1px solid var(--line);
}
.contact__lede {
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 30px;
}

/* Form */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--deep);
}
.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 166, 166, 0.16);
}
.form .btn--primary { justify-self: start; }

/* Honeypot — visually hidden but reachable for bots */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status { margin: 0; font-weight: 500; }
.form__status[data-state="error"] { color: #B23B3B; }

.form__success {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}
.form__success h3 { color: var(--deep); }
.form__success p { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep);
  color: rgba(244, 250, 249, 0.82);
  padding-block: 28px;
}
.site-footer__text {
  margin: 0;
  font-weight: 400;
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
  }
  .hero__content { flex: 1 1 auto; }
  .hero__media { flex: 0 0 auto; align-self: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .field input, .field textarea, .nav__links a::after { transition: none; }
}
