:root {
  --bg: #120806;
  --panel: #190b08;
  --panel-2: #1e0d09;
  --text: #e3c9aa;
  --text-soft: #d7b893;
  --line: #5b3421;
  --accent: #b78652;
  --shadow: rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 5% 2%, rgba(198, 131, 49, 0.38), transparent 9%),
    linear-gradient(180deg, #1a0b08 0%, #110604 100%);
  color: var(--text);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); }
a:hover { color: #f2dfc7; }

.site-wrap {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 8, 6, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-spacer { min-width: 140px; min-height: 1px; }
.main-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.main-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.98rem;
  color: var(--text-soft);
}

.homepage-composite {
  padding: 18px 0 34px;
}
.hero-panel {
  position: relative;
  border: 1px solid var(--line);
  background: #080403;
  overflow: hidden;
}
.hero-panel img {
  width: 100%;
}
.hero-copy {
  position: absolute;
  left: 34px;
  bottom: 24px;
}
.hero-copy h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 2vw + 1rem, 4rem);
  line-height: 1.08;
  color: #eadfcd;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

.thumb-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.thumb-card,
.feature-image,
.logo-block,
.detail-card,
.service-card,
.contact-card {
  border: 1px solid var(--line);
  background: rgba(20, 8, 6, 0.65);
  box-shadow: 0 8px 24px var(--shadow);
}
.thumb-card { padding: 8px; }

.feature-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.feature-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.left-column,
.right-column {
  gap: 22px;
}
.building-image { padding: 8px; }
.logo-block {
  padding: 0;
  max-width: 620px;
  margin-top: -8px;
}
.copy-block {
  padding: 28px 34px;
  font-size: clamp(1.2rem, 1vw + 0.7rem, 2rem);
  line-height: 1.7;
  background: rgba(20, 8, 6, 0.2);
}
.copy-block p { margin: 0; }
.summary-block {
  min-height: 100%;
}
.studio-signoff {
  margin-top: 32px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 2;
}

.detail-section {
  padding: 70px 0;
  border-top: 1px solid rgba(91, 52, 33, 0.55);
}
.alt-tone {
  background: rgba(30, 13, 9, 0.45);
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.88rem;
}
.detail-section h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 2vw + 1rem, 3.3rem);
  line-height: 1.15;
  color: #f0e3d3;
}
.detail-section p {
  margin: 0 0 16px;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: start;
}
.detail-card { padding: 10px; }
.stack-photos { display: grid; gap: 18px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.service-card {
  padding: 26px 24px;
}
.service-card h3 {
  margin: 0 0 12px;
  color: #f0e3d3;
  font-size: 1.35rem;
}
.service-card p {
  margin: 0;
  font-size: 1.05rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.contact-card {
  padding: 28px;
}
.contact-card p { margin: 0 0 10px; }
.small-note { color: var(--text-soft); font-size: 0.96rem; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--text-soft);
}
.site-footer p { margin: 0; }

@media (max-width: 980px) {
  .feature-grid,
  .detail-grid,
  .contact-grid,
  .service-grid,
  .thumb-row {
    grid-template-columns: 1fr;
  }
  .feature-column {
    gap: 20px;
  }
  .logo-block {
    margin-top: 0;
  }
  .header-inner {
    min-height: 82px;
  }
  .header-spacer { display: none; }
  .main-nav {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-wrap { width: min(100% - 20px, 1440px); }
  .hero-copy {
    left: 18px;
    bottom: 12px;
  }
  .copy-block {
    padding: 20px;
    font-size: 1.08rem;
  }
  .detail-section {
    padding: 54px 0;
  }
  .main-nav {
    gap: 14px;
  }
  .main-nav a {
    font-size: 0.86rem;
  }
}


/* Multi-page additions */
.simple-page-header {
  border-bottom: 1px solid var(--line);
  background: rgba(20, 8, 6, 0.96);
}
.simple-page-header .site-wrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.home-link {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  border: 1px solid var(--line);
  padding: 12px 18px;
  background: rgba(30, 13, 9, 0.45);
}
.home-link:hover {
  color: #f2dfc7;
  background: rgba(91, 52, 33, 0.35);
}
.page-hero {
  padding: 66px 0 42px;
}
.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 4vw + 1rem, 6rem);
  line-height: 0.95;
  color: #f0e3d3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.page-hero p {
  max-width: 900px;
  margin: 0;
  font-size: clamp(1.2rem, 1vw + 0.75rem, 2rem);
  line-height: 1.6;
}
.page-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: start;
  padding: 30px 0 80px;
}
.page-copy {
  font-size: 1.15rem;
  line-height: 1.85;
}
.page-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 2vw + 1rem, 3.2rem);
  color: #f0e3d3;
}
.page-copy h3 {
  margin: 28px 0 10px;
  color: #f0e3d3;
  font-size: 1.35rem;
}
.page-copy p { margin: 0 0 18px; }
.page-copy ul {
  margin: 0 0 22px 20px;
  padding: 0;
}
.page-copy li { margin: 0 0 10px; }
.page-image-panel {
  border: 1px solid var(--line);
  background: rgba(20, 8, 6, 0.65);
  box-shadow: 0 8px 24px var(--shadow);
  padding: 10px;
}
.page-image-stack {
  display: grid;
  gap: 20px;
}
.back-home-bottom {
  margin-top: 32px;
}
@media (max-width: 980px) {
  .page-layout { grid-template-columns: 1fr; }
  .simple-page-header .site-wrap { min-height: 76px; }
}

