/* Euphonice — static site */

/* Palette: all shades derived from the primary button color (--teal-500) */
:root {
  --teal-50: #e3f0ed;
  --teal-100: #c4ddd6;
  --teal-200: #9fc9bf;
  --teal-300: #6db3a3;
  --teal-400: #2d9484;
  --teal-500: #0a756a;
  --teal-600: #085f55;
  --teal-700: #064d45;
  --teal-800: #053631;
  --teal-900: #031f1c;

  /* Semantic tokens (mapped to teal scale) */
  --color-bg: var(--teal-50);
  --color-surface: var(--teal-50);
  --color-text: var(--teal-800);
  /* Secondary body / placeholder text (teal-leaning) */
  --color-muted: #3b5a55;

  /* Primary CTA = same hue as --teal-500 */
  --color-accent: var(--teal-500);
  --color-accent-hover: var(--teal-600);
  --color-link: var(--teal-600);

  --color-border: #a8c9c0;
  --color-border-strong: #84b0a3;
  --color-shadow: rgba(3, 31, 28, 0.09);
  --color-shadow-deep: rgba(3, 31, 28, 0.15);

  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max-width: 1100px;
  --radius: 8px;
  --header-h: 4rem;

  /* Emphasis (body / hero) */
  --color-emphasis-red: #b91c1c;
}

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

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--teal-100) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0 1.25rem 0 0;
}

/* Brand at the left edge; nav + actions follow with margin-left: auto in .nav-main */
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  margin-right: 0;
  padding-left: 1.25rem;
  cursor: default;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  color: var(--teal-500);
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--teal-900);
  transition: color 0.2s ease;
}
.brand-tagline {
  font-size: 0.75rem;
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.brand:hover .brand-name {
  color: #c41e3a;
}
.brand:hover .brand-tagline {
  color: #c41e3a;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  margin-left: auto;
}

.nav-main a {
  color: var(--teal-800);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}
.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--teal-500);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}
.header-actions a[href^="tel"] {
  color: var(--teal-700);
  white-space: nowrap;
}
.header-actions .btn-inlog {
  color: var(--teal-600);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Page title strip */
.page-hero {
  background: linear-gradient(165deg, var(--teal-100) 0%, var(--teal-50) 55%, var(--teal-50) 100%);
  border-bottom: 1px solid var(--color-border-strong);
  padding: 2.5rem 1.25rem 2rem;
}

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

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--teal-900);
}

.lead {
  margin: 0;
  color: var(--teal-700);
  max-width: 55ch;
  font-size: 1.05rem;
}

/* Breadcrumb */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--teal-600);
}
.breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--teal-400);
  opacity: 0.9;
}
.breadcrumb a {
  color: var(--teal-600);
}
.breadcrumb a:hover {
  color: var(--teal-500);
}

/* Inline emphasis */
.emphasis-red {
  font-weight: 700;
  color: var(--color-emphasis-red);
}

/* Main layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.about-article p {
  margin: 0 auto 1.1rem;
  color: var(--teal-800);
  line-height: 1.65;
  max-width: 68ch;
  text-align: center;
}
.about-article p:last-of-type {
  margin-bottom: 0;
}
.about-article p.about-tagline {
  margin-top: 1.75rem;
  margin-bottom: 0;
  max-width: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--teal-700);
  letter-spacing: 0.02em;
}

/* Contact grid */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 2px 8px var(--color-shadow);
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--teal-800);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.contact-details dt {
  font-weight: 600;
  color: var(--teal-600);
  margin-top: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-details dt:first-of-type {
  margin-top: 0;
}
.contact-details dd {
  margin: 0.25rem 0 0;
  color: var(--teal-800);
}

.route-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Form */
.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--teal-800);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--teal-800);
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: 6px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--teal-400);
  border-color: var(--teal-300);
  background: var(--teal-50);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px var(--color-shadow-deep);
}
.btn:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 2px;
}

/* Locations */
.locations-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.locations-section h2 {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  color: var(--teal-900);
}

.location-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .location-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.location-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--teal-600);
}

.location-card p {
  margin: 0;
  color: var(--teal-700);
  font-size: 0.95rem;
}

/* Home — split banner (image + headline) */
.home-banner {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-strong);
  box-shadow: 0 4px 24px var(--color-shadow);
}

.home-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(70vh, 52rem);
  width: 100%;
  max-width: 100%;
  margin: 0;
}

@media (min-width: 900px) {
  .home-banner-grid {
    grid-template-columns: 1fr 1fr;
    min-height: min(75vh, 40rem);
  }
}

.home-banner-image,
.home-banner-content {
  min-width: 0;
}

.home-banner-image {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
}

.home-banner-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-banner-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2.25rem 1.5rem 2.5rem;
  max-width: 100%;
  min-height: 0;
  background: linear-gradient(135deg, var(--teal-50) 0%, var(--teal-100) 50%, var(--teal-200) 100%);
}
.home-banner-text {
  width: 100%;
  max-width: 32rem;
  text-align: left;
}

@media (min-width: 900px) {
  .home-banner-content {
    padding: 2.5rem 2.25rem 2.5rem 2.25rem;
    gap: 1.75rem;
  }
}

.home-banner-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 4.2vw + 0.5rem, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--teal-900);
}

.home-banner-lead {
  margin: 0;
  max-width: 40ch;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--teal-700);
}

