/* ============================================================
   Women's Fit Co — shared stylesheet
   All pages link this file. To restyle the site, edit here.
   ============================================================ */

/* ------------------------------------------------------------
   BRAND TOKENS
   Official Women's Fit Co palette (see brand-source/colour-guide.pdf
   in the repo — not deployed). Change a colour here to update site-wide.
   ------------------------------------------------------------ */
:root {
  /* Brand palette — from the official colour guide */
  --pink:       #F673BC;   /* primary pink */
  --pink-deep:  #e14fa3;   /* darker pink for hover states */
  --pink-soft:  #F7C4D7;   /* light pink accent */
  --blue:       #1845C2;   /* primary blue (brand background) */
  --blue-deep:  #123596;   /* darker blue for hover states */
  --navy:       #091A4B;   /* darkest navy */

  /* Neutral / text */
  --ink:        #1a1a1a;   /* near-black main text */
  --ink-soft:   #4a4a4a;   /* secondary text */
  --white:      #ffffff;
  --offwhite:   #f9f9f9;   /* page background */
  --light-grey: #f0f0f0;   /* panel backgrounds */

  /* Typography */
  --display: "Anton", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing & shape */
  --maxw:   1080px;
  --space:  clamp(4rem, 9vw, 8rem);
  --radius: 14px;
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blue);   /* site-wide blue theme */
  color: var(--white);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.59;   /* matches Squarespace Inter line-height */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;           /* Anton is single-weight */
  line-height: 1.3;           /* matches Squarespace Anton line-height */
  letter-spacing: 0.04em;     /* matches Squarespace Anton letter-spacing */
  margin: 0;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
p { margin: 0 0 1rem; }

/* ------------------------------------------------------------
   LAYOUT UTILITIES
   ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-soft);
  margin: 0 0 1rem;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn--primary { background: var(--pink); color: var(--white); }
.btn--primary:hover { background: var(--pink-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--blue); transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); transform: translateY(-2px); }

/* ------------------------------------------------------------
   ANNOUNCEMENT BANNER
   Controlled via ANNOUNCEMENT constant in each page's <script>.
   Set to a non-empty string to show; empty string ("") to hide.
   ------------------------------------------------------------ */
#announce {
  background: var(--blue);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  position: relative;
  display: none;
}
#announce.show { display: block; }
#announce a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#announce button {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--white);
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 .4rem; opacity: .75;
}
#announce button:hover { opacity: 1; }

/* ------------------------------------------------------------
   HEADER & NAV
   ------------------------------------------------------------ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(24,69,194,0.92);   /* brand blue (#1845C2) — suits the transparent logo */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand { text-decoration: none; display: flex; align-items: center; }
.brand img { height: 36px; width: auto; }
/* Fallback wordmark if logo image not yet added */
.brand-text {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--white);
}
.brand-text span { color: var(--pink); }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.nav__links a.link { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--white); }
.nav__links a.link:hover { color: var(--pink-soft); }
@media (max-width: 560px) { .nav__links a.link { display: none; } }

/* ------------------------------------------------------------
   SCROLLING TICKER (SUPPORTING • EMPOWERING • GROWING)
   ------------------------------------------------------------ */
.ticker-wrap {
  background: var(--blue);
  color: var(--white);
  border-block: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
  padding-block: 0.7rem;
  white-space: nowrap;
}
.ticker {
  display: inline-block;
  animation: ticker-scroll 18s linear infinite;
}
.ticker:hover { animation-play-state: paused; }
.ticker-item {
  font-family: var(--display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.04em;
  display: inline-block;
  padding-inline: 1.5rem;
}
.ticker-dot {
  display: inline-block;
  opacity: 0.6;
  padding-inline: 0.3rem;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) var(--space); }
.hero__credline {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.1rem);  /* matches H1 5.1rem from Squarespace */
  max-width: 14ch;
  margin-bottom: 1.5rem;
}
.hero p.lead {
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.34rem);  /* matches P1 1.34rem */
  color: rgba(255,255,255,0.88);
  max-width: 46ch;
  margin: 0 0 2.2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ------------------------------------------------------------
   CREDENTIALS STRIP
   ------------------------------------------------------------ */
.creds { background: var(--blue); color: var(--white); border-block: 1px solid rgba(255,255,255,0.14); }
.creds .wrap {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center; justify-content: center; text-align: center;
}
.cred { font-weight: 700; font-size: clamp(0.95rem, 2.4vw, 1.1rem); }
.cred small {
  display: block; font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 0.2rem;
}

/* ------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------ */
.about { padding-block: var(--space); }
.about .grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 780px) { .about .grid { grid-template-columns: 1fr; } }
.about h2 { font-size: clamp(2rem, 4.5vw, 4.1rem); margin-bottom: 1.4rem; } /* H2 4.1rem */
.about p { color: rgba(255,255,255,0.88); }
.about p strong { color: var(--white); }
.portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder {
  font-family: var(--body);
  font-size: 0.9rem;
  opacity: .6;
  padding: 1rem;
  text-align: center;
}

/* ------------------------------------------------------------
   GIF / MEDIA BLOCK
   ------------------------------------------------------------ */
.media-block {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.media-block img { width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------
   CONTACT
   ------------------------------------------------------------ */
.contact { background: transparent; }
.contact .wrap { padding-block: var(--space); }
.contact h2 { font-size: clamp(2rem, 4.5vw, 4.1rem); margin-bottom: 0.6rem; }
.contact .sub { color: rgba(255,255,255,0.85); margin: 0 0 2.4rem; max-width: 42ch; }
.contact__rows { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2.4rem; }
.crow { display: flex; align-items: center; gap: 0.8rem; font-size: 1.15rem; font-weight: 600; text-decoration: none; color: var(--white); }
.crow:hover { color: var(--pink-soft); }
.crow .tag {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); width: 5.5rem; flex: none;
}
.socials { display: flex; gap: 1rem; margin-top: 2.4rem; }
.socials a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.socials a:hover { color: var(--pink); }

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer { background: var(--navy); color: var(--white); }
footer .wrap {
  padding-block: 2.5rem;
  display: flex; flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: var(--pink); }
footer .muted { color: rgba(255,255,255,0.4); }

/* ------------------------------------------------------------
   SCROLL REVEAL
   ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   FOCUS & ACCESSIBILITY
   ------------------------------------------------------------ */
:where(a, button):focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker { animation: none; }
}

/* ------------------------------------------------------------
   PRIVACY POLICY / PROSE PAGES
   ------------------------------------------------------------ */
.prose-wrap {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2rem) 5rem;
}
.prose-wrap h1 { font-size: clamp(2.2rem, 6vw, 3.1rem); margin-bottom: 0.5rem; } /* H3 3.1rem */
.prose-wrap h2 { font-size: 2.1rem; margin: 2.6rem 0 0.7rem; }  /* H4 2.1rem */
.prose-wrap p, .prose-wrap li { color: rgba(255,255,255,0.85); margin: 0 0 1rem; }
.prose-wrap a { color: var(--pink-soft); }
.prose-wrap ul { padding-left: 1.2rem; }
.prose-back {
  display: inline-block;
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}
.prose-back:hover { color: var(--pink-soft); }
.prose-updated { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.prose-note {
  background: rgba(255,255,255,0.08);
  border-left: 4px solid var(--pink);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-size: 0.92rem;
  margin: 2rem 0;
}
