:root {
  --color-header: #ffffff;
  --color-header-text: #023047;
  --color-footer: #012334;
  --color-primary: #ff6b35;
  --color-accent: #219ebc;
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-border-soft: #e5e7eb;
  --color-text: #111827;
  --color-text-soft: #6b7280;
  --radius-lg: 24px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --transition-fast: 180ms ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */

.main-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-header);
  color: var(--color-header-text);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.logo.small {
  width: 100%;
  height: 100%;
}

.brand-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
  color: var(--color-header-text);
}

.main-nav {
  display: flex;
  position: relative;
  gap: 1.6rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: #4b5563;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
  transition: color var(--transition-fast);
}

/* subrayado */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--transition-fast);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-header-text);
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* idiomas */

.lang-select {
  background: #ffffff;
  color: var(--color-text);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.8rem;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  min-width: 80px;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(33, 158, 188, 0.25);
}

.lang-option {
  border: none;
  background: transparent;
  font-size: 0.78rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #4b5563;
}

.lang-option.active {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.6);
}

/* BOTÕES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.48rem 1.1rem;
  font-size: 0.86rem;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--color-header-text);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.04);
}

.btn-ghost {
  background: #ffffff;
  border: 1px solid var(--color-border-soft);
  color: var(--color-text-soft);
}

.btn-ghost:hover {
  color: var(--color-text);
}

/* HERO INDEX (vídeo + texto) */

.hero-banner {
  background: #005673;
  padding: 3rem 0 3.5rem;
  color: #ffffff;
}

.hero-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Moldura tipo smartphone horizontal */
.hero-video-shell {
  max-width: 1200px;
  margin: 0 auto;
  background: #000;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.hero-video-shell iframe {
  width: 100%;
  height: 460px;
  border: none;
  display: block;
}

@media (max-width: 768px) {
  .hero-video-shell iframe {
    height: 260px;
  }
}

/* Texto hero */

.hero-copy {
  max-width: 900px;
  margin: 2.4rem auto 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.hero-copy h1 {
  margin-bottom: 1.7rem;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
}

.hero-copy p {
  max-width: 860px;
  margin: 0 auto 2.2rem auto;
  font-size: 1.07rem;
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
  color: #e6f2f6;
}

.hero-actions-bottom {
  display: flex;
  justify-content: center;
  gap: 1.3rem;
}

.hero-actions-bottom .btn {
  font-size: 1rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
}

/* SEÇÕES GENÉRICAS */

.section {
  padding: 3rem 0;
}

.section h2 {
  margin: 1;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  margin-top: 0.25rem;
}

/* SERVIÇOS */

.section-services {
  background: #e0edf4;
}

/* grid adaptativo 2 tamanhos */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  grid-auto-rows: 260px; /* altura base */
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* wide = ocupa 2 colunas em ecrãs grandes */
@media (min-width: 900px) {
  .service-card--wide {
    grid-column: span 2;
  }

  .service-card--tall {
    grid-row: span 2;
  }
}

.service-media {
  width: 100%;
  flex: 0 0 55%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(1);
  transition: filter 200ms ease-out, transform 200ms ease-out;
}

.service-content {
  padding: 1.4rem 1.6rem 1.5rem;
}

.service-content h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  text-align: justify;
}

.service-content p {
  margin: 0;
  font-size: 0.93rem;
  color: #4b5563;
  text-align: justify;
}

/* hover */
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.service-card:hover .service-media {
  filter: grayscale(0);
  transform: scale(1.03);
}

/* IMAGENS – substitui pelos teus ficheiros reais */
.service-media-1 {
  background-image: url("../assets/5.png");
}
.service-media-2 {
  background-image: url("../assets/9.png");
}
.service-media-3 {
  background-image: url("../assets/1.png");
}
.service-media-4 {
  background-image: url("../assets/11.png");
}
.service-media-5 {
  background-image: url("../assets/18.png");
}

@media (max-width: 600px) {
  .services-grid {
    grid-auto-rows: auto;
  }
}

/* TESTEMUNHOS */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  text-align: justify;
}

.testimonial-text {
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
  color: var(--color-text-soft);
}

