/* ==========================================================================
   CKH Interiors — base styles
   Palette follows CKH Interiors Brand Guidelines 2026. Montserrat is used
   for all site type; the logo mark keeps its own baked-in lettering.
   ========================================================================== */

:root {
  --graphite: #3B3B39;
  --graphite-80: rgba(59, 59, 57, 0.88);
  --eucalyptus: #8F978F;
  --taupe: #D3D2CB;
  --linen: #F9F7F2;

  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --container: 1600px;
  --gutter: clamp(14px, 2vw, 24px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--graphite-80);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: page-fade-in 1.4s ease forwards;
}

@keyframes page-fade-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body { opacity: 1; animation: none; }
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Typography */

h1, h2, h3, .display {
  font-family: var(--font-display);
  color: var(--graphite);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(26px, 3.2vw, 40px); }
.hero-copy h1 { font-size: clamp(28px, 3vw, 38px); }
.hero-copy .lede { font-size: 18px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: clamp(19px, 2.4vw, 24px); }

.italic, em { font-style: italic; }

.subheading {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--graphite);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
}

.label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 500;
  color: var(--eucalyptus);
}

.label--graphite { color: var(--graphite); }

.dot-sep {
  font-weight: 700;
  color: var(--graphite);
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--graphite-80);
  max-width: 640px;
}

.lede--wide {
  max-width: none;
}

.rule {
  width: 48px;
  height: 1px;
  background: var(--graphite);
  border: 0;
  margin: 20px 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 500;
  padding: 16px 30px;
  border: 1px solid var(--graphite);
  color: var(--graphite);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.btn:hover { background: var(--graphite); color: var(--linen); }

.btn--reversed {
  border-color: var(--linen);
  color: var(--linen);
}
.btn--reversed:hover { background: var(--linen); color: var(--graphite); }

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--linen);
  border-bottom: 1px solid var(--taupe);
}
.site-header .container { position: relative; }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img { width: 112px; height: 112px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icons a {
  display: flex;
  color: var(--graphite-80);
  transition: color 0.25s ease;
}

.header-icons a:hover { color: var(--graphite); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--graphite-80);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--graphite);
  border-bottom-color: var(--eucalyptus);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--graphite);
  margin: 6px 0;
}

/* Sections */

section { padding: clamp(60px, 9vw, 120px) 0; }

.section--taupe { background: var(--taupe); }
.section--graphite { background: var(--graphite); color: rgba(249, 247, 242, 0.8); }
.section--graphite h1, .section--graphite h2, .section--graphite h3, .section--graphite .subheading, .section--graphite .display { color: var(--linen); }
.section--eucalyptus { background: var(--eucalyptus); color: rgba(249, 247, 242, 0.9); }
.section--eucalyptus h1, .section--eucalyptus h2, .section--eucalyptus h3, .section--eucalyptus .subheading, .section--eucalyptus .display { color: var(--linen); }

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Hero */

.hero {
  padding-top: clamp(70px, 12vw, 140px);
  padding-bottom: clamp(70px, 12vw, 140px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.hero-grid--balanced { grid-template-columns: 1fr 1fr; }

.hero-copy .label { margin-bottom: 18px; display: inline-block; }

.hero--flush-top { padding-top: clamp(28px, 4.5vw, 56px); }

.hero-copy .font-logo {
  font-family: 'ivyora-display', 'Fraunces', 'Georgia', serif;
  font-weight: 500;
  font-style: normal;
}

.hero-copy .lede { text-align: justify; }

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* Placeholder imagery (diagonal stripe device, per brand pattern set) */

.ph {
  background-color: var(--taupe);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(59, 59, 57, 0.10),
    rgba(59, 59, 57, 0.10) 1px,
    transparent 1px,
    transparent 14px
  );
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 260px;
}

.ph--arch {
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  overflow: hidden;
}

.ph--graphite {
  background-color: var(--graphite);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(249, 247, 242, 0.06),
    rgba(249, 247, 242, 0.06) 1px,
    transparent 1px,
    transparent 14px
  );
}

