:root {
  --black: #090909;
  --ink: #171514;
  --charcoal: #262321;
  --ivory: #faf7ef;
  --paper: #fffdfa;
  --muted: #6f685f;
  --line: #ded6c8;
  --gold: #b9904a;
  --gold-2: #cfad68;
  --green: #2f6f4f;
  --red: #7f1d1d;
  --shadow: 0 22px 60px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

img { max-width: 100%; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 0 clamp(18px, 4vw, 58px);
  background: rgba(9, 9, 9, .92);
  color: var(--ivory);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(207,173,104,.6);
  border-radius: 50%;
  color: var(--gold-2);
  font-family: Georgia, serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, serif;
  font-size: 20px;
}

.brand small {
  color: rgba(250,247,239,.68);
  font-size: 12px;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a,
.header-call {
  color: rgba(250,247,239,.82);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.header-call:hover {
  color: var(--gold-2);
}

.header-call {
  padding: 11px 14px;
  border: 1px solid rgba(207,173,104,.45);
  border-radius: 4px;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ivory);
}

.hero {
  position: relative;
  min-height: clamp(620px, 84vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.56) 48%, rgba(0,0,0,.18)), url("../img/piano-showroom-hero.png") center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding-top: 46px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 890px;
  color: var(--ivory);
  font-size: clamp(46px, 8vw, 88px);
  line-height: .98;
}

.hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(250,247,239,.86);
  font-size: clamp(18px, 2.3vw, 23px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-secondary {
  background: rgba(250,247,239,.09);
  color: var(--ivory);
  border-color: rgba(250,247,239,.45);
}

.btn-ghost {
  color: var(--ivory);
  border-color: transparent;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.trust-strip div {
  padding: 24px clamp(18px, 2.5vw, 34px);
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child { border-right: 0; }
.trust-strip strong,
.trust-strip span { display: block; }
.trust-strip span { margin-top: 5px; color: var(--muted); font-size: 14px; }

.section {
  padding: clamp(62px, 8vw, 116px) clamp(18px, 4vw, 58px);
}

.section-warm { background: var(--ivory); }
.section-dark { background: var(--black); color: var(--ivory); }

.section-head {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2,
.split h2,
.contact h2 {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.05;
}

.section-head p:not(.eyebrow),
.split p,
.contact p {
  color: var(--muted);
  font-size: 18px;
}

.section-dark .section-head p:not(.eyebrow) {
  color: rgba(250,247,239,.72);
}

.filters {
  width: min(1180px, 100%);
  margin: 0 auto 28px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  background: var(--black);
  color: var(--ivory);
  border-color: var(--black);
}

.inventory-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.product-image {
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 72% 24%, rgba(207,173,104,.28), transparent 22%),
    linear-gradient(135deg, #0d0d0e, #2f2d29 52%, #0d0d0e);
  color: rgba(250,247,239,.9);
  font-family: Georgia, serif;
  font-size: 54px;
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(250,247,239,.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.product-badge.sold {
  background: var(--red);
  color: white;
}

.product-body {
  padding: 20px;
}

.product-body h3 {
  min-height: 56px;
  font-size: 23px;
  line-height: 1.2;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.product-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.price {
  display: block;
  margin: 10px 0 16px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 950;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.card-actions button,
.card-actions a {
  min-height: 42px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.card-actions a {
  display: grid;
  place-items: center;
}

.card-actions button:hover,
.card-actions a:hover {
  background: var(--black);
  color: var(--ivory);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold);
  font-weight: 950;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.model-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.model-band article {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.model-band article:last-child { border-right: 0; }
.model-band strong,
.model-band span { display: block; }
.model-band strong { font-family: Georgia, serif; font-size: 24px; }
.model-band span { color: var(--muted); font-size: 14px; }

.rental-grid,
.service-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.rental-grid article,
.service-grid article,
.hours-card,
.quote-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
}

.rental-grid article {
  background: #141311;
  color: var(--ivory);
  border-color: rgba(250,247,239,.18);
}

.rental-grid span {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.rental-grid h3,
.service-grid h3 {
  margin: 9px 0;
  font-size: 24px;
  line-height: 1.15;
}

.rental-grid strong {
  display: block;
  color: var(--gold-2);
  font-size: 24px;
}

.rental-grid p,
.service-grid p {
  color: var(--muted);
}

.rental-grid p {
  color: rgba(250,247,239,.7);
}

.service-grid a {
  color: var(--gold);
  font-weight: 950;
  text-decoration: none;
}

.hours-card {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.hours-card span {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(320px, 560px);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
  background: var(--black);
  color: var(--ivory);
}

.contact p {
  color: rgba(250,247,239,.75);
}

.quote-form {
  display: grid;
  gap: 14px;
}

.quote-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.quote-form .btn {
  width: 100%;
  margin-top: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px clamp(18px, 4vw, 58px) 90px;
  background: #050505;
  color: var(--ivory);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: rgba(250,247,239,.65);
}

.site-footer a {
  color: var(--gold-2);
  font-weight: 950;
  text-decoration: none;
}

.mobile-cta {
  display: none;
}

.product-modal {
  width: min(920px, calc(100% - 28px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0,0,0,.45);
}

.product-modal::backdrop {
  background: rgba(0,0,0,.72);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
}

.modal-details {
  padding: 34px;
}

.modal-details .btn-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--ivory);
}

.modal-details .btn-secondary:hover {
  color: var(--ivory);
  background: var(--black);
  border-color: var(--black);
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

.detail-list span {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rental-grid,
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle { display: block; }
  .header-call { display: none; }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    padding: 0 0 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); }

  .hero {
    min-height: 690px;
    align-items: end;
  }

  .hero-media {
    background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.9)), url("../img/piano-showroom-hero.png") center / cover;
  }

  .hero-content { padding-bottom: 56px; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split,
  .contact,
  .modal-layout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: 45px; }
  .button-row,
  .card-actions { grid-template-columns: 1fr; flex-direction: column; }
  .btn { width: 100%; }
  .trust-strip,
  .inventory-grid,
  .rental-grid,
  .service-grid,
  .model-band { grid-template-columns: 1fr; }
  .trust-strip div,
  .model-band article { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer { flex-direction: column; }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,.14);
  }

  .mobile-cta a {
    min-height: 58px;
    display: grid;
    place-items: center;
    color: var(--ivory);
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
  }

  .mobile-cta a + a { border-left: 1px solid rgba(255,255,255,.14); }
}
