
/* =====================================
   NIGHTHAWKS — MEMBERSHIP DESIGN SYSTEM
===================================== */

:root {
  --paper: #f0e4d2;
  --paper-light: #f6eddf;
  --ink: #26332b;
  --dark-green: #1c3027;
  --muted: #756d61;
  --line: rgba(38, 51, 43, .3);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  color: var(--ink);
  background:
    linear-gradient(
      rgba(240,228,210,.4),
      rgba(240,228,210,.4)
    ),
    url("nighthawks-paper.webp") center / cover fixed,
    var(--paper);

  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}


/* =====================================
   UNIVERSAL NIGHTHAWKS HEADER
===================================== */

.brand-header {
  width: 100%;
  padding: 20px 42px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.menu-toggle,
.member-link {
  display: inline-flex;
  align-items: center;

  min-height: 44px;
  padding: 0;

  border: none;

  background: transparent;
  color: var(--ink);

  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;

  transition: opacity .25s ease;
}

.menu-toggle {
  justify-self: start;
}

.member-link {
  justify-self: end;
  text-align: right;
}

.menu-toggle:hover,
.member-link:hover {
  opacity: .6;
}

.home-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  padding: 8px;

  transition: transform .25s ease;
}

.home-link:hover {
  transform: translateY(-2px);
}

.hawk-mark {
  display: block;

  width: 100px;
  height: auto;
}


/* =====================================
   NAVIGATION DRAWER
===================================== */

.navigation-drawer {
  position: fixed;

  inset: 0 auto 0 0;

  width: min(88vw, 390px);
  max-width: none;

  height: 100%;
  max-height: none;

  margin: 0;
  padding: 35px 38px;

  border: none;
  border-right: 1px solid var(--line);

  background: var(--paper);
  color: var(--ink);

  overflow-y: auto;
}

.navigation-drawer[open] {
  display: flex;
  flex-direction: column;

  animation: drawerIn .35s ease both;
}

.navigation-drawer::backdrop {
  background: rgba(20,30,24,.48);
  backdrop-filter: blur(5px);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 65px;
}

.drawer-hawk {
  display: block;

  width: 60px;
  height: auto;
}

.menu-close {
  min-height: 44px;

  padding: 0;

  border: none;
  background: transparent;
  color: var(--ink);

  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.drawer-nav {
  display: flex;
  flex-direction: column;

  gap: 25px;
}

.drawer-nav a {
  width: fit-content;

  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.15;

  transition: opacity .25s ease;
}

.drawer-nav a:hover {
  opacity: .55;
}

.drawer-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}

.drawer-divider {
  height: 1px;

  margin: 38px 0 25px;

  background: var(--line);
}

.drawer-member {
  display: block;

  padding: 16px 20px;

  border: 1px solid var(--ink);

  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
}

.drawer-member:hover {
  background: var(--ink);
  color: var(--paper);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 60px;

  font-size: 9px;
  letter-spacing: .2em;
  line-height: 2;

  text-transform: uppercase;

  color: var(--muted);
}


/* =====================================
   TYPOGRAPHY
===================================== */

.eyebrow {
  margin: 0;

  font-size: 10px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 0;

  font-family: var(--serif);
  font-weight: 400;

  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.1;
  letter-spacing: .15em;

  text-transform: uppercase;
}

.tagline {
  margin: 12px 0 0;

  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-style: italic;
  font-weight: 400;
}

.short-line {
  display: block;

  width: 35px;
  height: 1px;

  margin: 25px auto;

  background: currentColor;
}


/* =====================================
   MEMBERSHIP OVERVIEW
===================================== */

.membership-page {
  width: min(1100px, calc(100% - 64px));

  margin: 0 auto;
  padding: 48px 0 70px;

  animation: appear .8s ease both;
}

.membership-intro {
  text-align: center;
  margin-bottom: 48px;
}

.intro-description {
  max-width: 550px;

  margin: 0 auto;

  font-size: 11px;
  letter-spacing: .09em;
  line-height: 2;
}


/* MEMBERSHIP CARDS */