.testimonial-meta {
  font-size: 0.8rem;
  color: var(--color-text);
  font-weight: 500;
}

/* PARCEIROS / CLIENTES */

.section-partners {
  background: #f5f5f7;
}

.partners-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, auto));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

/* Caja que contiene el logo */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Logos pequeños y uniformes */
.partner-logo img {
  width: auto;
  max-height: 150px;      /* tamaño perfecto y elegante */
  max-width: 130px;      /* evita logos gigantes horizontales */
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
  transition: 
    filter 160ms ease-out,
    opacity 160ms ease-out,
    transform 160ms ease-out;
}

.partner-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

/* LOGO ESPECIAL — AWE (muy horizontal) */
.partner-wide {
  grid-column: 1 / -1;  /* ocupa toda la fila */
  display: flex;
  justify-content: center;
}

.partner-wide img {
  max-height: 100px;   /* un poco más alto */
  max-width: 500px;   /* para que se vea */
}


/* FOOTER */

.footer {
  background: var(--color-footer);
  color: #e5e7eb;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 2rem;
  padding: 2.3rem 0;
}

.footer-grid p {
  margin: 0.2rem 0;
  font-size: 0.88rem;
}

/* RESPONSIVO HEADER SIMPLIFICADO */

@media (max-width: 960px) {
  .main-nav {
    display: none; /* por agora, sem menu mobile */
  }

  .header-inner {
    gap: 0.8rem;
  }

  .hero-banner {
    padding-top: 2.4rem;
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* PLATAFORMA */

.platform-hero {
  background: #005673;
  color: #f9fafb;
  padding: 3.5rem 0 3rem;
}

.platform-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 2.8rem;
  align-items: center;
}

.platform-hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
}

.platform-hero-text p {
  font-size: 0.98rem;
  max-width: 32rem;
  text-align: justify;
}

.platform-bullets {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: #dbeafe;
}

.platform-bullets li + li {
  margin-top: 0.25rem;
}

.platform-cta {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.platform-note {
  font-size: 0.8rem;
  color: #d1d5db;
}

/* mockup da plataforma */

.platform-hero-media {
  display: flex;
  justify-content: flex-end;
}

.platform-mockup {
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.platform-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  background: #020617;
  font-size: 0.7rem;
  color: #9ca3af;
}

.platform-mockup-header .dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.platform-mockup-header .red {
  background: #f97373;
}
.platform-mockup-header .yellow {
  background: #facc15;
}
.platform-mockup-header .green {
  background: #4ade80;
}

.mockup-title {
  margin-left: 0.4rem;
}

.platform-mockup-body {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  min-height: 260px;
}

/* sidebar */

.mockup-sidebar {
  background: #020617;
  padding: 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mockup-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b35, #ffe0c2);
}

.mockup-name {
  font-size: 0.8rem;
  color: #e5e7eb;
}

.mockup-menu {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

.mockup-menu li {
  padding: 0.25rem 0;
}

.mockup-menu li.active {
  color: #f9fafb;
  font-weight: 500;
}

/* main */

.mockup-main {
  padding: 0.9rem 1rem;
  background: #020617;
  color: #e5e7eb;
}

.mockup-main h2 {
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
}

.mockup-courses {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mockup-course-card {
  background: #0b1120;
  border-radius: 16px;
  padding: 0.7rem 0.8rem;
  font-size: 0.78rem;
}

.mockup-course-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
}

.mockup-course-card p {
  margin: 0;
  color: #9ca3af;
}

.mockup-progress {
  margin-top: 0.5rem;
  height: 4px;
  border-radius: 999px;
  background: #1f2937;
  overflow: hidden;
}

.mockup-progress-bar {
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, #ff6b35, #facc15);
}

/* features */

.platform-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.6rem;
  font-size: 0.9rem;
  text-align: justify;
  margin: 1rem 0 0;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  margin-top: 1px;
  font-size: 1rem;
  text-align: center;
}

.feature-card p {
  margin: auto;
  color: var(--color-text-soft);
  margin-top: 20px;
}

/* responsivo plataforma */

@media (max-width: 960px) {
  .platform-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .platform-hero-media {
    justify-content: flex-start;
  }

  .platform-mockup {
    max-width: 100%;
  }
}

/* ABOUT PAGE: parágrafos justificados */
.about-page p {
  text-align: justify;
  text-justify: inter-word;
}

/* 1. HERO SOBRE NÓS */

.about-hero {
  background: linear-gradient(135deg, #005673, #00425a);
  color: #f9fafb;
  padding: 3.5rem 0 3.5rem;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 2.8rem;
  align-items: center;
}

.about-hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
}

.about-hero-text p {
  font-size: 0.98rem;
  max-width: 34rem;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
}

.about-badge {
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Vídeo / reel */

.about-reel-player {
  display: flex;
  justify-content: flex-end;
}

.reel-frame {
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.45);
  background: #000;
  aspect-ratio: 9 / 16;
}

.reel-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* 2. MISSÃO (secção própria) */

.about-mission {
  background: #f4f4f7;
}

.about-hero-card {
  background: #020b17;
  border-radius: 24px;
  padding: 1.8rem 1.9rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-size: 0.9rem;
  color: #e5e7eb;
}

.about-hero-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

.about-hero-card p {
  margin: 0 0 0.9rem;
}

.about-hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #cbd5f5;
  font-size: 0.9rem;
}

