:root {
  --bg-dark: #111217;
  --bg-light: #F5F0E8;
  --text-main: #1F2228;
  --text-muted: #3C4450;
  --accent-gold: #C9A15A;
  --accent-gold-dark: #A8843F;
  --accent-burgundy: #7C3A3A;
  --border-subtle: #D4C9B8;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@font-face {
  font-family: "Cavilenny";
  src: url("/../assets/fonts/CavilennyRegular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
}

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 18, 23, 0.96);
  backdrop-filter: blur(10px);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.logo a,
.footer-logo {
  font-family: "Cavilenny", serif;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--accent-gold);
  margin-right: 0.4rem;
  font-size: 1rem;
}

.main-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  padding: 0.25rem 0;
  color: #dcdcdc;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: width 180ms ease-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.nav-contact {
  font-weight: 500;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.header-phone {
  color: #f0f0f0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}

.btn-gold {
  background: var(--accent-gold);
  color: #111217;
  border-color: var(--accent-gold);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-gold:hover {
  background: var(--accent-gold-dark);
  border-color: var(--accent-gold-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #111217;
  border-color: var(--accent-gold);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: #111217;
}

.btn-large {
  padding: 0.9rem 2.2rem;
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, #2a2b33 0, #111217 55%, #050509 100%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 32rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c9c9c9;
}

.hero-trust span {
  padding-left: 1.1rem;
  position: relative;
}

.hero-trust span::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

/* Piano keys visual */

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

.piano-keys {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 2px;
  background: #000;
  padding: 0.4rem;
  border-radius: 0.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.piano-key {
  background: linear-gradient(to bottom, #fdfdfd, #dcdcdc);
  border-radius: 0.25rem;
  height: 4.5rem;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, background 120ms ease-out;
}

.piano-key:hover,
.piano-key.active {
  transform: translateY(1px);
  box-shadow: 0 0 0 1px var(--accent-gold);
  background: linear-gradient(to bottom, #ffffff, #f0e4cf);
}

.hero-visual-note {
  font-size: 0.75rem;
  margin-top: 0.75rem;
  color: #c0c0c0;
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

.section-light {
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-top: 0;
}

.card-link {
  display: inline-flex;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold-dark);
}

/* Two-column layout */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Image placeholders */

.image-placeholder {
  border-radius: 0.75rem;
  border: 1px dashed var(--border-subtle);
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: #faf6ef;
}

.image-piano-inner {
  padding: 4rem 1rem;
}

.image-portrait {
  padding: 4rem 1rem;
}

/* Benefits list */

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.benefits-list li {
  margin-bottom: 0.5rem;
}

/* Areas */

.areas-preview,
.areas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: flex-start;
}

.areas-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.areas-list li {
  padding: 0.4rem 0;
  cursor: pointer;
  position: relative;
}

.areas-list li::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-gold);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 150ms ease-out;
}

.areas-list li:hover::before,
.areas-list li.active::before {
  opacity: 1;
}

.map-placeholder {
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: #fdfaf5;
}

.map-large {
  padding: 4rem 1rem;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Testimonials */

.testimonial-carousel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial {
  display: none;
}

.testimonial.active {
  display: block;
}

.testimonial p {
  font-size: 1rem;
  font-style: italic;
}

.testimonial-meta {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.testimonial-controls button {
  background: transparent;
  border-radius: 999px;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

/* Final CTA */

.section-cta-final {
  background: radial-gradient(circle at top, #2a2b33 0, #111217 55%, #050509 100%);
  color: #fff;
  text-align: center;
}

.section-cta-final h2 {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

/* Page hero */

.page-hero {
  background: #111217;
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.page-hero h1 {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

/* Service blocks */

.service-block {
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-bottom: 2rem;
}

.service-block h2 {
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.2rem;
}

/* Pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.pillar {
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  background: #fff;
}

/* FAQs */

.faq-accordion {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 0.9rem 0;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.faq-item.open .faq-question::after {
  content: "–";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 200ms ease-out;
}

.faq-answer p {
  margin: 0 0 1rem;
}

/* Testimonials page */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  background: #fff;
}

/* Contact */

.contact-layout {
  align-items: flex-start;
}

.contact-form {
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  background: #fff;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid #c9c1b2;
  font-family: inherit;
  font-size: 0.9rem;
}

.field-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-row-conditional {
  display: none;
}

.form-confirmation {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent-burgundy);
}

/* Footer */

.site-footer {
  background: #111217;
  color: #dcdcdc;
  padding-top: 2.5rem;
  margin-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 1.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #b0b0b0;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid #2a2b33;
  padding: 0.75rem 0;
  font-size: 0.75rem;
  text-align: center;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .two-column,
  .areas-preview,
  .areas-layout,
  .footer-inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-cta {
    justify-content: center;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .btn {
    width: auto;
  }
}

/* Piano Navigation */
.piano-header {
  background: #111217;
  padding: 0.6rem 0;
  border-bottom: 3px solid var(--accent-gold);
}

.piano-nav {
  display: flex;
  gap: 0;
  background: #000;
  padding: 0.3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.piano-key-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 48px;
  background: linear-gradient(to bottom, #ffffff, #dcdcdc);
  border-right: 1px solid #aaa;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #111;
  transition: all 160ms ease-out;
  position: relative;
}

.piano-key-link:last-child {
  border-right: none;
}

.piano-key-link:hover {
  background: linear-gradient(to bottom, #ffffff, #f0e4cf);
  transform: translateY(1px);
  box-shadow: inset 0 0 0 2px var(--accent-gold);
}

.piano-key-link.active {
  background: linear-gradient(to bottom, #fff7e0, #e6d2a8);
  box-shadow: inset 0 0 0 2px var(--accent-gold);
}

/* Responsive */
@media (max-width: 900px) {
  .piano-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .piano-nav::-webkit-scrollbar {
    display: none;
  }
}

/* Piano Header */
.piano-header {
  background: #111217;
  padding: 1rem 0 1.4rem;
  border-bottom: 3px solid var(--accent-gold);
}

/* Wrapper so black keys sit above white keys */
.piano-nav-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 2rem;
}

/* White keys (nav links) */
.piano-nav {
  display: flex;
  background: #fff;
  border: 2px solid #000;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  z-index: 1; /* ensures black keys sit above */
}

.white-key {
  width: 78px;
  height: 90px;
  background: linear-gradient(to bottom, #ffffff, #eaeaea);
  border-right: 1px solid #bbb;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.45rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111;
  font-weight: 600;
  transition: all 150ms ease-out;
  position: relative;
  z-index: 1; /* ensures hover doesn't overlap black keys */
}

.white-key:last-child {
  border-right: none;
}

/* Gold highlight bar under active key */
.white-key.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 0 0 4px 4px;
}

.white-key:hover {
  background: linear-gradient(to bottom, #fff, #f5e8c8);
  transform: translateY(1px);
}

/* Black keys (C#, D#, F#, G#, A#) */
.black-keys {
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 2; /* black keys ABOVE white keys */
}

.black-key {
  position: absolute;
  width: 38px;
  height: 55px;
  background: #000;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}

/* Accurate black key positions */
.key-cs { left: 55px; }
.key-ds { left: 130px; }
.key-fs { left: 280px; }
.key-gs { left: 355px; }
.key-as { left: 430px; }

/* Responsive */
@media (max-width: 900px) {
  .white-key {
    width: 60px;
    height: 75px;
  }
  .black-key {
    width: 30px;
    height: 45px;
  }
  .key-cs { left: 42px; }
  .key-ds { left: 100px; }
  .key-fs { left: 215px; }
  .key-gs { left: 270px; }
  .key-as { left: 325px; }
}