/* Aspen North — shared styles */

:root {
  /* Matched to Aspen North's actual logo, hat, and business card assets */
  --black: #191816;
  --panel: #2b2a28;
  --panel-2: #363431;
  --line: #46443f;
  --metal: #8d8d89;
  --metal-light: #b8b7b1;
  --metal-dark: #5c5b57;
  --green: #97ac81;
  --green-bright: #b0c69a;
  --green-dim: #576f40;
  --white: #f5f4f0;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "bc-civitas", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 11, 10, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "bc-civitas", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand .mark {
  width: 30px;
  height: 22px;
  flex: none;
  stroke: var(--metal-light);
  fill: none;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.brand .word .c-green { color: var(--green); }
.brand .word .c-metal { color: var(--metal-light); }

nav.links {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.links a {
  color: var(--metal-light);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

nav.links a:hover,
nav.links a.active { color: var(--green-bright); }

nav.links a.ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--metal-light);
}

nav.links a.ig:hover { color: var(--green-bright); }

nav.links a.ig svg { width: 17px; height: 17px; fill: currentColor; }

@media (max-width: 620px) {
  nav.links span.label { display: none; }
}

/* Hero */
.hero {
  padding: 120px 0;
  text-align: center;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.hero p {
  color: var(--metal);
  max-width: 46ch;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Gallery */
.gallery {
  padding: 20px 0 80px;
}

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

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-loading {
  color: var(--metal-dark);
  font-size: 0.95rem;
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: saturate(0.92) contrast(1.03);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,11,10,0) 55%, rgba(10,11,10,0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after { opacity: 1; }

.gallery-item .cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  letter-spacing: 0.01em;
}

.gallery-item:hover .cap {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 6, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  color: var(--metal-light);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lightbox .lb-close:hover,
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover {
  background: var(--green-dim);
  color: var(--white);
}

.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

@media (max-width: 620px) {
  .lightbox .lb-prev, .lightbox .lb-next { width: 38px; height: 38px; font-size: 1.1rem; }
}

/* Contact page */
.contact-page {
  padding: 80px 0 100px;
}

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
}

.contact-card .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-card h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.2rem);
  margin: 0 0 14px;
}

.contact-card p.lead {
  color: var(--metal);
  margin: 0 0 32px;
  font-size: 1.02rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-row:hover {
  border-color: var(--green-dim);
  background: #1f231f;
}

.contact-row svg {
  width: 18px;
  height: 18px;
  fill: var(--green-bright);
  flex: none;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--green);
  color: var(--black);
  transition: background 0.15s ease, transform 0.12s ease;
}

.btn:hover {
  background: var(--green-bright);
  transform: translateY(-1px);
}

.contact-form-card {
  max-width: 560px;
  margin: 28px auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 44px 40px;
  text-align: center;
}

.contact-form-card .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-form-card h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.6rem);
  margin: 0 0 10px;
}

.contact-form-card p.lead {
  color: var(--metal);
  margin: 0 0 30px;
  font-size: 0.98rem;
}

.contact-form-card form {
  text-align: left;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--metal-light);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-dim);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: default;
}

.form-status {
  margin: 16px 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
}

.form-status.success { color: var(--green-bright); }
.form-status.error { color: #e0a1a1; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

footer .copy {
  color: var(--metal-dark);
  font-size: 0.85rem;
}

footer .foot-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

footer .foot-links a {
  color: var(--metal);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

footer .foot-links a:hover { color: var(--green-bright); }

footer .foot-links svg { width: 15px; height: 15px; fill: currentColor; }
