:root {
  --bg: #f5f9fc;
  --bg-soft: #ecf3f8;
  --surface: #ffffff;
  --surface-strong: #f0f7fb;
  --ink: #1d2b39;
  --ink-soft: #435669;
  --brand: #0f766e;
  --brand-strong: #0b5c56;
  --accent: #f27a3d;
  --accent-soft: #ffd7c2;
  --line: #cddbe7;
  --shadow: 0 20px 55px rgba(15, 55, 88, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background-color: #f5f9fc;
  background:
    radial-gradient(circle at 15% -10%, rgba(15, 118, 110, 0.22), transparent 37%),
    radial-gradient(circle at 90% 5%, rgba(242, 122, 61, 0.2), transparent 35%),
    linear-gradient(180deg, #f7fbff 0%, #f0f6fb 42%, #eaf2f8 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

main {
  width: 100%;
}

.container {
  width: min(var(--max-width), 92vw);
  margin-inline: auto;
}

#inicio,
#projeto,
#oferta,
#precos,
#contactos {
  scroll-margin-top: 94px;
}

.section {
  position: relative;
  padding: 84px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem);
  line-height: 1.18;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.pricing-benefits {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.pricing-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #26435a;
}

.pricing-benefits i {
  color: #1fa15a;
  font-size: 1rem;
  margin-top: 3px;
}

.pricing-benefits span {
  font-size: 1.02rem;
  line-height: 1.45;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.14);
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 0;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-sticky {
  background-color: rgba(246, 251, 255, 0.88);
  box-shadow: 0 8px 28px rgba(13, 44, 74, 0.14);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
}

.brand span {
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  color: #34475b;
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-strong);
  background: rgba(15, 118, 110, 0.12);
  outline: none;
}

.nav-link.is-active {
  color: var(--surface);
  background: linear-gradient(120deg, var(--brand), #15948a);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--ink);
  border-radius: 99px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.hero {
  position: relative;
  padding-top: 34px;
  padding-bottom: 78px;
}

.hero-splash {
  position: absolute;
  top: 8%;
  right: -8%;
  width: min(44vw, 600px);
  aspect-ratio: 1;
  border-radius: 100%;
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.6), rgba(15, 118, 110, 0.2)),
    linear-gradient(145deg, rgba(15, 118, 110, 0.24), rgba(242, 122, 61, 0.24));
  filter: blur(2px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 1;
}

.kicker {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--brand-strong);
  margin-bottom: 8px;
}

.hero-copy h1 {
  font-family: "Outfit", "Avenir Next", "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  margin-bottom: 18px;
}

.hero-tagline {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #234057;
  margin-bottom: 12px;
}

.hero-lead {
  color: var(--ink-soft);
  max-width: 54ch;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.18rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  background: linear-gradient(140deg, var(--brand), #139486);
  color: var(--surface);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.26);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(37, 78, 109, 0.2);
  color: #1a3c55;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.video-frame {
  width: min(100%, 540px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  padding: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.45));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.video-placeholder {
  height: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
  background-color: #0f6e73;
  background:
    linear-gradient(130deg, rgba(15, 118, 110, 0.95), rgba(10, 89, 120, 0.95)),
    url("../img/hero/hero-bg.svg") center/cover no-repeat;
  color: #ebffff;
  padding: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  align-content: center;
  gap: 10px;
}

.video-chip {
  width: fit-content;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.video-placeholder h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.video-placeholder p {
  font-size: 1rem;
}

.video-placeholder code {
  font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
  color: #fff4e8;
}

.video-note {
  opacity: 0.86;
  font-size: 0.95rem;
}

.section-soft {
  background-color: #e8f1f7;
  background:
    linear-gradient(180deg, rgba(236, 243, 248, 0.95), rgba(230, 240, 248, 0.86));
  border-top: 1px solid rgba(38, 74, 104, 0.08);
  border-bottom: 1px solid rgba(38, 74, 104, 0.08);
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(26, 69, 101, 0.1);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: 0 8px 24px rgba(14, 46, 73, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 32px rgba(14, 46, 73, 0.14);
}

.feature-card img {
  width: 74px;
  height: 74px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.3rem;
  margin-bottom: 9px;
}

.feature-card p {
  color: var(--ink-soft);
}

.offer-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 20px;
}

.offer-intro,
.offer-subjects {
  background: var(--surface);
  border: 1px solid rgba(30, 74, 101, 0.1);
  border-radius: var(--radius-md);
  padding: clamp(1.2rem, 2vw, 1.8rem);
  box-shadow: 0 8px 24px rgba(14, 46, 73, 0.06);
}

.offer-intro h2,
.offer-subjects h3 {
  font-family: "Outfit", sans-serif;
  margin-bottom: 12px;
  line-height: 1.2;
}

.offer-intro h2 {
  font-size: clamp(1.7rem, 1.7vw + 1rem, 2.35rem);
}

.offer-intro p,
.offer-head p,
.small-note {
  color: var(--ink-soft);
}

.offer-intro p + p {
  margin-top: 12px;
}

.offer-head {
  margin-bottom: 14px;
}

.offer-head h3 {
  font-size: 1.75rem;
}

.subject-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.subject-grid li {
  border: 1px solid rgba(16, 64, 97, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  background: linear-gradient(180deg, #fafdff, #eef6fb);
  min-height: 126px;
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: center;
}

.subject-grid img {
  width: 50px;
  height: 50px;
}

.subject-grid span {
  font-size: 0.95rem;
  color: #203347;
  font-weight: 600;
}

.subject-grid li small {
  display: block;
  margin-top: 2px;
  font-size: 0.73rem;
  line-height: 1.25;
  color: #4b657c;
  max-width: 18ch;
}

.subject-grid li.subject-more {
  min-height: 154px;
}

.small-note {
  margin-top: 14px;
  font-size: 0.98rem;
}

.section-accent {
  background-color: #edf5f9;
  background:
    radial-gradient(circle at -10% 25%, rgba(15, 118, 110, 0.2), transparent 42%),
    radial-gradient(circle at 98% 0%, rgba(242, 122, 61, 0.16), transparent 38%),
    linear-gradient(180deg, #f4fafb 0%, #edf5f9 100%);
  border-top: 1px solid rgba(30, 74, 101, 0.1);
  border-bottom: 1px solid rgba(30, 74, 101, 0.1);
}

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.pricing-table-wrap {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(30, 74, 101, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(14, 46, 73, 0.06);
  padding: 12px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}

.pricing-table th,
.pricing-table td {
  border: 1px solid var(--line);
  padding: 0.7rem;
  text-align: left;
}

.pricing-table thead th {
  background: linear-gradient(130deg, #0f766e, #13857b);
  color: #f8ffff;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
}

.pricing-table tbody tr:nth-child(even) {
  background: #f6fbff;
}

.table-note {
  margin-top: 11px;
  font-size: 0.92rem;
  color: #4a5f75;
}

.discount-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 238, 0.92));
  border: 1px solid rgba(244, 141, 88, 0.32);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(95, 58, 22, 0.12);
  padding: 1.2rem;
}

.discount-card h3 {
  font-family: "Outfit", "Avenir Next", "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #7c3f1d;
  margin-bottom: 10px;
}

.discount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.discount-group {
  border: 1px solid rgba(122, 77, 43, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.85rem 0.8rem;
}

.discount-group h4 {
  font-family: "Outfit", "Avenir Next", "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #2f6f25;
  margin-bottom: 4px;
  font-size: 1.03rem;
  font-weight: 800;
}

.discount-group:nth-of-type(1) h4 {
  color: #c35b1e;
}

.discount-group:nth-of-type(2) h4 {
  color: #2b6f20;
}

.discount-group:nth-of-type(3) h4 {
  color: #3044c4;
}

.discount-card .discount-note {
  margin-top: 0;
  margin-bottom: 8px;
  color: #5a473a;
  font-size: 0.95rem;
}

.discount-topic + .discount-topic {
  margin-top: 10px;
}

.discount-topic h5 {
  font-family: "Outfit", "Avenir Next", "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #213a4f;
  margin: 0 0 4px;
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.discount-topic h5::before {
  content: "-";
  color: #cb6830;
  font-weight: 700;
}

.discount-points {
  margin: 0;
  padding-left: 1.15rem;
  list-style: disc;
  display: grid;
  gap: 3px;
}

.discount-points li {
  color: #4a382e;
  font-size: 0.94rem;
  line-height: 1.35;
}

.section-dark {
  background-color: #163f55;
  background:
    linear-gradient(150deg, #13344d 0%, #1b4a5e 55%, #1b4b48 100%);
  color: #f4fbff;
  padding-bottom: 34px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.contact-copy h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.8rem, 2vw + 0.8rem, 2.6rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.contact-copy p {
  color: rgba(229, 245, 255, 0.94);
  max-width: 45ch;
}

.contact-mark {
  margin-top: 12px;
}

.contact-mark img {
  width: 74px;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(13, 45, 74, 0.22));
}

.section-dark .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #daf8ff;
}

.contact-grid {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(222, 244, 255, 0.24);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-item i {
  font-size: 1.2rem;
}

.contact-item:hover,
.contact-item:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.site-footer {
  border-top: 1px solid rgba(232, 248, 255, 0.2);
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
}

.site-footer p {
  color: rgba(221, 241, 255, 0.9);
  font-size: 0.92rem;
}

.reveal-1,
.reveal-2,
.reveal-3 {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    transform: translateY(18px);
  }

  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .reveal-1,
  .reveal-2,
  .reveal-3 {
    animation: riseIn 0.75s ease forwards;
  }

  .reveal-2 {
    animation-delay: 0.08s;
  }

  .reveal-3 {
    animation-delay: 0.16s;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (orientation: portrait) {
  .subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .offer-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-media {
    order: 2;
  }

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

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

  .feature-grid > :last-child:nth-child(odd),
  .discount-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .feature-grid > :last-child:nth-child(odd) {
    width: calc((100% - 18px) / 2);
  }

  .discount-grid > :last-child:nth-child(odd) {
    width: calc((100% - 10px) / 2);
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 4vw;
    width: min(82vw, 320px);
    padding: 10px;
    border: 1px solid rgba(17, 67, 95, 0.18);
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(12, 45, 74, 0.18);
    background: rgba(248, 252, 255, 0.98);
    display: none;
    gap: 5px;
    z-index: 40;
  }

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

  .nav-link {
    width: 100%;
  }

  .site-header {
    padding: 10px 0;
  }

  .hero-splash {
    width: 58vw;
    right: -15%;
    top: 3%;
  }

}

@media (max-width: 760px) {
  .section {
    padding: 70px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .subject-grid {
    gap: 10px;
  }

  .discount-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid > :last-child:nth-child(odd),
  .discount-grid > :last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  .subject-grid li {
    min-height: 110px;
  }

  .subject-grid li.subject-more {
    min-height: 150px;
  }

  .pricing-table-wrap {
    overflow-x: auto;
  }

  .pricing-table {

  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand span {
    font-size: 1.18rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 14vw, 3.1rem);
  }

  .hero-tagline {
    font-size: 1.05rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .contact-mark img {
    width: 62px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head p {
    font-size: 1rem;
  }

  .pricing-benefits span {
    font-size: 0.97rem;
  }

  .contact-item {
    align-items: flex-start;
  }
}
