/*
  Estilos adaptados do template HTML para o tema WordPress.
  O Tailwind CDN está sendo carregado via header.php.
*/

:root {
  color-scheme: light;
  --bg: #f9f6f1;
  --surface: #ffffff;
  --panel: #f1ece3;
  --text: #1d1b19;
  --muted: #6b675f;
  --accent: #9d5f3f;
  --accent-soft: #f2e4d8;
  --border: #e5dcd0;
  --radius: 24px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Spectral', Georgia, serif;
  background: radial-gradient(circle at top left, rgba(157,95,63,0.12), transparent 35%), linear-gradient(180deg, #fdf9f5 0%, #f7f0e8 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(241, 235, 223, 0.96);
  border-bottom: 1px solid rgba(95, 76, 59, 0.18);
  backdrop-filter: blur(6px);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(7, 15, 23, 0.92);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-row {
  max-width: none;
  margin: 0 auto;
  padding: 22px 30px 16px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100%, 1600px);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.9rem 2.3rem;
  padding: 0 30px 0 0;
  margin-left: auto;
  margin-right: 0;
}

.site-nav a,
.brand {
  color: rgba(33, 27, 23, 0.93);
}

.site-header.scrolled .site-nav a,
.site-header.scrolled .brand {
  color: #ffffff;
}

.site-nav a:hover {
  color: #ffffff;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: white;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-top: 5rem;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: clamp(2rem, 3vw, 3.8rem);
  padding-right: clamp(2rem, 3vw, 3.8rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 2.25rem;
}

.hero-section .absolute.inset-0 img {
  min-height: 100vh;
  width: 100%;
  filter: brightness(0.9) contrast(1.05);
}

.hero-section .absolute.inset-0 > div:nth-child(2) {
  opacity: 0.55;
}

.hero-section .absolute.inset-0 > div:nth-child(3) {
  opacity: 0.35;
}

.hero-section .max-w-3xl {
  max-width: 1240px;
  padding-top: 3.25rem;
}

.hero-section .text-sm.font-semibold.uppercase {
  margin-bottom: 0.9rem;
  letter-spacing: 0.38em;
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-section h1 {
  margin: 0;
  line-height: 0.84 !important;
  letter-spacing: -0.07em !important;
  font-weight: 500 !important;
  max-width: 1200px;
  font-size: clamp(5rem, 6vw, 9rem) !important;
}

.hero-section h1 span {
  display: inline-block;
  font-style: italic;
}

.hero-section p.mt-6 {
  max-width: 52rem;
  font-size: clamp(1.05rem, 1.33vw, 1.7rem);
  line-height: 1.5;
  margin-top: 1.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: clamp(1.53rem, 1.665vw, 2.52rem);
  line-height: 0.95;
  transform: translateY(-1px);
  font-family: 'Fraunces', Georgia, serif;
}

.brand-logo {
  width: 31.5px;
  height: 31.5px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
}

.site-nav a {
  color: rgba(33, 27, 23, 0.72);
  font-size: clamp(0.68rem, 0.62vw, 0.9rem);
  line-height: 1.2;
  font-family: 'Archivo', 'Segoe UI', sans-serif;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
}

.note-card,
.section-block,
.contact-block,
.site-footer {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

.note-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 2.75rem auto;
  max-width: 1600px;
  padding: 3.5rem clamp(2rem, 3vw, 3.8rem) 2.5rem;
  background: transparent;
}

.note-index {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
}

.note-card strong {
  display: block;
  font-size: clamp(2.1rem, 2.1vw, 3.2rem);
  margin-bottom: 0.75rem;
  line-height: 1.08;
  color: #1f1b1a;
  font-weight: 500;
  font-family: 'Fraunces', Georgia, serif;
}

.note-card p {
  margin: 0 0 1rem;
  color: rgba(31, 27, 26, 0.8);
  line-height: 1.35;
  max-width: 62rem;
  font-size: clamp(1.5rem, 1.8vw, 2.4rem);
  font-weight: 400;
  font-family: 'Fraunces', Georgia, serif;
}

.link-inline {
  font-weight: 600;
  color: var(--accent);
}

.section-block {
  background: rgba(241, 235, 223, 0.96);
  border-top: 1px solid rgba(124, 101, 80, 0.16);
  border-bottom: 1px solid rgba(124, 101, 80, 0.16);
  padding: 2.75rem 0 4rem;
}

.section-block > * {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(2rem, 3vw, 3.8rem);
  padding-right: clamp(2rem, 3vw, 3.8rem);
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.section-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.section-label {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
}

.section-heading h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-card,
.text-item {
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
}

.book-card img {
  width: 100%;
  height: 620px;
  border-radius: 22px;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1rem;
  box-shadow: none;
  display: block;
}

.book-card:first-child img {
  object-position: center 18%;
}

.book-meta {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.book-card h3,
.text-item h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.book-card p {
  color: var(--muted);
  line-height: 1.8;
}

.card-link,
.text-item a {
  display: inline-flex;
  margin-top: 1.15rem;
  color: var(--accent);
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 28px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

.text-list {
  display: grid;
  gap: 1rem;
}

.text-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
}

.text-kind {
  font-weight: 700;
  color: var(--accent);
  min-width: 84px;
}

.text-item h3 {
  margin: 0 0 0.55rem;
}

.text-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.french-block {
  display: grid;
  gap: 2rem;
}

.french-grid {
  display: grid;
  grid-template-columns: 1.2fr minmax(280px, 1fr);
  align-items: center;
  gap: 2rem;
}

.french-grid img {
  width: 100%;
  border-radius: 30px;
  object-fit: cover;
}

.french-features {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.feature-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.contact-block {
  max-width: 1600px;
  margin: 2.75rem auto;
  padding: 2.75rem clamp(2rem, 3vw, 3.8rem) 4rem;
  text-align: left;
}

.contact-block h2 {
  margin: 0.65rem 0 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.contact-block p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 65ch;
}

.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 3.25rem clamp(2rem, 3vw, 3.8rem) 1.25rem;
  border-top: 1px solid rgba(122, 102, 82, 0.38);
  background: rgba(241, 235, 223, 0.9);
  color: #241f1d;
}

.footer-top {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.95fr;
  gap: 2.25rem;
  align-items: start;
  padding-top: 1.15rem;
}

.footer-title {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(36, 31, 29, 0.72);
  font-family: 'Archivo', 'Segoe UI', sans-serif;
}

.footer-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.footer-top li {
  color: rgba(36, 31, 29, 0.82);
  font-size: clamp(1rem, 1.1vw, 1.4rem);
  font-family: 'Spectral', Georgia, serif;
}

.footer-top a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom {
  max-width: 1600px;
  margin: 2.2rem auto 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(122, 102, 82, 0.38);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: rgba(36, 31, 29, 0.76);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Archivo', 'Segoe UI', sans-serif;
}

.brand-name {
  margin: 0 0 0.75rem;
  font-size: clamp(1.62rem, 1.62vw, 2.1rem);
  line-height: 1.1;
  font-weight: 500;
  font-family: 'Fraunces', Georgia, serif;
  color: #241f1d;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-name .brand-mark {
  display: none;
}

.quote {
  margin: 0;
  color: rgba(36, 31, 29, 0.75);
  font-size: clamp(1.15rem, 1.4vw, 1.9rem);
  line-height: 1.2;
  font-style: italic;
  font-weight: 400;
  font-family: 'Fraunces', Georgia, serif;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-item .icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36, 31, 29, 0.75);
  border-radius: 0.25rem;
  font-size: 0.72rem;
  line-height: 1;
  color: rgba(36, 31, 29, 0.9);
}

.contact-item .icon.instagram {
  border-radius: 50%;
}

@media (max-width: 1100px) {
  .hero,
  .french-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .brand-row,
  .hero,
  .note-card,
  .cards-grid,
  .gallery-grid,
  .text-item,
  .french-features,
  .footer-top {
    gap: 1.25rem;
  }

  .hero,
  .note-card,
  .section-block,
  .contact-block,
  .site-footer {
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .cards-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .text-item {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}
