@import url('https://fonts.googleapis.com/css2?family=Lexend+Mega:wght@100..900&family=Public+Sans:wght@100..900&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  background-color: #26171a;
  color: #f5e6ea;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --pink: #eb879c;
  --peach: #ffb6c1;
  --dark: #26171a;
  --dark-2: #341f24;
  --dark-3: #42292e;
  --text: #f5e6ea;
  --text-muted: #c49aa8;
  --card-bg: #341f24;
  --card-shadow: 0 2px 8px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.3);
  --card-shadow-hover: 0 4px 16px rgba(235,135,156,.25), 0 12px 36px rgba(0,0,0,.45);
  --radius: 12px;
  --radius-pill: 999px;
  --radius-card: 4px;
  --nav-h: 64px;
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   SCREEN READER ONLY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   SITE WRAP
   ============================================================ */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 16px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 45vh;
  background: linear-gradient(135deg, #3a1c24 0%, #26171a 60%, #1e1014 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 40%, rgba(235,135,156,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(255,182,193,.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 3rem 2rem 2.5rem;
  max-width: 960px;
  margin-left: auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Public Sans', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .75rem;
}

.hero-title {
  font-family: 'Lexend Mega', sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 20px rgba(235,135,156,.3);
  margin-bottom: 1rem;
  word-break: break-all;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-left: auto;
  line-height: 1.6;
}

/* Slash divider */
.hero-slash {
  position: relative;
  height: 56px;
  background: var(--dark);
  clip-path: polygon(0 40%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 3;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main {
  flex: 1;
}

.content-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-areas:
    "aside figure"
    "aside body";
  gap: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  align-items: start;
}

/* ASIDE */
.content-aside {
  grid-area: aside;
  position: sticky;
  top: 1.5rem;
}

.aside-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(235,135,156,.1);
}

.aside-title {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: .4rem;
}