.membership-tiers {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  align-items: stretch;
  gap: 18px;
}

.tier-card {
  display: flex;
  flex-direction: column;

  padding: 32px 27px;

  border: 1px solid var(--line);

  background: rgba(240,228,210,.2);
  color: var(--ink);
}

.tier-card.featured {
  background: var(--dark-green);
  border-color: var(--dark-green);

  color: var(--paper);
}

.tier-card h2 {
  margin: 0;

  text-align: center;

  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: .16em;

  text-transform: uppercase;
}

.tier-tagline {
  margin: 7px 0 0;

  text-align: center;

  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
}

.tier-card .short-line {
  width: 30px;

  margin: 23px auto;

  opacity: .6;
}

.tier-benefits {
  list-style: none;

  margin: 0 0 30px;
  padding: 0;

  display: flex;
  flex-direction: column;

  gap: 16px;
}

.tier-benefits li {
  position: relative;

  padding-left: 15px;

  font-size: 11px;
  line-height: 1.8;
}

.tier-benefits li::before {
  content: "·";

  position: absolute;
  left: 0;

  font-weight: 600;
}


/* APPLICATION BUTTONS */

.apply-button,
.primary-button {
  display: inline-flex;

  justify-content: center;
  align-items: center;

  min-height: 44px;

  padding: 14px 20px;

  border: 1px solid var(--ink);

  background: transparent;
  color: var(--ink);

  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.5;

  text-align: center;
  text-transform: uppercase;

  transition:
    background .25s ease,
    color .25s ease;
}

.apply-button {
  margin-top: auto;
}

.apply-button:hover,
.primary-button:hover {
  background: var(--ink);
  color: var(--paper);
}

.featured .apply-button {
  background: var(--paper);
  border-color: var(--paper);

  color: var(--ink);
}

.featured .apply-button:hover {
  background: transparent;
  color: var(--paper);
}


/* APPLICATION INFORMATION */

.application-note {
  display: grid;

  grid-template-columns: 1fr 1fr;

  align-items: center;
  gap: 30px;

  max-width: 850px;

  margin: 45px auto 0;
  padding: 20px 0;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.application-note h2 {
  margin: 0;

  font-size: 11px;
  font-weight: 500;

  letter-spacing: .2em;

  text-transform: uppercase;
  text-align: center;
}

.application-note p {
  margin: 0;

  padding-left: 25px;

  border-left: 1px solid var(--line);

  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
}

.preview-notice {
  max-width: 600px;

  margin: 25px auto 0;

  font-size: 10px;
  line-height: 1.8;

  text-align: center;
  color: var(--muted);
}


/* =====================================
   APPLICATION PAGE
===================================== */

.application-page {
  width: min(1150px, calc(100% - 64px));

  margin: 0 auto;
  padding: 30px 0 80px;
}

.application-intro {
  text-align: center;

  margin-bottom: 50px;
}

.application-intro h1 {
  font-size: clamp(30px, 3.8vw, 50px);
  letter-spacing: .12em;
}

.application-intro .tagline {
  font-size: clamp(21px, 2.6vw, 27px);
}

.application-layout {
  display: grid;

  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);

  align-items: start;
  gap: 40px;
}

#membershipForm {
  min-width: 0;
}


/* FORM SECTIONS */

.form-section {
  min-width: 0;

  margin: 0 0 35px;
  padding: 0;

  border: 0;
}

.form-section legend {
  width: 100%;

  margin: 0 0 20px;
  padding: 0 0 11px;

  border-bottom: 1px solid var(--line);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
  line-height: 1.5;

  text-transform: uppercase;
}

.section-description {
  margin: 0 0 18px;

  font-size: 11px;
  line-height: 1.7;
}

.field-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.full-width {
  grid-column: 1 / -1;
}

.form-section label {
  display: flex;
  flex-direction: column;

  gap: 8px;

  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.5;
}

.required {
  color: #a34c30;
}


/* INPUT FIELDS */

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;

  padding: 11px 12px;

  border: 1px solid var(--line);
  border-radius: 0;

  background: rgba(246,237,223,.22);
  color: var(--ink);

  font-size: 12px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  font-size: 11px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
}

