
:root{
  --bg:#ffffff;
  --surface:#f7fafc;
  --panel:#ffffff;
  --muted:#5b6b80;
  --text:#0f172a;
  --brand:#1d4ed8; /* navy/blue */
  --brand-2:#3b82f6;
  --accent:#b91c1c; /* subtle red accent */
  --ring:#1d4ed8;
  --ok:#16a34a;
  --warn:#b45309;
  --border:#e5e7eb;
  --shadow:0 6px 24px rgba(2, 6, 23, .06);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
  color:var(--text);
  background: var(--bg);
}

img{max-width:100%;height:auto;display:block}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(1100px, 92%);margin-inline:auto}

.site-header{
  position:sticky;top:0;z-index:10;
  background:rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.9rem 0;}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:800;color:var(--text);text-decoration:none}
.brand-mark{font-size:1.3rem}
.brand-text{letter-spacing:.2px}
.nav{display:flex;gap:1rem;align-items:center}
.nav a{padding:.45rem .6rem;border-radius:.6rem;color:var(--text)}
.nav a:hover{background:#eef2ff}
.nav .btn{border:1px solid var(--border);padding:.5rem .85rem;border-radius:.7rem;background:#fff;box-shadow: var(--shadow)}
.nav .btn-primary{border-color:#1d4ed8;background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;box-shadow: var(--shadow)}
.nav-toggle{display:none;background:none;border:none;color:var(--text);font-size:1.4rem}

@media (max-width: 840px){
  .nav-toggle{display:block}
  .nav{position:absolute;inset:58px 0 auto 0;display:grid;grid-template-columns:1fr;gap:.4rem;padding:1rem .8rem;background:#fff;border-bottom:1px solid var(--border);transform-origin:top;transform:scaleY(0);transition:.2s}
  .nav.open{transform:scaleY(1)}
}

.hero{
  padding: clamp(2rem, 4vw + 1rem, 5rem) 0 3rem;
  background:
    radial-gradient(800px 360px at 120% -10%, rgba(29,78,216,.10), transparent 60%),
    radial-gradient(600px 300px at -10% 0%, rgba(185,28,28,.08), transparent 60%);
  border-bottom:1px solid var(--border);
}
.hero .eyebrow{color:#334155;text-transform:uppercase;letter-spacing:.12em;font-size:.85rem}
.hero h1{margin:.3rem 0 0;font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem);line-height:1.1;color:#0b1220}
.hero p{max-width:65ch;color:#334155}
.hero .ctas{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1rem}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.75rem 1.05rem;border-radius:.8rem;border:1px solid var(--border);
  background:#fff;color:var(--text);font-weight:700;letter-spacing:.2px;text-decoration:none;
  box-shadow: var(--shadow)
}
.btn:hover{filter:brightness(1.02)}
.btn-primary{background:linear-gradient(135deg,var(--brand),var(--brand-2));border-color:#1d4ed8;color:#fff}
.btn-accent{background:linear-gradient(135deg,#e11d48,#fb7185);border-color:#e11d48;color:#fff}

.badge{display:inline-block;padding:.16rem .5rem;border-radius:999px;background:#eef2ff;border:1px solid #dbeafe;color:#1e3a8a;font-size:.8rem}

/* Section spacing matches other pages */
.section {
  padding: 4rem 0;
  background: #ffffff;
}
.section h2{font-size: clamp(1.4rem, 1.3vw + 1rem, 2rem);margin:0 0 .3rem;color:#0b1220}
.section p{color:#334155}

.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:1.2rem}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
@media (max-width: 900px){ .grid-3{grid-template-columns:1fr} .grid-2{grid-template-columns:1fr} .grid-4{grid-template-columns:repeat(2,1fr)}}

.card {
  background: #ffffff;
  border-radius: 1rem;                    /* rounded-xl */
  padding: 2rem;                          /* p-8 */
  border: 1px solid #e5e7eb;              /* border-gray-200 */
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.card h3{margin:.2rem 0 .3rem;color:#0b1220}
.card p{color:#334155}

.membership{display:grid;gap:1rem}
.tier{padding:1rem;border-radius:1rem;border:1px solid var(--border);background:#fff;box-shadow: var(--shadow)}
.tier h3{margin:.2rem 0;color:#0b1220}
.tier .price{font-size:1.15rem;font-weight:800;margin:.2rem 0 .6rem;color:#0b1220}
.tier ul{margin:.4rem 0 0 1rem;color:#334155}
.tier li{margin:.25rem 0}
.tier .cta{margin-top:.8rem}

.kicker{font-weight:700;color:#334155;margin-top:.4rem}
.notice{color:#475569;font-size:.95rem}
.small{font-size:.95rem;color:#475569}

.site-footer{
  padding:2rem 0;
  background:#f8fafc;
  border-top:1px solid var(--border);
  margin-top:2rem
}
.site-footer h4{margin:.2rem 0 .4rem;color:#0b1220}
.site-footer .legal{border-top:1px solid var(--border);margin-top:1.2rem;padding-top:1rem;color:#64748b}


/* --- Light Photo Gallery --- */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:1rem;
}
.gallery-grid figure{
  margin:0; padding:0;
  background:#fff;
  border:1px solid var(--border);
  border-radius:1rem;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.gallery-grid img{
  width:100%; height:auto; display:block;
  aspect-ratio: 3 / 2; object-fit: cover;
}
.gallery-grid figcaption{
  padding:.7rem .9rem;
  font-weight:600;
  color:#0b1220;
  border-top:1px solid var(--border);
  background:#ffffff;
}
@media (max-width: 900px){
  .gallery-grid{grid-template-columns: 1fr 1fr}
}
@media (max-width: 580px){
  .gallery-grid{grid-template-columns: 1fr}
}
/* --- Form layout --- */
.form-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:1rem 1.2rem;
}
.form-grid .full{grid-column:1 / -1;}
@media (max-width: 800px){
  .form-grid{grid-template-columns:1fr;}
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:.25rem;
}
.form-group label{
  font-weight:600;
  color:#0f172a;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #e5e7eb;              /* Tailwind gray-200 */
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;                /* close to px-3 py-2 */
  font-size: 0.875rem;                    /* text-sm */
  line-height: 1.4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e40af;                  /* veteran-navy */
  box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.2);
}
.form-group textarea{resize:vertical;min-height:3.2rem;}

.inline-options{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem 1.2rem;
  font-weight:500;
}
.inline-options input{margin-right:.25rem;}
.inline-options-wrap label{white-space:nowrap;}

.form-divider{
  grid-column:1 / -1;
  border:none;
  border-top:1px solid var(--border);
  margin:1rem 0;
}

/* stepper */
.step-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.step-indicator span {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
}

.step-indicator span.active {
  border-color: #1e40af;                  /* veteran-navy */
  background: #e0ebff;
  color: #1e3a8a;
  font-weight: 600;
}

/* wizard steps */
.form-step{display:none;}
.form-step.active{display:block;}

.form-nav{
  display:flex;
  justify-content:space-between;
  gap:.75rem;
  margin-top:1.5rem;
}
#formStatus{
  margin-top:1rem;
}
/* --- Admin / table styles --- */
.admin-controls{
  margin:1rem 0 1.5rem;
}
.admin-controls-row{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
}
.admin-controls-row .form-group{
  min-width:180px;
}
@media (max-width: 800px){
  .admin-controls-row{
    flex-direction:column;
    align-items:flex-start;
  }
}

.admin-table-wrapper{
  overflow-x:auto;
}

.app-table{
  width:100%;
  border-collapse:collapse;
  font-size:.9rem;
}
.app-table th,
.app-table td{
  padding:.55rem .6rem;
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top;
}
.app-table th{
  font-weight:700;
  color:#0b1220;
  background:#f9fafb;
}
.app-table tr:nth-child(even) td{
  background:#fcfdff;
}

.status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.15rem .55rem;
  border-radius:999px;
  font-size:.75rem;
  font-weight:600;
  border:1px solid var(--border);
  background:#e5e7eb;
  color:#374151;
}
.status-New{
  background:#e0f2fe;
  border-color:#bfdbfe;
  color:#1d4ed8;
}
.status-In-Review{
  background:#fef9c3;
  border-color:#facc15;
  color:#92400e;
}
.status-Accepted{
  background:#dcfce7;
  border-color:#86efac;
  color:#166534;
}
.status-Waitlist{
  background:#f3e8ff;
  border-color:#ddd6fe;
  color:#5b21b6;
}
.status-Declined{
  background:#fee2e2;
  border-color:#fecaca;
  color:#b91c1c;
}

.app-actions{
  white-space:nowrap;
}
.btn-small{
  padding:.35rem .6rem;
  font-size:.8rem;
  box-shadow:none;
}
.status-select{
  margin-top:.3rem;
  font-size:.8rem;
  padding:.25rem .45rem;
  border-radius:.5rem;
  border:1px solid var(--border);
}

/* detail panel */
.detail-section{
  margin:1.2rem 0;
}
.detail-section h3{
  margin:0 0 .4rem;
}
.detail-table{
  width:100%;
  border-collapse:collapse;
  font-size:.9rem;
}
.detail-table th{
  width:35%;
  text-align:left;
  padding:.25rem .4rem;
  color:#4b5563;
}
.detail-table td{
  padding:.25rem .4rem;
  color:#111827;
}
.detail-table tr:nth-child(odd) td{
  background:#f9fafb;
}