/* ============================================
   ALPINE POWDER ROOMS — Design System
   Refined Farmhouse (matched to brand brochure)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Alex+Brush&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --sage: #8A9887;
  --sage-deep: #6B7A68;
  --charcoal: #2B2B28;
  --cream: #F3F1EA;
  --cream-warm: #EDE9DE;
  --black-trim: #1C1B18;
  --gold-accent: #B89A6B;
  --ink: #2B2B28;

  /* legacy aliases so existing markup keeps working */
  --pine: #3F4A3D;
  --pine-light: #566153;
  --birch: var(--cream-warm);
  --gold: var(--gold-accent);
  --gold-light: #CBB68C;
  --timber: #6B7A68;

  --font-display: 'Cormorant Garamond', serif;
  --font-script: 'Alex Brush', cursive;
  --font-body: 'Inter', sans-serif;

  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--sage-deep);
  line-height: 1.3;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--sage-deep);
}

.italic { font-style: italic; color: var(--sage-deep); }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 241, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 43, 40, 0.1);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--charcoal);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}
.logo img.logo-mark {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--charcoal);
  opacity: 0.75;
  position: relative;
  padding: 4px 0;
  transition: opacity 0.25s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  opacity: 1;
  color: var(--sage-deep);
}
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--sage-deep);
}

.nav-cta {
  background: var(--charcoal);
  color: var(--cream) !important;
  padding: 11px 24px;
  border-radius: 1px;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover { background: var(--sage-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--charcoal);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 24px 32px;
    gap: 20px;
    border-bottom: 1px solid rgba(43,43,40,0.1);
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--cream);
  color: var(--charcoal);
  padding: 90px 0 0;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 0 32px 60px;
}

.hero .eyebrow { justify-content: center; margin-bottom: 10px; }

.hero h1 {
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero .script-line {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--sage-deep);
  margin: 6px 0 20px;
}

.hero p.lede {
  font-size: 1.05rem;
  color: var(--charcoal);
  opacity: 0.75;
  max-width: 540px;
  margin: 0 auto 32px;
  font-weight: 300;
}

.hero-tags {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 36px;
}
.hero-tags span:not(:last-child)::after {
  content: '|';
  margin: 0 12px;
  color: var(--sage);
  opacity: 0.6;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 1px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}
.btn-primary:hover { background: var(--sage-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); }

.btn-dark {
  background: var(--charcoal);
  color: var(--cream);
}
.btn-dark:hover { background: var(--sage-deep); }

/* ============ SECTIONS ============ */
section { position: relative; }

.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 70px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 60px;
}
.section-head p {
  color: var(--sage-deep);
  font-size: 1.05rem;
  margin-top: 18px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-sage { background: var(--sage-deep); color: var(--cream-warm); }
.bg-sage h2, .bg-sage h3 { color: var(--cream); }
.bg-charcoal { background: var(--black-trim); color: var(--cream-warm); }
.bg-charcoal h2, .bg-charcoal h3 { color: var(--cream); }
.bg-birch { background: var(--cream-warm); }
/* legacy alias */
.bg-pine { background: var(--sage-deep); color: var(--cream-warm); }
.bg-pine h2, .bg-pine h3 { color: var(--cream); }

/* ============ SERVICES GRID (asymmetric) ============ */
.services-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.service-card {
  background: var(--black-trim);
  color: var(--cream-warm);
  padding: 40px 36px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-4px); }
.service-card.feature {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--black-trim) 0%, var(--sage-deep) 200%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
}
.service-card .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-accent);
  font-size: 1rem;
  margin-bottom: 18px;
  display: block;
}
.service-card h3 { color: var(--cream); margin-bottom: 12px; }
.service-card p { color: var(--cream-warm); font-size: 0.95rem; opacity: 0.8; }
.service-card.light {
  background: var(--cream-warm);
  border: 1px solid rgba(43,43,40,0.08);
}
.service-card.light h3, .service-card.light p { color: var(--charcoal); }
.service-card.light .num { color: var(--sage-deep); }
.service-card.light p { opacity: 0.75; }

