/* Keeltemaagia.ee Pure Static Site Stylesheet
   Matches Astra + Spectra WordPress design, color palette, and typography */

:root {
  --ast-global-color-0: #5f6243; /* Primary Olive Green */
  --ast-global-color-1: #333524; /* Dark Olive Hover / Quote Bg */
  --ast-global-color-2: #000000; /* Headings */
  --ast-global-color-3: #000000; /* Body Text */
  --ast-global-color-4: #b8b8b8; /* Borders / Muted */
  --ast-global-color-5: #ffffff; /* White */
  --ast-global-color-6: #bfc2a5; /* Sage Green */
  --ast-global-color-7: #000000;
  --ast-global-color-8: #262626;
  --container-width: 1200px;
  --narrow-width: 780px;
}

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

html {
  font-size: 93.75%; /* 15px base */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ast-global-color-3);
  background-color: var(--ast-global-color-5);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .site-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--ast-global-color-2);
  font-weight: 700;
  margin-top: 0;
}

h1 {
  font-size: 60px;
  line-height: 1.15;
  margin-bottom: 0.4em;
}

h2 {
  font-size: 40px;
  line-height: 1.16;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h4 {
  font-size: 22px;
  line-height: 1.3;
}

p {
  margin-top: 0;
  margin-bottom: 1.2em;
}

a {
  color: var(--ast-global-color-0);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover, a:focus {
  color: var(--ast-global-color-1);
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.container-narrow {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

/* Header & Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2.5rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-title {
  font-size: 26px;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  letter-spacing: -0.2px;
}

.site-title:hover {
  color: #000000;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.primary-nav a.menu-link {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.primary-nav a.menu-link:hover,
.primary-nav a.menu-link.active {
  color: var(--ast-global-color-0);
}

/* Top-Menu Language Switcher (EST | ENG | RUS) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding-left: 0.75rem;
  border-left: 1px solid #d8d8cc;
  user-select: none;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.25rem 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #444444;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.18s ease;
}

.lang-btn:hover {
  color: var(--ast-global-color-0);
  background: rgba(95, 98, 67, 0.08);
}

.lang-btn.active {
  color: #ffffff;
  background: var(--ast-global-color-0);
  font-weight: 600;
}

.lang-sep {
  color: #b8b8b8;
  font-size: 12px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid #000000;
  border-radius: 3px;
  width: 42px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--ast-global-color-0);
  color: #ffffff;
  border-color: var(--ast-global-color-0);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--ast-global-color-1);
  border-color: var(--ast-global-color-1);
  color: #ffffff;
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--ast-global-color-0);
  border: 1px solid var(--ast-global-color-0);
}

.btn-outline-dark:hover {
  background-color: var(--ast-global-color-0);
  color: #ffffff;
}

.btn-outline-light {
  background-color: transparent;
  color: #bfc2a5;
  border: 1px solid var(--ast-global-color-0);
}

.btn-outline-light:hover {
  background-color: var(--ast-global-color-0);
  color: #ffffff;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

/* Homepage Hero */
.hero-home {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding: 6rem 1.5rem;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
}

.hero-home .hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-home .hero-subtitle {
  font-size: 16px;
  color: #111111;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Homepage: Kuidas õpe toimub? */
.section-how {
  padding: 5.5rem 0 0;
  text-align: center;
}

.section-how-intro {
  max-width: 780px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.section-how-intro p {
  margin-bottom: 0.4rem;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
}

.format-card {
  position: relative;
  min-height: 430px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 2.75rem;
  text-align: left;
  color: #ffffff;
}

.format-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.52) 100%);
}

.format-card-inner {
  position: relative;
  z-index: 1;
}

.format-card h3 {
  color: #ffffff;
  font-size: 28px;
  margin-bottom: 0.65rem;
}

.format-card p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  font-size: 15px;
}

/* Homepage: Õpetatavad keeled */
.section-languages {
  padding: 5.5rem 0 6rem;
}

.section-languages h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.lang-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.lang-card {
  border: 1px solid #d5d7c4;
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.lang-card-img-wrap {
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 1.35rem;
}

.lang-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lang-card h3 {
  font-size: 25px;
  margin-bottom: 0.5rem;
}

.lang-card p {
  color: #222222;
  margin-bottom: 1.5rem;
  font-size: 14.5px;
}

/* Homepage: Founder Quote Dark Section */
.section-founder-quote {
  background-color: var(--ast-global-color-1);
  color: #ffffff;
  padding: 5.5rem 0;
}

.founder-quote-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 4rem;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 1rem;
  display: block;
}

.quote-mark.sage {
  color: var(--ast-global-color-6);
}

.founder-quote-text {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.45;
  color: #ffffff;
  margin-bottom: 1.75rem;
}

.founder-meta {
  margin-bottom: 2rem;
}

.founder-meta strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
}

.founder-meta span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.founder-portrait-wrap {
  display: flex;
  justify-content: center;
}

.founder-portrait-wrap img {
  max-width: 340px;
  width: 100%;
  border-radius: 4px;
}

/* Homepage: Kellele Keeltemaagia sobib? */
.section-who {
  padding: 6rem 0;
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 4rem;
}

.who-image img {
  border-radius: 8px;
  width: 100%;
}

.who-content h3 {
  font-size: 28px;
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.check-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.7rem;
  font-size: 15px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #000000;
  font-weight: 700;
}

/* Bottom CTA Banner */
.section-cta-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 6.5rem 1.5rem;
  text-align: center;
  color: #ffffff;
}

