/*
Theme Name: Heart Your Home
Theme URI: https://heartyourhome.org/
Author: Heart Your Home
Description: Custom graphite WordPress theme for Heart Your Home, with a fixed desktop navigation shell.
Version: 0.9.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: heart-your-home
*/

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&display=swap');

:root {
  color-scheme: dark;
  --surface: #1d2023;
  --surface-main: #1d2023;
  --surface-nav: #1d2023;
  --text: #f4f3f1;
  --text-muted: #abb2b6;
  --accent: #cb171d;
  --header-height: 118px;
  --nav-width: 258px;
  --ease: 150ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-main);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0;
}

/* Brand header: one continuous panel above both columns. */
.global-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 12px clamp(24px, 3vw, 56px);
  background: var(--surface);
  position: relative;
  z-index: 2;
  gap: clamp(24px, 3.3vw, 68px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  min-width: 0;
}
/* Cropping is done in CSS only: the supplied original brand artwork is unchanged. */
.brand-symbol, .brand-wordmark {
  position: relative;
  overflow: hidden;
  display: block;
  flex: none;
}
.brand-symbol { width: 96px; height: 96px; }
.brand-symbol img {
  position: absolute; max-width: none; width: 150px; height: 150px;
  left: -26px; top: -15px; mix-blend-mode: screen;
}
.brand-wordmark { width: 441px; height: 89px; }
.brand-wordmark img {
  position: absolute; max-width: none; width: 680px; height: 680px;
  left: -119px; top: -517px; mix-blend-mode: screen;
}

