/* =====================================================
   SHARP & CO. BARBERS — styles.css
   Tier 1 Starter Demo · Mobile-first
   Breakpoints: 768px / 1024px
   ===================================================== */

/* ===================== CUSTOM PROPERTIES ===================== */
:root {
  --bg: #161413;
  --surface: #1f1c1a;
  --cream: #f1ead9;
  --brass: #b8924a;
  --brass-hover: #cda35a;
  --ink: #1a1714;
  --paper: #e8e2d3;
  --muted: #7a7268;

  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;

  --space: 8px;
}

/* ===================== RESET ===================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--paper);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--brass);
  color: var(--bg);
}

/* ===================== FOCUS VISIBLE ===================== */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ===================== FILM GRAIN OVERLAY ===================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--paper);
  font-weight: 600;
}

h1 {
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

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

.label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brass);
  margin-bottom: calc(var(--space) * 3);
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 8rem 0;
  }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--brass);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--brass-hover);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--brass);
  color: var(--brass);
}

.btn-secondary:hover {
  background: var(--brass);
  color: var(--bg);
}

/* ===================== CARDS ===================== */
.card {
  background: var(--surface);
  border: 1px solid rgba(184, 146, 74, 0.2);
  border-radius: 0;
  padding: 2rem;
}

/* ===================== TIER BADGE ===================== */
.tier-badge {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 20px 8px 12px;
  text-decoration: none;
  transition: opacity 0.25s, background 0.2s;
  letter-spacing: 0.02em;
}

.tier-badge:hover {
  background: var(--brass);
  color: var(--bg);
}

body.dn-on .tier-badge {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .tier-badge {
    font-size: 0.8125rem;
    padding: 10px 24px 10px 16px;
  }
}

/* ===================== HEADER ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(184, 146, 74, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
}

.header-brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

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

/* ---- Status pill ---- */
.status-pill {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.status-pill.is-open .status-dot {
  background: #5a9a3c;
}

.status-pill.is-open {
  color: var(--paper);
}

@media (min-width: 768px) {
  .status-pill {
    display: flex;
  }
}

/* ---- Header nav ---- */
.header-nav {
  display: none;
}

.header-nav ul {
  display: flex;
  gap: 32px;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--paper);
  transition: color 0.2s;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--brass);
}

.header-cta {
  display: none;
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
}

/* ---- Nav toggle (mobile) ---- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

@media (min-width: 768px) {
  .header-nav {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }
}

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--surface);
  padding: 100px 24px 32px;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 16px 0;
  color: var(--paper);
  border-bottom: 1px solid rgba(184, 146, 74, 0.15);
}

.mobile-menu .mobile-cta {
  margin-top: 24px;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

/* ===================== HERO (asymmetric 60/40) ===================== */
.hero {
  position: relative;
  padding: 8rem 0 4rem;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  margin-bottom: calc(var(--space) * 3);
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: calc(var(--space) * 4);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface);
}

.hero-hours {
  background: var(--surface);
  border: 1px solid rgba(184, 146, 74, 0.2);
  padding: 1.5rem 2rem;
  margin-top: 2rem;
}

.hero-hours h3 {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brass);
  margin-bottom: 1rem;
}

.hero-hours ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-hours li span:first-child {
  color: var(--paper);
}

@media (min-width: 768px) {
  .hero {
    padding: 0;
  }

  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    max-width: none;
    padding: 0;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    padding: 8rem 4rem 8rem calc(max(24px, (100vw - 1120px) / 2));
  }

  .hero-photo {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .hero-hours {
    position: absolute;
    bottom: 4rem;
    left: calc(60% - 140px);
    z-index: 2;
    width: 280px;
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 10rem 5rem 10rem calc(max(24px, (100vw - 1120px) / 2));
  }
}

/* ===================== MARQUEE ===================== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(184, 146, 74, 0.2);
  border-bottom: 1px solid rgba(184, 146, 74, 0.2);
  padding: 1.25rem 0;
  background: var(--surface);
}

.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marquee-scroll 45s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: inline-flex;
  gap: 0;
  flex-shrink: 0;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--paper);
  padding: 0 1.5rem;
  white-space: nowrap;
}

.marquee-item .price {
  color: var(--brass);
  font-weight: 600;
}

.marquee-sep {
  color: var(--muted);
  padding: 0;
  font-size: 0.875rem;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 768px) {
  .marquee-item {
    font-size: 1.25rem;
    padding: 0 2rem;
  }
}

/* ===================== ETHOS SECTION ===================== */
.ethos {
  border-bottom: 1px solid rgba(184, 146, 74, 0.1);
}

