/* Pianos Santa Maria prototype. Colours measured from pianossantamaria.pt and its logo:
   brown #492914 (theme colour), logo brown #442a18, key beige #dac7a4, cream #fbf9ed, gold accent #f6bb06. */
@font-face { font-family: 'Montserrat'; src: url('/assets/fonts/montserrat-var.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-var.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }

:root {
  --brown: #492914;
  --brown-d: #351d0d;
  --brown-2: #5c3820;
  --beige: #dac7a4;
  --soft: #efe5d2;
  --cream: #fbf9ed;
  --gold: #f6bb06;
  --gold-d: #dca600;
  --text: #2b1a0e;
  --muted: #5e4a3a;
  --line: #d9cbb0;
  --radius: 6px;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { -webkit-tap-highlight-color: rgba(246, 187, 6, .25); margin: 0; font: 400 1.0625rem/1.65 'Figtree', system-ui, sans-serif; color: var(--text); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: 'Montserrat', system-ui, sans-serif; line-height: 1.18; margin: 0 0 .6em; color: inherit; text-wrap: balance; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.18rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--brown); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--cream); color: var(--brown); padding: 10px 14px; border-radius: var(--radius); z-index: 30; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke-width: 1.75; }
.icon-xl { width: 56px; height: 56px; margin-bottom: 12px; color: var(--gold); }
.lead { font-size: 1.15rem; }

/* Buttons: square-ish corners like the keys in the logo */
.btn { display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: 0 22px; border-radius: var(--radius); font: 600 .98rem/1 'Montserrat', sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, transform .15s, border-color .2s; touch-action: manipulation; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-gold { background: var(--gold); color: var(--brown-d); }
.btn-gold:hover { background: var(--gold-d); }
.btn-line { color: var(--cream); border-color: rgba(251, 249, 237, .6); background: transparent; }
.btn-line:hover { background: rgba(251, 249, 237, .1); border-color: var(--cream); }
.btn-brown { background: var(--brown); color: var(--cream); }
.btn-brown:hover { background: var(--brown-d); }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brown); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--brown); color: var(--cream); border-bottom: 1px solid rgba(218, 199, 164, .18); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand img { width: 228px; height: auto; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.menu ul a { color: var(--cream); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu ul a:hover { border-bottom-color: var(--gold); }
.burger { display: none; background: none; border: 0; color: var(--cream); padding: 10px; margin-right: -10px; cursor: pointer; }
.burger .icon { width: 28px; height: 28px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--brown); color: var(--cream); min-height: calc(100dvh - 72px); max-height: 800px; }
.hero-text { padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px); align-self: center; max-width: 660px; justify-self: end; }
.hero-tag { font: 500 1.25rem/1.2 'Montserrat', sans-serif; color: var(--beige); margin-bottom: 1em; }
.hero h1 { font-size: clamp(1.95rem, 1.25rem + 2vw, 2.7rem); font-weight: 600; margin-bottom: .5em; }
.hero-sub { font-size: 1.18rem; color: #eadfc9; max-width: 32em; margin-bottom: 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { margin: 0; position: relative; overflow: hidden; }
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 45% 60%; }

/* Sections */
.sec { padding: clamp(56px, 7vw, 96px) 0; }
.sec-soft { background: var(--soft); }
.sec-cream { background: var(--cream); }
.sec-brown { background: var(--brown); color: var(--cream); }
.sec-brown a:not(.btn) { color: var(--cream); }
.sec-intro { color: var(--muted); margin-top: -.3em; margin-bottom: 2.2em; max-width: 62ch; }

/* About */
.about { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-text { max-width: 640px; }
.about-side { background: var(--brown); color: var(--cream); border-radius: var(--radius); padding: 28px 28px 24px; }
.cred { margin: 0 0 22px; display: grid; gap: 14px; }
.cred div { display: grid; gap: 2px; }
.cred dt { color: var(--beige); font-size: .9rem; }
.cred dd { margin: 0; font-weight: 600; }
.values { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(218, 199, 164, .3); display: flex; flex-wrap: wrap; gap: 8px; }
.values li { padding: 6px 12px; border: 1px solid var(--beige); border-radius: var(--radius); font: 500 .92rem/1.3 'Montserrat', sans-serif; color: var(--beige); }

/* Services */
.svcs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); }
.svc { padding: 26px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.svc h3 { color: var(--brown); }
.svc p { color: var(--muted); }
.svc-main { grid-row: span 2; background: var(--brown); color: var(--cream); border-top: 0; border-radius: var(--radius); padding: 32px; margin-bottom: 26px; }
.svc-main h3 { color: var(--cream); font-size: 1.5rem; }
.svc-main p { color: #eadfc9; font-size: 1.08rem; }
.svc-main .more { color: var(--gold); }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: .45em; font: 600 .95rem/1.3 'Montserrat', sans-serif; color: var(--brown); text-decoration: none; padding: 8px 0; min-height: 44px; }
.more:hover { text-decoration: underline; }
.more .icon { transition: transform .2s; }
.more:hover .icon { transform: translateX(3px); }
.extras-h { margin-top: 2.2em; font-size: 1.05rem; color: var(--muted); font-weight: 500; }
.extras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.extras a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 18px; background: var(--soft); border-radius: var(--radius); color: var(--text); text-decoration: none; font: 600 1rem/1.3 'Montserrat', sans-serif; transition: background-color .2s; }
.extras a .icon { width: 26px; height: 26px; color: var(--brown); }
.extras a .icon-go { margin-left: auto; width: 20px; height: 20px; color: var(--brown-2); }
.extras a:hover { background: var(--beige); }