.section-cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.section-cta-banner .cta-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.section-cta-banner h2 {
  color: #ffffff;
  font-size: 44px;
  margin-bottom: 0.6rem;
}

.section-cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* Language Subpages (/eesti-keel/, /inglise-keel/, /soome-keel/) */
.page-banner {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #4f5050;
  background-size: cover;
  background-position: center;
  padding: 4rem 1.5rem;
}

.page-banner.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 28, 0.55);
}

.page-banner h1 {
  position: relative;
  z-index: 1;
  color: #ffffff;
  margin: 0;
}

.lang-intro-section {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
}

.lang-intro-section h2 {
  margin-bottom: 1.1rem;
}

.lang-intro-section .btn {
  margin-top: 1rem;
}

.lang-trainers-bar {
  max-width: var(--container-width);
  margin: 0 auto 3.5rem;
  padding: 2rem 2.5rem;
  border: 1px solid #d5d7c4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.lang-trainers-bar h3 {
  margin: 0;
  font-size: 24px;
}

.lang-trainer-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-trainer-item span {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}

/* Curriculum Sections on /eesti-keel/ */
.curriculum-section {
  padding: 2rem 0 5rem;
}

.curriculum-card {
  border: 1px solid #e2e3d8;
  border-radius: 8px;
  padding: 3rem;
  margin-bottom: 3rem;
  background: #ffffff;
}

.curriculum-card h2 {
  font-size: 36px;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--ast-global-color-6);
  padding-bottom: 0.5rem;
}

.curr-block {
  margin-bottom: 1.4rem;
}

.curr-label {
  font-weight: 600;
  color: #000000;
  display: block;
  margin-bottom: 0.25rem;
}

.curr-text {
  white-space: pre-line;
  margin: 0;
}

.curr-list {
  margin: 0.4rem 0 0 1.25rem;
  padding: 0;
}

.curr-list li {
  margin-bottom: 0.4rem;
}

/* /koolitajad/ */
.trainers-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

.trainers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.trainer-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trainer-card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.trainer-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trainer-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.trainer-card p {
  color: #444444;
  font-size: 14.5px;
  margin-bottom: 1.25rem;
}

.values-section {
  padding: 4rem 0;
}

.values-section h2 {
  text-align: center;
  margin-bottom: 3.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3rem;
}

.value-item .value-num {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 0.6rem;
  display: block;
}

.value-item h3 {
  font-size: 24px;
  margin-bottom: 0.6rem;
}

.inline-quote-section {
  padding: 3.5rem 0 4.5rem;
}

.inline-quote-box {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 960px;
}

.inline-quote-box h3 {
  font-size: 25px;
  margin-bottom: 1rem;
}

.recruit-banner {
  background-color: #f7f7f4;
  border-top: 1px solid #e5e6dc;
  padding: 4.5rem 0;
}

.recruit-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 3rem;
}

.recruit-img-wrap {
  display: flex;
  justify-content: center;
}

.recruit-img-wrap img {
  max-width: 300px;
  border-radius: 8px;
}