.ethos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.ethos-text h2 {
  margin-bottom: 1.5rem;
}

.ethos-text p {
  color: var(--muted);
  max-width: 540px;
}

.ethos-photo {
  aspect-ratio: 3 / 4;
  background: var(--surface);
}

@media (min-width: 768px) {
  .ethos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

/* ===================== REVIEWS ===================== */
.reviews {
  border-bottom: 1px solid rgba(184, 146, 74, 0.1);
}

.reviews h2 {
  margin-bottom: 3rem;
}

.reviews-grid {
  display: grid;
  gap: 1.5rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid rgba(184, 146, 74, 0.15);
  padding: 2rem;
}

.review-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.review-author {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* ===================== CTA BAND ===================== */
.cta-band {
  text-align: center;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(184, 146, 74, 0.1);
}

.cta-band h2 {
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .cta-band {
    padding: 6rem 0;
  }
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--surface);
  color: var(--muted);
  padding: 4rem 0 2rem;
  font-size: 0.875rem;
  border-top: 1px solid rgba(184, 146, 74, 0.15);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brass);
  margin-bottom: 1rem;
}

.site-footer a {
  color: var(--muted);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--brass);
}

.footer-address {
  color: var(--paper);
  font-style: normal;
  line-height: 1.8;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-hours li {
  padding: 3px 0;
  display: flex;
  justify-content: space-between;
  max-width: 240px;
}

.footer-bottom {
  border-top: 1px solid rgba(184, 146, 74, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ===================== MOBILE STICKY BOOK BAR ===================== */
.mobile-book-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--surface);
  border-top: 1px solid rgba(184, 146, 74, 0.2);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.mobile-book-bar.hidden {
  transform: translateY(100%);
}

.mobile-book-bar .btn {
  flex: 1;
  text-align: center;
  padding: 0.85rem 1.5rem;
}

.mobile-book-bar-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .mobile-book-bar {
    display: none;
  }
}

/* ===================== IMAGE PLACEHOLDERS ===================== */
[data-placeholder] {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 24px;
  background: var(--surface);
}

/* ===================== PAGE INTRO (inner pages) ===================== */
.page-intro {
  padding: 10rem 0 3rem;
}

.page-intro h1 {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.page-sub {
  color: var(--muted);
  max-width: 540px;
  font-size: 1.125rem;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .page-intro {
    padding: 12rem 0 4rem;
  }
}

/* ===================== CREAM PAGE OVERRIDES ===================== */
body.page-cream {
  background-color: var(--cream);
  color: var(--ink);
  --muted: #5d564d;
}

body.page-cream h1,
body.page-cream h2,
body.page-cream h3,
body.page-cream h4 {
  color: var(--ink);
}

body.page-cream .site-header.scrolled {
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(26, 23, 20, 0.1);
}

body.page-cream .header-brand,
body.page-cream .header-nav a,
body.page-cream .nav-toggle-bar {
  color: var(--ink);
}

body.page-cream .header-nav a:hover,
body.page-cream .header-nav a[aria-current="page"] {
  color: var(--brass);
}

body.page-cream .mobile-menu {
  background: var(--cream);
}

body.page-cream .mobile-menu a {
  color: var(--ink);
  border-bottom-color: rgba(26, 23, 20, 0.1);
}

body.page-cream .site-footer {
  background: var(--ink);
  color: var(--muted);
}

body.page-cream .site-footer h4 {
  color: var(--brass);
}

body.page-cream .footer-address {
  color: var(--paper);
}

body.page-cream .footer-bottom {
  border-top-color: rgba(232, 226, 211, 0.1);
  color: var(--muted);
}

body.page-cream .mobile-book-bar {
  background: var(--ink);
}

/* Brass text needs darkening on cream for WCAG AA */
body.page-cream .label,
body.page-cream .service-price,
body.page-cream .hero-hours h3,
body.page-cream .team-specialty {
  color: #7d6230;
}

body.page-cream .drop-cap::first-letter {
  color: #8a6d35;
}

body.page-cream .status-pill.is-open {
  color: var(--ink);
}

/* Re-set variables inside dark-bg sections on cream pages */
body.page-cream .site-footer,
body.page-cream .cta-band,
body.page-cream .mobile-book-bar {
  --muted: #7a7268;
}

body.page-cream .cta-band {
  background: var(--bg);
  border-bottom: none;
}

body.page-cream .cta-band h2 {
  color: var(--paper);
}

body.page-cream [data-placeholder] {
  background: rgba(26, 23, 20, 0.08);
  color: #7a7268;
}

/* ===================== DROP CAPS (services page) ===================== */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: 3.5em;
  font-weight: 600;
  float: left;
  line-height: 0.8;
  margin-right: 0.1em;
  margin-top: 0.05em;
  color: var(--brass);
}

/* ===================== EDITORIAL SERVICE GRID (services page) ===================== */
.service-editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.service-item {
  border-bottom: 1px solid rgba(26, 23, 20, 0.1);
  padding-bottom: 3rem;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item:nth-last-child(2) {
  border-bottom: none;
}

@media (min-width: 768px) {
  .service-editorial {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
  }

  .service-item {
    border-bottom: none;
    padding-bottom: 0;
  }
}

.service-item h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.service-price {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brass);
  margin-bottom: 1.5rem;
  display: block;
}

.service-item p {
  color: var(--ink);
  opacity: 0.75;
  max-width: 600px;
}

/* ===================== TEAM CARDS (services page) ===================== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.team-card {
  position: relative;
  overflow: hidden;
}

.team-photo {
  aspect-ratio: 3 / 4;
  background: var(--ink);
  transition: filter 0.4s ease;
}

.team-card:hover .team-photo {
  filter: grayscale(100%);
}

.team-info {
  padding: 1.25rem 0;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0;
}

.team-specialty {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: 0.5rem;
}

.team-card:hover .team-specialty {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* ===================== FORM STYLES (book page) ===================== */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 0 0.75rem;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--muted);
  border-radius: 0;
  font-size: 1rem;
  color: var(--paper);
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23b8924a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  cursor: pointer;
}

