/* TCEC — Thailand Coffee Education Center
 * Static site stylesheet
 * Design language inspired by Melbourne Coffee Academy
 */

/* ----- Design tokens ----- */
:root {
  --brand-green: #5B8B6E;
  --brand-green-dark: #4a7359;
  --brand-green-darker: #3b5d48;
  --brand-navy: #0f5a43;
  --brand-navy-dark: #0a4332;

  --text: #433d37;
  --text-muted: #7b746b;
  --text-soft: #a39b90;
  --bg: #ffffff;
  --bg-alt: #fbfaf6;
  --surface: #f4f1ea;
  --border: #e7dfd4;
  --border-soft: #f1ebe1;

  --max-width: 1180px;
  --max-width-narrow: 880px;
  --gutter: 24px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.06);

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  --header-height: 88px;

  --font-heading: 'Prompt', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Thai', 'Inter', system-ui, sans-serif;
  --font-display: 'Prompt', 'IBM Plex Sans Thai', system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--brand-navy);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand-green);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--brand-navy);
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(1.85rem, 4.5vw, 2.85rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 400; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  margin: 0 0 1em;
  color: var(--text);
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

li { margin-bottom: 0.35em; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow { max-width: var(--max-width-narrow); }

.section {
  padding: 64px 0;
}

.section--lg { padding: 96px 0; }
.section--sm { padding: 40px 0; }
.section--alt { background: var(--bg-alt); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--brand-navy); color: #edf1eb; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #d7e0d5; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header p {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-green);
  font-weight: 500;
  margin-bottom: 0.8em;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-align: center;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: var(--brand-green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-green-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--brand-navy);
  border-color: var(--brand-navy);
}

.btn-outline:hover {
  background: var(--brand-navy);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--brand-navy);
  padding: 12px 0;
}

.btn-ghost:hover { color: var(--brand-green); }

.btn-disabled {
  background: #d8d8d4;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.85;
}

.btn-block { width: 100%; }
.btn-lg { padding: 18px 36px; font-size: 0.82rem; }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-navy);
}

.site-logo img {
  height: 52px;
  width: auto;
}

.site-logo .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-logo .brand-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--brand-navy);
  letter-spacing: 0.02em;
}

.site-logo .brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-family: var(--font-heading);
  color: var(--brand-navy);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand-green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.main-nav a.is-active { color: var(--brand-green); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  color: var(--brand-navy);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-height: 72px; }
  .site-logo img { height: 44px; }
  .site-logo .brand-name { font-size: 0.95rem; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 24px;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--border-soft);
    overflow-y: auto;
    height: calc(100vh - var(--header-height));
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
  }
  .main-nav a::after { display: none; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  background: #1a1a1a;
  color: #fff;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.55);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 24px;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-content h1 {
  color: #fff;
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 1.4em;
}

.hero--page {
  min-height: 320px;
  display: flex;
  align-items: center;
}

.hero--page .hero-content {
  padding: 80px 0;
}

.hero--page h1 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  letter-spacing: 0.16em;
  font-weight: 300;
  word-break: keep-all;
}

@media (max-width: 600px) {
  .hero--page h1 {
    font-size: 1.6rem;
    letter-spacing: 0.12em;
  }
}

.hero--tall .hero-content { padding: 160px 0 140px; }

.hero--home {
  min-height: min(86vh, 920px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(91, 139, 110, 0.12), transparent 26%),
    radial-gradient(circle at 84% 22%, rgba(54, 86, 67, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7f6f2 100%);
  color: var(--text);
}

.hero--home::before,
.hero--home::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.hero--home::before {
  width: 360px;
  height: 360px;
  top: 68px;
  left: -120px;
  border: 1px solid rgba(91, 139, 110, 0.14);
  box-shadow: inset 0 0 0 26px rgba(91, 139, 110, 0.03);
}

.hero--home::after {
  width: 300px;
  height: 300px;
  right: -100px;
  bottom: 28px;
  border: 1px solid rgba(54, 86, 67, 0.12);
  box-shadow: inset 0 0 0 22px rgba(54, 86, 67, 0.025);
}

.hero--home .hero-content {
  max-width: 960px;
  padding: 132px 24px 118px;
}

.hero--home h1 {
  color: var(--brand-navy);
  text-shadow: none;
  letter-spacing: 0.02em;
  margin-bottom: 0.45em;
}

.hero--home p {
  color: var(--text-muted);
  max-width: 720px;
}

.hero-home__logo {
  width: clamp(156px, 22vw, 250px);
  height: clamp(156px, 22vw, 250px);
  margin: 0 auto 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(91, 139, 110, 0.08), rgba(91, 139, 110, 0.01) 62%, transparent 64%),
    #fff;
  border: 1px solid rgba(54, 86, 67, 0.08);
  box-shadow: 0 18px 60px rgba(54, 86, 67, 0.08);
  display: grid;
  place-items: center;
}

