/* Hope at House of Style — static menu landing site.
   Matches the design comps: airy off-white page, letterspaced serif brand,
   two-column grid of bordered service cards with a photo thumbnail. */

:root {
  color-scheme: light;
  --ink: #2b2724;
  --body-text: #55504b;
  --muted: #8a827a;
  --border: #e8e2da;
  --bg: #fbfaf8;
  --card: #ffffff;
  --pill: #3d3531;
  --pill-text: #ffffff;
  --link: #3f6bb5;
  --head-bg: #f5f2ee;
  --badge-bg: #f0ece6;
  --success: #3e9c5c;
  --star: #c2a15c;
}

/* Same warm palette, inverted for dark mode. data-theme is set by an inline
   head script (saved footer-toggle choice, else the system preference), so
   the footer's Light/Dark Mode button can override prefers-color-scheme. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ece7e1;
  --body-text: #b5ada4;
  --muted: #9a9189;
  --border: #3a352f;
  --bg: #1b1815;
  --card: #23201c;
  --pill: #e8e2da;
  --pill-text: #1b1815;
  --link: #8db0e8;
  --head-bg: #2b2723;
  --badge-bg: #332e29;
  --success: #57b374;
  --star: #b39655;
}

* {
  box-sizing: border-box;
}

/* Tab sections toggle via the hidden attribute; keep it winning over any
   display rule set on a section (e.g. the .about grid). */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Averia Libre", Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.5;
}

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

/* ─── Header ────────────────────────────────────────────────────────── */

.site-header {
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.brand {
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2rem;
  margin-top: 1.4rem;
}

.site-nav a {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--muted);
}

.site-nav a.is-active {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--ink);
}

/* ─── Service menu ──────────────────────────────────────────────────── */

.menu {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 2.5rem;
}

.menu-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.menu-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.text-pill {
  padding: 0.65rem 2.4rem;
  border-radius: 999px;
  background: transparent;
  border-color: var(--pill);
  border-style: solid;
  border-width: 1px;
  color: var(--pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  white-space: nowrap;
}

.book-pill {
  padding: 0.65rem 2.4rem;
  border-radius: 999px;
  background: var(--pill);
  color: var(--pill-text);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  white-space: nowrap;
}

.book-pill:hover {
  background: var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  transition: box-shadow 0.15s ease;
}

.card:hover {
  box-shadow: 0 3px 14px rgba(43, 39, 36, 0.08);
}

.card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card h2 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--body-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--body-text);
}

.card-meta i {
  font-style: normal;
  color: var(--muted);
  padding: 0 0.25rem;
}

/* Menu photos come from the console's service editor (R2); services without
   one fall back to the warm gradient placeholders that hold the layout. */
.thumb {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 6px;
}

.thumb.has-photo {
  background-size: cover;
  background-position: center;
}

.menu-fallback {
  margin: 2rem 0;
  font-size: 0.9rem;
  color: var(--body-text);
}

