/* ============================================================
   True North Order -- Main Stylesheet
   ============================================================ */

/* --- Variables --- */
:root {
  --bg-primary:   #0a0a0a;
  --bg-secondary: #111111;
  --bg-card:      #141414;
  --gold:         #b8972e;
  --gold-hover:   #c9a44a;
  --gold-dim:     rgba(184, 151, 46, 0.18);
  --text-primary: #f0ece4;
  --text-muted:   #a89e8c;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --section-pad:  110px 24px;
  --max-width:    1100px;
  --nav-height:   72px;
  --transition:   0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p {
  color: var(--text-muted);
  max-width: 64ch;
}

/* --- Gold Rule Divider --- */
.gold-rule {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

.gold-rule--left {
  margin: 0;
}

/* --- Section Label --- */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.97);
  border-bottom-color: rgba(184, 151, 46, 0.25);
  backdrop-filter: blur(8px);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
}

.nav__logo {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.nav__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link--member {
  color: var(--gold);
  margin-left: 8px;
}

.nav__link--member:hover {
  color: var(--gold-hover);
}

.nav__link--member::after {
  background: var(--gold-hover);
}

/* Mobile Nav Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  overflow: hidden;
}

.hero__watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.hero__watermark svg {
  width: 70%;
  max-width: 600px;
  opacity: 0.035;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero__logo {
  width: 405px;
  height: auto;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero__logo--fadein {
  opacity: 0;
  animation: heroFadeIn 2.8s ease forwards;
  animation-delay: 0.4s;
}

.hero__title {
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.hero__tagline {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: none;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  animation: float 2.4s ease-in-out infinite;
}

.hero__scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__scroll-hint svg {
  width: 18px;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   About
   ============================================================ */
.about {
  background: var(--bg-secondary);
  padding: var(--section-pad);
}

.about__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about__heading {
  color: var(--text-primary);
}

.about__body p + p {
  margin-top: 16px;
}

.about__note {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  max-width: none;
}

.about__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__emblem {
  width: 100%;
  max-width: 340px;
  opacity: 0.55;
  filter: drop-shadow(0 0 40px rgba(184, 151, 46, 0.12));
}

/* ============================================================
   Values
   ============================================================ */
.values {
  background: var(--bg-primary);
  padding: var(--section-pad);
}

.values__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.values__header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.values__heading {
  color: var(--text-primary);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid rgba(184, 151, 46, 0.18);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color var(--transition), background var(--transition);
}

.value-card:hover {
  border-color: rgba(184, 151, 46, 0.45);
  background: #181818;
}

.value-card__icon {
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-primary);
}

.value-card__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: none;
}

/* ============================================================
   Our Work
   ============================================================ */
.work {
  background: var(--bg-secondary);
  padding: var(--section-pad);
}

.work__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.work__heading {
  color: var(--text-primary);
}

.work__body {
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: center;
  margin: 0 auto;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: var(--bg-primary);
  padding: var(--section-pad);
}

.contact__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact__heading {
  color: var(--text-primary);
}

.contact__desc {
  font-size: 0.95rem;
  text-align: center;
  margin: 0 auto;
}

.contact__email {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  transition: color var(--transition);
}

.contact__email:hover {
  color: var(--gold-hover);
}

.contact__note {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: none;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(184, 151, 46, 0.15);
  padding: 60px 40px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  height: 34px;
  width: auto;
  opacity: 0.7;
}

.footer__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.footer__motto {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__link {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.6;
  max-width: none;
}

/* ============================================================
   Member Modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #0f0f0f;
  border: 1px solid rgba(184, 151, 46, 0.3);
  padding: 52px 48px;
  width: 100%;
  max-width: 420px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.modal__close:hover {
  color: var(--text-primary);
}

.modal__label-tag {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 36px;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.modal__field label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal__field input {
  background: #1a1a1a;
  border: 1px solid rgba(184, 151, 46, 0.22);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.modal__field input:focus {
  border-color: var(--gold);
}

.modal__field input::placeholder {
  color: rgba(168, 158, 140, 0.4);
}

.modal__submit {
  margin-top: 10px;
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: #0a0a0a;
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}

.modal__submit:hover {
  background: var(--gold-hover);
}

.modal__error {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #c0392b;
  letter-spacing: 0.04em;
  text-align: center;
  min-height: 1.2em;
}

@keyframes shake {
  0%, 100% { transform: translateY(0) translateX(0); }
  20%       { transform: translateY(0) translateX(-6px); }
  40%       { transform: translateY(0) translateX(6px); }
  60%       { transform: translateY(0) translateX(-4px); }
  80%       { transform: translateY(0) translateX(4px); }
}

.modal.shake {
  animation: shake 0.4s ease;
}

/* ============================================================
   Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__visual {
    display: none;
  }

  .values__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px 24px;
  }

  .nav {
    padding: 0 24px;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: 28px 24px 36px;
    gap: 22px;
    border-bottom: 1px solid rgba(184, 151, 46, 0.15);
    transform: translateY(-110%);
    transition: transform var(--transition);
    z-index: 99;
  }

  .nav__links.open {
    transform: translateY(0);
  }

  .nav__toggle {
    display: flex;
  }

  .values__grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 40px 28px;
  }
}

@media (max-width: 576px) {
  .hero__logo {
    width: 260px;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