/* Trainer Profile Detail Pages */
.profile-hero {
  padding: 4.5rem 0 3.5rem;
}

.profile-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.profile-role {
  font-size: 16px;
  color: #333333;
  margin-bottom: 1.75rem;
}

.profile-portrait-wrap {
  display: flex;
  justify-content: center;
}

.profile-portrait-wrap img {
  max-width: 350px;
  width: 100%;
  border-radius: 8px;
}

.profile-body {
  padding: 2rem 0 5.5rem;
}

.profile-section {
  margin-bottom: 2.75rem;
}

.profile-section h2,
.profile-section h3 {
  margin-bottom: 0.85rem;
}

.pre-line {
  white-space: pre-line;
}

/* Editorial Student Testimonials ("Õppijate tagasiside") */
.feedback-section {
  margin-top: 3.25rem;
  padding-top: 2.75rem;
  border-top: 1px solid #ecece2;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.75rem;
  align-items: stretch;
}

.feedback-card {
  background: #fafaf7;
  border: 1px solid #dedfd2;
  border-radius: 10px;
  padding: 2.25rem 2.35rem 1.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-card:hover {
  border-color: #c5c8b2;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.feedback-quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 52px;
  line-height: 0.75;
  color: var(--ast-global-color-6);
  display: block;
  margin-bottom: 0.85rem;
  user-select: none;
}

.feedback-text {
  font-size: 15.5px;
  line-height: 1.78;
  color: #1f1f1d;
  margin: 0;
}

.feedback-followup {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #d5d7c4;
}

.feedback-followup-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ast-global-color-0);
  margin-bottom: 0.55rem;
}

.feedback-author-bar {
  margin-top: 1.75rem;
  padding-top: 1.05rem;
  border-top: 1px solid #ecece2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 14px;
}

.feedback-author-name {
  font-weight: 600;
  color: #111111;
}

.feedback-author-sep {
  color: #9e9f93;
}

.feedback-author-origin {
  color: var(--ast-global-color-0);
  font-weight: 500;
}

/* /hinnakiri/ */
.pricing-section {
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  max-width: 920px;
  margin: 2.75rem auto 0;
}

.pricing-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  max-width: 780px;
  margin: 2.5rem auto 4rem;
}

.price-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  padding: 2.75rem 2.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.price-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.price-card .btn {
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 240px;
}

.price-card .check-list {
  text-align: left;
  margin-top: 0.5rem;
}

.price-card-notes {
  text-align: left;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 14.5px;
}

/* /meist/ */
.about-hero {
  padding: 4.5rem 0 4rem;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.about-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.about-portraits img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.faq-section {
  padding: 3rem 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-group-title {
  font-size: 26px;
  margin: 2.25rem 0 1rem;
}

.accordion-item {
  border: 1px solid #d8d8cc;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  background: #ffffff;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: #fafaf7;
  border: none;
  padding: 1.1rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-header:hover {
  background: #f2f3ec;
}

.accordion-body {
  padding: 1.15rem 1.5rem 1.35rem;
  border-top: 1px solid #ecece4;
  white-space: pre-line;
}

.accordion-item.collapsed .accordion-body {
  display: none;
}

.about-bottom-cta {
  text-align: center;
  padding: 3.5rem 1.5rem 5.5rem;
}

/* /kontakt/ & /registreerumine/ */
.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  align-items: stretch;
}

.contact-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem 4rem 2.5rem;
  max-width: 600px;
  margin-left: auto;
}

.contact-hero-bg {
  background-size: cover;
  background-position: center;
  min-height: 360px;
}

.contact-form-section {
  padding: 4.5rem 0 6rem;
}

.contact-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.09);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  margin-top: 2.5rem;
}

.reg-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.09);
  padding: 3rem;
  max-width: 960px;
  margin: 2.5rem auto 5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 0.45rem;
  color: #000000;
}

.form-label .req {
  color: #d93025;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #ffffff;
  color: #000000;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--ast-global-color-0);
}

.phone-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0.75rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 14.5px;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 5px;
  width: 17px;
  height: 17px;
  accent-color: var(--ast-global-color-0);
}

.form-status {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  background-color: #eef3e8;
  border: 1px solid var(--ast-global-color-0);
  color: var(--ast-global-color-1);
  font-weight: 500;
}

