/* Summit Golf Management
   Palette: navy #12283A, gold #D6B77A, ivory #F5F3EC, green #27564C.
   Self-hosted fonts only. No third-party requests and no tracking. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  --navy: #12283A;
  --gold: #D6B77A;
  --ivory: #F5F3EC;
  --green: #27564C;
  --navy-deep: #0B1824;
  --text: #1A2A35;
  --text-muted: #4E5E68;
  --white: #FFFFFF;
  --border: rgba(18, 40, 58, 0.12);
  --shadow: 0 18px 50px rgba(18, 40, 58, 0.07);
  --radius: 14px;
  --max: 1120px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin: 0 0 1.1rem; }
ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-primary:focus-visible,
.site-nav .nav-cta:focus-visible { outline-color: var(--navy); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { transform: none; top: 1rem; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.staging-strip {
  background: #0B1824;
  color: var(--ivory);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(214, 183, 122, 0.35);
}

.site-header {
  background: var(--navy);
  color: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(214, 183, 122, 0.28);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  min-height: 84px;
  padding: 0.85rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ivory);
  text-decoration: none;
  min-width: 0;
}
.logo:hover { color: var(--gold); }
.logo-mark, .custom-logo { width: 42px; height: 42px; flex-shrink: 0; }
.custom-logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gold);
}
.logo-text span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 243, 236, 0.88);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(214, 183, 122, 0.65);
  color: var(--gold);
  min-height: 44px;
  min-width: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  color: rgba(245, 243, 236, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.55rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.site-nav a.nav-cta,
.site-nav li.nav-cta > a {
  background: var(--gold);
  color: var(--navy);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border-bottom: none;
  font-weight: 600;
}
.site-nav a.nav-cta:hover,
.site-nav li.nav-cta > a:hover,
.site-nav li.nav-cta > a[aria-current="page"],
.site-nav a.nav-cta[aria-current="page"] {
  background: #e4c992;
  color: var(--navy);
  border-bottom-color: transparent;
}

.hero {
  background:
    radial-gradient(ellipse at 80% 120%, rgba(214, 183, 122, 0.18), transparent 55%),
    linear-gradient(145deg, #0B1824 0%, #12283A 52%, #1d463d 100%);
  color: var(--ivory);
  padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.hero h1 { color: var(--ivory); max-width: 12em; margin-bottom: 1.1rem; }
.hero .lead,
.page-header .lead {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  max-width: 38rem;
  color: rgba(245, 243, 236, 0.9);
  margin-bottom: 0;
}
.hero .lead { margin-bottom: 1.5rem; }
.hero-eyebrow,
.eyebrow {
  display: inline-block;
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero-eyebrow,
.section-navy .eyebrow,
.page-header .hero-eyebrow { color: var(--gold); }
.hero-rule {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  margin: 0 0 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-actions--center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: inherit;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #e4c992; color: var(--navy); }
.btn-secondary {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(214, 183, 122, 0.75);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--ivory); }
.btn-green { background: var(--green); color: var(--ivory); }
.btn-green:hover { background: #1e443c; color: var(--ivory); }
.btn:disabled,
.btn-primary:disabled,
.form-card button:disabled {
  background: #E6E1D6;
  color: #4E5E68;
  border-color: transparent;
  cursor: not-allowed;
  opacity: 1;
}

.section { padding: clamp(4.25rem, 8vw, 7rem) 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--ivory); }
.section-navy h2,
.section-navy h3 { color: var(--ivory); }
.section-navy p { color: rgba(245, 243, 236, 0.9); }
.section-intro { max-width: 40rem; margin-bottom: 2.75rem; }
.section-intro p:last-child { margin-bottom: 0; }

.grid-3, .grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.85rem;
  box-shadow: var(--shadow);
}
.card--wide { grid-column: 1 / -1; }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(214, 183, 122, 0.28), rgba(39, 86, 76, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  color: var(--green);
  font-size: 1.15rem;
}
.card h2, .card h3 { margin-bottom: 0.55rem; }
.card p:last-child { margin-bottom: 0; }
.section-navy .card,
.section-navy .card h2,
.section-navy .card h3 { color: var(--navy); }

.media-placeholder {
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(18, 40, 58, 0.94), rgba(39, 86, 76, 0.88)),
    repeating-linear-gradient(135deg, transparent, transparent 14px, rgba(214, 183, 122, 0.06) 14px, rgba(214, 183, 122, 0.06) 15px);
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  padding: 1.5rem;
}
.media-placeholder.tall { min-height: 380px; }
.media-placeholder--quiet { color: transparent; }
.media-placeholder.portrait { min-height: 460px; aspect-ratio: 3 / 4; }
.profile-portrait {
  margin: 0;
  width: min(100%, 420px);
  background: transparent;
}
.profile-portrait img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}
.profile-photo-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #12283a;
  aspect-ratio: 16 / 9;
  min-height: 0;
}
.profile-photo-frame .profile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  min-height: 0;
}
.newtab-cue {
  display: inline-block;
  margin-left: 0.28em;
  font-size: 0.72em;
  line-height: 1;
  text-decoration: none;
  opacity: 0.8;
}

.athlete-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.athlete-card > *,
.profile-layout > * { min-width: 0; }
.athlete-card .profile-photo-frame,
.profile-layout .profile-photo-frame {
  width: 100%;
  max-width: 100%;
}
.athlete-card .media-placeholder { border-radius: 0; min-height: 100%; height: 100%; }
.athlete-card-body { padding: 2.25rem 2.25rem 2.25rem 2rem; }
.stack { display: grid; gap: 1.5rem; }
.tag {
  display: inline-block;
  background: rgba(39, 86, 76, 0.1);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.page-header {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(214, 183, 122, 0.14), transparent 46%),
    var(--navy);
  color: var(--ivory);
  padding: clamp(3.2rem, 7vw, 5.2rem) 0;
}
.page-header h1 { color: var(--ivory); max-width: 18em; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; color: rgba(245, 243, 236, 0.78); }
.breadcrumb li:not(:last-child)::after { content: "/"; color: rgba(214, 183, 122, 0.8); }
.breadcrumb a { color: var(--ivory); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

.category-pills { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0 1.6rem; }
.pill {
  background: rgba(18, 40, 58, 0.04);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
  max-width: 42rem;
  margin-inline: auto;
}
.form-card fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.checkbox-group label { font-weight: 400; margin: 0; }
.form-group .hint { font-weight: 400; color: var(--text-muted); font-size: 0.88rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(18, 40, 58, 0.22);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: var(--ivory);
  color: var(--text);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled { opacity: 0.85; cursor: not-allowed; }
.has-error input,
.has-error select,
.has-error textarea { border-color: #8C3A2F; }
.field-error { color: #8C3A2F; font-size: 0.9rem; font-weight: 600; margin: 0.4rem 0 0; }
.checkbox-group { display: flex; gap: 0.75rem; align-items: flex-start; }
.checkbox-group input { width: 1.15rem; height: 1.15rem; margin-top: 0.3rem; flex: 0 0 auto; }
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note { font-size: 0.92rem; color: var(--text-muted); margin: 1rem 0 0; }
.form-status {
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  margin: 0 0 1.25rem;
}
.form-status--unavailable {
  background: #F3E6D0;
  color: var(--navy);
  border: 1px solid var(--gold);
}
.form-status--bad {
  background: #F8E8E4;
  color: #3C1F1A;
  border: 1px solid #C47B6A;
}
.form-status--sent {
  background: #E5EFEA;
  color: #14342E;
  border: 1px solid var(--green);
}

.draft-banner,
.impl-note,
.approval-note {
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  margin-bottom: 1.6rem;
}
.draft-banner {
  background: #fff3cd;
  border: 1px solid #e6d08a;
  color: #3f320c;
}
.draft-banner strong { letter-spacing: 0.06em; font-size: 0.82rem; }
.impl-note,
.approval-note {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.impl-note p,
.approval-note p,
.draft-banner { margin-bottom: 0; }
.impl-note p,
.approval-note p { margin: 0; }

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 0.75rem; }
.cta-band p { max-width: 36rem; margin-left: auto; margin-right: auto; }
.cta-band .btn { margin-top: 0.4rem; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.prose { max-width: 42rem; }
.prose p, .section-intro p { font-size: 1.08rem; }
.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) 1fr;
  gap: 2.5rem;
  align-items: start;
}
.roster-empty { max-width: 40rem; }

.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 243, 236, 0.78);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}
.site-footer h3 {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(245, 243, 236, 0.86); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.45rem; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-brand strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.footer-note { font-size: 0.88rem; color: rgba(245, 243, 236, 0.7); }
.footer-bottom {
  border-top: 1px solid rgba(214, 183, 122, 0.22);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .grid-3, .grid-2, .profile-layout, .footer-grid { grid-template-columns: 1fr; }
  .athlete-card { grid-template-columns: 1fr; }
  .athlete-card-body { padding: 1.5rem; }
  .athlete-card .media-placeholder { min-height: 200px; }
  .athlete-card .profile-photo-frame { aspect-ratio: 16 / 9; min-height: 0; }
  .profile-portrait,
  .profile-portrait img { aspect-ratio: auto; height: auto; max-width: 100%; }
  .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.25rem 0 0.75rem; }
  .site-nav a { width: 100%; }
  .card--wide { grid-column: auto; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 2rem, var(--max)); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn,
  .cta-band .btn,
  .form-card .btn { width: 100%; }
  .hero h1, .page-header h1 { max-width: none; }
}

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

@media (forced-colors: active) {
  .btn, .pill, .card, .form-card, .media-placeholder { border: 1px solid CanvasText; }
}
