/* ============================================================
   pages.css — dropdown nav + interior page styles
   Loads after style.css. Uses the Portland design tokens.
   ============================================================ */

/* ---------- DROPDOWN NAV (desktop hover) ---------- */
.nav-links .has-sub { position: relative; }
.nav-sub {
  position: absolute;
  top: 100%;
  left: -0.6rem;
  min-width: 260px;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background: var(--navy-deep, #032d43);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
}
.nav-links .has-sub:hover > .nav-sub,
.nav-links .has-sub:focus-within > .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-sub li { display: block; }
.nav-sub a {
  display: block;
  padding: 0.7rem 1.4rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.nav-sub a::after { display: none !important; }
.nav-sub a:hover { background: rgba(62, 205, 196, 0.14); color: var(--white); }
.has-sub > a .caret { font-size: 0.7em; opacity: 0.7; margin-left: 0.25rem; }

/* keep the 7-item nav from getting cramped */
@media (min-width: 769px) {
  .nav-links { gap: clamp(1.1rem, 2vw, 1.9rem); }
  .nav-links a { font-size: 1.02rem; }
}

/* mobile / tablet menu (769–992) — show hamburger, stack the menu */
@media (min-width: 769px) and (max-width: 992px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 92px; left: 0; right: 0;
    background: rgba(3, 45, 67, 0.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem; gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links.open > li > a { padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); display: block; }
}

/* sub-menus go static inside the open mobile menu (both breakpoints) */
@media (max-width: 992px) {
  .nav-links.open .nav-sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; padding: 0 0 0.4rem 1rem; min-width: 0;
  }
  .nav-links.open .nav-sub a { padding: 0.5rem 0; border-bottom: none; font-size: 0.95rem; }
}

/* ---------- INTERIOR PAGE HEADER ---------- */
.page-header {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 150px 0 64px;
  overflow: hidden;
}
.page-header::after {
  content: ""; position: absolute; right: -80px; top: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,205,196,0.16), transparent 70%);
}
.page-header .container { position: relative; z-index: 2; }
.page-header .eyebrow {
  font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.9rem;
}
.page-header h1 {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); line-height: 1.05;
  letter-spacing: -0.02em; max-width: 18ch;
}
.page-header p {
  margin-top: 1.1rem; max-width: 60ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
}
.page-header .crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 1.4rem; }
.page-header .crumbs a { color: rgba(255,255,255,0.75); }
.page-header .crumbs a:hover { color: var(--teal); }

/* ---------- GENERIC SECTIONS ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.alt { background: var(--warm-gray, #f0ece8); }
.section.navy { background: var(--navy); color: var(--white); }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head .eyebrow {
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-gold); margin-bottom: 0.8rem;
}
.section-head h2 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); letter-spacing: -0.02em; }
.section.navy .section-head .eyebrow { color: var(--teal); }

/* ---------- PROSE ---------- */
.prose { max-width: 70ch; color: var(--text-body); font-size: 1.075rem; line-height: 1.75; }
.prose.center { margin-inline: auto; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.7rem; color: var(--text-dark); margin-top: 2.2rem; letter-spacing: -0.01em; }
.prose h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--navy); margin-top: 1.6rem; }
.prose a { color: var(--navy-mid, #0a6b9e); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--red-gold); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-top: 0.5rem; }
.prose .lead { font-size: 1.25rem; color: var(--text-dark); font-weight: 500; line-height: 1.6; }

/* ---------- TWO COLUMN ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
.grid-2.center { align-items: center; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; } .grid-2.wide-left { grid-template-columns: 1.3fr 1fr; } }
.media-rounded { width: 100%; border-radius: var(--radius-lg, 20px); object-fit: cover; box-shadow: 0 30px 60px -34px rgba(5,76,112,0.5); }

/* ---------- CARD GRID (benefits, features) ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 640px) { .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--white); border: 1px solid rgba(5,76,112,0.10);
  border-radius: var(--radius-lg, 20px); padding: 1.8rem 1.7rem;
  box-shadow: 0 18px 40px -34px rgba(5,76,112,0.4);
}
.feature-card .fc-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(62,205,196,0.14); margin-bottom: 1rem;
}
.feature-card h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--navy); margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-body); font-size: 0.98rem; line-height: 1.6; }
.section.navy .feature-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.section.navy .feature-card h3 { color: var(--white); }
.section.navy .feature-card p { color: rgba(255,255,255,0.78); }

/* ---------- CHECK LIST ---------- */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-top: 0.9rem; color: var(--text-body); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.2rem; height: 1.2rem;
  border-radius: 50%; background: var(--teal);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17l-3.5-3.5L4 14.17 9 19l11-11-1.5-1.5z'/></svg>") center/0.9rem no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17l-3.5-3.5L4 14.17 9 19l11-11-1.5-1.5z'/></svg>") center/0.9rem no-repeat;
}

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.2rem; counter-reset: step; }
@media (min-width: 760px) { .steps.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--white); border: 1px solid rgba(5,76,112,0.10); border-radius: var(--radius-md, 12px); padding: 1.6rem; }
.step .step-n {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1rem;
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy); color: var(--white); margin-bottom: 0.9rem;
}
.step h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--navy); margin-bottom: 0.4rem; }
.step p { color: var(--text-body); font-size: 0.96rem; }

