/* ============================================================
   EMPowered  |  emily-marlowe.com
   Navy: RGB(22, 36, 48) = #162430
   Accent: muted teal (from the mockup CTAs)
   Cream paper for light sections
   Radius: buttons 8px / media 16px / inputs 8px
   ============================================================ */

:root {
  --navy: #162430;
  --navy-mid: #1e3342;
  --cream: #f4efe6;
  --sand: #e7e3da;
  --white: #faf8f4;
  --teal: #2a6b62;
  --teal-deep: #1f524b;
  --ink: #162430;
  --muted: #5c6462;
  --hair: rgba(22, 36, 48, 0.12);
  --hair-light: rgba(244, 239, 230, 0.16);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--teal); color: var(--white); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.page-fade {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--cream);
  pointer-events: none;
  animation: pageOut 0.5s var(--ease) 0.04s forwards;
}
@keyframes pageOut { to { opacity: 0; visibility: hidden; } }

[data-scroll-sentinel] {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}

.wrap {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

h1, h2, h3, .logo {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.lede { color: var(--muted); max-width: 42ch; font-size: 1.1rem; }

.italic { font-style: italic; padding-bottom: 0.06em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease),
              color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.btn:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  padding: 0.8rem 1.45rem;
}
.btn--ghost:hover { background: var(--teal); color: var(--white); }

.btn--light { background: var(--teal); color: var(--white); }

.btn--text {
  background: transparent;
  color: var(--navy);
  letter-spacing: 0.1em;
  padding: 0.85rem 0;
  gap: 0.4rem;
}
.btn--text:hover { background: transparent; color: var(--teal); transform: none; }
.btn--text i { transition: transform 0.4s var(--ease); }
.btn--text:hover i { transform: translateX(4px); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(244, 239, 230, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--hair);
  background: rgba(244, 239, 230, 0.97);
}

.nav__bar {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.55rem;
  font-weight: 600;
  margin-right: auto;
}
.logo span { font-weight: 700; }

.nav__links { display: flex; gap: 1.55rem; }

.nav__link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__link:hover, .nav__link.is-active { color: var(--navy); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border: 0; background: transparent;
  cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 11px; right: 11px;
  height: 1.5px; background: var(--navy);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 24px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--cream);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem 3rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 2rem; }
.mobile-menu__links a {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 1.12;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 1.5rem) 0 4rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  margin-bottom: 1.25rem;
}

.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line span { display: block; }

.hero .lede { margin-bottom: 1.85rem; }

.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }

.hero img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 16px;
}

/* ---------- Navy band ---------- */

.band {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.band__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.band h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  margin-bottom: 1.25rem;
  color: var(--cream);
}

.rule {
  width: 3rem;
  height: 1.5px;
  background: var(--teal);
  margin-bottom: 1.25rem;
}

.band p { color: rgba(244, 239, 230, 0.78); max-width: 42ch; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.75rem;
}

.pillar i { font-size: 1.55rem; color: var(--teal); margin-bottom: 0.7rem; display: block; }
.pillar h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.3rem; color: var(--cream); }
.pillar p { font-size: 0.95rem; color: rgba(244, 239, 230, 0.7); max-width: 28ch; }

/* ---------- For you ---------- */

.foryou {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.foryou__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.ph {
  background: var(--sand);
  border-radius: 16px;
  width: 100%;
  min-height: 16rem;
}

.foryou .ph { aspect-ratio: 4 / 5; }

.foryou h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin-bottom: 1.5rem;
}

.checks { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2rem; }
.checks li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
}
.checks i { color: var(--teal); font-size: 1.15rem; margin-top: 0.15rem; flex-shrink: 0; }

/* ---------- Approach (home) ---------- */

.approach-home {
  background: var(--sand);
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  text-align: center;
}

.approach-home h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin: 0 auto 1.15rem;
  max-width: 18ch;
}

.approach-home p {
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto 2rem;
}

/* ---------- Quote ---------- */

