/* Aslanyan's Piano Tuning — shared stylesheet
   Dark charcoal / warm black, muted champagne gold, ivory serif type. */

:root {
  --black: #0d0b09;
  --charcoal: #1a1613;
  --gold: #c8a96a;
  --gold-deep: #a88a4e;
  --gold-line: rgba(200, 169, 106, 0.55);
  --ivory: #f2ebdb;
  --ivory-soft: #e4dcc9;
  --bg-tint: 0.35;
  /* Space between logo and tagline. Negative values pull the tagline closer
     (useful if logo.png has transparent padding around it). */
  --logo-gap: -0.5rem;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Approved background, kept subdued so the foreground leads */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--black);
  /* Background shown at its original brightness; only a light tint sits under the text.
     Set --bg-tint to 0 to remove the tint completely. */
  background-image:
    linear-gradient(90deg, rgba(13, 11, 9, var(--bg-tint)) 0%, rgba(13, 11, 9, 0) 70%),
    url("../images/background.jpg");
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
}

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

a { color: inherit; }

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Layout: content sits left of centre on wide screens so the piano stays visible */
.page {
  width: min(100% - 2rem, 62rem);
  margin-left: clamp(1rem, 7vw, 6rem);
  padding: 2.25rem 0 2.5rem;
}

/* Header */
.site-header { text-align: center; }

.logo { display: block; line-height: 0; }
.logo img {
  width: clamp(240px, 38vw, 440px);
  margin-inline: auto;
}

.tagline {
  margin: var(--logo-gap) auto 1.25rem;
  max-width: 40rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  color: var(--ivory);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.tagline em { display: block; color: var(--gold); }

/* Navigation */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  background: rgba(13, 11, 9, 0.55);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover { background: rgba(200, 169, 106, 0.16); border-color: var(--gold); }

.site-nav a[aria-current="page"] {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  border-color: var(--gold);
  color: #17120c;
  font-weight: 600;
}

/* Plain icons: stroke follows text colour, no filters */
.icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-nav .icon { color: var(--gold); }
.site-nav a[aria-current="page"] .icon { color: #17120c; }

/* Profile: float-based wrap */
.profile {
  display: flow-root;
  margin-top: 2.5rem;
}

.portrait {
  float: left;
  width: clamp(220px, 31%, 320px);
  margin: 0 2rem 1rem 0;
  border: 1px solid var(--gold);
  border-radius: 14px;
  overflow: hidden;
  background: var(--charcoal);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}
.portrait img { width: 100%; }

.bio { text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65); }

.bio h1 {
  position: relative;
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--gold);
}
.bio h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-line), rgba(200, 169, 106, 0));
}

.bio p {
  margin: 0 0 0.85rem;
  max-width: 38rem;
  color: var(--ivory);
}

/* Wide screens: keep the text as a column beside the photo with the gold divider */
@media (min-width: 900px) {
  .bio {
    overflow: hidden;
    padding-left: 2rem;
    border-left: 1px solid var(--gold-line);
    min-height: 100%;
  }
}

/* Contact */
.contact {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gold-line);
  text-align: center;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 0;
}

.contact-list li + li {
  margin-left: 2rem;
  padding-left: 2rem;
  border-left: 1px solid var(--gold-line);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.contact-link:hover { color: var(--gold); }
.contact-link .icon { color: var(--gold); width: 1.9rem; height: 1.9rem; }

.contact-phone { white-space: nowrap; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.1; }
.contact-email { font-size: clamp(1.1rem, 2.4vw, 1.6rem); }

.experience {
  margin: 1.5rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--gold);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Tuning & Repair page: same header and footer, new background, text on a dark panel */
body.page-tuning-repair::before {
  background-image:
    linear-gradient(180deg, rgba(13, 11, 9, 0.45) 0%, rgba(13, 11, 9, 0.60) 100%),
    url("../images/tuning-repair-background.jpg");
  background-position: center;
}

.page-tuning-repair .site-nav,
.page-player-piano .site-nav { margin-top: 1.5rem; }

.page-title {
  margin: 2.25rem 0 1.25rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.panel {
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: rgba(13, 11, 9, 0.82);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.panel h2 {
  margin: 0 0 0.9rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  color: var(--ivory);
}

.panel section + section {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gold-line);
}

.panel p {
  margin: 0 0 1rem;
  color: var(--ivory);
}
.panel p:last-child { margin-bottom: 0; }

.page-tuning-repair .contact,
.page-player-piano .contact {
  margin-top: 2rem;
  padding: 1.25rem 1rem;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: rgba(13, 11, 9, 0.82);
}

/* Player Pianos page: uses the homepage background; text and media sit on dark panels */
.page-player-piano .panel + .panel,
.page-player-piano .panel + .systems,
.page-player-piano .systems + .panel { margin-top: 1.5rem; }

.intro { display: flow-root; }
.intro h2 { margin-bottom: 1.1rem; }

.intro-photo {
  float: right;
  width: clamp(200px, 38%, 340px);
  margin: 0 0 1rem 1.75rem;
  border: 1px solid var(--gold);
  border-radius: 12px;
  overflow: hidden;
  background: var(--charcoal);
}
.intro-photo img { width: 100%; }

.systems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.page-player-piano .systems .panel + .panel { margin-top: 0; }

.system-card { display: flex; flex-direction: column; text-align: center; }
.system-text { margin-bottom: 1.25rem; text-align: left; }
.system-card figure { margin-top: auto; }
.system-logo { margin: 0 0 1.25rem; }
.system-logo img {
  height: clamp(70px, 9vw, 100px);
  width: auto;
  margin-inline: auto;
}
.system-card figure {
  margin: auto 0 0;
  border: 1px solid var(--gold);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.system-card figure { aspect-ratio: 4 / 3; }
.system-card figure img { width: 100%; height: 100%; object-fit: cover; }
.system-card:last-child figure img { object-position: center 75%; }

.music h2 { margin-bottom: 1.5rem; color: var(--gold); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.25rem;
}

.video-card { margin: 0; }
.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  border: 1px solid var(--gold);
  border-radius: 12px;
}
.video-card figcaption {
  margin-top: 0.6rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ivory);
}

/* Tablet */
@media (max-width: 899px) {
  .page { margin-inline: auto; }
  .portrait { width: clamp(200px, 38%, 300px); }
}

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

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .page { padding-top: 1.5rem; }

  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav li { display: flex; }
  .site-nav a { flex: 1; justify-content: center; }

  .portrait {
    float: none;
    width: min(100%, 320px);
    margin: 0 auto 1.5rem;
  }

  .bio h1 { text-align: center; }

  .contact-list { flex-direction: column; }
  .contact-list li + li { margin-left: 0; padding-left: 0; border-left: 0; }

  .intro-photo { float: none; width: 100%; margin: 0 0 1rem; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0.9rem; }
  .video-card figcaption { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