/* Application shell: fixed side navigation and independently scrolling content. */
.site-shell {
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
  height: calc(100dvh - var(--header-height));
  min-height: 0;
}
.side-nav {
  position: relative;
  background: var(--surface);
  padding: 26px 22px 120px;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.side-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* A very subtle recessed, machined groove separating two graphite planes. */
.side-nav::after {
  content: "";
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: calc(var(--nav-width) - 3px);
  width: 3px;
  pointer-events: none;
  background: linear-gradient(to right, #0b0d0f 0, #0b0d0f 48%, rgba(255,255,255,.09) 100%);
  box-shadow: -2px 0 3px rgba(0,0,0,.29), 2px 0 4px rgba(0,0,0,.22);
}
.nav-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 15px; min-width: 0; }
.nav-list .group-start { margin-top: 20px; }
.nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 55px;
  padding: 11px 12px;
  gap: 9px;
  min-width: 0;
  border-radius: 14px;
  background: linear-gradient(150deg, #30363b, #23282c);
  color: #edf0f1;
  border: 1px solid rgba(255,255,255,.055);
  box-shadow: 5px 6px 11px rgba(0,0,0,.55), -3px -3px 8px rgba(255,255,255,.055);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .045em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: left;
  transition: transform var(--ease), box-shadow var(--ease);
}
.nav-label { display: inline-block; min-width: 0; white-space: nowrap; transition: transform var(--ease); }
.nav-icon { flex: 0 0 18px; width: 18px; height: 18px; font-size: 18px; line-height: 1; text-align: center; opacity: .85; }
.nav-icon--letter { display: inline-flex; justify-content: center; align-items: center; font-family: Arial, sans-serif; font-weight: 800; font-size: 19px; }
.nav-icon--facebook { font-family: Arial, sans-serif; font-size: 16px; font-weight: 700; }
.nav-icon--symbol { font-size: 15px; font-weight: 600; }
.nav-icon--info { font-family: Georgia, serif; font-style: italic; font-size: 20px; font-weight: 700; }
.nav-icon--svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-icon--filled { fill: currentColor; stroke: none; }
.nav-icon--yelp { fill: currentColor; stroke: none; }
.nav-icon-source {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
  filter: grayscale(1) contrast(500%) invert(1);
  mix-blend-mode: screen;
}
.nav-icon--home { stroke-width: 2.5; }
.nav-link:hover:not([aria-current="page"]) {
  transform: translateY(3px);
  box-shadow: 0 1px 2px rgba(0,0,0,.22);
}
.nav-link:active:not([aria-current="page"]),
.nav-link[aria-current="page"] {
  transform: translateY(3px);
  box-shadow: inset 4px 5px 9px rgba(0,0,0,.68), inset -2px -2px 5px rgba(255,255,255,.055);
}
.nav-link:active .nav-label,
.nav-link[aria-current="page"] .nav-label {
  transform: translateY(2px);
}
a:focus-visible, button:focus-visible {
  outline: 2px solid #f4777a;
  outline-offset: 4px;
}

.right-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.division-heading {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  background: transparent;
  transform: translateY(13px);
}
.division-heading span {
  font-family: "Caveat", "Segoe Print", cursive;
  font-size: clamp(34px, 3.1vw, 51px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fff;
}
.right-content {
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 35px clamp(26px, 5.2vw, 92px) 65px;
  background: var(--surface);
}
.content-width { width: min(100%, 1160px); margin-inline: auto; }
.eyebrow { color: #ca777a; font-weight: 650; font-size: 12px; letter-spacing: .20em; text-transform: uppercase; }
.intro-row {
  display: flex;
  gap: 36px;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 0 29px;
}
.intro-copy { max-width: 700px; }
.intro-copy h1 { font-size: clamp(33px, 3.7vw, 61px); line-height: 1.08; letter-spacing: -.035em; font-weight: 620; margin: 13px 0 18px; }
.intro-copy p { color: var(--text-muted); line-height: 1.65; font-size: clamp(15px, 1.14vw, 18px); margin: 0; max-width: 57ch; }
.hero-image {
  position: relative;
  margin: 0;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  min-height: 360px;
  height: clamp(340px, 43vh, 560px);
  overflow: hidden;
  background: #090d10;
  box-shadow: 0 15px 40px rgba(0,0,0,.32);
}
.hero-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 56%; }
.hero-image::after { content: ""; position: absolute; inset: 55% 0 0; pointer-events: none; background: linear-gradient(transparent,rgba(0,0,0,.7)); }
.hero-image figcaption {
  position: absolute;
  z-index: 1;
  bottom: 23px;
  left: 27px;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,255,255,.95);
}
.feature-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 12px 25px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: #2b3135;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--ease), box-shadow var(--ease);
}
.action-button:hover { background: #3a4146; }
.action-button:active { box-shadow: inset 3px 3px 8px rgba(0,0,0,.55); }
.action-button.primary { background: #b51c22; border-color: #b51c22; }
.action-button.primary:hover { background: #d0262b; }
.section-kicker { margin: 58px 0 19px; color: #c9ced0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-tile { margin: 0; border: 1px solid #373d40; border-radius: 12px; background: #101315; overflow: hidden; }
.project-tile img { display: block; width: 100%; height: 180px; object-fit: cover; }
.project-tile figcaption { padding: 13px 15px; color: #bdc3c6; font-size: 13px; }
.basic-page h1 { margin: 0 0 16px; font-weight: 600; font-size: clamp(33px,4vw,56px); }
.basic-page .prose { max-width: 860px; color: #cdd0d2; line-height: 1.7; }
.site-footer { margin-top: 58px; color: #737e83; font-size: 12px; letter-spacing: .05em; }
.home .site-footer { display: none; }

/* One photo carousel replaces the first prototype's text and photo grid. */
.photo-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 390px;
  max-height: 72vh;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.085);
  overflow: hidden;
  background: #101315;
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}
.carousel-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 300ms ease; }
.carousel-slide.is-active { opacity: 1; visibility: visible; }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 45px;
  height: 56px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  background: rgba(20,22,23,.54);
  color: #fff;
  font-size: 35px;
  cursor: pointer;
  transition: background var(--ease);
}
.carousel-arrow:hover { background: rgba(20,22,23,.86); }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.carousel-playpause {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 15px;
  min-width: 70px;
  min-height: 36px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(20,22,23,.68);
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 9px;
  cursor: pointer;
}
.carousel-playpause:hover { background: rgba(20,22,23,.88); }
.carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 30px;
  background: rgba(0,0,0,.45);
}
.carousel-dot { width: 21px; height: 5px; padding: 0; border: 0; background: #9b9b9b; border-radius: 10px; cursor: pointer; }
.carousel-dot[aria-current="true"] { width: 30px; background: white; }

@media (max-width: 1000px) {
  :root { --nav-width: 218px; }
  .side-nav { padding-inline: 19px; }
  .nav-link { font-size: 13px; }
  .global-header { gap: 20px; }
  .brand-symbol { width: 75px; height: 75px; }
  .brand-symbol img { width: 118px; height: 118px; left: -20px; top: -12px; }
  .brand-wordmark { width: 335px; height: 70px; }
  .brand-wordmark img { width: 520px; height: 520px; left: -91px; top: -394px; }
  .division-heading span { font-size: 49px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Provisional mobile layout. We will redesign the mobile page separately. */
@media (max-width: 760px) {
  body { overflow: auto; }
  .global-header { height: auto; min-height: 80px; padding: 8px 17px 13px; flex-wrap: wrap; gap: 0; }
  .brand { gap: 9px; }
  .brand-symbol { width: 58px; height: 61px; }
  .brand-symbol img { width: 95px; height: 95px; left: -17px; top: -9px; }
  .brand-wordmark { width: 188px; height: 43px; }
  .brand-wordmark img { width: 290px; height: 290px; left: -51px; top: -220px; }
  .site-shell { display: flex; flex-direction: column; height: auto; }
  .side-nav { overflow-x: auto; overflow-y: hidden; padding: 13px 15px; }
  .side-nav::after { display: none; }
  .nav-list { display: flex; gap: 11px; width: max-content; }
  .nav-link { padding: 10px 15px; min-height: 45px; font-size: 12px; border-radius: 11px; }
  .nav-list .group-start { margin-top: 0; }
  .division-heading { width: 100%; min-height: 0; padding: 0 0 0 5px; }
  .division-heading span { font-size: 41px; }
  .right-pane { display: block; }
  .right-content { overflow: visible; padding: 28px 18px 45px; }
  .intro-copy h1 { font-size: clamp(34px,8.5vw,50px); }
  .hero-image { min-height: 275px; height: 42vh; }
  .project-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .project-tile img { height: 122px; }
  .photo-carousel { min-height: 250px; max-height: none; border-radius: 10px; }
  .carousel-arrow { width: 36px; height: 45px; font-size: 28px; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  .carousel-dots { bottom: 7px; gap: 4px; padding: 7px; }
  .carousel-dot { width: 15px; }
  .carousel-dot[aria-current="true"] { width: 22px; }
}
@media (max-width: 440px) {
  .intro-row { margin-bottom: 22px; }
  .intro-copy h1 { font-size: 34px; }
  .hero-image { height: 310px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-tile img { height: 190px; }
  .photo-carousel { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