.about-hero-card li + li {
  margin-top: 0.3rem;
}

/* tarjeta de missão centrada */
.about-hero-card--centered {
  max-width: 720px;
  margin: 0 auto;
}

/* 3. O QUE FAZEMOS (usa .about-grid / .about-card) */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.about-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.6rem 1.7rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
}

/* 4. FUNDADORA (tua história) */

.section-alt {
  background: #f4f4f7;
}

.about-founder-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  align-items: center;
}

.founder-photo-frame {
  max-width: 280px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.35);
  background: #dfeff9;
}

.founder-photo-frame img {
  width: 100%;
  display: block;
}

.founder-chip {
  margin-top: 0.9rem;
  display: inline-block;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  font-size: 0.85rem;
}

.about-founder-highlights {
  margin: 1.1rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

/* 5. HISTÓRIA DA MARCA */

.about-history {
  background: #dfeff9; /* azul clarinho da paleta */
}

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.about-story-text p + p {
  margin-top: 0.9rem;
}

.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-left: 0.6rem;
  border-left: 2px solid rgba(148, 163, 184, 0.7);
}

.timeline-item {
  padding-left: 0.8rem;
}

.timeline-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #005673;
  margin-bottom: 0.15rem;
}

/* 6. RECONHECIMENTOS */

.about-awards {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.about-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

.award-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 1.5rem 1.7rem;
  font-size: 0.9rem;
}

.award-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.award-meta {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  color: #6b7280;
}

/* 7. GALERIA / SLIDESHOW "Momentos LínguaOnline" */