/* ---------- TEAM ---------- */
.team-block { margin-top: 2.4rem; }
.team-block h3 {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--red-gold);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.2rem;
  padding-bottom: 0.6rem; border-bottom: 2px solid rgba(5,76,112,0.12);
}
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem 1.4rem; }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-member { padding: 0.2rem 0; text-align: center; }
.tm-photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 0.7rem; border: 3px solid var(--white); box-shadow: 0 10px 24px rgba(5,76,112,0.18); background: #e9edf1; }
.team-member .tm-name { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--text-dark); }
.team-member .tm-role { font-size: 0.9rem; color: var(--red-gold); font-weight: 600; }
.team-member .tm-org { font-size: 0.9rem; color: var(--text-light, #6b6b82); }
.tm-email { display: inline-block; margin-top: 0.4rem; font-size: 0.8rem; color: var(--amber); text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.tm-email:hover { text-decoration: underline; }

/* ---------- DOC / POSITION LETTER LIST ---------- */
.doc-list { list-style: none; padding: 0; border-top: 1px solid rgba(5,76,112,0.12); }
.doc-list li { border-bottom: 1px solid rgba(5,76,112,0.12); }
.doc-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0.2rem; color: var(--text-dark); font-weight: 600; transition: color 0.2s, padding-left 0.2s; }
.doc-list a:hover { color: var(--navy); padding-left: 0.4rem; }
.doc-list .doc-date { font-weight: 500; color: var(--text-light, #6b6b82); font-size: 0.9rem; }

/* ---------- PARTNER LOGOS / NAMES ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(5,76,112,0.12); border: 1px solid rgba(5,76,112,0.12); border-radius: var(--radius-md,12px); overflow: hidden; }
@media (min-width: 760px) { .partner-grid { grid-template-columns: repeat(4, 1fr); } }
.partner-grid .partner { background: var(--white); padding: 1.3rem 1.2rem; font-weight: 600; color: var(--navy); text-align: center; display: grid; place-items: center; min-height: 90px; }

/* ---------- INFO / CONTACT ---------- */
.info-card { background: var(--white); border: 1px solid rgba(5,76,112,0.10); border-radius: var(--radius-lg,20px); padding: 1.9rem; box-shadow: 0 18px 40px -34px rgba(5,76,112,0.4); }
.info-card h3 { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
.info-row { display: flex; gap: 0.8rem; align-items: flex-start; margin-top: 1rem; }
.info-row .ir-label { font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--red-gold); min-width: 5.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.1rem; }
.info-row a { color: var(--navy-mid, #0a6b9e); }
.map-embed { width: 100%; border: 0; border-radius: var(--radius-lg,20px); min-height: 320px; height: 100%; }

/* ---------- SIMPLE FORM ---------- */
.form-field { margin-top: 1.1rem; }
.form-field label { display: block; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 0.4rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid rgba(5,76,112,0.2); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 1rem; color: var(--text-dark); background: var(--white);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.form-note { font-size: 0.85rem; color: var(--text-light, #6b6b82); margin-top: 1rem; font-style: italic; }

/* ---------- MEMBERSHIPWORKS EMBED ---------- */
.mw-wrap { background: var(--white); border: 1px solid rgba(5,76,112,0.10); border-radius: var(--radius-lg,20px); padding: clamp(1.2rem, 2.5vw, 2rem); box-shadow: 0 18px 40px -34px rgba(5,76,112,0.4); min-height: 420px; }
.mw-note { font-size: 0.85rem; color: var(--text-light, #6b6b82); margin-top: 1.2rem; }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--navy); color: var(--white); border-radius: var(--radius-xl, 32px); padding: clamp(2.4rem, 5vw, 4rem); text-align: center; }
.cta-band h2 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); max-width: 18ch; margin: 0 auto 1rem; }
.cta-band p { max-width: 46ch; margin: 0 auto 1.8rem; color: rgba(255,255,255,0.85); }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---------- DRAFT FLAG ---------- */
.draft-flag { display: inline-block; background: rgba(212,133,58,0.16); color: var(--red-gold); border: 1px solid rgba(212,133,58,0.4); font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.2rem; }

/* ---------- STAT WALL ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--white); border: 1px solid rgba(5,76,112,0.10); border-radius: var(--radius-lg,20px); padding: 2.1rem 1.8rem; text-align: center; box-shadow: 0 18px 40px -34px rgba(5,76,112,0.4); }
.stat .num { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(2.6rem, 1.6rem + 3vw, 3.8rem); color: var(--red-gold); line-height: 1; }
.stat .lbl { color: var(--text-body); margin-top: 0.7rem; font-size: 1rem; line-height: 1.5; }

/* ---------- LOGO STRIP ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.6rem, 4vw, 3.4rem); margin-top: 0.5rem; }
.logo-strip img { height: 48px; width: auto; opacity: 0.6; filter: grayscale(1); transition: opacity 0.3s, filter 0.3s; }
.logo-strip img:hover { opacity: 1; filter: none; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 760px) { .faq-grid { grid-template-columns: 1fr 1fr; } }
.faq { background: var(--white); border: 1px solid rgba(5,76,112,0.10); border-radius: var(--radius-md,12px); padding: 1.5rem 1.6rem; }
.faq h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--navy); margin-bottom: 0.5rem; }
.faq p { color: var(--text-body); font-size: 0.97rem; line-height: 1.6; }

/* ---------- NAVY SECTION TEXT HELPERS ---------- */
.section.navy .section-head p { color: rgba(255,255,255,0.82); }
.section.navy .prose, .section.navy .prose p { color: rgba(255,255,255,0.82); }
.section.navy .check-list li { color: rgba(255,255,255,0.88); }
.section-head.center { text-align: center; margin-inline: auto; }

/* ===== Gallery block (CMS) ===== */
.gallery-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .gallery-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
}
.gallery-item { display: block; border-radius: 12px; overflow: hidden; }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 1000; cursor: zoom-out; padding: 5vw; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 8px; }