.form-group select option {
  background: var(--surface);
  color: var(--paper);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--brass);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 0;
  font-size: 0.875rem;
  color: var(--muted);
  pointer-events: none;
  transition: transform 0.2s, font-size 0.2s, color 0.2s;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select.has-value ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-1.5rem);
  font-size: 0.75rem;
  color: var(--brass);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-bottom-color: #c0392b;
}

.form-error {
  font-size: 0.8125rem;
  color: #c0392b;
  margin-top: 0.5rem;
  display: none;
}

.form-group input.invalid ~ .form-error,
.form-group select.invalid ~ .form-error,
.form-group textarea.invalid ~ .form-error {
  display: block;
}

/* ---- Multi-step-feel form sections ---- */
.book-form {
  max-width: 560px;
}

.form-section {
  padding: 2.5rem 0 0.5rem;
  border-top: 1px solid rgba(184, 146, 74, 0.15);
}

.form-section:first-of-type {
  padding-top: 0;
  border-top: none;
}

.form-section-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-section-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--brass);
  line-height: 1;
}

.form-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--paper);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-privacy {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

.form-submit-row .btn {
  align-self: flex-start;
}

.form-group textarea {
  resize: vertical;
  min-height: 5rem;
  font-family: inherit;
  line-height: 1.5;
}

/* ---- Book page layout ---- */
.book-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .book-layout {
    grid-template-columns: 1.3fr 1fr;
    gap: 6rem;
    align-items: start;
  }
}

/* ---- Contact sidebar ---- */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-sidebar h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brass);
  margin-bottom: 0.75rem;
}

.contact-block {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(184, 146, 74, 0.15);
}

.contact-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-block p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-block address {
  font-style: normal;
  color: var(--paper);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.big-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  line-height: 1.1;
}

.big-phone:hover {
  color: var(--brass);
}

.big-phone svg {
  width: 1.25em;
  height: 1.25em;
  color: var(--brass);
}

/* ---- Success state ---- */
.form-success {
  background: rgba(184, 146, 74, 0.08);
  border: 1px solid var(--brass);
  padding: 2.5rem;
  text-align: center;
  display: none;
  max-width: 560px;
}

.form-success.show {
  display: block;
}

.form-success h3 {
  font-size: 2rem;
  color: var(--brass);
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--paper);
  margin-bottom: 0;
}

/* ===================== UTILITIES ===================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-center {
  text-align: center;
}

.text-brass {
  color: var(--brass);
}
