/* ==========================================================================
   Trashy Divas — trashydivasaz.org
   Static rebuild by ONNA Web Design (2026). Same look and feel as the former
   WordPress/Astra/Elementor site, without the page builder.
   Units: rem for type and layout spacing, em for padding that should scale
   with its own text (buttons), px for borders/shadows.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair-display-400.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/fonts/open-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --red: #dd183b;          /* brand red from the logo / old buttons (white text passes 4.9:1) */
  --red-dark: #b3112e;     /* hover */
  --red-light: #ff7a90;    /* links on the dark footer (passes 4.5:1 there) */
  --ink: #0f172a;          /* headings */
  --text: #3a3a3a;         /* body text */
  --white: #ffffff;
  --footer-bg: #140306;    /* near-black maroon footer, as on the old site */
  --line: #e6e2dc;

  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 75rem;           /* 1200px content width, matching the original site */
  --gutter: 1.25rem;
  --section-y: 4.5rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 1.25rem;
}
h1 { font-size: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
h2 { font-size: clamp(2rem, 1.7rem + 1.4vw, 3rem); }
h3 { font-size: clamp(1.6rem, 1.45rem + 0.7vw, 2.2rem); }
p { margin: 0 0 1.25rem; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
/* Body-text links are underlined: the red is under 3:1 against the gray body text */
main p a:not(.btn) { text-decoration: underline; text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
/* Readable line length: text blocks stop at about 100 characters per line and are centered on
   the page (equal space left and right; the text itself stays left-aligned). Headings use the
   same centered measure so they line up with their paragraphs. Photos stay full column width. */
.prose > h1, .prose > h2, .prose > h3, .prose > p, .prose > ul { max-width: 60rem; margin-left: auto; margin-right: auto; }
.section { padding: var(--section-y) 0; }
.section + .section { padding-top: 0; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--white); color: var(--ink); padding: 0.75rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 0.75em 1.85em;
  border-radius: 2px;
  font-size: 1rem;
  line-height: 1.3;
  transition: background-color 0.2s;
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); color: var(--white); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 7.3rem; }
.logo img { width: 18.75rem; height: auto; }
.menu-toggle {
  display: none; background: none; border: 0; padding: 0.5rem; color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 1.75rem; height: 1.75rem; display: block; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.5rem; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--red); }
/* Contact/social icons (more specific than .main-nav ul so the nav-link gap doesn't apply) */
.main-nav .social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; gap: 0.6rem; }
.social a { display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; color: var(--ink); }
.social a:hover { color: var(--red); }
.social svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

@media (max-width: 921px) {
  .header-inner { min-height: 5rem; }
  .logo img { width: 12.5rem; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    /* A tall open menu scrolls inside itself instead of pushing the page (phones in landscape) */
    max-height: calc(100vh - 5rem); max-height: calc(100dvh - 5rem); overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav > ul:not(.social) a { display: block; padding: 0.85rem var(--gutter); border-top: 1px solid var(--line); }
  .main-nav .social { padding: 0.5rem var(--gutter); border-top: 1px solid var(--line); gap: 1rem; }
  .main-nav .social a { width: 2.75rem; height: 2.75rem; }
}

/* ---------- Home hero (photo band, no text on it) ---------- */
.hero img {
  width: 100%;
  height: clamp(16rem, 40vw, 36rem);
  object-fit: cover;
  object-position: center 60%;  /* keeps the crew's faces and shirts in view */
}

/* ---------- Two-column feature (image + text) ---------- */
.feature { display: grid; grid-template-columns: 1fr; gap: 1.5rem 2rem; align-items: start; margin: 2.5rem 0; }
.feature img { width: 100%; }
@media (min-width: 768px) {
  .feature { grid-template-columns: 3fr 2fr; }
}

/* ---------- Image pairs (About, Get Involved) ---------- */
.photo-pair { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin: 0 0 2.5rem; }
@media (min-width: 768px) { .photo-pair { grid-template-columns: 1fr 1fr; } }

/* ---------- Partner logo ---------- */
.partner { margin: 2.5rem 0 0; }
.partner a { display: inline-block; }
.partner img { margin: 0 auto; width: 18.75rem; }

/* ---------- News article card ---------- */
.news-card { margin-top: 2.5rem; text-align: center; }
.news-card > * { max-width: 35rem; margin-left: auto; margin-right: auto; }
.news-card h2 { font-size: clamp(1.6rem, 1.45rem + 0.7vw, 2rem); }
.news-card img { margin: 0 auto 1.5rem; }

/* ---------- Contact lines ---------- */
.contact-lines { list-style: none; margin: 0; padding: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--white); padding: 2.5rem 0; }
.site-footer p { margin: 0; text-align: center; }
.site-footer a { color: var(--red-light); }
.site-footer a:hover { color: var(--white); }
.footer-credit { font-size: 0.875rem; margin-top: 0.5rem !important; opacity: 0.85; }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 2.75rem; height: 2.75rem; border: 0; border-radius: 2px;
  background: var(--red); color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--red-dark); }
.to-top svg { width: 1.1rem; height: 1.1rem; }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 6rem 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