.form-status.visible {
  display: block;
}

.form-status-error {
  background-color: #fdf2f2;
  border-color: #d93025;
  color: #8c1d18;
}

.contact-info-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0.6rem 0 0.75rem;
}

.contact-divider {
  border: none;
  border-top: 1px solid var(--ast-global-color-6);
  margin: 2rem 0;
}

.contact-channels {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.25rem;
}

.channel-item svg,
.org-icon svg {
  width: 22px;
  height: 22px;
  fill: #000000;
  margin-bottom: 0.5rem;
}

.channel-item p {
  margin: 0;
  font-size: 14.5px;
  word-break: break-word;
}

.channel-item a {
  text-decoration: underline;
}

/* Navigation Dropdown Submenu (Projektid -> Möödunud / Tulevased) */
.menu-item-has-children {
  position: relative;
}

.menu-item-link-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.submenu-toggle {
  background: transparent;
  border: none;
  padding: 0.2rem;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.submenu-toggle svg {
  width: 13px;
  height: 13px;
}

.menu-item-has-children:hover .submenu-toggle,
.menu-item-has-children.submenu-open .submenu-toggle {
  color: var(--ast-global-color-0);
  transform: rotate(180deg);
}

.primary-nav ul.sub-menu {
  position: absolute;
  top: 100%;
  left: -0.75rem;
  min-width: 175px;
  background: #ffffff;
  border: 1px solid #e2e3d8;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 120;
}

.menu-item-has-children:hover > ul.sub-menu,
.menu-item-has-children:focus-within > ul.sub-menu,
.menu-item-has-children.submenu-open > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav ul.sub-menu li {
  width: 100%;
}

.primary-nav ul.sub-menu a.submenu-link {
  display: block;
  padding: 0.55rem 1.15rem;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  color: #111111;
  white-space: nowrap;
}

.primary-nav ul.sub-menu a.submenu-link:hover,
.primary-nav ul.sub-menu a.submenu-link:focus {
  background-color: #f6f7f2;
  color: var(--ast-global-color-0);
}

/* Homepage: Projektid Block */
.section-home-projects {
  padding: 5.5rem 0 6rem;
  background-color: #fafaf7;
  border-top: 1px solid #ecece2;
  border-bottom: 1px solid #ecece2;
}

.home-projects-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.25rem;
}

.home-projects-header p {
  color: #2b2b2b;
  margin-bottom: 0;
}

.home-projects-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
}

.home-proj-col {
  background: #ffffff;
  border: 1px solid #d5d7c4;
  border-radius: 8px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-proj-col-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ecece2;
}

.home-proj-col-head h3 {
  font-size: 28px;
  margin-bottom: 0.35rem;
}

.home-proj-col-head p {
  font-size: 14.5px;
  color: #444444;
  margin-bottom: 0;
}

.home-proj-preview-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.85rem;
}

.home-proj-mini-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid #e8e9df;
  border-radius: 6px;
  background: #fcfcfa;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-proj-mini-card:hover {
  border-color: var(--ast-global-color-0);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  color: inherit;
}

.home-proj-mini-card:hover h4 {
  color: var(--ast-global-color-0);
}

.home-proj-mini-card.no-thumb {
  grid-template-columns: 1fr auto;
  padding: 1rem 1.15rem;
}

.home-proj-mini-arrow {
  color: var(--ast-global-color-0);
  font-size: 16px;
  font-weight: 500;
}

.home-proj-mini-thumb {
  width: 96px;
  height: 76px;
  border-radius: 5px;
  overflow: hidden;
}

.home-proj-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-proj-mini-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ast-global-color-0);
  display: block;
  margin-bottom: 0.2rem;
}

.home-proj-mini-card h4 {
  font-size: 17px;
  margin: 0;
  line-height: 1.3;
}

/* Dedicated /projektid/ Page */
.projects-page-hero {
  text-align: center;
  background-color: #fafaf7;
  border-bottom: 1px solid #e6e7dc;
  padding: 4.5rem 1.5rem 3.5rem;
}

.projects-page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.projects-page-hero p {
  font-size: 16px;
  color: #262626;
  margin-bottom: 2rem;
}

