@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Open+Sans:wght@400;500;600;700&display=swap");

:root {
  --paper: #f7f3ea;
  --ink: #2c2a26;
  --stone: #6a665c;
  --sage-deep: #2f4a3e;
  --gold-mute: #c6a46e;
  --surface: #ffffff;
  --max-width: 1080px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body:
    "Open Sans", Seravek, "Gill Sans Nova", Ubuntu, "DejaVu Sans",
    source-sans-pro, sans-serif;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  padding: 1.25rem 0;
  background-color: var(--paper);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 10;
}
nav.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-link img {
  height: 2rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: 500;
  color: var(--stone);
  letter-spacing: 0.01em;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-toggle {
  display: none;
}
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    padding: 0.5rem 0;
    z-index: 20;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 1.5rem 1.5rem;
    display: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 15;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }
  .nav-links.active {
    display: flex;
  }
  .container {
    padding: 0 1.5rem;
  }
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 78vh;
  align-items: end;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/hero.webp") center bottom/cover no-repeat;
  opacity: 0.95;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgb(247, 243, 234) 25%,
    rgba(247, 243, 234, 0.5) 55%,
    transparent 78%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  grid-column: 1;
  width: 100%;
  padding: 6rem 2rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  margin-bottom: 0.75rem;
}
.lead {
  font-size: 1.1rem;
  color: var(--stone);
  max-width: 50ch;
}
.cta-group {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  font: inherit;
  border: none;
  cursor: pointer;
  padding: 0.8rem 1.4rem;
  font-weight: 600;
  border-radius: 8px;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-primary {
  background: var(--sage-deep);
  color: #fff;
}
.btn-primary:hover {
  background: #23342b;
}
.btn-classy {
  border: 3px solid var(--gold-mute);
  color: var(--gold-mute);
  background: transparent;
  margin-top: 0.75rem;
}
.btn-classy:hover {
  background: var(--gold-mute);
  color: #fff;
}

@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
  }
  .hero-content {
    padding: 4rem 1.5rem 3rem;
  }
  .hero::after {
    background: linear-gradient(
      0deg,
      rgb(247, 243, 234) 20%,
      rgba(247, 243, 234, 0.5) 50%,
      transparent 78%
    );
  }
}

/* Editorial two column */
.editorial {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 5rem 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.editorial h2 {
  font-size: 2rem;
}
.promise-note {
  background: var(--surface);
  border-left: 3px solid var(--gold-mute);
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--stone);
}
@media (max-width: 768px) {
  .editorial {
    grid-template-columns: 1fr;
    padding: 3rem 1rem;
  }
}

/* Schedule timeline */
.schedule {
  margin-bottom: 6rem;
  padding: 3rem 3rem 2rem;
  background: var(--surface);
  border: 3px solid var(--gold-mute);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 24px;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.day {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.day h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--stone);
}
.day p {
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .schedule {
    padding: 3rem 1.5rem 2rem;
    margin: 0 1rem;
    margin-bottom: 4rem;
  }
}

/* Testimonials */
.testimonials-wrapper {
  background-color: var(--sage-deep);
  padding: 4rem 0;
}

.testimonials .section-title {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
  color: var(--surface);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}
.testimonials .section-lead {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin-bottom: 0.5rem;
  max-width: 55ch;
}
.testimonial-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.testimonial {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}
.testimonial blockquote::before {
  content: "\201C";
  display: block;
  font-size: 2.75rem;
  line-height: 0.6;
  color: var(--gold-mute);
  margin-bottom: 0.75rem;
}
.testimonial cite {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.testimonial cite span {
  display: block;
  font-weight: 400;
  color: var(--stone);
}
@media (max-width: 768px) {
  .testimonials {
    padding: 3rem 1.5rem;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.services {
  padding-top: 0;
  padding-bottom: 4rem;
}
.services-list {
  list-style: none;
  margin-top: 2rem;
}
.services-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.services-list li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
}
.services-list li p {
  color: var(--stone);
  max-width: 65ch;
}
.services-list li.featured {
  background: var(--surface);
  padding: 1.5rem;
  margin: 1rem -1.5rem;
  padding-left: 1.5rem;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .services-list li.featured {
    margin: 1rem 0;
  }
}

/* Footer */
footer {
  padding: 3rem 0;
  margin-top: 4rem;
  background: var(--surface);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--stone);
}
.link-slate {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: start;
}
.about-portrait img {
  width: 100%;
  height: auto;
  /* border: 1px solid rgba(0, 0, 0, 0.08); */
  border-radius: 12px;
}
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

/* Accessibility focus */
:focus-visible {
  outline: 2px solid var(--gold-mute);
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}

/* Newsletter form */
.newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.newsletter-form label {
  font-weight: 600;
  font-size: 0.95rem;
}
.newsletter-form input[type="email"] {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(44, 42, 38, 0.4);
}
.newsletter-form button {
  font: inherit;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}

/* Private class booking form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.form-group input,
.form-group select,
.form-group textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(44, 42, 38, 0.4);
}
.form-group textarea {
  min-height: 5rem;
  resize: vertical;
}
.form-terms {
  font-size: 0.85rem;
  color: var(--stone);
  line-height: 1.5;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.form-terms p + p {
  margin-top: 0.5rem;
}

/* Form status lines (newsletter + owner + booking) */
.form-status {
  font-size: 0.95rem;
}
.form-status.success {
  color: var(--sage-deep);
  font-weight: 500;
}
.form-status.neutral {
  color: var(--stone);
}
.form-status.error {
  color: #9d4f2f;
  font-weight: 500;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.owner-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.owner-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 2rem;
}
.owner-card h1 {
  font-size: 1.9rem;
}
.owner-lede {
  color: var(--stone);
  margin-bottom: 1.5rem;
}
.owner-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 360px;
}
.owner-form label {
  font-weight: 600;
  font-size: 0.95rem;
}
.owner-form input[type="password"] {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
}
.btn-outline {
  border: 1px solid var(--sage-deep);
  color: var(--sage-deep);
  background: transparent;
}
.btn-outline:hover {
  background: var(--sage-deep);
  color: #fff;
}
.owner-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.owner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.owner-table th {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--stone);
  border-bottom: 2px solid var(--ink);
  padding: 0 0.75rem 0.5rem;
}
.owner-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.6rem 0.75rem;
}
.owner-empty {
  color: var(--stone);
}
@media (max-width: 768px) {
  .owner-main {
    padding: 3rem 1.5rem;
  }
  .owner-card {
    padding: 1.5rem;
  }
  .owner-actions .btn {
    width: 100%;
    text-align: center;
  }
}