/* Services page revision: feature only the Kent Ski Control Room image. */
.featured-service-image img {
  width: 100%;
}

/* Header menu on all pages */
.brand-home {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.95rem;
  white-space: nowrap;
}
.brand-home:hover {
  color: #f2dfc7;
}

@media (max-width: 980px) {
  .header-inner {
    padding: 14px 0;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
  .brand-home {
    text-align: center;
  }
}

/* Page image revisions: feature selected images only and enlarge them to align with text area. */
.page-layout {
  align-items: stretch;
}
.fit-with-text {
  height: 100%;
  min-height: 100%;
}
.page-feature-panel {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
.page-feature-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}
.logo-feature-image .page-feature-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-feature-image .page-feature-panel img {
  object-fit: contain;
  min-height: 520px;
}
.studio-feature-images {
  grid-template-rows: 1fr 1fr;
}
.studio-feature-images .page-feature-panel img {
  min-height: 250px;
}

@media (max-width: 980px) {
  .page-feature-panel img,
  .logo-feature-image .page-feature-panel img {
    min-height: auto;
    height: auto;
    object-fit: contain;
  }
  .studio-feature-images {
    grid-template-rows: auto;
  }
}


/* Page image alignment refinement */
.page-grid,
.detail-grid,
.contact-grid {
  align-items: start;
}

.page-media,
.detail-card,
.contact-card.page-media,
.page-feature-image,
.featured-page-image {
  margin-top: 1.15rem;
}

.page-media img,
.detail-card img,
.featured-page-image img {
  width: 100%;
  height: auto;
}

@media (min-width: 981px) {
  .page-grid > .page-media,
  .detail-grid > .detail-card,
  .contact-grid > .page-media,
  .contact-grid > .contact-card.page-media,
  .service-page-image,
  .about-page-image,
  .studio-page-images,
  .contact-page-logo {
    margin-top: 7.25rem;
  }
}

@media (max-width: 980px) {
  .page-media,
  .detail-card,
  .contact-card.page-media,
  .service-page-image,
  .about-page-image,
  .studio-page-images,
  .contact-page-logo {
    margin-top: 1.15rem;
  }
}


/* Page title size and image alignment refinement */
body:not(.home) .page-title,
body:not(.home) h1.page-title,
.subpage-title,
.page-heading h1,
.detail-section h1 {
  font-size: clamp(3.25rem, 5vw, 6.25rem);
  line-height: 0.92;
  margin-bottom: 1rem;
}

body:not(.home) .page-tagline,
.subpage-tagline,
.page-heading .tagline {
  font-size: clamp(1.25rem, 1.35vw, 1.75rem);
  line-height: 1.55;
}

@media (min-width: 981px) {
  .page-grid > .page-media,
  .detail-grid > .detail-card,
  .contact-grid > .page-media,
  .contact-grid > .contact-card.page-media,
  .service-page-image,
  .about-page-image,
  .studio-page-images,
  .contact-page-logo {
    margin-top: 5.65rem;
  }
}

@media (max-width: 980px) {
  body:not(.home) .page-title,
  body:not(.home) h1.page-title,
  .subpage-title,
  .page-heading h1,
  .detail-section h1 {
    font-size: clamp(2.85rem, 12vw, 4.8rem);
  }

  .page-grid > .page-media,
  .detail-grid > .detail-card,
  .contact-grid > .page-media,
  .contact-grid > .contact-card.page-media,
  .service-page-image,
  .about-page-image,
  .studio-page-images,
  .contact-page-logo {
    margin-top: 0.95rem;
  }
}


/* Final subpage title and image alignment adjustment */
body.subpage h1,
body.subpage .page-title,
body.subpage h1.page-title,
body.subpage .subpage-title,
body.subpage .page-heading h1,
body.subpage .detail-section h1 {
  font-size: clamp(2.35rem, 3.3vw, 4.15rem) !important;
  line-height: 1.02 !important;
  margin-top: 0 !important;
  margin-bottom: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
}

body.subpage .page-tagline,
body.subpage .subpage-tagline,
body.subpage .page-heading .tagline,
body.subpage .tagline {
  font-size: clamp(1.18rem, 1.15vw, 1.55rem) !important;
  line-height: 1.48 !important;
  margin-bottom: 0 !important;
}

@media (min-width: 981px) {
  body.subpage .page-grid > .page-media,
  body.subpage .detail-grid > .detail-card,
  body.subpage .contact-grid > .page-media,
  body.subpage .contact-grid > .contact-card.page-media,
  body.subpage .service-page-image,
  body.subpage .about-page-image,
  body.subpage .studio-page-images,
  body.subpage .contact-page-logo {
    margin-top: 4.25rem !important;
  }
}

@media (max-width: 980px) {
  body.subpage h1,
  body.subpage .page-title,
  body.subpage h1.page-title,
  body.subpage .subpage-title,
  body.subpage .page-heading h1,
  body.subpage .detail-section h1 {
    font-size: clamp(2.2rem, 9vw, 3.5rem) !important;
  }

  body.subpage .page-grid > .page-media,
  body.subpage .detail-grid > .detail-card,
  body.subpage .contact-grid > .page-media,
  body.subpage .contact-grid > .contact-card.page-media,
  body.subpage .service-page-image,
  body.subpage .about-page-image,
  body.subpage .studio-page-images,
  body.subpage .contact-page-logo {
    margin-top: 0.7rem !important;
  }
}


/* Final subpage refinement: remove lower page title spacing and move images up */
body.subpage h1,
body.subpage .page-title,
body.subpage h1.page-title,
body.subpage .subpage-title,
body.subpage .page-heading h1,
body.subpage .detail-section h1 {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.subpage .eyebrow {
  display: none !important;
}

body.subpage .page-heading,
body.subpage .subpage-heading {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body.subpage .page-tagline,
body.subpage .subpage-tagline,
body.subpage .page-heading .tagline,
body.subpage .tagline {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-size: clamp(1.18rem, 1.15vw, 1.55rem) !important;
  line-height: 1.48 !important;
}

@media (min-width: 981px) {
  body.subpage .page-grid > .page-media,
  body.subpage .detail-grid > .detail-card,
  body.subpage .contact-grid > .page-media,
  body.subpage .contact-grid > .contact-card.page-media,
  body.subpage .service-page-image,
  body.subpage .about-page-image,
  body.subpage .studio-page-images,
  body.subpage .contact-page-logo {
    margin-top: 1.35rem !important;
  }
}

@media (max-width: 980px) {
  body.subpage .page-grid > .page-media,
  body.subpage .detail-grid > .detail-card,
  body.subpage .contact-grid > .page-media,
  body.subpage .contact-grid > .contact-card.page-media,
  body.subpage .service-page-image,
  body.subpage .about-page-image,
  body.subpage .studio-page-images,
  body.subpage .contact-page-logo {
    margin-top: 0.6rem !important;
  }
}


/* About page image box adjustment
   Stop stretching the About image area so the brown frame is even around the image. */
.about-image-balanced {
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
}

.about-image-balanced .page-feature-panel {
  height: auto !important;
  align-self: start !important;
}

.about-image-balanced .page-feature-panel img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
  display: block !important;
}


/* Home page hero tagline size adjustment */
.hero-copy h1 {
  font-size: clamp(1.0rem, 1.15vw + 0.45rem, 1.9rem) !important;
  line-height: 1.18 !important;
  letter-spacing: 0.02em !important;
}


/* Studio page image extension
   Keeps the current zoom/cropping style, but extends the two image boxes
   lower so the image stack lands roughly halfway between the Back Home button
   and the lower light-brown page boundary. */
.studio-page-layout {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
}

.studio-page-copy {
  max-width: 680px;
}

.studio-extended-images {
  height: auto !important;
  min-height: 0 !important;
  gap: 16px;
  align-self: start;
}

.studio-extended-images .page-feature-panel {
  height: auto !important;
}

.studio-extended-images .page-feature-panel img {
  width: 100%;
  height: 265px !important;
  min-height: 265px !important;
  object-fit: cover !important;
}

@media (max-width: 980px) {
  .studio-page-layout {
    grid-template-columns: 1fr;
  }

  .studio-page-copy {
    max-width: none;
  }

  .studio-extended-images .page-feature-panel img {
    height: auto !important;
    min-height: auto !important;
  }
}