textarea {
  resize: vertical;
}


/* MEMBERSHIP TIER SELECTOR */

.tier-options {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 10px;
}

.tier-option {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 110px;
  padding: 26px 12px 15px;

  border: 1px solid var(--line);

  text-align: center;

  cursor: pointer;

  transition:
    background .25s ease,
    color .25s ease;
}

.tier-option input {
  position: absolute;

  top: 10px;
  left: 10px;

  accent-color: var(--ink);
}

.tier-option:has(input:checked) {
  background: var(--dark-green);
  color: var(--paper);

  border-color: var(--dark-green);
}

.tier-option:has(input:checked) input {
  accent-color: var(--paper);
}

.tier-option strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .08em;

  text-transform: uppercase;
}

.tier-option em {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
}


/* PROFILE PHOTO */

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 8px;
  padding: 22px;

  border: 1px dashed var(--line);

  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.upload-icon {
  font-size: 27px;
  font-weight: 400;
}

.upload-area small {
  font-size: 9px;

  color: var(--muted);

  text-transform: none;
}

.upload-area input[type="file"] {
  max-width: 350px;

  font-size: 10px;
  letter-spacing: 0;

  border: 0;
  padding: 5px;
}

#photoName {
  overflow-wrap: anywhere;

  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}


/* APPLICATION ACKNOWLEDGEMENT */

.checkbox-field {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  margin: 25px 0;

  font-size: 11px;
  line-height: 1.8;
}

.checkbox-field input {
  width: 16px;
  height: 16px;

  flex-shrink: 0;

  accent-color: var(--ink);
}

.submit-button {
  background: var(--dark-green);
  color: var(--paper);

  border-color: var(--dark-green);

  min-width: 240px;
}

.submit-button:hover:not(:disabled) {
  background: transparent;
  color: var(--ink);
}

.form-footnote {
  margin-top: 15px;

  font-size: 10px;
  line-height: 1.7;

  color: var(--muted);
}


/* =====================================
   APPLICATION SIDEBAR
===================================== */

.application-sidebar {
  border: 1px solid var(--line);

  background: rgba(246,237,223,.18);
}

.sidebar-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 210px;

  gap: 22px;

  background:
    radial-gradient(
      ellipse at center,
      #365044,
      #182b22
    );

  color: var(--paper);
}

.sidebar-hawk svg {
  display: block;

  width: 120px;
  height: auto;
}

.sidebar-art > span {
  font-size: 9px;
  letter-spacing: .3em;

  text-transform: uppercase;
}

.sidebar-content {
  padding: 28px;
}

.sidebar-content .eyebrow {
  padding-bottom: 12px;

  border-bottom: 1px solid var(--line);
}

.sidebar-content h2 {
  margin: 15px 0 0;

  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;

  letter-spacing: .13em;

  text-transform: uppercase;
}

.sidebar-tagline {
  margin: 5px 0 20px;

  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
}

.benefit-summary {
  padding: 0;
  margin: 0;

  list-style: none;
}

.benefit-summary li {
  position: relative;

  padding: 0 0 0 22px;
  margin-bottom: 14px;

  font-size: 11px;
  line-height: 1.7;
}

.benefit-summary li::before {
  content: "✓";

  position: absolute;
  left: 0;
}

.sidebar-divider {
  height: 1px;

  background: var(--line);

  margin: 30px 0;
}

.sidebar-content h3 {
  margin: 0 0 24px;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: .22em;
  text-transform: uppercase;
}


/* REVIEW PROCESS */

.process-step {
  display: flex;
  align-items: flex-start;

  gap: 14px;
  margin-bottom: 20px;
}

.process-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 28px;
  height: 28px;

  border: 1px solid var(--line);
  border-radius: 50%;

  font-size: 10px;
}

.process-step strong {
  font-size: 12px;
  font-weight: 500;
}

.process-step p {
  margin: 6px 0 0;

  font-size: 11px;
  line-height: 1.6;
}

.application-notes {
  padding-left: 15px;
  margin: 0;
}

