/* ============================================
   Letícia Sebastian — Portfólio
   ============================================ */

:root {
  --sage: #7f9c7a;
  --sage-dark: #5f7a5c;
  --terracotta: #e08a56;
  --terracotta-dark: #c96f3d;
  --coral: #e8a08a;
  --cream: #faf6ef;
  --cream-dark: #f2ead9;
  --ink: #3a352f;
  --ink-soft: #6b6459;
  --white: #ffffff;

  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  --radius: 20px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--sage-dark);
}

.logo span {
  color: var(--terracotta);
  margin-left: 4px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: color 0.2s;
}

.nav a:hover { color: var(--terracotta); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

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

.btn--primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224, 138, 86, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: var(--sage);
  color: var(--sage-dark);
}

.btn--ghost:hover {
  background: var(--sage);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(280px, 380px);
  align-items: center;
  gap: 48px;
}

.hero__text { min-width: 0; }

.hero__photo {
  justify-self: end;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(58, 53, 47, 0.18);
}

.eyebrow, .section__eyebrow {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--terracotta-dark);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--sage-dark);
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero__blob {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--coral), var(--terracotta) 60%, transparent 75%);
  opacity: 0.35;
  z-index: 1;
}

/* ---------- Section shared ---------- */

section { padding: 96px 0; }

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 680px;
}

.section__lead {
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* ---------- Sobre / Minha História ---------- */

.sobre { background: var(--white); }

.historia {
  max-width: 720px;
  margin: 40px auto 0;
}

.historia p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0 0 28px;
}

.historia__lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
}

.historia__closing {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--sage-dark);
  margin-bottom: 0;
}

.historia__img {
  margin: 0 0 28px;
}

.historia__img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 16px 32px rgba(58, 53, 47, 0.12);
}

/* ---------- Trabalhos / Gallery ---------- */

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--cream-dark);
  background: var(--white);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter:hover { border-color: var(--sage); }

.filter.active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(58, 53, 47, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(58, 53, 47, 0.12);
}

.card.hidden { display: none; }

.card__img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: 1.05rem;
}

.card--conteudo { background: linear-gradient(145deg, var(--sage), var(--sage-dark)); }
.card--parto { background: linear-gradient(145deg, var(--terracotta), var(--terracotta-dark)); }
.card--video { background: linear-gradient(145deg, var(--coral), var(--terracotta)); }

.card figcaption {
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.card__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.card__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.card__video-vertical {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--ink);
}

/* ---------- Serviços ---------- */

.servicos { background: var(--white); }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.2s;
}

.service-card:hover { transform: translateY(-4px); }

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--terracotta);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.service-card li {
  color: var(--ink-soft);
  padding: 6px 0;
  border-top: 1px solid var(--cream-dark);
}

.service-card li:first-child { border-top: none; }

/* ---------- Contato ---------- */

.contato__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contato__info {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contato__info a {
  font-weight: 700;
  color: var(--sage-dark);
}

.socials {
  display: flex;
  gap: 20px;
}

.socials a {
  font-weight: 700;
  color: var(--terracotta-dark);
}

.contato__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(58, 53, 47, 0.06);
}

.contato__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.contato__form input,
.contato__form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--cream-dark);
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
}

.contato__form input:focus,
.contato__form textarea:focus {
  outline: none;
  border-color: var(--sage);
}

/* ---------- Footer ---------- */

.footer {
  padding: 32px 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 860px) {
  .services { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .contato__inner { grid-template-columns: 1fr; gap: 40px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero__photo { justify-self: center; max-width: 320px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
}

@media (max-width: 640px) {
  .nav { display: none; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    gap: 20px;
    box-shadow: 0 12px 24px rgba(58, 53, 47, 0.08);
  }

  .menu-toggle { display: flex; }

  .hero { padding: 64px 0 80px; }
  .hero__blob { width: 340px; height: 340px; top: -80px; right: -140px; }

  section { padding: 64px 0; }

  .historia p { font-size: 1rem; }
  .historia__lead { font-size: 1.15rem; }

  .services { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }

  .contato__form { padding: 24px; }
}