.home-banner-lead a {
  color: var(--teal-500);
  font-weight: 600;
}
.home-banner-lead a:hover {
  color: var(--teal-600);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.home-banner .cta-row {
  margin-top: 1.75rem;
  justify-content: flex-start;
}
.btn-secondary {
  background: var(--teal-50);
  border: 1px solid var(--teal-400);
  color: var(--teal-700);
  box-shadow: 0 1px 3px var(--color-shadow);
}
.btn-secondary:hover {
  background: var(--teal-100);
  border-color: var(--teal-500);
  color: var(--teal-800);
  text-decoration: none;
}

.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  gap: 1.5rem;
  background: linear-gradient(
    180deg,
    var(--teal-100) 0%,
    var(--teal-50) 100%
  );
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
}
@media (min-width: 700px) {
  .features {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}
.feature {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--teal-50);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 4px var(--color-shadow);
}
.feature h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--teal-800);
}
.feature p {
  margin: 0;
  color: var(--teal-700);
  font-size: 0.95rem;
}

/* Course level links (home) */
.feature-levels {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.feature-levels li {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 15rem;
}
.offering-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--teal-600);
  text-decoration: none;
}
.offering-illu {
  flex-shrink: 0;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.offering-link:hover {
  color: var(--teal-500);
  text-decoration: underline;
}
.offering-link:hover .offering-illu {
  opacity: 0.92;
}

/* Home: course offerings centered in the text column (beside hero image) */
.home-banner .features--center {
  position: static;
  z-index: 1;
  max-width: 16.5rem;
  width: min(16.5rem, 100%);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.home-banner .features--center .feature--offerings-card {
  text-align: left;
  margin: 0;
  padding: 0.8rem 0.95rem 0.9rem;
  background: var(--teal-50);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 14px var(--color-shadow);
  border-radius: var(--radius);
}
.offerings-details__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.offerings-details__summary::-webkit-details-marker {
  display: none;
}
.offerings-details__summary::marker {
  content: none;
}
.offerings-details__summary::after {
  content: "▶";
  flex-shrink: 0;
  font-size: 0.5rem;
  line-height: 1;
  color: var(--teal-600);
  opacity: 0.9;
  transform: scaleY(0.9);
}
details[open] > .offerings-details__summary::after {
  content: "▼";
}
.feature-heading-ruled {
  margin: 0 0 0.5rem;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-800);
  line-height: 1.2;
  border-bottom: 2px solid var(--teal-500);
  padding-bottom: 0.4rem;
  box-sizing: border-box;
}
summary.feature-heading-ruled {
  margin-bottom: 0;
}
details[open] > summary.feature-heading-ruled {
  margin-bottom: 0.5rem;
}
.features--center .feature-levels--corner,
.home-banner .features--center .feature-levels {
  margin: 0.15rem 0 0;
  align-items: stretch;
  gap: 0.32rem;
}
.home-banner .features--center .feature-levels li {
  max-width: none;
  width: 100%;
  justify-content: flex-start;
}
.home-banner .features--center .offering-link {
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 0.9rem;
}
.home-banner .features--center .offering-illu {
  margin-top: 0.1rem;
}

/* Anchor targets on Courses page (sticky header offset) */
.course-level {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}
.course-level__head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.course-level__illu {
  flex-shrink: 0;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 14px;
}
.card.course-level .course-level__head h2 {
  margin: 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
  min-width: 0;
  line-height: 1.25;
}
#conversation .course-level__head h2 {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
}
#beginner .course-level__head h2,
#intermediate .course-level__head h2 {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}

/* Course syllabus (Beginner, etc.) */
.syllabus-intro {
  margin: 0 0 1.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 48ch;
  text-align: center;
  line-height: 1.6;
  color: var(--teal-800);
}
.syllabus-goal {
  font-weight: 600;
  color: var(--teal-900);
}
.syllabus-module {
  margin: 1.5rem 0 0;
}
.syllabus-module:first-of-type {
  margin-top: 1rem;
}
details.syllabus-module {
  border: none;
  padding: 0;
  background: transparent;
}
h3.syllabus-module__title,
summary.syllabus-module__title {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-700);
}
summary.syllabus-module__title {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  user-select: none;
  min-height: 2.5rem;
  max-width: 100%;
  padding: 0.25rem 1.4rem 0.5rem;
  line-height: 1.3;
  box-sizing: border-box;
  position: relative;
}
summary.syllabus-module__title::-webkit-details-marker {
  display: none;
}
summary.syllabus-module__title::marker {
  content: none;
}
summary.syllabus-module__title::after {
  content: "▶";
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -0.25em;
  font-size: 0.55rem;
  line-height: 1;
  color: var(--teal-600);
  opacity: 0.9;
}
details[open] > summary.syllabus-module__title::after {
  content: "▼";
}
details.syllabus-module .syllabus-table-wrap {
  margin-top: 0.35rem;
}
.syllabus-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
}
.syllabus-table {
  width: 100%;
  min-width: 20rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.syllabus-table th,
.syllabus-table td {
  border: 1px solid var(--color-border-strong);
  padding: 0.65rem 0.5rem;
  text-align: center;
  vertical-align: middle;
  color: var(--teal-800);
  hyphens: auto;
  -webkit-hyphens: auto;
}
.syllabus-table th {
  background: var(--teal-100);
  color: var(--teal-900);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--color-border-strong);
  text-align: center;
  font-size: 0.88rem;
  color: var(--teal-700);
  background: linear-gradient(180deg, var(--teal-200) 0%, var(--teal-100) 100%);
}

.site-footer a {
  color: var(--teal-800);
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--teal-500);
}
