/* ═══════════════════════════════════════════
   OXTEC – style.css  (mobile-first)
   Fontes: Fraunces (display) + DM Sans (corpo)
   ═══════════════════════════════════════════ */

/* ── Reset & tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-900: #0f3d1a;
  --green-700: #1a5c29;
  --green-600: #217a35;
  --green-500: #2a9d47;
  --green-100: #e8f5ec;
  --green-50:  #f2faf4;
  --sand:      #f8f4ee;
  --earth:     #c8a96e;
  --text:      #1c2b1e;
  --text-muted:#4a6050;
  --white:     #ffffff;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(15,61,26,.10);
  --shadow-lg: 0 12px 48px rgba(15,61,26,.16);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3 { font-family: 'Fraunces', serif; line-height: 1.2; }
em { font-style: italic; color: var(--green-500); }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-500);
  background: var(--green-100);
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--green-900);
  margin-bottom: 1.4rem;
}

/* ── Containers ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .85rem 1.8rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn--primary {
  background: var(--green-600);
  color: var(--white);
  border-color: var(--green-600);
}
.btn--primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33,122,53,.35);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

.btn--full { width: 100%; display: block; }

.nav-btn {
  display: inline-block;
  padding: .55rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  background: var(--green-500);
  color: var(--white);
  transition: var(--transition);
  border: 2px solid var(--green-500);
}
.nav-btn:hover { background: var(--green-700); border-color: var(--green-700); }
.nav-btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.nav-btn--outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition:
    background .45s cubic-bezier(.4,0,.2,1),
    box-shadow .45s cubic-bezier(.4,0,.2,1),
    padding    .35s ease;
}

.site-header.scrolled {
  background: var(--green-700);
  box-shadow: 0 4px 28px rgba(15,61,26,.30);
}

.site-header.menu-open {
  background: var(--green-700);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
  transition: padding .35s ease;
}

.site-header.scrolled .header-inner { padding: .7rem 1.25rem; }

.logo-link { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: height .35s ease;
}
.site-header.scrolled .logo-img { height: 42px; }

.nav-desktop { display: none; align-items: center; gap: 1.6rem; }

.nav-link {
  color: rgba(255,255,255,.88);
  font-weight: 500;
  font-size: .95rem;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--earth);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  z-index: 110;
}
.bar {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .35s ease, opacity .35s ease;
  transform-origin: center;
}
.hamburger.is-active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-active .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  background: var(--green-900);
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .4s ease;
}
.nav-mobile.is-open { max-height: 400px; padding: 1rem 0 1.4rem; }

.nav-mobile__link {
  display: block;
  padding: .85rem 1.6rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.nav-mobile__link:hover { background: rgba(255,255,255,.08); color: var(--white); }

.nav-mobile__actions {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1rem 1.6rem 0;
}
.w-full { width: 100%; display: block; text-align: center; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.25rem 5rem;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(10,40,16,.80) 0%, rgba(26,92,41,.65) 100%),
    url('../images/hero.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(10,40,16,.65) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.hero__bg-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(42,157,71,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: fadeUp .8s ease both;
}

.hero__tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--earth);
  border: 1px solid rgba(200,169,110,.45);
  padding: .3rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.hero__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: rgba(255,255,255,.82);
  margin-bottom: 2.4rem;
  line-height: 1.7;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}
.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2.5px solid rgba(255,255,255,.6);
  border-bottom: 2.5px solid rgba(255,255,255,.6);
  transform: rotate(45deg);
}

/* ══════════════════════════════════════
   SOBRE
══════════════════════════════════════ */
.sobre { background: var(--sand); }

.sobre__grid { display: flex; flex-direction: column; gap: 2.5rem; }

.sobre__text { max-width: 560px; }
.sobre__text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.05rem; }
.sobre__text strong { color: var(--green-700); }

.sobre__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card__icon { font-size: 1.8rem; margin-bottom: .7rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: .4rem; color: var(--green-900); }
.feature-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.55; }

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.faq { background: var(--white); }

.faq__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.is-open {
  border-color: var(--green-500);
  box-shadow: 0 4px 20px rgba(42,157,71,.10);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.4;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--green-600); }