.aside-desc {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.aside-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.aside-link {
  display: block;
  padding: .45rem .75rem;
  border-radius: var(--radius-pill);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: rgba(235,135,156,.06);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.aside-link:hover,
.aside-link:focus-visible {
  background: rgba(235,135,156,.18);
  color: var(--peach);
  transform: translateX(3px);
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

/* FIGURE (decorative) */
.content-figure {
  grid-area: figure;
  position: relative;
  height: 80px;
  pointer-events: none;
  overflow: hidden;
}

.deco-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  opacity: .25;
}

.deco-blob--1 {
  width: 160px;
  height: 160px;
  background: var(--pink);
  top: -40px;
  right: 10%;
}

.deco-blob--2 {
  width: 100px;
  height: 100px;
  background: var(--peach);
  top: -20px;
  right: 30%;
}

/* CONTENT BODY */
.content-body {
  grid-area: body;
  min-width: 0;
}

/* ============================================================
   CONTENT (page.content) STYLES
   ============================================================ */
.content-body h2 {
  font-family: 'Lexend Mega', sans-serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--peach);
  margin-top: 2.5rem;
  margin-bottom: .5rem;
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body h3 {
  font-family: 'Public Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pink);
  margin-top: 1.5rem;
  margin-bottom: .4rem;
}

.content-body p {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.content-body ul,
.content-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.content-body li {
  margin-bottom: .35rem;
}

.content-body a {
  color: var(--pink);
  text-decoration: underline;
  text-decoration-color: rgba(235,135,156,.4);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.content-body a:hover,
.content-body a:focus-visible {
  color: var(--peach);
  text-decoration-color: var(--peach);
  outline: 2px solid var(--peach);
  outline-offset: 2px;
  border-radius: 2px;
}

.content-body section {
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(235,135,156,.1);
  margin-top: 2rem;
}

.content-body section:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2rem;
  font-size: .92rem;
}

.content-body th,
.content-body td {
  padding: .6rem .8rem;
  border: 1px solid rgba(235,135,156,.15);
  text-align: left;
}

.content-body th {
  background: rgba(235,135,156,.12);
  color: var(--peach);
  font-weight: 700;
}

.content-body blockquote {
  border-left: 3px solid var(--pink);
  padding: .8rem 1.2rem;
  background: rgba(235,135,156,.06);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* ============================================================
   SUBTITLE / H2+p PAIRING
   ============================================================ */
.subtitle {
  font-size: .92rem;
  color: var(--text-muted);
  margin-top: .25rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(235,135,156,.12);
  padding-bottom: calc(var(--nav-h) + 2rem);
}

/* Footer sections grid */
.footer-contact,
.footer-brand-section,
.footer-nav-section,
.footer-nav-section--b {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.footer-section-title {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pink);
  margin-bottom: .3rem;
}

.footer-section-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

/* Subscribe form */
.subscribe-form {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: .8rem;
}

.sub-input {
  flex: 1;
  min-width: 180px;
  padding: .6rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(235,135,156,.3);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-family: 'Public Sans', sans-serif;
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

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

.sub-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(235,135,156,.2);
}

.sub-btn {
  padding: .6rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--pink);
  color: #fff;
  font-family: 'Public Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 40px;
}

.sub-btn:hover,
.sub-btn:focus-visible {
  background: var(--peach);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(235,135,156,.4);
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.footer-contact-line {
  font-size: .85rem;
  color: var(--text-muted);
}

/* Brand section */
.footer-brand-logo {
  margin-bottom: .8rem;
}

.footer-brand-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.brand-text {
  font-family: 'Lexend Mega', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--pink);
}

.brand-mark {
  max-height: 40px;
  width: auto;
}

/* Footer nav */
.footer-col-title {
  font-family: 'Public Sans', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .8rem;
}

.footer-nav-dl {
  list-style: none;
}

.footer-nav-dl dt {
  margin-bottom: .5rem;
}

.footer-dd-sep {
  height: 0;
  margin: 0;
}

.footer-link {
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  display: inline-block;
  padding: .25rem 0;
  min-height: 40px;
  line-height: 40px;
  transition: color var(--transition), transform var(--transition);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--pink);
  transform: translateX(2px);
  outline: 2px solid var(--pink);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Footer bottom */
.footer-bottom {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-copy {
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   BOTTOM FIXED NAV
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(38,23,26,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(235,135,156,.15);
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,.4);
}

.bottom-nav-dl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 .5rem;
}

.bottom-nav-group {
  display: flex;
  align-items: center;
  gap: .2rem;
  flex: 1;
}

.bottom-nav-group--left {
  justify-content: flex-start;
}

.bottom-nav-group--right {
  justify-content: flex-end;
}

.bottom-nav-dl dt {
  /* reset */
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .4rem .65rem;
  border-radius: var(--radius-pill);
  background: rgba(235,135,156,.08);
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Public Sans', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  min-height: 40px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: rgba(235,135,156,.22);
  color: var(--peach);
  transform: translateY(-2px);
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.bottom-nav-brand {
  flex-shrink: 0;
  margin: 0 .5rem;
}

.bottom-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--peach));
  box-shadow: 0 2px 8px rgba(235,135,156,.5);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.bottom-brand-link .brand-text {
  font-size: .55rem;
  color: #26171a;
  text-align: center;
  line-height: 1.1;
}

.bottom-brand-link .brand-mark {
  max-height: 28px;
}

.bottom-brand-link:hover,
.bottom-brand-link:focus-visible {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(235,135,156,.6);
  outline: 2px solid var(--peach);
  outline-offset: 3px;
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 280ms ease, transform 280ms ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .content-body section {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 260ms ease, transform 260ms ease;
  }

  .content-body section.is-visible {
    opacity: 1;
    transform: none;
  }

  .aside-card {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 280ms ease, transform 280ms ease;
  }

  .aside-card.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   DESKTOP LAYOUT (footer 4 columns)
   ============================================================ */
@media (min-width: 768px) {
  .hero-inner {
    padding: 4rem 3rem 3rem;
  }

  .content-section {
    grid-template-columns: 220px 1fr;
    grid-template-areas:
      "aside figure"
      "aside body";
    padding: 3rem 2rem;
  }

  /* Footer 4-col grid */
  .site-footer > .footer-contact,
  .site-footer > .footer-brand-section,
  .site-footer > .footer-nav-section,
  .site-footer > .footer-nav-section--b {
    display: block;
  }

  .footer-grid {
    display: grid;
  }
}

@media (min-width: 1024px) {
  .content-section {
    grid-template-columns: 240px 1fr;
    gap: 0 2.5rem;
    padding: 3.5rem 3rem;
  }

  /* 4-col footer using flexbox on wider screens */
  .site-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "contact brand nav-a nav-b"
      "bottom  bottom bottom bottom";
    border-top: 1px solid rgba(235,135,156,.12);
  }

  .footer-contact { grid-area: contact; border-bottom: none; border-right: 1px solid rgba(255,255,255,.05); }
  .footer-brand-section { grid-area: brand; border-bottom: none; border-right: 1px solid rgba(255,255,255,.05); }
  .footer-nav-section { grid-area: nav-a; border-bottom: none; border-right: 1px solid rgba(255,255,255,.05); }
  .footer-nav-section--b { grid-area: nav-b; border-bottom: none; }
  .footer-bottom { grid-area: bottom; }

  .bottom-nav {
    height: var(--nav-h);
  }

  .nav-pill {
    font-size: .78rem;
    padding: .45rem .85rem;
  }
}

/* ============================================================
   MOBILE ADJUSTMENTS
   ============================================================ */
@media (max-width: 767px) {
  .content-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "figure"
      "aside"
      "body";
    padding: 1.5rem 1rem;
  }

  .content-aside {
    position: static;
    margin-bottom: 1.5rem;
  }

  .content-figure {
    height: 48px;
  }

  .hero-inner {
    padding: 2.5rem 1.25rem 2rem;
  }

  .hero-sub {
    font-size: .9rem;
    max-width: 100%;
  }

  .nav-pill {
    font-size: .66rem;
    padding: .35rem .5rem;
  }

  .bottom-nav-dl {
    padding: 0 .25rem;
    gap: .1rem;
  }

  .bottom-nav-group {
    gap: .1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .nav-pill {
    font-size: .6rem;
    padding: .3rem .4rem;
    letter-spacing: -.01em;
  }

  .bottom-brand-link {
    width: 40px;
    height: 40px;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .sub-input,
  .sub-btn {
    width: 100%;
  }
}

/* ============================================================
   SCROLL MARGIN FOR SECTIONS
   ============================================================ */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

/* ============================================================
   FOCUS GLOBAL
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: rgba(235,135,156,.35);
  color: #fff;
}