.about-gallery {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.about-gallery .section-subtitle {
  max-width: 640px;
  margin-top: 0.75rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.gallery-slider {
  position: relative;
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 3rem; /* espaço para as setas */
}

.gallery-slides {
  position: relative;
  overflow: hidden;
  min-height: 380px; /* evita saltos enquanto muda */
}

/* Cada slide ocupa o mesmo espaço, só o ativo aparece */
.gallery-slide {
  margin: 0;
  position: absolute;
  inset: 0;               /* top/right/bottom/left: 0 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;     /* o ativo fica em cima */
}

.gallery-slide img {
  max-width: 55%;
  height: max-content;
  border-radius: 16px;
  display: block;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.gallery-slide figcaption {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
  max-width: 650px;
}

/* Botões anterior / seguinte */

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 10;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.15);
}

.gallery-prev {
  left: 0.5rem;
}

.gallery-next {
  right: 0.5rem;
}

/* Pontinhos */

.gallery-dots {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.6rem;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-dot.is-active {
  background: #333;
  transform: scale(1.2);
}

/* Responsivo slideshow */

@media (max-width: 768px) {
  .gallery-slider {
    padding: 0 1.5rem;
  }

  .gallery-nav {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .gallery-slide figcaption {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .gallery-slider {
    padding: 0 1rem;
  }
}

/* variaciones de tamanho */

.gallery5-item--large {
  width: auto;
}

.gallery5-item--wide {
  width: auto;
}

/* RESPONSIVO ABOUT / GERAL */

@media (max-width: 960px) {
  .about-hero-inner,
  .about-founder-inner,
  .about-story {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-reel-player {
    justify-content: flex-start;
  }

  .gallery5-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery5-item--large,
  .gallery5-item--wide {
    grid-column: span 2;
    grid-row: span 1;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .gallery5-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery5-item--large,
  .gallery5-item--wide {
    grid-column: span 1;
  }
}

/* override cor missão (no fim) */
.about-mission {
  background: #005470; /* azul do logo */;
  color: white;
}

/* ===========================
   PÁGINA DE SERVIÇOS – SEÇÕES COM CARDS
   =========================== */

/* HERO */

.services-hero {
  background: #005470; /* azul do logo */
  color: #f9fafb;
}

.services-hero h1 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.services-page .services-hero-subtitle {
  max-width: 1000px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  text-align: left;
  color: #f9fafb;        /* texto branco na faixa azul */
  opacity: 0.9;
}

/* SECÇÕES GERAIS */

.services-sections {
  background: #f5f5f7;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.service-section + .service-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border-soft);
}

.service-section-title {
  font-size: 1.6rem;
  margin: 0 0 0.4rem;
  color: #005470;
}

.service-section-subtitle {
  margin: 0;
  max-width: none;       /* já não corta a meio: ocupa a linha toda */
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

/* GRID DE CARDS DENTRO DE CADA SECÇÃO */

.service-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;             /* mais espaço entre cards */
  margin-top: 1.8rem;
}

/* CARD INDIVIDUAL */

.service-item {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-item-media {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(1);
  transition: filter 0.2s ease-out, transform 0.2s ease-out;
}

.service-item-body {
  padding: 1.6rem 1.7rem 1.8rem;  /* mais ar dentro do card */
}

.service-item-body h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.service-item-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;     /* texto menos “amunhado” */
  color: #4b5563;
  text-align: justify;
}

/* espaçamento entre parágrafos dentro do card */
.service-item-body p + p {
  margin-top: 0.45rem;
}

.service-item-price {
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.service-item-note {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

/* HOVER */

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.service-item:hover .service-item-media {
  filter: grayscale(0);
  transform: scale(1.03);
}

/* IMAGENS – AJUSTA OS FICHEIROS CONSOANTE OS NOMES REAIS */

/* Aulas 1:1 & grupos */
.service-img-pt-11 {
  background-image: url("../assets/Portuguese.png");
}
.service-img-es-11 {
  background-image: url("../assets/Spanish.png");
}
.service-img-pt-grupo {
  background-image: url("../assets/Portuguese2.png");
}
.service-img-es-grupo {
  background-image: url("../assets/Spanish2.png");
}
.service-img-speaking-club {
  background-image: url("../assets/SC.png");
}

/* On-demand – usa as capas dos cursos que mostraste */
.service-img-on-restaurantes {
  background-image: url("../assets/BVC.png");
}
.service-img-on-construcao {
  background-image: url("../assets/BVR.png");
}
.service-img-on-travelers {
  background-image: url("../assets/PT.png");
}
.service-img-on-nomads {
  background-image: url("../assets/PDN.png");
}

/* Empresas */

.service-img-empresas-misto {
  background-image: url("../assets/3.png");
}
.service-img-empresas-workshop {
  background-image: url("../assets/2.png");
}

/* Traduções & outros */
.service-img-trad-docs {
  background-image: url("../assets/10.png");
}
.service-img-trad-cert {
  background-image: url("../assets/12.png");
}
.service-img-trad-simultanea {
  background-image: url("../assets/7.png");
}
.service-img-language-support {
  background-image: url("../assets/19.png");
}

/* RESPONSIVO SERVIÇOS PAGE */

@media (max-width: 880px) {
  .service-item-media {
    height: 135px;
  }
}

@media (max-width: 640px) {
  .services-page .services-hero-subtitle {
    max-width: none;
    text-align: left;
  }
}