.ph-caption {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-80);
  padding: 14px 18px;
  background: rgba(249, 247, 242, 0.6);
  width: 100%;
}

.ph-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  color: var(--graphite-80);
  opacity: 0.35;
}

/* Media frame — fixed-ratio image box, matches .card-image sizing pattern */

.media-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--portrait { aspect-ratio: 3 / 4; }


.hero-single-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-single-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Grids */

.grid {
  display: grid;
  gap: 40px;
}

.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card h3 { margin-bottom: 6px; }

.card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-image.ph { min-height: 0; }

.service-index {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--eucalyptus);
  font-size: 15px;
  display: block;
  margin-bottom: 10px;
}

/* Project cards */

.project-card { display: block; }
.project-card .ph { min-height: 320px; }
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
}
.project-meta .label { color: var(--graphite-80); }

/* Embedded PDF viewer (rendered as page images, scrollable) */

.pdf-embed {
  border: 1px solid var(--taupe);
  background: var(--linen);
}
.pdf-pages {
  max-height: 70vh;
  overflow-y: auto;
}
.pdf-pages img {
  width: 100%;
  display: block;
}
.pdf-pages img + img {
  border-top: 1px solid var(--taupe);
}

/* Projects carousel */

.carousel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.carousel-viewport {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.carousel-caption {
  text-align: center;
  margin-top: 20px;
}
.carousel-caption p {
  margin-top: 8px;
  color: var(--graphite-80);
}
.carousel-arrow {
  position: absolute;
  top: calc(37.5% - 20px);
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--taupe);
  background: var(--linen);
  color: var(--graphite);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.carousel-arrow:hover { background: var(--graphite); color: var(--linen); }
.carousel-arrow--prev { left: -20px; }
.carousel-arrow--next { right: -20px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--taupe);
  cursor: pointer;
}
.carousel-dot.is-active { background: var(--eucalyptus); }

.carousel--quote { max-width: 900px; }
.carousel--quote .carousel-arrow { top: 50%; }
.carousel--quote .carousel-dot { background: rgba(249, 247, 242, 0.4); }
.carousel--quote .carousel-dot.is-active { background: var(--linen); }

@media (max-width: 700px) {
  .carousel-arrow { display: none; }
}

/* Quote */

.quote-block {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.quote-block .display {
  font-size: clamp(20px, 2.2vw, 26px);
  font-style: italic;
  font-weight: 400;
}

/* Process list */

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.process li { border-top: 1px solid var(--graphite); padding-top: 18px; }
.process .num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--eucalyptus);
  font-size: 22px;
}

/* Values pillars (about page) */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--graphite);
}
.pillar {
  background: var(--linen);
  padding: 32px 28px;
}
.pillar h3 { font-size: 20px; margin-bottom: 10px; }
.pillar p { font-size: 13.5px; }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-detail { margin-bottom: 26px; }
.contact-detail .label { display: block; margin-bottom: 6px; }
.contact-detail a, .contact-detail span { font-family: var(--font-display); font-size: 20px; color: var(--graphite); }

form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--graphite);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--graphite);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--eucalyptus);
  padding: 10px 2px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--graphite);
}

/* Footer */

.site-footer {
  background: var(--graphite);
  color: rgba(249, 247, 242, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-grid h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  color: var(--linen);
  margin: 0 0 18px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:hover { color: var(--linen); }

.footer-bottom {
  border-top: 1px solid rgba(249, 247, 242, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */

@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--linen);
    border-bottom: 1px solid var(--taupe);
    padding: 12px var(--gutter) 28px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 20px; }
  .nav-toggle { display: block; }
  .hero-grid, .hero-grid--balanced, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .hero-copy .lede { text-align: left; }
  .pdf-pages { max-height: 60vh; }
}

@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .brand img { width: 64px; height: 64px; }
}