.hero-home__logo img {
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.hero--home .eyebrow {
  margin-bottom: 1rem;
}

@media (max-width: 700px) {
  .hero--home {
    min-height: auto;
  }

  .hero--home::before {
    width: 240px;
    height: 240px;
    left: -120px;
    top: 96px;
  }

  .hero--home::after {
    width: 180px;
    height: 180px;
    right: -80px;
    bottom: 16px;
  }

  .hero--home .hero-content {
    padding: 108px 24px 88px;
  }

  .hero--home h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ----- Cards / grids ----- */
.grid {
  display: grid;
  gap: 24px;
}

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.media-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #1a1a1a;
  aspect-ratio: 4 / 3;
}

.media-card .media-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.65);
  transition: transform 0.6s ease, filter 0.4s ease;
}

.media-card:hover .media-img {
  transform: scale(1.04);
  filter: grayscale(80%) brightness(0.7);
}

.media-card .media-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.media-card .media-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

/* ----- Course list (Melbourne style row) ----- */
.course-row {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.course-row:first-of-type { border-top: 1px solid var(--border); }

.course-row .course-thumb {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  border-radius: var(--radius-md);
  background-color: #ddd;
}

.course-row h3 {
  font-size: 1.4rem;
  margin-bottom: 0.2em;
  color: var(--brand-navy);
}

.course-row .course-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.course-row .course-list-item {
  margin-bottom: 8px;
  color: var(--text);
}

.course-row .course-list-item strong {
  color: var(--brand-navy);
  font-weight: 500;
  display: inline-block;
  min-width: 0;
}

.course-row .course-cta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .course-row {
    grid-template-columns: 160px 1fr;
    gap: 20px;
  }
  .course-row .course-cta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .course-row {
    grid-template-columns: 1fr;
  }
  .course-row .course-thumb {
    max-width: 100%;
    aspect-ratio: 16 / 10;
  }
}

/* ----- Trainer rows (About page) ----- */
.trainer-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.trainer-row .trainer-photo {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center top;
  filter: grayscale(100%);
  border-radius: var(--radius-md);
  background-color: #ddd;
}

.trainer-row h3 {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-navy);
  margin-bottom: 0.4em;
  font-weight: 500;
}

.trainer-row .trainer-role {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.8em;
  font-size: 0.95rem;
}

.trainer-row .trainer-bio {
  color: var(--text);
  margin-bottom: 1em;
}

.trainer-row .trainer-cert {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.trainer-row .trainer-cert li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 4px;
}

.trainer-row .trainer-cert li::before {
  content: "•";
  color: var(--brand-green);
  position: absolute;
  left: 4px;
}

.trainer-row .trainer-links {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trainer-row .trainer-links a {
  color: var(--brand-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trainer-row .trainer-links a + a { margin-left: 14px; }

@media (max-width: 900px) {
  .trainer-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }
  .trainer-row .trainer-photo {
    max-width: 280px;
    aspect-ratio: 1 / 1;
  }
}

/* ----- Story two-column ----- */
.story {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.story .story-image {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  border-radius: var(--radius-md);
}

.story .story-image--right { order: 2; }

@media (max-width: 800px) {
  .story { grid-template-columns: 1fr; gap: 28px; }
  .story .story-image--right { order: 0; }
}

/* ----- Academy section (Home) ----- */
.academy-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.1fr;
  gap: 40px;
  align-items: center;
}

.academy-section__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #d9d9d9;
  box-shadow: var(--shadow-md);
}

.academy-section__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.academy-section__content h2 {
  margin-bottom: 18px;
}

.academy-section__content p {
  color: var(--text-muted);
}

.academy-section__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.academy-section__highlights span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(91, 139, 110, 0.1);
  color: var(--brand-navy);
  font-size: 0.88rem;
  border: 1px solid rgba(91, 139, 110, 0.14);
}

