/* ============================================================
   Aspenvale — custom city site design system
   A single hand-crafted stylesheet shared across all pages.
   Palette: alpine pine + slate + warm gold. Mobile-first.
   ============================================================ */

:root {
  /* Color */
  --pine-900: #0d2818;
  --pine-800: #143a23;
  --pine-700: #1d5236;
  --pine-600: #2a6e49;
  --pine-500: #3a8c60;
  --gold-500: #d4a017;
  --gold-400: #e6b948;
  --slate-900: #1a2027;
  --slate-700: #3a4452;
  --slate-500: #6b7785;
  --slate-300: #c2cad3;
  --slate-100: #eef1f4;
  --cream: #faf8f3;
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(13, 40, 24, 0.08);
  --shadow-md: 0 12px 32px rgba(13, 40, 24, 0.12);
  --shadow-lg: 0 24px 64px rgba(13, 40, 24, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--slate-900);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--pine-900);
  letter-spacing: -0.02em;
}

a { color: var(--pine-600); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-500); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-500);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--pine { background: var(--pine-900); color: var(--slate-100); }
.section--pine h1, .section--pine h2, .section--pine h3 { color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 14px 0 16px; }
.section-head p { font-size: 1.12rem; color: var(--slate-700); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 14px 28px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: var(--gold-500); color: var(--pine-900); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-400); color: var(--pine-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--pine { background: var(--pine-700); color: var(--white); }
.btn--pine:hover { background: var(--pine-600); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,0.2); color: var(--white); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--pine-700); border: 1.5px solid var(--pine-600); }
.btn--outline:hover { background: var(--pine-700); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
  padding: 20px 0;
}
.site-header.scrolled {
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--white); }
.scrolled .brand { color: var(--pine-900); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  display: grid; place-items: center; color: var(--pine-900); box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-400); margin-top: -2px; }
.scrolled .brand small { color: var(--gold-500); }

.nav__links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav__links a { font-weight: 500; font-size: 0.96rem; color: rgba(255,255,255,0.92); position: relative; }
.scrolled .nav__links a { color: var(--slate-700); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold-500); transition: width 0.25s var(--ease); }
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.scrolled .nav__links a:hover, .scrolled .nav__links a.active { color: var(--pine-900); }
.nav__links a.active::after, .nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 8px; }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }
.scrolled .nav__toggle span { background: var(--pine-900); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--white); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,40,24,0.55) 0%, rgba(13,40,24,0.35) 40%, rgba(13,40,24,0.85) 100%); }
.hero__inner { padding: 140px 0 90px; max-width: 760px; }
.hero h1 { color: var(--white); font-size: clamp(2.8rem, 7vw, 5rem); margin: 22px 0; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgba(255,255,255,0.92); max-width: 560px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .eyebrow { color: var(--gold-400); }
.hero .eyebrow::before { background: var(--gold-400); }

.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll::after { content: ""; width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,0.7), transparent); animation: scrolldrop 1.8s infinite; }
@keyframes scrolldrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding: 180px 0 90px; color: var(--white); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,40,24,0.7), rgba(13,40,24,0.82)); }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 16px 0 14px; }
.page-hero p { font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 620px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.breadcrumb a { color: var(--gold-400); }

/* ---------- Stats bar ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600; color: var(--gold-500); line-height: 1; }
.stat__label { font-size: 0.92rem; color: var(--slate-500); margin-top: 8px; letter-spacing: 0.04em; }
.section--pine .stat__label { color: var(--slate-300); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16/10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 10px; }
.card__body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card__body p { color: var(--slate-700); font-size: 0.97rem; margin-bottom: 18px; }
.card__link { margin-top: auto; font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.card__link svg { width: 16px; height: 16px; transition: transform 0.25s; }
.card:hover .card__link svg { transform: translateX(4px); }

/* Icon feature card (no image) */
.feature {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 32px;
  box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  border: 1px solid var(--slate-100);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--pine-600), var(--pine-800)); color: var(--gold-400);
  margin-bottom: 22px;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature p { color: var(--slate-700); font-size: 0.97rem; }

/* ---------- Split / showcase ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 14px 0 18px; }
.split__body p { color: var(--slate-700); font-size: 1.05rem; margin-bottom: 18px; }
.checklist { list-style: none; margin: 22px 0 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--slate-700); }
.checklist li svg { flex: none; width: 22px; height: 22px; color: var(--pine-500); margin-top: 2px; }

/* ---------- List / services rows ---------- */
.svc-list { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white); }
.svc-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 22px; align-items: center; padding: 24px 30px; border-bottom: 1px solid var(--slate-100); transition: background 0.25s; }
.svc-row:last-child { border-bottom: none; }
.svc-row:hover { background: var(--cream); }
.svc-row__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--slate-100); display: grid; place-items: center; color: var(--pine-700); }
.svc-row__icon svg { width: 24px; height: 24px; }
.svc-row h3 { font-size: 1.12rem; margin-bottom: 2px; }
.svc-row p { font-size: 0.92rem; color: var(--slate-500); }
.svc-row__arrow { color: var(--slate-300); transition: color 0.25s, transform 0.25s; }
.svc-row:hover .svc-row__arrow { color: var(--gold-500); transform: translateX(4px); }

/* ---------- Event list ---------- */
.event { display: grid; grid-template-columns: 88px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--slate-100); align-items: center; }
.event:last-child { border-bottom: none; }
.event__date { text-align: center; background: var(--pine-800); color: var(--white); border-radius: var(--radius); padding: 12px 8px; }
.event__date .d { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--gold-400); }
.event__date .m { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px; }
.event h3 { font-size: 1.18rem; margin-bottom: 4px; }
.event p { font-size: 0.92rem; color: var(--slate-500); }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 72px 56px; color: var(--white); text-align: center; }
.cta-banner__bg { position: absolute; inset: 0; z-index: -2; }
.cta-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,40,24,0.9), rgba(29,82,54,0.78)); }
.cta-banner h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 16px; }
.cta-banner p { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 580px; margin: 0 auto 32px; }
.cta-banner .hero__actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.info-card { background: var(--white); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.info-card h3 { font-size: 1.2rem; margin-bottom: 16px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; color: var(--slate-700); }
.info-row svg { flex: none; width: 22px; height: 22px; color: var(--pine-600); margin-top: 2px; }
.info-row strong { display: block; color: var(--pine-900); font-weight: 600; }
.form { background: var(--white); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--pine-900); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--slate-300); border-radius: 12px;
  font-family: var(--font-body); font-size: 0.98rem; transition: border 0.2s, box-shadow 0.2s; background: var(--cream);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pine-500); box-shadow: 0 0 0 4px rgba(58,140,96,0.12); background: var(--white); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-900); color: var(--slate-300); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.footer-about p { font-size: 0.95rem; max-width: 320px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--slate-300); font-size: 0.95rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 0.88rem; color: var(--slate-500); }
.social { display: flex; gap: 12px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.07); display: grid; place-items: center; color: var(--slate-300); }
.social a:hover { background: var(--gold-500); color: var(--pine-900); }
.social svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
}
@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; background: var(--pine-900); padding: 40px; transform: translateX(100%); transition: transform 0.4s var(--ease); box-shadow: var(--shadow-lg); }
  .nav__links.open { transform: none; }
  .nav__links a { color: var(--white); font-size: 1.1rem; }
  .scrolled .nav__links a { color: var(--white); }
  .nav__links .nav__cta { width: 100%; }
  .nav__toggle { display: flex; z-index: 110; }
  .nav__toggle.open span { background: var(--white) !important; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 52px 26px; }
  .hero__scroll { display: none; }
}
