/* ========================================
   INSTITUTO SOMAR — STYLESHEET
   Cores: Turquesa #2BBCB3 / Laranja #E8752A
   Fontes: Poppins (títulos) + DM Sans (corpo)
   ======================================== */

/* RESET & BASE */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal: #2BBCB3;
  --teal-dark: #1E9A92;
  --teal-light: #E8F8F7;
  --orange: #E8752A;
  --orange-dark: #C9601F;
  --orange-light: #FDF0E8;
  --white: #FFFFFF;
  --off-white: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.05), 0 10px 30px rgba(0,0,0,0.08);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-orange { color: var(--orange); }

/* NAVIGATION */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo-img {
  height: 40px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.nav__link:hover { color: var(--teal); }

.nav__link--cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
}

.nav__link--cta:hover { background: var(--teal-dark); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn--primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,117,42,0.3);
}

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

.btn--outline:hover {
  background: var(--white);
  color: var(--teal-dark);
}

.btn--lg { padding: 18px 40px; font-size: 17px; }
.btn--full { width: 100%; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://d2xsxph8kpxj0f.cloudfront.net/310419663026825227/cCqx2U9ZA75jzdGgtD9Ytu/somar-hero-PeEU4Cc2Wa3Fw3T8NH8XpJ.webp') center/cover no-repeat;
  text-align: center;
  color: var(--white);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,154,146,0.75) 0%, rgba(17,24,39,0.65) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 120px 24px 80px;
}

.hero__tag {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* SECTIONS */
.section {
  padding: 100px 0;
}

.section--white { background: var(--white); }
.section--light { background: var(--off-white); }

.section--teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section__tag--light { color: rgba(255,255,255,0.8); }

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__title--light { color: var(--white); }

.section__lead {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about__text p {
  margin-bottom: 16px;
  color: var(--gray-600);
}

.about__text p:last-child { margin-bottom: 0; }

/* PILLARS */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.pillar {
  text-align: center;
  padding: 40px 24px;
}

.pillar__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--teal);
}

.pillar__icon svg { width: 100%; height: 100%; }

.pillar__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.pillar__text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* MECHANISM */
.mechanism {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mechanism__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mechanism__hub {
  position: relative;
  width: 360px;
  height: 360px;
}

.mechanism__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 32px rgba(232,117,42,0.3);
}

.mechanism__node {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 16px rgba(43,188,179,0.3);
}

.mechanism__node--1 { top: 0; left: 50%; transform: translateX(-50%); }
.mechanism__node--2 { top: 12%; right: 2%; }
.mechanism__node--3 { top: 55%; right: 0; }
.mechanism__node--4 { bottom: 0; right: 15%; }
.mechanism__node--5 { bottom: 0; left: 15%; }
.mechanism__node--6 { top: 55%; left: 0; }
.mechanism__node--7 { top: 12%; left: 2%; }

/* TECH */
.tech {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.tech__text {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

.tech__stats {
  display: flex;
  gap: 40px;
}

.tech__stat { text-align: center; }

.tech__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
}

.tech__stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.tech__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* IMPACT */
.impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.impact__card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.impact__card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.impact__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 16px;
}

.impact__card:hover .impact__number { color: var(--teal); }

.impact__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.impact__text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* CTA */
.section--cta {
  position: relative;
  padding: 120px 0;
  background: url('https://d2xsxph8kpxj0f.cloudfront.net/310419663026825227/cCqx2U9ZA75jzdGgtD9Ytu/somar-impact-554VPHrCdzkUZUoQbTvsg5.webp') center/cover no-repeat;
  text-align: center;
  color: var(--white);
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,154,146,0.88) 0%, rgba(17,24,39,0.75) 100%);
}

.cta__content {
  position: relative;
  z-index: 2;
}

.cta__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta__text {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
  opacity: 0.9;
}

/* CONTACT */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info p {
  color: var(--gray-600);
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.contact__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--teal);
}

.form__group { margin-bottom: 16px; }

.form__input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form__input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43,188,179,0.15);
}

.form__textarea { resize: vertical; min-height: 120px; }

select.form__input { appearance: none; cursor: pointer; }

/* FOOTER */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 32px;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gray-400);
  max-width: 320px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer__links a:hover { color: var(--teal); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .impact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .nav__menu.active { display: flex; }
  .nav__toggle { display: flex; }

  .hero__content { padding: 100px 24px 60px; }

  .about,
  .mechanism,
  .tech,
  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars { grid-template-columns: 1fr; }
  .impact { grid-template-columns: 1fr; }

  .mechanism__hub {
    width: 300px;
    height: 300px;
  }

  .mechanism__node {
    width: 65px;
    height: 65px;
    font-size: 10px;
  }

  .mechanism__center {
    width: 100px;
    height: 100px;
    font-size: 12px;
  }

  .tech__stats {
    flex-direction: column;
    gap: 24px;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section { padding: 72px 0; }
}
