/*
Theme Name: MRK Music
Theme URI: https://hittemrk.com/
Author: Hit the MRK, S.L.
Description: A warm, editorial WordPress theme for MRK Music's personalised guitar lessons.
Version: 1.0.3
Text Domain: mrk-music
*/

:root {
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --charcoal: #2d2724;
  --coffee: #4a3429;
  --gold: #e8a62b;
  --gold-dark: #b8740d;
  --line: #ded7ce;
  --muted: #746b65;
  --white: #ffffff;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1240px;
  --measure: 720px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow: 0 22px 60px rgba(45, 39, 36, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--gold-dark); }

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

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 { font-size: clamp(3.2rem, 7.7vw, 7.5rem); }
h2 { font-size: clamp(2.35rem, 4.4vw, 4.8rem); }
h3 { font-size: clamp(1.55rem, 2.1vw, 2.1rem); }

p { margin: 0 0 1.25em; }

::selection {
  background: var(--gold);
  color: var(--charcoal);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: var(--charcoal);
  color: var(--white);
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), var(--measure));
  margin-inline: auto;
}

.section {
  padding-block: clamp(82px, 10vw, 150px);
}

.section--compact { padding-block: clamp(58px, 7vw, 96px); }
.section--cream { background: var(--cream); }
.section--dark { background: var(--charcoal); color: var(--cream); }

.eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section--dark .eyebrow { color: var(--gold); }

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.section--dark .lede { color: rgba(247, 243, 236, 0.74); }

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 13px 23px;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius-sm);
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--coffee);
  color: var(--white);
}

.button--gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--charcoal);
}

.button--gold:hover {
  background: #f0b84e;
  color: var(--charcoal);
}

.button--outline {
  background: transparent;
  color: var(--charcoal);
}

.button--outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.text-link {
  font-size: 0.94rem;
  font-weight: 750;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(45, 39, 36, 0.1);
  background: rgba(255, 253, 249, 0.93);
  backdrop-filter: blur(16px);
}

.admin-bar .site-header { top: 32px; }

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--charcoal);
  text-decoration: none;
}

.brand:hover { color: var(--charcoal); }

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  font-family: var(--display);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.custom-logo-link img {
  width: auto;
  max-height: 52px;
}

.header-actions,
.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.primary-nav a {
  font-size: 0.89rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav .current-menu-item > a { color: var(--gold-dark); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--charcoal);
  content: "";
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  transition: opacity 160ms ease, transform 160ms ease;
}

.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  overflow: hidden;
  background: var(--cream);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 243, 236, 0.99) 0%, rgba(247, 243, 236, 0.96) 36%, rgba(247, 243, 236, 0.22) 68%, rgba(247, 243, 236, 0) 100%);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100vh - 82px);
  align-items: center;
  padding-block: 80px;
}

.hero-copy { max-width: 780px; }

.hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
}

.hero .lede {
  max-width: 650px;
  margin-bottom: 36px;
  color: var(--coffee);
}

.hero-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.manifesto {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.manifesto-copy p {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.4vw, 3.7rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.manifesto-copy p:last-child { margin-bottom: 0; }

.editorial-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(42px, 8vw, 110px);
  align-items: center;
}

.editorial-grid--reverse { grid-template-columns: 1.12fr 0.88fr; }

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #d8d0c5;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.photo-card__note {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(45, 39, 36, 0.86);
  color: var(--white);
  font-size: 0.68rem;
  line-height: 1.35;
}

.tick-list,
.plain-list {
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}

.tick-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 30px;
}

.tick-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.plain-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  margin-top: 52px;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--charcoal);
}