@media (max-width: 800px) {
  .academy-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ----- Barista Spotlight (Home) ----- */
.spotlight-list {
  display: grid;
  gap: 28px;
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  grid-template-areas:
    "media heading"
    "media body";
  gap: 0 40px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.spotlight-card:last-child {
  border-bottom: 1px solid var(--border);
}

.spotlight-card--reverse {
  grid-template-columns: 1fr minmax(280px, 420px);
  grid-template-areas:
    "heading media"
    "body media";
}

.spotlight-card__heading {
  grid-area: heading;
  margin-bottom: 12px;
}

.spotlight-card__heading h3 {
  margin-bottom: 6px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

.spotlight-card__role {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.spotlight-card__media {
  grid-area: media;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center top;
  border-radius: var(--radius-md);
  background-color: #ddd;
  overflow: hidden;
}

.spotlight-card__body {
  grid-area: body;
}

.spotlight-card__body p {
  margin-bottom: 0;
  color: var(--text);
}

@media (max-width: 800px) {
  .spotlight-card,
  .spotlight-card--reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "media"
      "body";
    gap: 18px;
    padding: 24px 0;
  }

  .spotlight-card__media {
    aspect-ratio: 4 / 3;
  }
}

/* ----- Testimonial ----- */
.testimonial-rating {
  text-align: center;
  margin-bottom: 32px;
}

.testimonial-rating .rating-score {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--brand-navy);
}

.testimonial-rating .stars {
  color: #f0a500;
  letter-spacing: 4px;
  font-size: 1.05rem;
  margin: 4px 0 8px;
}

.testimonial-rating .rating-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.testimonial-card .stars { color: #f0a500; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 10px; }
.testimonial-card p { color: var(--text); font-size: 0.95rem; margin-bottom: 12px; }
.testimonial-card cite {
  margin-top: auto;
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.testimonial-card cite strong {
  color: var(--brand-navy);
  font-weight: 500;
  display: block;
}

/* ----- Stats / numbered ----- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-row .stat .num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--brand-green);
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-row .stat .label {
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 700px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ----- Forms ----- */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(91, 139, 110, 0.18);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-message {
  margin-top: 16px;
  padding: 14px 16px;
  background: #eaf3ee;
  color: #2f6c4a;
  border: 1px solid #c9e1d3;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  display: none;
}

.form-message.is-visible { display: block; }

/* ----- Info card ----- */
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.info-card h3 {
  margin-bottom: 18px;
  font-size: 1.15rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.info-list li:last-child { border-bottom: 0; }

.info-list .info-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(91, 139, 110, 0.12);
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-list .info-icon svg { width: 18px; height: 18px; }

.info-list .info-text {
  display: flex;
  flex-direction: column;
}

.info-list .info-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.info-list .info-value {
  color: var(--brand-navy);
  font-weight: 500;
}

/* ----- Location card ----- */
.location-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.location-card h3 {
  color: var(--brand-navy);
  font-size: 1.4rem;
  margin-bottom: 0.4em;
}

.location-card .location-tag {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 8px;
  display: inline-block;
}

.location-card address {
  font-style: normal;
  color: var(--text);
  margin-bottom: 16px;
  white-space: pre-line;
}

.location-card .location-map {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  filter: grayscale(20%);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
}

.location-card .location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) saturate(0.2) contrast(1.02);
}

@media (max-width: 800px) {
  .location-card { grid-template-columns: 1fr; gap: 20px; }
}

/* ----- Course detail layout ----- */
.course-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.course-detail__main h1 {
  margin-bottom: 0.3em;
}

.course-detail__main .course-tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5em;
}

.course-detail__main .meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.course-detail__main .meta-grid .meta-item {
  background: var(--surface);
  padding: 18px;
  border-radius: var(--radius-md);
  text-align: center;
}

.course-detail__main .meta-grid .meta-item .meta-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.course-detail__main .meta-grid .meta-item .meta-value {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--brand-navy);
  font-size: 1.1rem;
}

.course-detail__main h2 {
  font-size: 1.45rem;
  margin-top: 2.4rem;
  margin-bottom: 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--border);
}

