/* ============================================
   31 Aspen Holdings
   ============================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'The Seasons';
  src: url('assets/fonts/fonnts.com-theseasons-lt.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Seasons';
  src: url('assets/fonts/fonnts.com-theseasons-reg.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'The Seasons';
  src: url('assets/fonts/fonnts.com-theseasons-it.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'The Seasons';
  src: url('assets/fonts/fonnts.com-theseasons-bd.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --charcoal: #222222;
  --cream: #f6f4f0;
  --cream-dark: #ebe7e0;
  --gold: #b8a88a;
  --gold-light: #d4c5a9;
  --forest: #2a4435;
  --forest-light: #3d5c4a;
  --forest-muted: #5a7a6a;
  --text: #2d2d2d;
  --text-mid: #555555;
  --text-light: #777777;
  --white: #ffffff;
  --pad-section: clamp(5rem, 10vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'The Seasons', 'Georgia', serif;
  font-weight: 300;
  line-height: 1.15;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.5s var(--ease);
}

.nav.scrolled {
  background: rgba(34, 34, 34, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.9rem 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: opacity 0.3s;
}

.nav-logo-horizontal {
  height: 74px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav.scrolled .nav-logo-horizontal {
  height: 64px;
}

.nav-logo:hover { opacity: 0.75; }

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 244, 240, 0.6);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: all 0.3s;
  transform-origin: center;
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(2.5px, 2.5px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(2.5px, -2.5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(30, 40, 32, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: 'The Seasons', serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.08em;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #102338 0%,
    #17314a 22%,
    #214262 46%,
    #2f5777 72%,
    #3a6686 100%
  );
}

.mountains {
  position: absolute;
  bottom: 0;
  left: -2%;
  width: 104%;
  height: 65%;
}

.mist {
  position: absolute;
  bottom: 18%;
  left: 0;
  right: 0;
  height: 15%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(246, 244, 240, 0.04) 40%,
    rgba(246, 244, 240, 0.06) 60%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  animation: heroIn 1.4s var(--ease) both;
  animation-delay: 0.2s;
}

.hero-logo {
  max-width: 280px;
  margin: 0 auto;
  opacity: 0.92;
}

.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1.8rem auto 1.2rem;
  opacity: 0.5;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(246, 244, 240, 0.4);
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-family: 'The Seasons', serif;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(246, 244, 240, 0.6);
  letter-spacing: 0.04em;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(246,244,240,0.25), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
  50% { opacity: 0.6; transform: scaleY(1); }
}

/* --- Sections --- */
.section {
  padding: var(--pad-section) 0;
}

.section-dark {
  background: var(--charcoal);
  color: var(--cream);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 4rem;
  align-items: start;
}

.section-label {
  position: sticky;
  top: 7rem;
}

.label-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-dark .label-text { color: var(--gold-light); }

.label-line {
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-top: 0.8rem;
  opacity: 0.35;
}

.section-heading {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1.8rem;
  color: var(--charcoal);
}

.section-dark .section-heading { color: var(--cream); }

.section-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.section-dark .section-intro { color: rgba(246,244,240,0.5); }

/* --- About --- */
.about-body p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-mid);
  max-width: 560px;
  margin-bottom: 1.4rem;
}

.about-body p:last-child { margin-bottom: 0; }

.stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(184, 168, 138, 0.2);
}

.stat-number {
  display: block;
  font-family: 'The Seasons', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* --- Leaf Divider --- */
.leaf-divider {
  text-align: center;
  padding: 0.5rem 0;
}

/* --- Portfolio --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.portfolio-card {
  display: block;
  background: rgba(246, 244, 240, 0.04);
  border: 1px solid rgba(246, 244, 240, 0.06);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s var(--ease);
  cursor: default;
}

.portfolio-card:hover {
  background: rgba(246, 244, 240, 0.08);
  border-color: rgba(184, 168, 138, 0.15);
  transform: translateY(-2px);
}

.card-icon {
  width: 100%;
  max-width: 200px;
  height: 52px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.card-icon img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.card-icon img.schedule-arts-logo {
  filter: none;
  opacity: 1;
  height: 74px;
}

.card-icon.schedule-arts-icon {
  max-width: 240px;
  height: 86px;
  align-items: flex-start;
  overflow: visible;
  margin-bottom: 0.4rem;
}

.card-icon.schedule-arts-icon img.schedule-arts-logo {
  transform: translateY(-8px);
}

.card-name {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.card-desc {
  font-size: 0.82rem;
  color: rgba(246, 244, 240, 0.4);
  letter-spacing: 0.02em;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 540px;
}

.hp-field {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 168, 138, 0.12);
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--forest);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.btn-submit:hover {
  background: var(--forest-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(42, 68, 53, 0.25);
}

/* --- Footer --- */
.footer {
  position: relative;
  background: var(--charcoal);
}

.footer-ridge {
  margin-top: -1px;
}

.footer-ridge svg {
  display: block;
  width: 100%;
  height: 50px;
}

.footer-content {
  background: #1a1f1c;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: 'The Seasons', serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(246, 244, 240, 0.4);
}

.footer-loc {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 244, 240, 0.25);
}

.footer-copy {
  font-size: 0.7rem;
  color: rgba(246, 244, 240, 0.2);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.portfolio-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.portfolio-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.portfolio-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.portfolio-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.portfolio-card.reveal:nth-child(6) { transition-delay: 0.40s; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .nav-logo-horizontal { height: 44px; }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-label { position: static; }
  .label-line { display: none; }

  .hero-logo { max-width: 220px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-logo { max-width: 180px; }
  .nav-logo-horizontal { height: 36px; }
  .stats { flex-direction: column; gap: 1.5rem; }
}

/* --- Selection --- */
::selection {
  background: rgba(184, 168, 138, 0.25);
  color: var(--charcoal);
}
