/* Brooklyn Saxophone Studio — static site styles */

:root {
  --color-page: #ffffff;
  --color-surface: #f2f2f0;
  --color-fg: #1d1f25;
  --color-fg-alt: #fdfdfd;
  --color-accent: #0d1670;
  --color-accent-secondary: #ac5039;
  --color-bg-inv: #1e1e1e;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 1100px;
}

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

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

body {
  margin: 0;
  background-color: var(--color-page);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

blockquote {
  margin: 0;
}

a {
  color: var(--color-accent);
}

a:hover {
  text-decoration: none;
}

.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.125rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.375rem;
}

h5 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1.25em;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-fg-alt);
  color: var(--color-fg);
  padding: 0.75em 1.25em;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  background-color: var(--color-page);
  border-bottom: 1px solid rgba(29, 31, 37, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.site-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-fg);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-title:hover {
  color: var(--color-accent);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--color-fg);
  text-decoration: none;
  font-weight: 500;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
}

@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: 1px solid rgba(29, 31, 37, 0.2);
    border-radius: 6px;
    cursor: pointer;
  }

  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-fg);
    position: relative;
  }

  .nav-toggle span::before {
    position: absolute;
    top: -6px;
  }

  .nav-toggle span::after {
    position: absolute;
    top: 6px;
  }

  .primary-nav {
    display: none;
    width: 100%;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 1rem;
  }

  .primary-nav li {
    border-top: 1px solid rgba(29, 31, 37, 0.08);
  }

  .primary-nav a {
    display: block;
    padding: 0.85rem 0;
  }

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

/* Hero / cover */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem;
  color: var(--color-fg-alt);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 34%;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.62);
  z-index: 1;
}

.hero--solid {
  min-height: 220px;
  background-color: var(--color-bg-inv);
}

.hero--solid::before {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-content h1 {
  margin-bottom: 0;
}

.hero-content .lede {
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-fg-alt);
  text-decoration: none;
  font-weight: 600;
  padding: 0.85em 1.9em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background-color: #131c85;
  color: var(--color-fg-alt);
}

.btn:active {
  transform: scale(0.98);
}

.btn-row {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

/* Sections */
.section {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.section--tight {
  padding-block: 0.5rem 2rem;
}

.lead-heading {
  margin-bottom: 1.75rem;
}

/* Two-column layout */
.columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.columns.columns--reverse {
  grid-template-columns: 1fr 2fr;
}

@media (max-width: 780px) {
  .columns,
  .columns.columns--reverse {
    grid-template-columns: 1fr;
  }

  .columns img {
    max-width: 320px;
    margin-inline: auto;
  }
}

.columns figure {
  margin: 0;
}

.columns img {
  border-radius: 4px;
}

/* FAQ grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2rem;
}

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

.faq-item h2,
.faq-item h3,
.faq-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* FAQ page — single column list */
.faq-list h2 {
  margin-top: 0;
}

.faq-entry {
  padding-block: 1.5rem;
  border-bottom: 1px solid rgba(29, 31, 37, 0.12);
}

.faq-entry:first-of-type {
  border-top: 1px solid rgba(29, 31, 37, 0.12);
}

.faq-entry h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.faq-entry p {
  margin-bottom: 0;
}

/* Testimonials */
.testimonial-list {
  display: flex;
  flex-direction: column;
}

.testimonial-card {
  background-color: var(--color-page);
  border: 1px solid rgba(29, 31, 37, 0.12);
  border-left: 3px solid var(--color-accent);
  padding: 1.5rem 1.75rem;
  border-radius: 4px;
  margin-block: 1.5rem;
}

/* Standalone quote cards on the home page (not the Testimonials page's list) get extra breathing room */
.wrap.section > .testimonial-card {
  margin-block: 3.5rem;
}

.testimonial-card p {
  margin-bottom: 0.75rem;
  font-style: italic;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
}

.testimonial-photo {
  max-width: 320px;
  margin: 2.5rem auto 0;
}

.testimonial-photo img {
  border-radius: 4px;
}

/* Video embed */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 1rem auto 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact */
.contact-block {
  max-width: 560px;
  margin: 2.5rem auto 0;
}

.contact-block a {
  font-weight: 600;
}

.contact-form {
  margin-top: 1.5rem;
}

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

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--color-fg);
  background-color: var(--color-fg-alt);
  border: 1px solid rgba(29, 31, 37, 0.25);
  border-radius: 6px;
  padding: 0.7em 0.9em;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-row textarea {
  resize: vertical;
}

.hidden-field {
  display: none;
}

.form-status {
  margin: 0.9rem 0 0;
  font-weight: 600;
  min-height: 1.5em;
}

.form-status[data-state="error"] {
  color: var(--color-accent-secondary);
}


/* Footer */
.site-footer {
  background-color: var(--color-bg-inv);
  color: var(--color-fg-alt);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.site-footer .wrap {
  padding-block: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--color-fg-alt);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent-secondary);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  margin: 0;
  padding: 0;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.75;
}