.projects-anchor-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.projects-section {
  padding: 5rem 0;
  scroll-margin-top: 24px;
}

.projects-section.alt-bg {
  background-color: #fafaf7;
  border-top: 1px solid #e6e7dc;
  border-bottom: 1px solid #e6e7dc;
}

.projects-section-header {
  max-width: 780px;
  margin-bottom: 2.75rem;
}

.projects-section-header p {
  color: #444444;
  margin-bottom: 0;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid #d5d7c4;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: stretch;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--ast-global-color-0);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.project-card.no-media {
  grid-template-columns: 1fr;
  border-left: 4px solid var(--ast-global-color-0);
}

.project-card-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.project-card-title-link {
  color: var(--ast-global-color-2);
  text-decoration: none;
}

.project-card-title-link:hover {
  color: var(--ast-global-color-0);
}

/* Project Detail Page (/projektid/<slug>/) */
.project-detail-hero {
  background-color: #fafaf7;
  border-bottom: 1px solid #e6e7dc;
  padding: 3rem 0 3.25rem;
}

.back-to-projects-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ast-global-color-0);
  margin-bottom: 1.5rem;
}

.back-to-projects-link:hover {
  color: var(--ast-global-color-1);
  text-decoration: underline;
}

.project-detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.project-status-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

.project-status-badge.status-past {
  background: #eceee4;
  color: #333524;
}

.project-status-badge.status-upcoming {
  background: var(--ast-global-color-0);
  color: #ffffff;
}

.project-detail-hero h1 {
  font-size: 46px;
  max-width: 900px;
  margin-bottom: 0.75rem;
}

.project-detail-lead {
  font-size: 17px;
  color: #2b2b2b;
  max-width: 820px;
  margin-bottom: 0;
}

.project-detail-main {
  padding: 4rem 0 4.5rem;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.25rem;
  align-items: start;
}

.project-cover-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d5d7c4;
  margin-bottom: 2.25rem;
  max-height: 460px;
}

.project-cover-frame img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}

.project-article-body p {
  font-size: 16px;
  line-height: 1.8;
  color: #1d1d1d;
  margin-bottom: 1.35rem;
}

.project-meta-card {
  background: #fafaf7;
  border: 1px solid #d5d7c4;
  border-radius: 8px;
  padding: 2rem;
  position: sticky;
  top: 24px;
}

.project-meta-card h3 {
  font-size: 22px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e3d8;
}

.project-meta-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.project-meta-row dt {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--ast-global-color-0);
  margin-bottom: 0.25rem;
}

.project-meta-row dd {
  margin: 0;
  font-size: 15px;
  color: #111111;
  line-height: 1.5;
}

.project-meta-cta {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid #e2e3d8;
}

.project-meta-cta .btn {
  width: 100%;
}

/* Video Player & Image Gallery Sections on Detail Page */
.project-media-showcase {
  padding: 0 0 4.5rem;
}

.project-showcase-block {
  margin-top: 3rem;
  padding-top: 2.75rem;
  border-top: 1px solid #e6e7dc;
}

.project-showcase-block h2 {
  font-size: 30px;
  margin-bottom: 1.5rem;
}

.project-video-container {
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d5d7c4;
  background: #000000;
}

.project-video-container video {
  width: 100%;
  max-height: 520px;
  display: block;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.project-gallery-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d5d7c4;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  background: #f2f3ec;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.project-gallery-item:hover img {
  transform: scale(1.03);
}

/* Media Coverage ("Meediakajastused") Section */
.media-coverage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.media-coverage-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 1.2rem 1.35rem;
  background: #fafaf7;
  border: 1px solid #d5d7c4;
  border-radius: 8px;
  color: #111111;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.media-coverage-item:hover,
.media-coverage-item:focus {
  background: #ffffff;
  border-color: var(--ast-global-color-0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  color: #111111;
}

.media-coverage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.media-coverage-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ast-global-color-0);
}

.media-coverage-ext {
  font-size: 15px;
  color: var(--ast-global-color-0);
  flex-shrink: 0;
}

.media-coverage-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #111111;
  margin: 0;
}

.media-coverage-item:hover .media-coverage-title {
  color: var(--ast-global-color-0);
}

.project-detail-bottom-nav {
  padding: 2rem 0 5rem;
  border-top: 1px solid #ecece2;
}

