/* ═══════════════════════════════════════════════════
   Men's Court Support — Site Stylesheet v2 (Concept C)
   ═══════════════════════════════════════════════════ */

:root {
  --navy:     #034DAF;
  --navy-dk:  #023d8a;
  --charcoal: #283B42;
  --dark:     #0D1B2A;
  --teal:     #1E6E8C;
  --steel:    #5BA4CF;
  --light:    #E8F0FB;
  --muted:    #8FAABB;
  --text:     #2D3940;
  --mid:      #4A6572;
  --white:    #FFFFFF;
  --border:   #C8D8F0;
  --bg-light: #F4F7FC;
  --crisis:   #C0392B;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;
  font-size:16px; line-height:1.75; color:var(--text); background:#fff; }
img { max-width:100%; display:block; }
a { color:var(--navy); text-decoration:none; transition:color 0.2s; }
a:hover { color:var(--navy-dk); }

/* ── UTILITY ── */
.container    { max-width:1100px; margin:0 auto; padding:0 40px; }
.container-sm { max-width:780px;  margin:0 auto; padding:0 40px; }
.text-center  { text-align:center; }

/* ══════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════ */
.nav {
  background:var(--charcoal);
  position:sticky; top:0; z-index:100;
  box-shadow:0 2px 12px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width:1100px; margin:0 auto; padding:0 40px;
  display:flex; align-items:center; justify-content:space-between;
  height:68px;
}
.nav-logo img { height:42px; width:auto; }
.nav-links { display:flex; align-items:center; gap:6px; list-style:none; }
.nav-links a {
  color:rgba(255,255,255,0.82); font-size:14px; font-weight:500;
  padding:8px 14px; border-radius:5px; transition:background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color:#fff; background:rgba(255,255,255,0.08); }
.nav-links .nav-cta a { background:var(--navy); color:#fff; padding:8px 18px; }
.nav-links .nav-cta a:hover { background:var(--navy-dk); }
.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:8px; color:#fff; }
.nav-toggle span { display:block; width:24px; height:2px; background:#fff; margin:5px 0; }

@media(max-width:900px) {
  .nav-toggle { display:block; }
  .nav-links {
    display:none; flex-direction:column; align-items:stretch; gap:0;
    position:absolute; top:68px; left:0; right:0;
    background:var(--charcoal); padding:12px 0;
    box-shadow:0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display:flex; }
  .nav-links a { padding:14px 40px; border-radius:0; }
  .nav-links .nav-cta a { margin:8px 40px; border-radius:5px; text-align:center; }
}

/* ══════════════════════════════════════════════════
   HERO — PHOTO WITH LIGHT-TO-DARK OVERLAY
   ══════════════════════════════════════════════════ */
.hero-photo {
  position:relative;
  height:580px;
  background-size:cover;
  background-position:center 20%;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.hero-photo::before {
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(
    to bottom,
    rgba(8,18,32,0.20) 0%,
    rgba(8,18,32,0.55) 55%,
    rgba(8,18,32,0.88) 100%
  );
}
.hero-photo .hero-content {
  position:relative; z-index:1;
  max-width:1100px; margin:0 auto;
  padding:0 40px 72px;
  width:100%;
}
.hero-photo h1 {
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(32px,5.5vw,54px);
  font-weight:700; color:#fff; line-height:1.1;
  margin-bottom:16px; letter-spacing:-0.01em;
}
.hero-photo h1 span { color:var(--steel); }
.hero-photo .hero-sub {
  font-size:clamp(15px,2.2vw,18px); font-weight:300;
  color:rgba(255,255,255,0.80); max-width:560px;
  line-height:1.7; margin-bottom:28px;
}
/* Inner page hero — shorter */
.hero-photo.hero-sm { height:400px; }
.hero-photo.hero-sm h1 { font-size:clamp(28px,4vw,42px); }

/* ── BUTTONS ── */
.btn { display:inline-block; padding:13px 30px; font-weight:600; font-size:15px;
  border-radius:6px; transition:background 0.2s; cursor:pointer; border:none; text-decoration:none; }
.btn-white  { background:#fff; color:var(--navy); }
.btn-white:hover { background:var(--light); color:var(--navy); }
.btn-primary { background:var(--navy); color:#fff; }
.btn-primary:hover { background:var(--navy-dk); color:#fff; }
.btn-outline { background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,0.45); }
.btn-outline:hover { border-color:#fff; background:rgba(255,255,255,0.08); color:#fff; }
.btn-navy-outline { background:transparent; color:var(--navy); border:1.5px solid var(--navy); }
.btn-navy-outline:hover { background:var(--light); }
.btn-lg { padding:15px 36px; font-size:16px; }
.btn + .btn { margin-left:10px; }

/* ══════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════ */
.section     { padding:80px 0; }
.section-sm  { padding:56px 0; }
.section-dark  { background:var(--charcoal); }
.section-light { background:var(--bg-light); }
.section-navy  { background:var(--navy); }

.section-label { font-size:10px; font-weight:700; letter-spacing:0.2em;
  text-transform:uppercase; color:var(--steel); margin-bottom:10px; display:block; }
.rule { width:44px; height:3px; background:var(--navy); border-radius:2px; margin-bottom:16px; }
.rule-white { background:#fff; }

.section h2 { font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(24px,3.5vw,34px); font-weight:700; color:var(--charcoal); margin-bottom:12px; }
.section-dark h2, .section-navy h2 { color:#fff; }
.section-intro { font-size:17px; color:var(--mid); line-height:1.75; max-width:620px; margin-bottom:44px; }
.section-dark .section-intro, .section-navy .section-intro { color:rgba(255,255,255,0.72); }

/* ══════════════════════════════════════════════════
   PHOTO CARDS (image top, text below)
   ══════════════════════════════════════════════════ */
.photo-card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px; }
.photo-card { border-radius:8px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,0.09);
  transition:transform 0.2s, box-shadow 0.2s; }
.photo-card:hover { transform:translateY(-3px); box-shadow:0 8px 32px rgba(0,0,0,0.14); }
.photo-card img { width:100%; height:220px; object-fit:cover; display:block; }
.photo-card-body { padding:24px; background:#fff; border-top:3px solid var(--navy); }
.photo-card-body .tag { font-size:9px; font-weight:700; letter-spacing:0.16em;
  text-transform:uppercase; color:var(--steel); margin-bottom:8px; display:block; }
.photo-card-body h3 { font-family:Georgia,serif; font-size:17px; font-weight:700;
  color:var(--charcoal); margin-bottom:8px; line-height:1.3; }
.photo-card-body p { font-size:14px; color:var(--mid); line-height:1.65; margin-bottom:14px; }
.photo-card-body a { font-size:13px; font-weight:700; color:var(--navy); }
.photo-card-body a::after { content:' →'; }

/* ══════════════════════════════════════════════════
   WIDE PHOTO STRIP (full-width, text overlaid on side)
   ══════════════════════════════════════════════════ */
.wide-photo { position:relative; height:380px; overflow:hidden; }
.wide-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.wide-photo-overlay {
  position:absolute; inset:0;
  background:linear-gradient(90deg,
    rgba(8,18,32,0.82) 0%,
    rgba(8,18,32,0.50) 45%,
    rgba(8,18,32,0.10) 75%,
    transparent 90%
  );
}
.wide-photo-text {
  position:absolute; top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:100%; max-width:1100px;
  padding:0 40px;
  box-sizing:border-box;
}
.wide-photo-text > * { max-width:500px; }
.wide-photo-text h2 { font-family:Georgia,serif; font-size:clamp(22px,3vw,30px);
  font-weight:700; color:#fff; margin-bottom:10px; line-height:1.25; }
.wide-photo-text p { font-size:15px; color:rgba(255,255,255,0.82); line-height:1.7; margin-bottom:18px; }

/* ══════════════════════════════════════════════════
   SPLIT SECTION (photo + text side by side)
   ══════════════════════════════════════════════════ */
.split { display:grid; grid-template-columns:1fr 1fr; }
.split-img img { width:100%; height:100%; object-fit:cover; display:block; min-height:420px; }
.split-text { display:flex; flex-direction:column; justify-content:center; padding:60px 56px; }
.split-text h2 { font-family:Georgia,serif; font-size:clamp(22px,3vw,30px);
  font-weight:700; margin-bottom:12px; line-height:1.2; }
.split-text p { font-size:15.5px; line-height:1.75; color:var(--mid); margin-bottom:12px; }
.split-text.bg-dark { background:var(--charcoal); }
.split-text.bg-dark h2 { color:#fff; }
.split-text.bg-dark p { color:rgba(255,255,255,0.72); }
.split-text.bg-light { background:var(--bg-light); }
.split-text.bg-light h2 { color:var(--navy); }

/* ══════════════════════════════════════════════════
   PLAIN CARDS (no photo)
   ══════════════════════════════════════════════════ */
.card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px; }
.card { background:#fff; border-radius:8px; border-top:3px solid var(--navy);
  padding:28px; display:flex; flex-direction:column;
  box-shadow:0 2px 16px rgba(0,0,0,0.10);
  transition:box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow:0 6px 28px rgba(0,0,0,0.15); transform:translateY(-2px); }
.card .tag { font-size:9px; font-weight:700; letter-spacing:0.16em;
  text-transform:uppercase; color:var(--steel); margin-bottom:8px; }
.card h3 { font-family:Georgia,serif; font-size:17px; font-weight:700;
  color:var(--charcoal); margin-bottom:10px; line-height:1.3; }
.card p { font-size:14px; color:var(--mid); line-height:1.65; flex:1; margin-bottom:16px; }
.card-link { font-size:13px; font-weight:700; color:var(--navy); }
.card-link::after { content:' →'; }

/* ══════════════════════════════════════════════════
   CRISIS BOX
   ══════════════════════════════════════════════════ */
.crisis-box { background:rgba(192,57,43,0.07); border:1px solid rgba(192,57,43,0.3);
  border-radius:10px; padding:32px 36px; }
.crisis-box h3 { font-size:11px; font-weight:700; letter-spacing:0.16em;
  text-transform:uppercase; color:#e87c72; margin-bottom:16px; }
.crisis-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.crisis-item .svc { font-size:12px; color:var(--mid); }
.crisis-item .num { font-size:17px; font-weight:700; color:var(--charcoal); }
.crisis-item a { font-size:17px; font-weight:700; color:var(--charcoal); }
.crisis-item a:hover { color:var(--navy); }

/* ══════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════ */
.form-group { margin-bottom:20px; }
.form-group label { display:block; font-size:13px; font-weight:600;
  color:var(--charcoal); margin-bottom:6px; }
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:12px 16px; border:1.5px solid var(--border);
  border-radius:6px; font-family:inherit; font-size:15px; color:var(--text);
  background:#fff; outline:none; transition:border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color:var(--navy); box-shadow:0 0 0 3px rgba(3,77,175,0.1); }
.form-group textarea { resize:vertical; min-height:120px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* ══════════════════════════════════════════════════
   INFO BOXES
   ══════════════════════════════════════════════════ */
.info-box { background:var(--bg-light); border-left:4px solid var(--navy);
  padding:18px 22px; border-radius:0 6px 6px 0; font-size:14px; color:var(--mid); line-height:1.65; }

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer { background:var(--charcoal); color:rgba(255,255,255,0.65); padding:64px 0 32px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; margin-bottom:48px; }
.footer-logo { margin-bottom:14px; }
.footer-logo img { height:40px; }
.footer-about { font-size:13.5px; line-height:1.7; color:rgba(255,255,255,0.45); max-width:280px; }
.footer-col h4 { font-size:10px; font-weight:700; letter-spacing:0.16em; text-transform:uppercase;
  color:rgba(255,255,255,0.35); margin-bottom:14px; }
.footer-col ul { list-style:none; }
.footer-col li { margin-bottom:8px; }
.footer-col a { font-size:14px; color:rgba(255,255,255,0.6); transition:color 0.2s; }
.footer-col a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding-top:24px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-bottom p { font-size:12px; color:rgba(255,255,255,0.3); line-height:1.6; }

/* ══════════════════════════════════════════════════
   DONATE AMOUNTS
   ══════════════════════════════════════════════════ */
.amount-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px; }
.amount-btn { padding:14px; border:1.5px solid var(--border); border-radius:6px;
  background:#fff; cursor:pointer; font-size:16px; font-weight:700;
  color:var(--charcoal); transition:all 0.2s; }
.amount-btn:hover, .amount-btn.selected { border-color:var(--navy); background:var(--light); color:var(--navy); }

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media(max-width:900px) {
  .footer-grid { grid-template-columns:1fr 1fr; }
  .split { grid-template-columns:1fr; }
  .split-img img { min-height:300px; }
  .split-text { padding:40px 32px; }
  .form-row { grid-template-columns:1fr; }
  .wide-photo { height:auto; min-height:300px; }
  .wide-photo-text { position:relative; top:auto; left:auto; transform:none;
    padding:36px 32px; max-width:100%; background:var(--charcoal); }
  .wide-photo-overlay { display:none; }
}
@media(max-width:640px) {
  .container, .container-sm { padding:0 20px; }
  .hero-photo .hero-content { padding:0 20px 52px; }
  .section { padding:52px 0; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .amount-grid { grid-template-columns:repeat(2,1fr); }
  .photo-card-grid, .card-grid { grid-template-columns:1fr; }
}
@media print {
  .nav, .footer { display:none; }
}

/* ══════════════════════════════════════════════════
   NAV DROPDOWN — "Resources" submenu
   Extends the existing .nav system above. Add this block
   to the bottom of site.css.
   ══════════════════════════════════════════════════ */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.nav-dropdown > a::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1.5px solid rgba(255,255,255,0.65);
  border-bottom: 1.5px solid rgba(255,255,255,0.65);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}
.nav-dropdown.open > a::after,
.nav-dropdown:hover > a::after { transform: rotate(225deg) translateY(2px); }

.nav-dropdown-menu {
  display: none;
  position: absolute; top: 100%; left: 0;
  margin-top: 8px;
  background: var(--charcoal);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  padding: 6px;
  min-width: 200px;
  list-style: none;
  z-index: 200;
}
/* Invisible bridge so :hover survives the gap between trigger and menu */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0; height: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu li a {
  display: block; padding: 10px 14px; border-radius: 5px;
  color: rgba(255,255,255,0.82); font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: background 0.2s, color 0.2s;
}
.nav-dropdown-menu li a:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* Mobile: dropdown becomes an inline expanding section, not an overlay */
@media (max-width: 900px) {
  .nav-dropdown > a::after { margin-left: auto; margin-right: 26px; }
  .nav-dropdown-menu {
    display: none;
    position: static; box-shadow: none; border-radius: 0;
    background: rgba(0,0,0,0.18);
    padding: 0; margin: 0;
    min-width: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu li a { padding: 12px 56px; }
}
