:root {
  --ink: #172436;
  --muted: #5d6f7a;
  --brand: #1d5c7d;
  --brand-dark: #133f5b;
  --teal: #087f83;
  --coral: #d55f42;
  --gold: #e7ae3d;
  --green: #4f9365;
  --paper: #fffdf8;
  --soft: #f3f7f4;
  --blue-soft: #e9f4f8;
  --line: #d9e4e8;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 36, 54, 0.14);
  --radius: 8px;
  --header-height: 64px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 5px clamp(20px, 4vw, 48px);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(217, 228, 232, 0.8);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 28px rgba(23, 36, 54, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 184px;
  height: auto;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.site-nav a {
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--coral);
  border-color: currentColor;
}

.header-action,
.btn,
.nav-toggle,
.floating-whatsapp,
.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-action {
  min-height: 44px;
  padding: 0 16px;
  color: var(--white);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(8, 127, 131, 0.2);
}

.header-action:hover,
.header-action:focus-visible {
  background: #066c70;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--brand-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero {
  position: relative;
  min-height: clamp(540px, 78vh, 720px);
  display: flex;
  align-items: flex-start;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 44px) 0 clamp(54px, 8vw, 88px);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 253, 248, 0.78) 34%, rgba(255, 253, 248, 0.28) 62%, rgba(255, 253, 248, 0.1) 100%),
    linear-gradient(0deg, rgba(23, 36, 54, 0.12), rgba(23, 36, 54, 0.02));
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  max-width: 690px;
  margin-left: max(20px, calc((100vw - 1120px) / 2));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  letter-spacing: 0;
  color: var(--brand-dark);
}

.hero-title-main,
.hero-title-sub {
  display: block;
}

.hero-title-main {
  font-size: clamp(2.6rem, 5.75vw, 4.62rem);
  line-height: 0.88;
}

.hero-title-sub {
  margin-top: 8px;
  font-size: clamp(2rem, 4.1vw, 3.45rem);
  line-height: 0.98;
  white-space: nowrap;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--brand-dark);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.18;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: #30475a;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
}

.btn-primary {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(29, 92, 125, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
}

.btn-secondary {
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(29, 92, 125, 0.22);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--brand);
  background: var(--white);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(600px, 100%);
  margin-top: 36px;
}

.hero-metrics div {
  min-height: 88px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 228, 232, 0.85);
  border-radius: var(--radius);
}

.hero-metrics strong {
  display: block;
  color: var(--teal);
  font-size: 1.8rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.intro-band {
  padding: clamp(34px, 5vw, 54px) 0;
  background: var(--brand-dark);
  color: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-item {
  padding: 8px 0;
}

.intro-item svg,
.contact-method svg {
  flex: 0 0 auto;
}

.intro-item svg {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: var(--gold);
}

.intro-item h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.18rem;
  line-height: 1.2;
}

.intro-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading.align-start {
  margin-inline: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.courses-section {
  background: var(--paper);
}

.course-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-field svg {
  width: 19px;
  color: var(--teal);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.filter-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.filter-tabs button,
.service-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 12px;
  color: var(--brand-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
}

.filter-tabs button[aria-selected="true"],
.service-tabs button[aria-selected="true"] {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-grid.has-area-visual {
  grid-template-columns: minmax(270px, 390px) minmax(0, 1fr);
  align-items: stretch;
}

.course-grid.has-area-visual .course-card,
.course-grid.has-area-visual .empty-state {
  grid-column: 1;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-card,
.service-panel,
.lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(23, 36, 54, 0.08);
}

.course-card {
  min-height: 312px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.course-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--teal);
  border-radius: var(--radius);
}

.course-card[data-area="Saúde"] .course-icon {
  background: var(--teal);
}

.course-card[data-area="Beleza"] .course-icon {
  background: var(--coral);
}

.course-card[data-area="Informática"] .course-icon {
  background: var(--brand);
}

.course-card[data-area="Gestão"] .course-icon {
  background: var(--green);
}

.course-card[data-area="Comércio"] .course-icon {
  background: var(--gold);
  color: #3a2b03;
}

.course-card[data-area="Gastronomia"] .course-icon {
  background: #8f5a2a;
}

.course-card[data-area="Turismo"] .course-icon {
  background: #456fb3;
}

.course-area {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-card p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 18px;
}

.tag-list span {
  padding: 5px 8px;
  color: var(--brand-dark);
  background: var(--blue-soft);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 900;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--coral);
}

.area-visual {
  grid-column: 2;
  grid-row: 1 / span 6;
  align-self: start;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(23, 36, 54, 0.08);
}

.area-visual img {
  width: 100%;
  height: clamp(300px, 32vw, 430px);
  background: #c4d8e6;
  object-fit: contain;
  object-position: center;
}

.area-visual[data-fit="cover"] img {
  object-fit: cover;
}

.service-section {
  background: linear-gradient(180deg, var(--blue-soft), #f8fbf6);
}

.service-layout {
  display: grid;
  gap: clamp(22px, 4vw, 38px);
}

.service-heading {
  max-width: none;
  margin-bottom: 0;
}

.service-heading p:not(.eyebrow) {
  max-width: 980px;
  margin-bottom: 0;
}

.service-content {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 38px);
  align-items: stretch;
}

.service-panel {
  min-width: 0;
  padding: 22px;
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.service-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
}

.service-tabs button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.service-detail {
  min-height: 260px;
  padding: 4px 2px 0;
}

.service-detail h3 {
  margin-bottom: 10px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.service-detail p {
  color: var(--muted);
}

.service-detail .service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--brand);
  border-radius: var(--radius);
}

.service-detail ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-detail li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #385161;
}