/* Stage band: the client's concert-hall photo under a brown veil */
.stage { position: relative; color: var(--cream); background: var(--brown-d) url('/assets/img/piano-de-cauda-sala-de-concertos.webp') center 40% / cover no-repeat; }
.stage::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(53, 29, 13, .94) 0%, rgba(53, 29, 13, .82) 45%, rgba(53, 29, 13, .35) 100%); }
.stage-in { position: relative; max-width: var(--wrap); }
.stage-in h2, .stage-in p { max-width: 560px; }
.stage-in p { font-size: 1.12rem; color: #eadfc9; margin-bottom: 1.6em; }

/* Testimonials: masonry columns */
.quotes { columns: 3 300px; column-gap: 20px; margin-top: 1.6em; }
.quote { break-inside: avoid; margin: 0 0 20px; background: var(--cream); border-radius: var(--radius); padding: 22px 22px 18px; border-left: 4px solid var(--beige); }
.quote:nth-child(3n+1) { border-left-color: var(--brown); }
.quote blockquote { margin: 0 0 14px; }
.quote blockquote p { margin: 0; font-size: 1.02rem; }
.quote figcaption { display: grid; gap: 2px; }
.quote figcaption b { font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--brown); }
.quote figcaption span { color: var(--muted); font-size: .9rem; }

/* Request form */
.book-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.book-intro { position: sticky; top: 100px; }
.book-sum { margin: 1.5em 0; display: grid; gap: 10px; background: var(--soft); border-radius: var(--radius); padding: 18px 20px; }
.book-sum div { display: flex; justify-content: space-between; gap: 16px; }
.book-sum dt { color: var(--muted); }
.book-sum dd { margin: 0; font-weight: 600; text-align: right; }
.book-alt { color: var(--muted); display: grid; }
.book-alt a { font: 600 1.25rem/1.4 'Montserrat', sans-serif; }
.book-alt small { font-size: .85rem; }
.book { background: #fff; border-radius: 10px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 18px 50px -26px rgba(73, 41, 20, .45); border: 1px solid var(--line); }
.steps { display: flex; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; }
.steps li { flex: 1; font-size: .9rem; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); }
.steps li.is-on, .steps li.is-done { color: var(--brown); border-top-color: var(--brown); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 600 1.3rem/1.25 'Montserrat', sans-serif; margin-bottom: 14px; padding: 0; }
legend:focus { outline: none; }
.opt-h { font-weight: 600; margin: 6px 0 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts-3 { margin-bottom: 18px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .2s, background-color .2s; }
.opt input:hover + span { border-color: var(--brown); }
.opt input:checked + span { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.opts-3 .opt span { min-width: 110px; justify-content: center; }
.f { display: grid; gap: 6px; margin-bottom: 14px; }
.f label { font-weight: 600; }
.f input, .f textarea { font: inherit; padding: 12px 14px; border: 1.5px solid #a8957a; border-radius: var(--radius); background: #fff; color: var(--text); width: 100%; }
.f input::placeholder, .f textarea::placeholder { color: #7a6656; }
.f input.is-invalid { border-color: #b3261e; }
.chk { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 4px; }
.chk input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brown); flex: none; }
.err { color: #b3261e; font-size: .93rem; font-weight: 600; margin: 6px 0 0; }
.nav-steps { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

/* Contacts */
.contact h2 { color: var(--cream); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.contact .lead { color: #eadfc9; }
.clist { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 18px; }
.clist li { display: flex; gap: 14px; align-items: flex-start; }
.clist .icon { width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.clist div { display: grid; }
.clist b { font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--beige); font-size: .95rem; }
.clist a { font-size: 1.1rem; }
.clist small { color: #cdbb99; }
.contact-photo { margin: 0; }
.contact-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Footer */
.foot { background: var(--brown-d); color: #d8c9ad; padding: 40px 0; font-size: .95rem; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.foot img { width: 228px; margin-bottom: 14px; }
.foot p { margin: 0; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { color: var(--cream); display: inline-block; padding: 6px 0; }

/* Request sent / simple pages */
.sent { min-height: 60vh; display: flex; align-items: center; }
.sent h1, .page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.7rem); font-weight: 600; }
.sent-sum { background: rgba(251, 249, 237, .08); border: 1px solid rgba(218, 199, 164, .3); border-radius: var(--radius); padding: 16px 20px; display: grid; gap: 8px; margin: 1.4em 0; }
.sent-sum div { display: flex; justify-content: space-between; gap: 16px; }
.sent-sum dt { color: var(--beige); }
.sent-sum dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.page-head { padding: 56px 0 40px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; color: var(--brown); }

/* Responsive */
@media (max-width: 1080px) {
  .menu ul { gap: 18px; }
  .brand img { width: 200px; }
}
@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--brown-d); flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 24px 24px; }
  .menu.is-open { display: flex; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(218, 199, 164, .2); }
  .menu .btn { justify-content: center; margin-top: 8px; }
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-text { justify-self: start; padding: 36px 24px 32px; }
  .hero-photo { height: 280px; order: 2; }
  .about, .contact-in, .book-wrap { grid-template-columns: 1fr; }
  .book-intro { position: static; }
  .svcs { grid-template-columns: 1fr; }
  .svc-main { grid-row: auto; }
  .extras { grid-template-columns: 1fr; }
  .stage::before { background: rgba(53, 29, 13, .86); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .brand img { width: 176px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-tag { font-size: 1.1rem; }
  .hero-sub { font-size: 1.05rem; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .svc-main { padding: 24px 20px; }
  .nav-steps .btn { flex: 1 1 auto; justify-content: center; }
  .foot img { width: 190px; }
}