.thumb-1 { background: linear-gradient(135deg, #d9c5ae, #a98d6f); }
.thumb-2 { background: linear-gradient(135deg, #e5ddd3, #8f8378); }
.thumb-3 { background: linear-gradient(135deg, #4d4540, #211d1b); }
.thumb-4 { background: linear-gradient(135deg, #b7a08c, #5d4c3f); }
.thumb-5 { background: linear-gradient(135deg, #cfc3b6, #7a6a5c); }
.thumb-6 { background: linear-gradient(135deg, #3f3733, #171412); }
.thumb-7 { background: linear-gradient(135deg, #e8d9be, #b39a72); }
.thumb-8 { background: linear-gradient(135deg, #d8cfc5, #6e6156); }
.thumb-9 { background: linear-gradient(135deg, #c9beb2, #4e453e); }

/* ─── Secondary sections & footer ───────────────────────────────────── */

/* Sections render as tabs (one visible at a time), so no divider border. */
.page-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-section h1 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.page-section p {
  max-width: 40rem;
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--body-text);
}

.muted {
  color: var(--muted);
}

/* Policy pages (privacy / terms) — reached from the footer, rendered as
   hash tabs like the main sections. Plain readable prose, narrower measure. */
.policy {
  max-width: 720px;
}

.policy h2 {
  margin: 2rem 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.policy p {
  margin: 0 0 0.8rem;
  line-height: 1.65;
}

.policy ul {
  max-width: 40rem;
  margin: 0 0 0.8rem;
  padding-left: 1.2rem;
}

.policy li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--body-text);
}

.policy strong {
  color: var(--ink);
}

.policy-updated {
  margin-top: -0.5rem;
  margin-bottom: 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.link {
  color: var(--link);
}

.link:hover {
  text-decoration: underline;
}

/* ─── Reviews ───────────────────────────────────────────────────────── */
/* Bento-inspired masonry: CSS columns let text-only cards and photo cards
   tile at their natural heights. Stars are a muted gold (--star) that sits
   in the site's warm palette rather than Yelp's red. */

.reviews-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.reviews-score-text {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--body-text);
}

.reviews-score-text strong {
  color: var(--ink);
  font-size: 1rem;
}

.reviews-sub {
  margin-bottom: 2rem;
}

.review-stars {
  display: block;
  width: 88px;
  height: auto;
  flex: 0 0 auto;
  color: var(--star);
}

.review-stars-lg {
  width: 116px;
}

.reviews-grid {
  columns: 3 220px;
  column-gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  break-inside: avoid;
  margin-bottom: 1rem;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  transition: box-shadow 0.15s ease;
}

.review-card:hover {
  box-shadow: 0 3px 14px rgba(43, 39, 36, 0.08);
}

.review-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.review-meta {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.review-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--body-text);
}

.review-photo {
  display: block;
  width: calc(100% + 2.4rem);
  /* Bleed to the card edges so the photo reads as the card's "bento" tile. */
  margin: 0.2rem -1.2rem -1.2rem;
  border-top: 1px solid var(--border);
  border-radius: 0 0 6px 6px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ─── About ─────────────────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.about-copy h1 {
  letter-spacing: 0.2em;
}

.about-copy p {
  max-width: 34rem;
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.about-lede {
  color: var(--ink);
}

/* New-client offers callout — bordered card matching the service cards. */
.about-offers {
  max-width: 34rem;
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.about-offers h2 {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-offers ul {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
}

.about-offers li {
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--body-text);
}

.about-offers strong {
  color: var(--ink);
}

.about-offers-cta {
  margin: 0;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* ─── Location & Hours ──────────────────────────────────────────────── */

.location-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.location-address p {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.location-address p:has(.link) {
  text-transform: none;
  margin-bottom: 0.35rem;
}

.hours {
  margin: 0;
}

.hours div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding: 0.3rem 0;
  font-size: 0.85rem;
}

.hours dt {
  font-weight: 400;
}

.hours dd {
  margin: 0;
  color: var(--body-text);
}

@media (max-width: 720px) {
  .location-cols {
    grid-template-columns: 1fr;
  }
}

/* Aerial parking illustration — full section width, cropped to a shallow
   letterboxed strip centered on the building and lot (the source art is
   nearly square, 1128×944; object-position keeps the salon + parked cars
   in frame while the sky and foreground road fall away). */

.location-parking {
  margin: 3rem 0 0;
}

.location-parking img {
  display: block;
  width: 100%;
  height: clamp(150px, 26vw, 230px);
  object-fit: cover;
  object-position: 50% 52%;
  border: 1px solid var(--border);
  border-radius: 6px;
  filter: saturate(0.5);
}

/* Day/night image swap follows data-theme (footer toggle wins over the
   system preference, so a <picture> media query wouldn't work). Both are
   loading=lazy; the display:none one has no box, so browsers skip fetching
   it until the theme actually flips to it. */

.location-parking .parking-img-dark {
  display: none;
}

:root[data-theme="dark"] .location-parking .parking-img-light {
  display: none;
}

:root[data-theme="dark"] .location-parking .parking-img-dark {
  display: block;
}

.location-parking figcaption {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--muted);
}

/* Coachella Valley map, traced from real elevation + OSM road data.
   Strictly two-tone (border tint for the terrain, ink for roads/labels/pin),
   so both theme modes get it free. Sits square above the address. */

.location-map {
  max-width: 240px;
  margin: 0 0 1.75rem;
}

.location-map svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
}

.map-range {
  fill: var(--border);
}

/* Type and stroke sizes assume the 480-unit viewBox renders at ~240px,
   i.e. everything draws at half size on screen. */

.map-road {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0.55;
}

.map-road-i10 {
  stroke-dasharray: 9 7;
  opacity: 0.35;
}

.map-road-minor {
  stroke-width: 1.5;
  opacity: 0.28;
}

.map-road-label {
  fill: var(--ink);
  opacity: 0.5;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.map-dot {
  fill: var(--ink);
}

.map-dot-minor {
  fill: var(--ink);
  opacity: 0.4;
}

.map-label {
  fill: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-anchor: middle;
}

.map-label-strong {
  font-size: 19px;
  letter-spacing: 0.12em;
}

.map-pin {
  fill: var(--ink);
}

.map-pin-hole {
  fill: var(--card);
}

.map-caption {
  fill: var(--ink);
  opacity: 0.4;
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.14em;
  text-anchor: end;
}

/* ─── Footer ────────────────────────────────────────────────────────── */
/* Two columns: policy links (stubs for now) on the left, the agent's
   business card on the right. */

.site-footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-cols {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a,
.footer-links button {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body-text);
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--ink);
}

/* The theme toggle is a button, but dresses like its sibling links. */
.footer-links button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-copyright {
  margin: 1.6rem 0 0;
}

@media (max-width: 720px) {
  .footer-cols {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

/* ─── Footer agent card ─────────────────────────────────────────────── */
/* Static twin of the console's AgentCard hover card
   (apps/frontdesk/src/components/agent-card.tsx). */

.agent-card {
  width: 100%;
  max-width: 20rem;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  text-align: left;
  letter-spacing: normal;
  color: var(--ink);
  box-shadow: 0 3px 14px rgba(43, 39, 36, 0.06);
}

.agent-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
  background: var(--head-bg);
}

.agent-card-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--pill);
  color: var(--pill-text);
}

.agent-card-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.agent-card-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.agent-card-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--success);
}

.agent-card-duty {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}

.agent-card-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.agent-card-body {
  padding: 0.75rem 1rem 0.9rem;
}

.agent-card-pitch {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--body-text);
}

.agent-card-pitch strong {
  color: var(--ink);
}

.agent-card-label {
  margin-bottom: 0.35rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.agent-card-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.agent-card-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 600;
}

.agent-card-number:hover {
  text-decoration: underline;
}

.agent-card-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.agent-card-copy:hover {
  background: var(--border);
  color: var(--ink);
}

.agent-card-copy svg {
  width: 0.9rem;
  height: 0.9rem;
}

.agent-card-copy .icon-check {
  display: none;
  color: var(--success);
}

.agent-card-copy.copied .icon-copy {
  display: none;
}

.agent-card-copy.copied .icon-check {
  display: block;
}

.agent-card-channels {
  display: flex;
  gap: 0.4rem;
  padding-top: 0.6rem;
}

.agent-card-badge {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--badge-bg);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--body-text);
}