.faq-item.is-open .faq-q { color: var(--green-600); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--green-100);
  flex-shrink: 0;
  position: relative;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.faq-item.is-open .faq-icon {
  background: var(--green-500);
  border-color: var(--green-500);
  transform: rotate(45deg);
}
.faq-icon span {
  position: absolute;
  background: var(--green-600);
  border-radius: 2px;
  transition: background var(--transition);
}
.faq-icon span:first-child {
  width: 12px; height: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon span:last-child {
  width: 2px; height: 12px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item.is-open .faq-icon span { background: var(--white); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s cubic-bezier(.4,0,.2,1), padding .3s cubic-bezier(.4,0,.2,1);
  padding: 0 20px;
}
.faq-item.is-open .faq-a { max-height: 400px; padding: 0 20px 20px; }

.faq-a p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.72;
  border-top: 1px solid var(--green-100);
  padding-top: 14px;
}

/* ══════════════════════════════════════
   EQUIPE
══════════════════════════════════════ */
.equipe { background: var(--green-50); }

.equipe__intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.equipe__intro strong { color: var(--green-700); }

.team-photo-wrap {
  margin: 0 auto 2.5rem;
  max-width: 640px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.team-photo { width: 100%; object-fit: cover; }

.team-photo-placeholder {
  background: var(--green-100);
  border: 2px dashed var(--green-500);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 2rem;
}
.team-photo-placeholder p { font-size: .95rem; margin-top: .8rem; }
.team-photo-placeholder code { background: rgba(0,0,0,.07); padding: .1rem .4rem; border-radius: 4px; font-size: .85rem; }

/* ── Grid da equipe ──────────────────────────────────────────
   Mobile: 2 colunas
   ≥ 480px: 3 colunas
   ≥ 640px: 5 colunas → todos numa linha, alinhados
   O 5º card não fica sozinho pois em 640px já são 5 colunas.
──────────────────────────────────────────────────────────── */
.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
  /* Centraliza o grid mesmo quando não preenche a linha toda */
  justify-items: center;
}

.member-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-size: .92rem;
  color: var(--text);
  transition: transform var(--transition), box-shadow var(--transition);
  width: 100%;
  margin-top: 15px;
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.member-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   CONTATO
══════════════════════════════════════ */
.contato { background: var(--white); }

.contato__inner { display: flex; flex-direction: column; gap: 2.5rem; }

.contato__info p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }

.contato__list { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.contato__list li { display: flex; align-items: center; gap: .7rem; color: var(--text-muted); font-size: .95rem; }
.contato__list a { color: var(--green-600); font-weight: 500; }
.contato__list a:hover { text-decoration: underline; }
.contato__icon { font-size: 1.1rem; }

.contato__form {
  background: var(--green-50);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-group label { font-weight: 600; font-size: .88rem; color: var(--green-900); letter-spacing: .03em; }

.form-group input,
.form-group textarea {
  border: 1.5px solid #d0e4d5;
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(42,157,71,.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a0b8a5; }

/* ══════════════════════════════════════
   FEEDBACK CONTATO
══════════════════════════════════════ */
.contato__feedback {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .95rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  line-height: 1.5;
  animation: feedbackIn .4s cubic-bezier(.22,1,.36,1) both;
}

@keyframes feedbackIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.contato__feedback--ok {
  background: #eaf7ee;
  border: 1px solid #a8ddb8;
  color: var(--green-900);
}

.contato__feedback--erro {
  background: #fef4f4;
  border: 1px solid #f5c6c2;
  color: #7a1e1e;
}

.contato__feedback strong {
  display: block;
  font-weight: 700;
  margin-bottom: .2rem;
}

.contato__feedback p {
  margin: 0;
  font-size: .85rem;
  opacity: .85;
}

.contato__feedback-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.65);
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.footer-logo { height: 40px; width: auto; opacity: .8; margin: 0 auto; }
.site-footer p { font-size: .88rem; }
.footer-sub { font-size: .8rem; opacity: .6; }

/* ══════════════════════════════════════
   KEYFRAMES
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════
   RESPONSIVE – 480px
══════════════════════════════════════ */
@media (min-width: 480px) {
  .members-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════════════════════
   RESPONSIVE – Tablet (≥ 640px)
══════════════════════════════════════ */
@media (min-width: 640px) {
  .sobre__grid { flex-direction: row; align-items: flex-start; }
  .sobre__text { flex: 1; }
  .sobre__cards { flex: 1; }

  .contato__inner { flex-direction: row; align-items: flex-start; }
  .contato__info { flex: 1; }
  .contato__form { flex: 1; }

  /* 5 colunas = todos alinhados numa linha */
  .members-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ══════════════════════════════════════
   RESPONSIVE – Desktop (≥ 900px)
══════════════════════════════════════ */
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .hamburger   { display: none; }
  .nav-mobile  { display: none; }
  .sobre__cards { grid-template-columns: 1fr 1fr; }
}