.services-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .services-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card.feature { grid-row: span 1; min-height: 320px; }
}
@media (max-width: 600px) {
  .services-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ============ STATS STRIP ============ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(243,241,234,0.2);
  border-bottom: 1px solid rgba(243,241,234,0.2);
}
.stat {
  padding: 34px 24px;
  border-right: 1px solid rgba(243,241,234,0.2);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat .icon-circle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--gold-accent);
  font-size: 1.1rem;
}
.stat .label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 600;
}
.stat .sub {
  font-size: 0.82rem;
  color: var(--cream-warm);
  opacity: 0.75;
  margin-top: 6px;
}
@media (max-width: 800px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid rgba(243,241,234,0.2); }
}

/* ============ CARDS / FEATURE LIST ============ */
.feature-list {
  list-style: none;
  display: grid;
  gap: 18px;
}
.feature-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(43, 43, 40, 0.1);
}
.feature-list .icon {
  color: var(--sage-deep);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--cream-warm);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  cursor: pointer;
}
.gallery-item.tall { aspect-ratio: 4/6; grid-row: span 2; }
.gallery-item.no-caption { padding: 0; }
.gallery-item.diagram { background: #FFFFFF; aspect-ratio: 4/3; }
.gallery-item.diagram img { object-fit: contain; padding: 16px; background: #FFFFFF; }
.gallery-item.diagram::after { background: linear-gradient(180deg, transparent 70%, rgba(28,27,24,0.65) 100%); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28,27,24,0.7) 100%);
}
.gallery-item.no-caption::after { content: none; }
.gallery-item span {
  position: relative;
  z-index: 1;
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}
.gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 4/5; }
}

/* ============ TESTIMONIAL ============ */
.testimonial {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 24px;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

/* ============ FORM ============ */
.form-card {
  background: var(--cream);
  border: 1px solid rgba(43,43,40,0.12);
  border-radius: 3px;
  padding: 48px;
  position: relative;
}
.form-card::before {
  content: 'INQUIRY — ALPINE POWDER ROOMS';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--sage-deep);
  font-weight: 600;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-deep);
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid rgba(43,43,40,0.18);
  border-radius: 1px;
  background: #fff;
  color: var(--ink);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(107,122,104,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 30px 24px; }
}

.form-status {
  margin-top: 18px;
  font-size: 0.9rem;
  padding: 14px 16px;
  border-radius: 3px;
  display: none;
}
.form-status.success { display: block; background: rgba(107,122,104,0.15); color: var(--sage-deep); }
.form-status.error { display: block; background: rgba(180, 80, 60, 0.12); color: #a04a35; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--black-trim);
  color: var(--cream-warm);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(243,241,234,0.15);
}
.footer-brand .logo { margin-bottom: 16px; color: var(--cream); }
.footer-brand p { font-size: 0.92rem; opacity: 0.7; max-width: 280px; }
.footer-col h4 {
  color: var(--gold-accent);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; opacity: 0.8; transition: opacity 0.2s, color 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--gold-accent); }
.footer-col li a {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.footer-col .contact-icon {
  display: inline-block;
  width: 1.1em;
  flex-shrink: 0;
  color: var(--gold-accent);
  opacity: 1;
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.55;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ PAGE HERO (interior pages) ============ */
.page-hero {
  background: var(--cream-warm);
  color: var(--charcoal);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero h1 { color: var(--charcoal); text-transform: uppercase; }
.page-hero .eyebrow { justify-content: center; margin-bottom: 16px; }
.page-hero p { color: var(--charcoal); opacity: 0.7; max-width: 560px; margin: 16px auto 0; font-size: 1.02rem; font-weight: 300; }

/* ============ UTILITY ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; gap: 40px; } }

.tag {
  display: inline-block;
  background: rgba(107,122,104,0.12);
  color: var(--sage-deep);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.price-note {
  font-size: 0.85rem;
  color: var(--sage-deep);
  font-style: italic;
  margin-top: 10px;
}

.divider-gold {
  width: 50px;
  height: 1.5px;
  background: var(--gold-accent);
  margin: 22px 0;
}

.photo-frame {
  border-radius: 2px;
  overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============ ADDED: SOON BADGE ============ */
.badge-soon {
  display: inline-block;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-left: 12px;
  vertical-align: middle;
}

/* ============ ADDED: INCLUDE PILLS ============ */
.include-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.include-item {
  background: var(--cream);
  border: 1px solid rgba(43,43,40,0.1);
  border-radius: 3px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.include-item .icon {
  color: var(--sage-deep);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.include-item span.label {
  font-size: 0.92rem;
  color: var(--charcoal);
  font-weight: 500;
}
@media (max-width: 800px) {
  .include-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
  .include-grid { grid-template-columns: 1fr; }
}