.card__number {
  display: block;
  margin-bottom: 34px;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

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

.steps {
  display: grid;
  margin-top: 58px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(247, 243, 236, 0.2);
}

.step {
  padding: 40px;
  background: var(--charcoal);
}

.step .card__number { color: var(--gold); }
.step p { color: rgba(247, 243, 236, 0.73); }

.band {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.band-inner {
  display: flex;
  width: max-content;
  padding: 18px 0;
  gap: 46px;
  animation: drift 38s linear infinite;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.band-inner span::before {
  margin-right: 46px;
  color: var(--gold);
  content: "●";
}

@keyframes drift {
  to { transform: translateX(-50%); }
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.fact {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}

.fact:last-child { border-right: 0; }

.fact strong {
  display: block;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
}

.fact span {
  color: var(--muted);
  font-size: 0.78rem;
}

.fit-grid {
  display: grid;
  margin-top: 48px;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.fit-card {
  padding: clamp(30px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.fit-card--dark { background: var(--coffee); color: var(--cream); }
.fit-card--dark p { color: rgba(247, 243, 236, 0.74); }

.price-grid {
  display: grid;
  margin-top: 48px;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.price {
  padding: 30px 22px;
  border: 1px solid rgba(247, 243, 236, 0.2);
  border-radius: 16px;
}

.price span {
  display: block;
  color: rgba(247, 243, 236, 0.65);
  font-size: 0.78rem;
}

.price strong {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
}

.pricing-note {
  margin: 26px 0 0;
  color: rgba(247, 243, 236, 0.65);
  font-size: 0.84rem;
}

.faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  border-top: 1px solid var(--line);
}

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

.faq-item summary {
  position: relative;
  padding: 25px 48px 25px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.25;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  position: absolute;
  top: 24px;
  right: 4px;
  color: var(--gold-dark);
  content: "+";
}

.faq-item[open] summary::after { content: "−"; }

.faq-answer {
  max-width: 760px;
  padding: 0 0 26px;
  color: var(--muted);
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 100px);
  border-radius: var(--radius-lg);
  background: var(--gold);
}

.cta-panel::after {
  position: absolute;
  top: -150px;
  right: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(45, 39, 36, 0.24);
  border-radius: 50%;
  content: "";
}

.cta-panel__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.page-hero {
  padding-block: clamp(88px, 12vw, 170px) clamp(70px, 9vw, 120px);
  background: var(--cream);
}

.page-hero h1 {
  max-width: 1000px;
  font-size: clamp(3.3rem, 7vw, 6.8rem);
}

.page-hero .lede { margin-bottom: 0; }

.content-body {
  width: min(calc(100% - 40px), 800px);
  margin-inline: auto;
}

.content-body h2 { margin-top: 1.3em; }
.content-body h3 { margin-top: 1.8em; }

.lesson-topics {
  display: grid;
  margin-top: 46px;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.topic {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.topic strong { display: block; }
.topic span { color: var(--muted); font-size: 0.87rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(50px, 8vw, 110px);
}

.contact-form {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #c9c1b8;
  border-radius: 9px;
  background: var(--white);
  color: var(--charcoal);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold-dark);
  outline: 3px solid rgba(232, 166, 43, 0.2);
}

.notice {
  margin-bottom: 24px;
  padding: 13px 16px;
  border-radius: 10px;
  background: #e8f2e8;
  color: #234423;
}

.notice--error { background: #f8e3df; color: #6b2922; }

.booking-shell {
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.booking-shell iframe {
  width: 100%;
  min-height: 700px;
  border: 0;
}

.booking-placeholder {
  display: grid;
  min-height: 560px;
  padding: 50px;
  place-content: center;
  text-align: center;
}

.legal {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 70px 0 28px;
  background: var(--charcoal);
  color: var(--cream);
}

.footer-grid {
  display: grid;
  padding-bottom: 58px;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 50px;
}

/* Uploaded logo displayed in the footer */
.footer-logo {
  display: block;
  margin-bottom: 28px;
}

.footer-logo .custom-logo-link {
  display: block;
  width: fit-content;
}

.footer-logo .custom-logo-link img {
  display: block;
  width: auto;
  max-height: 64px;
  filter: brightness(0) saturate(100%) invert(1);
}

.footer-brand p {
  max-width: 470px;
  color: rgba(247, 243, 236, 0.64);
}

.footer-title {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.footer-nav li { margin: 8px 0; }
.footer-nav a { text-decoration: none; }

.footer-bottom {
  display: flex;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 243, 236, 0.16);
  justify-content: space-between;
  gap: 24px;
  color: rgba(247, 243, 236, 0.5);
  font-size: 0.75rem;
}

.footer-bottom p { margin: 0; }

@media (max-width: 1000px) {
  .primary-nav,
  .header-actions > .button { display: none; }

  .menu-toggle { display: block; }

  body.menu-open .site-header {
    background: var(--paper);
    backdrop-filter: none;
  }

  .primary-nav.is-open {
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    display: grid;
    width: 100%;
    height: calc(100dvh - 82px);
    padding: clamp(28px, 6vw, 54px) 20px;
    overflow-y: auto;
    align-content: start;
    background: var(--paper);
    box-shadow: 0 18px 44px rgba(45, 39, 36, 0.08);
    overscroll-behavior: contain;
  }

  .primary-nav.is-open ul {
    display: grid;
    width: min(100%, 640px);
    margin: 0 auto;
    padding: 0;
    gap: 0;
  }

  .primary-nav.is-open li {
    margin: 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.is-open li a {
    display: block;
    padding: 19px 2px;
    font-family: var(--display);
    font-size: clamp(1.8rem, 6vw, 2.7rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .primary-nav.is-open .mobile-book {
    display: flex;
    width: min(100%, 640px);
    min-height: 58px;
    margin: 30px auto 0;
    padding: 14px 22px;
    font-family: var(--sans);
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: 0;
  }

  .cards,
  .steps { grid-template-columns: 1fr; }

  .manifesto,
  .editorial-grid,
  .editorial-grid--reverse,
  .contact-grid { grid-template-columns: 1fr; }

  .price-grid,
  .facts { grid-template-columns: repeat(2, 1fr); }

  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

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

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container,
  .narrow,
  .content-body { width: min(calc(100% - 30px), var(--container)); }
  .header-inner { min-height: 72px; }
  .brand-name { font-size: 0.78rem; }
  .admin-bar .site-header { top: 46px; }
  .primary-nav.is-open { height: calc(100dvh - 72px); }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    background: var(--cream);
  }

  .hero-media {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: clamp(280px, 78vw, 420px);
    overflow: hidden;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 69% center;
  }

  .hero-media::after { display: none; }

  .hero-inner {
    display: block;
    min-height: 0;
    order: 1;
    padding-block: 52px 44px;
  }

  .hero .eyebrow {
    margin-bottom: 20px;
    font-size: 0.68rem;
    line-height: 1.5;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 13vw, 4.2rem);
    line-height: 0.98;
  }

  .hero-copy { max-width: none; }

  .hero .lede {
    max-width: none;
    margin-bottom: 28px;
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .hero .button-row {
    display: grid;
    width: 100%;
    gap: 16px;
    justify-items: start;
  }

  .hero .button {
    width: 100%;
    min-height: 58px;
  }

  .hero-note {
    max-width: 34rem;
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.8rem;
  }

  .fit-grid,
  .price-grid,
  .facts,
  .lesson-topics { grid-template-columns: 1fr; }

  .fact {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child { border-bottom: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