.quote-sec { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

.quote-sec__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.quote-mark { font-family: var(--serif); font-size: 5rem; line-height: 0.6; color: var(--teal); display: block; margin-bottom: 1rem; }

blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

blockquote footer {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.quote-sec .ph { aspect-ratio: 4 / 3; }

/* ---------- Close CTA ---------- */

.close {
  background: var(--navy);
  color: var(--cream);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.close__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.close h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 16ch; color: var(--cream); }
.close p { color: rgba(244, 239, 230, 0.78); max-width: 36ch; }

/* ---------- Inner pages ---------- */

.page { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 5rem; }

.intro { max-width: 680px; padding-bottom: 3rem; }
.intro h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin-bottom: 1rem; }

.prose { max-width: 62ch; }
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin: 2.5rem 0 0.9rem; }

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 16px;
}

.list-block { margin-top: 2rem; }
.list-block h2 { font-size: 1.8rem; margin-bottom: 1rem; }

.resource {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--hair);
}
.resource:last-child { border-bottom: 1px solid var(--hair); }
.resource__kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.resource h3 { font-family: var(--serif); font-size: 1.45rem; margin-bottom: 0.3rem; }
.resource p { color: var(--muted); max-width: 52ch; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.form { display: flex; flex-direction: column; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }

.field input, .field select, .field textarea {
  width: 100%;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C6462' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

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

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 107, 98, 0.18);
}

.field.has-error input, .field.has-error textarea { border-color: #a33; }
.field__error { font-size: 0.82rem; color: #8c2f2f; }
.form .btn { align-self: flex-start; }

.form-success {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
}
.form-success i { font-size: 1.8rem; color: var(--teal); }
.form-success h2 { font-size: 2rem; margin: 0.5rem 0; }
.form-success p { color: var(--muted); margin-bottom: 1.2rem; }

.aside { display: flex; flex-direction: column; gap: 1.6rem; }
.aside h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.aside a { font-weight: 600; border-bottom: 1.5px solid transparent; transition: border-color 0.3s var(--ease); }
.aside a:hover { border-color: var(--teal); }

.socials { display: flex; gap: 0.6rem; }
.socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  font-size: 1.15rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.socials a:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 3.5rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.2fr;
  gap: 2rem 1.5rem;
}

.footer .logo { color: var(--cream); font-size: 1.5rem; display: inline-block; margin-bottom: 0.75rem; }
.footer__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.55);
  max-width: 22ch;
  line-height: 1.6;
}

.footer h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.5);
  margin-bottom: 0.9rem;
}

.footer nav { display: flex; flex-direction: column; gap: 0.45rem; }
.footer nav a, .footer__connect a {
  font-size: 0.95rem;
  color: rgba(244, 239, 230, 0.78);
  transition: color 0.3s var(--ease);
}
.footer nav a:hover, .footer__connect a:hover { color: var(--cream); }

.footer__connect { display: flex; flex-direction: column; gap: 0.45rem; }

.news p { font-size: 0.92rem; color: rgba(244, 239, 230, 0.7); margin-bottom: 0.85rem; max-width: 28ch; }
.news form { display: flex; gap: 0.4rem; }
.news input {
  flex: 1;
  min-width: 0;
  background: var(--navy-mid);
  border: 1px solid var(--hair-light);
  color: var(--cream);
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
}
.news input::placeholder { color: rgba(244, 239, 230, 0.4); }
.news .btn { padding: 0.7rem 0.95rem; }

.news-ok { font-size: 0.9rem; color: rgba(244, 239, 230, 0.8); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair-light);
  font-size: 0.8rem;
  color: rgba(244, 239, 230, 0.45);
}
.footer__bottom a { color: rgba(244, 239, 230, 0.55); }
.footer__bottom a:hover { color: var(--cream); }
.footer__bottom span { margin-left: auto; display: flex; gap: 1.25rem; }

.lost { min-height: calc(100dvh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; padding-bottom: 4rem; }
.lost h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); margin-bottom: 1rem; }
.lost p { color: var(--muted); margin-bottom: 1.75rem; max-width: 36ch; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav__links, .nav .btn { display: none; }
  .nav__toggle { display: block; }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 2rem); }
  .hero__grid, .band__grid, .foryou__grid, .quote-sec__grid,
  .split, .contact-grid, .footer__grid, .pillars { grid-template-columns: 1fr; }
  .resource { grid-template-columns: 1fr; }
  .close h2 { max-width: none; }
}

@media (max-width: 560px) {
  .wrap, .nav__bar { width: calc(100% - 2rem); }
  .hero__ctas .btn:not(.btn--text) { width: 100%; }
  .news form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-fade { animation: none; opacity: 0; visibility: hidden; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