.course-detail__main .check-list {
  list-style: none;
  padding: 0;
}

.course-detail__main .check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}

.course-detail__main .check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-green);
}

.course-detail__main .check-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.course-detail__sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.price-card .price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price-card .price-amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--brand-navy);
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.1;
}

.price-card .price-amount small { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.price-card ul {
  list-style: none;
  padding: 18px 0 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.price-card ul li {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.price-card ul li::before {
  content: "✓";
  color: var(--brand-green);
  font-weight: bold;
}

.price-card .btn { margin-bottom: 12px; }

.location-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.location-block .location-block__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  background: #fff;
}

.location-block .location-block__item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.location-block .location-block__item .location-block__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

@media (max-width: 1000px) {
  .course-detail {
    grid-template-columns: 1fr;
  }
  .course-detail__sidebar {
    position: static;
  }
}

/* ----- CTA grid (3 cards with image background) ----- */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cta-grid .cta-tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  background-color: #1a1a1a;
}

.cta-grid .cta-tile .cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  z-index: 0;
  transition: filter 0.4s ease, transform 0.6s ease;
}

.cta-grid .cta-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.cta-grid .cta-tile:hover .cta-bg {
  filter: grayscale(60%);
  transform: scale(1.04);
}

.cta-grid .cta-tile span {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: #fff;
}

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

/* ----- Quote band ----- */
.quote-band {
  background: var(--brand-navy);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.quote-band h2 {
  color: #fff;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.quote-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
}

/* ----- Breadcrumb ----- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--text-muted); }

.breadcrumb a:hover { color: var(--brand-green); }

.breadcrumb .sep { margin: 0 8px; color: var(--text-soft); }

/* ----- Audio info card (Home, like Melbourne welcome card) ----- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.welcome-grid .welcome-text { padding-top: 8px; }

.welcome-grid .welcome-text p:first-of-type {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--brand-navy);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 1em;
  letter-spacing: 0.005em;
}

.welcome-grid .welcome-card {
  background: var(--brand-navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.welcome-grid .welcome-card::before {
  content: "";
  position: absolute;
  inset: auto auto -44px -44px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.welcome-grid .welcome-card img {
  height: 112px;
  width: 112px;
  object-fit: contain;
  align-self: center;
  margin: 0 auto 20px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  filter: brightness(0) invert(1);
  position: relative;
  z-index: 1;
}
.welcome-grid .welcome-card p {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 300;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.welcome-grid .welcome-card a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px; font-size: 0.92rem; }

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

/* ----- Footer ----- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.site-footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-navy);
  margin-bottom: 16px;
  font-weight: 500;
}

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

.site-footer ul li { margin-bottom: 8px; }

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
}

.site-footer .footer-brand img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  align-self: flex-start;
  margin-bottom: 12px;
}

.site-footer .footer-brand p { font-size: 0.88rem; line-height: 1.65; }

.site-footer .socials {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.site-footer .socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-navy);
  transition: background 0.2s, color 0.2s;
}

.site-footer .socials a:hover { background: var(--brand-green); color: #fff; }
.site-footer .socials svg { width: 16px; height: 16px; }

.site-footer .footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.site-footer .footer-bottom .legal-links a {
  color: var(--text-muted);
  margin-left: 14px;
}

@media (max-width: 800px) {
  .site-footer .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-bottom { justify-content: center; text-align: center; }
  .site-footer .footer-bottom .legal-links a:first-child { margin-left: 0; }
}

/* ----- 404 ----- */
.error-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}

.error-page .error-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  color: var(--brand-green);
  font-weight: 300;
  margin-bottom: 0;
  line-height: 1;
}

/* ----- Utilities ----- */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 48px 0;
}