.service-detail li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 9px;
  flex: 0 0 auto;
  background: var(--coral);
  border-radius: 50%;
}

.service-visual {
  min-width: 0;
}

.service-photo {
  height: 100%;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  background: #c4d8e6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(23, 36, 54, 0.08);
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feature-section {
  background: var(--paper);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.feature-item {
  padding-top: 24px;
  border-top: 3px solid var(--gold);
}

.feature-item:nth-child(2) {
  border-color: var(--teal);
}

.feature-item:nth-child(3) {
  border-color: var(--coral);
}

.feature-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 900;
}

.feature-item p {
  color: var(--muted);
}

.faq-section {
  background: #f6f2e8;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 60px);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1px solid #e2d8c3;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 64px;
  padding: 0 18px;
  color: var(--brand-dark);
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 900;
}

.faq-item button svg {
  transition: transform 180ms ease;
}

.faq-item.is-open button svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 180ms ease;
}

.faq-answer > p {
  overflow: hidden;
  margin: 0;
  padding: 0 18px;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer > p {
  padding-bottom: 18px;
}

.contact-section {
  background: var(--brand-dark);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.contact-copy h2 {
  color: var(--white);
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.06rem;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.contact-method:hover,
.contact-method:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.contact-method small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
}

.lead-form {
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--brand-dark);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.form-row textarea {
  min-height: 122px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 131, 0.14);
}

.form-submit {
  width: 100%;
}

.form-note {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 26px 0;
  background: #101b2a;
  color: rgba(255, 255, 255, 0.75);
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-content img {
  width: 168px;
  height: auto;
}

.footer-content p {
  margin: 0;
}

.footer-content small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-content a {
  width: 42px;
  height: 42px;
  margin-left: auto;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  width: 56px;
  height: 56px;
  color: var(--white);
  background: #0b8f6f;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  background: #087a5f;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(23, 36, 54, 0.16);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 50px;
    display: flex;
    align-items: center;
  }

  .header-action {
    justify-self: end;
    margin-right: 12px;
  }

  .intro-grid,
  .course-grid,
  .course-grid.has-area-visual,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .course-toolbar,
  .service-layout,
  .faq-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-content {
    grid-template-columns: 1fr;
  }

  .service-photo {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .filter-tabs {
    justify-content: flex-start;
  }

  .course-grid.has-area-visual .course-card,
  .course-grid.has-area-visual .empty-state,
  .area-visual {
    grid-column: 1;
  }

  .area-visual {
    grid-row: auto;
  }

  .area-visual img {
    height: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 62px;
  }

  .container,
  .hero-content {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand img {
    width: 142px;
  }

  .header-action {
    width: 44px;
    padding: 0;
  }

  .header-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .hero {
    min-height: min(560px, calc(100svh - var(--header-height) - 36px));
    align-items: flex-end;
    padding-block: 30px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.9) 42%, rgba(255, 253, 248, 0.42) 100%),
      linear-gradient(90deg, rgba(255, 253, 248, 0.85), rgba(255, 253, 248, 0.18));
  }

  .hero-content {
    margin-inline: auto;
  }

  .hero-title-main {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .hero-title-sub {
    max-width: 11ch;
    font-size: clamp(2rem, 10.5vw, 3.2rem);
    white-space: normal;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 20px;
  }

  .hero-metrics div {
    min-height: 74px;
    padding: 10px 8px;
  }

  .hero-metrics strong {
    font-size: 1.35rem;
  }

  .hero-metrics span {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .course-toolbar {
    gap: 14px;
  }

  .service-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-tabs button {
    width: 100%;
    padding: 0 10px;
  }

  .filter-tabs {
    display: flex;
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .filter-tabs button {
    width: auto;
  }

  .service-detail {
    padding: 18px;
  }

  .service-panel {
    padding: 18px;
  }

  .service-tabs button {
    gap: 6px;
    padding: 0 8px;
    font-size: 0.9rem;
  }

  .service-detail ul {
    grid-template-columns: 1fr;
  }

  .footer-content {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