.application-notes li {
  margin-bottom: 12px;

  font-size: 11px;
  line-height: 1.7;
}


/* =====================================
   CONFIRMATION DIALOG
===================================== */

.confirmation-dialog {
  width: min(90vw, 480px);

  padding: 45px 30px;

  border: 1px solid var(--line);

  background: var(--paper);
  color: var(--ink);

  text-align: center;
}

.confirmation-dialog::backdrop {
  background: rgba(20,30,24,.65);

  backdrop-filter: blur(6px);
}

.confirmation-hawk svg {
  width: 70px;

  margin-bottom: 24px;
}

.confirmation-dialog h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
}

.confirmation-dialog p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.8;
}

.confirmation-dialog .primary-button {
  margin-top: 20px;
}


/* =====================================
   UNIVERSAL FOOTER
===================================== */

.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 0 20px 40px;

  gap: 12px;

  font-size: 9px;
  font-weight: 500;
  letter-spacing: .22em;

  text-align: center;
  text-transform: uppercase;
}

.brand-footer .short-line {
  width: 28px;

  margin: 0 0 10px;

  opacity: .5;
}

.footer-location {
  font-size: 9px;

  color: var(--muted);

  letter-spacing: .3em;
}


/* =====================================
   ANIMATIONS
===================================== */

@keyframes appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes drawerIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}


/* =====================================
   TABLET RESPONSIVENESS
===================================== */

@media (max-width: 900px) {

  .membership-tiers {
    gap: 12px;
  }

  .tier-card {
    padding: 25px 18px;
  }

  .tier-card h2 {
    font-size: 29px;
  }

  .application-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .application-sidebar {
    grid-row: 1;
  }

  .sidebar-art {
    display: none;
  }

  .sidebar-content {
    padding: 25px;
  }

  .application-sidebar .process-step,
  .application-sidebar .application-notes,
  .application-sidebar h3,
  .application-sidebar .sidebar-divider {
    display: none;
  }

}


/* =====================================
   MOBILE RESPONSIVENESS
===================================== */

@media (max-width: 600px) {

  body {
    background-attachment: scroll;
  }

  .brand-header {
    padding: 16px 20px;
  }

  .hawk-mark {
    width: 75px;
  }

  .menu-toggle,
  .member-link {
    font-size: 8px;
    letter-spacing: .1em;
  }

  .member-link {
    max-width: 100px;
  }

  .navigation-drawer {
    padding: 30px;
  }

  .drawer-header {
    margin-bottom: 45px;
  }

  .drawer-nav {
    gap: 22px;
  }

  .drawer-nav a {
    font-size: 29px;
  }

  .membership-page,
  .application-page {
    width: calc(100% - 36px);

    padding-top: 30px;
    padding-bottom: 50px;
  }

  h1 {
    font-size: clamp(27px, 8vw, 42px);
    letter-spacing: .12em;
  }

  .membership-intro {
    margin-bottom: 30px;
  }

  .membership-tiers {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .tier-card {
    padding: 32px 25px;
  }

  .tier-card h2 {
    font-size: 36px;
  }

  .tier-benefits {
    gap: 12px;
  }

  .application-note {
    grid-template-columns: 1fr;

    gap: 15px;

    text-align: center;
  }

  .application-note p {
    border: 0;

    padding: 0 10px;
  }

  .application-intro {
    margin-bottom: 30px;
  }

  .application-intro h1 {
    font-size: 30px;
    letter-spacing: .08em;
  }

  .application-layout {
    gap: 30px;
  }

  .field-grid {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .tier-options {
    gap: 6px;
  }

  .tier-option {
    padding: 28px 6px 12px;

    min-height: 95px;
  }

  .tier-option strong {
    font-size: clamp(15px, 4.6vw, 22px);
    letter-spacing: .03em;
  }

  .tier-option em {
    font-size: 12px;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px;
  }

  .submit-button {
    width: 100%;
    min-width: 0;
  }

  .brand-footer {
    font-size: 8px;
    letter-spacing: .15em;
  }

}


/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

}