/* Gallery Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 999;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.project-media {
  background: #f2f3ec;
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-media img,
.project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

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

.project-body {
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-date-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ast-global-color-0);
  background: #f2f3ec;
  border: 1px solid #d5d7c4;
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.85rem;
}

.project-body h3 {
  font-size: 26px;
  margin-bottom: 0.75rem;
}

.project-body p {
  margin-bottom: 1rem;
  color: #222222;
}

.project-meta {
  font-size: 13.5px;
  font-weight: 500;
  color: #555555;
  margin-bottom: 0;
}

.project-actions {
  margin-top: 1.35rem;
}

/* Legal Pages (/privacy-policy/ & /kupsised/) */
.legal-page-hero {
  background-color: #fafaf7;
  border-bottom: 1px solid #e6e7dc;
  padding: 4rem 0 3rem;
}

.legal-page-hero h1 {
  font-size: 46px;
  margin-bottom: 0.6rem;
}

.legal-updated {
  font-size: 14px;
  color: #555555;
  margin-bottom: 0;
}

.legal-body {
  padding: 3.5rem 0 5rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 26px;
  margin-bottom: 0.85rem;
}

.legal-section p {
  color: #1f1f1d;
  line-height: 1.78;
}

.legal-list {
  margin: 0.6rem 0 1.2rem 1.35rem;
  padding: 0;
}

.legal-list li {
  margin-bottom: 0.55rem;
  line-height: 1.72;
}

.legal-info-box {
  background: #fafaf7;
  border: 1px solid #d5d7c4;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin: 1.25rem 0 1.5rem;
}

.legal-info-box p {
  margin-bottom: 0.4rem;
}

.legal-info-box p:last-child {
  margin-bottom: 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid #dedfd2;
  vertical-align: top;
}

.legal-table th {
  background: #fafaf7;
  font-weight: 600;
  color: #111111;
}

.checkbox-row a {
  text-decoration: underline;
  font-weight: 500;
}

/* Footer & Scroll to Top */
.site-footer {
  border-top: 1px solid #e6e7dc;
  padding: 2.75rem 0 2.25rem;
  background: #fafaf7;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  font-size: 14px;
  color: #222222;
}

.footer-main-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-entity {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-entity strong {
  font-size: 15px;
  color: #111111;
}

.footer-entity-details {
  color: #444444;
  line-height: 1.6;
}

.footer-entity-details a {
  color: #333333;
  text-decoration: none;
}

.footer-entity-details a:hover {
  color: var(--ast-global-color-0);
  text-decoration: underline;
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.footer-legal-nav a {
  color: var(--ast-global-color-0);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-nav a:hover {
  color: var(--ast-global-color-1);
}

.footer-bottom-row {
  padding-top: 1.1rem;
  border-top: 1px solid #e5e6dc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 13.5px;
  color: #555555;
}

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 38px;
  height: 38px;
  background-color: var(--ast-global-color-0);
  color: #ffffff;
  border: none;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn:hover {
  background-color: var(--ast-global-color-1);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .menu-toggle { display: inline-flex; }
  .header-right {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 2.5rem 1.75rem;
    border-bottom: 1px solid #e5e5e5;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }
  .header-right.open {
    display: flex;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
  }
  .menu-item-has-children {
    width: 100%;
  }
  .primary-nav ul.sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--ast-global-color-6);
    border-radius: 0;
    margin: 0.35rem 0 0.25rem 0.75rem;
    padding: 0.25rem 0 0.25rem 0.75rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .menu-item-has-children.submenu-open > ul.sub-menu {
    display: flex;
  }
  .lang-switcher {
    border-left: none;
    padding-left: 0;
    padding-top: 0.75rem;
    border-top: 1px solid #ecece4;
    width: 100%;
  }
  .format-grid,
  .lang-cards-grid,
  .home-projects-split,
  .project-card,
  .project-detail-grid,
  .project-gallery-grid,
  .media-coverage-list,
  .trainers-grid,
  .values-grid,
  .founder-quote-grid,
  .who-grid,
  .profile-hero-grid,
  .about-hero-grid,
  .contact-hero-grid,
  .contact-card,
  .pricing-grid-4,
  .pricing-grid-2,
  .recruit-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
  }
}
