/* Hopewood Voice Studio — shared stylesheet */

@font-face {
  font-family: "Alice";
  src: url("/assets/fonts/Alice-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredericka the Great";
  src: url("/assets/fonts/FrederickatheGreat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Handlee";
  src: url("/assets/fonts/Handlee-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #ffe7e7;
  --color-panel-bg: rgba(255, 245, 245, 0.91);
  --color-heading: #e38a8b;
  --color-nav-bg: #de8989;
  --color-nav-text: #f6f6f6;
  --color-text: #000000;
  --font-heading: "Fredericka the Great", cursive, sans-serif;
  --font-body: "Handlee", sans-serif;
  --content-max-width: 972px;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--color-bg);
}

body {
  margin: 0;
  padding: 18px 14px 0;
  background-color: var(--color-panel-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 24px;
  line-height: 1.25;
}

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

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

.page {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 0 20px;
}

.site-header__logo-link {
  display: block;
  flex: 0 0 auto;
}

.site-header__logo {
  width: 309px;
  height: auto;
}

.site-header--compact {
  align-items: center;
  padding: 20px 0;
}

.site-header--compact .site-header__logo {
  width: 232px;
}

.site-header__side {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 260px;
}

/* Home page: nav is its own full-width bar above the logo row */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 20px 0;
}

/* Subpages: nav sits beside the logo, right-aligned, wraps in place */
.site-header--compact .site-nav {
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-width: 260px;
}

.site-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-nav-bg);
  color: var(--color-nav-text);
  border-radius: 10px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 24px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.61);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav__link:hover {
  background-color: #f5eeee;
  color: #bf7374;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.61);
}

.site-nav__link.is-active {
  font-weight: 700;
}

/* ---------- Headings ---------- */

h1,
h2,
.heading {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 600;
  text-align: center;
  margin: 0;
  font-size: 44.7px;
}

.section-title {
  padding: 20px 0;
}

/* ---------- Home page ---------- */

.hero__services {
  list-style: disc;
  padding-left: 40px;
  margin: 36px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__services li {
  color: #e28a8b;
  font-family: "Alice", sans-serif;
  font-weight: 600;
  font-size: 36px;
  text-shadow: 1px 1px 1px #000;
}

.intro {
  padding: 20px 0;
}

.intro p {
  margin: 0;
}

.giving-wings {
  margin: 24px 0 0;
}

.giving-wings img {
  width: 100%;
  height: auto;
}

.split-section {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  flex-wrap: wrap;
}

.split-section__text {
  flex: 1 1 320px;
}

.split-section__media {
  flex: 1 1 320px;
}

.split-section__media img {
  width: 100%;
  height: auto;
}

.split-section--reverse {
  flex-direction: row-reverse;
}

.audio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.audio-row img {
  width: 28px;
  height: 40px;
}

.audio-row audio {
  flex: 1 1 auto;
  min-width: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.site-footer__social {
  display: flex;
  gap: 16px;
}

.site-footer__social img {
  width: 40px;
  height: 40px;
}

.site-footer__copyright {
  margin-left: auto;
  font-size: 16px;
  color: #000;
}

/* ---------- About page ---------- */

.story {
  padding: 24px 0;
}

.story::after {
  content: "";
  display: table;
  clear: both;
}

.story__portrait {
  float: right;
  width: 45%;
  max-width: 450px;
  margin: 0 0 20px 24px;
}

.story__portrait img {
  width: 100%;
  height: auto;
}

.story__text {
  font-size: 24px;
  line-height: 1.35;
}

/* ---------- Teaching philosophy page ---------- */

.philosophy {
  padding: 24px 0;
  font-size: 24px;
  line-height: 1.35;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: flex;
  gap: 40px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.contact-grid__col {
  flex: 1 1 400px;
}

.map-container {
  width: 100%;
  max-width: 450px;
}

.map-container iframe {
  width: 100%;
  height: clamp(250px, 100vw, 450px);
  border: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 476px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 20px;
}

.contact-form textarea {
  height: 52px;
}

.contact-form button {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 20px;
  padding: 4px 14px;
  cursor: pointer;
}

#success-message {
  display: none;
  margin-top: 12px;
}

.contact-info {
  margin-top: 24px;
}

.pricing {
  padding: 12px 0 24px;
}

.pricing p {
  font-size: 24px;
  line-height: 1.4;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .site-header {
    justify-content: center;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
    max-width: none;
  }

  h1,
  h2,
  .heading {
    font-size: 34px;
  }

  .hero__services li {
    font-size: 28px;
  }

  body {
    font-size: 20px;
  }

  .story__text,
  .philosophy,
  .pricing p {
    font-size: 20px;
  }

  .split-section--reverse {
    flex-direction: column;
  }
}
