/* =========================================================
   PORTFÓLIO DE ARTE — Thais Ohnesorge
   Paleta e tipografia conforme identidade visual oficial.
   ========================================================= */

@font-face {
  font-family: 'Blastine';
  src: url('../assets/fonts/Blastine.woff2') format('woff2'),
       url('../assets/fonts/Blastine.otf') format('opentype'),
       url('../assets/fonts/Blastine.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fffaf1;          /* creme claro — fundo principal */
  --bg-alt: #f1ceb6;       /* pêssego — fundo alternado / destaques suaves */
  --ink: #362621;          /* marrom quase-preto — texto principal */
  --ink-soft: #6e5a4f;     /* marrom suave — texto secundário */
  --green: #b4d75d;        /* verde-limão — destaque principal / botões */
  --wine: #923737;         /* vinho — destaque secundário / hover */
  --red: #d24737;          /* vermelho — links, números, CTAs */
  --rule: #e7d6bd;         /* linha fina sobre o creme */
  --card-bg: #ffffff;

  /* Blastine é a fonte da marca (arquivo em assets/fonts/).
     Enquanto o arquivo não estiver presente, cai numa cursiva do sistema. */
  --font-script: 'Blastine', 'Segoe Script', 'Brush Script MT', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0 0 .4em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: .8em;
}

/* ---------- Header / navegação ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 241, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand .brand-name {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--wine);
}

.brand .brand-tag {
  font-family: var(--font-sans);
  font-size: .6rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .1rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
  border-color: var(--red);
}

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

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

/* ---------- Hero (capa editorial) ---------- */

.hero { padding: 4rem 0 4rem; position: relative; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: end;
  position: relative;
}

.hero h1 {
  font-family: var(--font-script);
  font-weight: normal;
  color: var(--wine);
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  margin-bottom: .15em;
}

.hero .lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-bird {
  position: absolute;
  top: -2.4rem;
  right: 24px;
  width: 190px;
  opacity: .95;
  pointer-events: none;
}

.hero-index {
  border-top: 1px solid var(--wine);
  padding-top: 1rem;
}

.hero-index li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.hero-index li:last-child { border-bottom: none; }

.hero-index .num {
  color: var(--red);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .85rem;
}

.hero-index a:hover { color: var(--red); }

/* ---------- Seções gerais ---------- */

section { padding: 4.5rem 0; }

section.alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  border-bottom: 1px solid var(--wine);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* ---------- Sobre ---------- */

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

/* ---------- Placeholder de imagem ---------- */

.placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 5);
  background:
    repeating-linear-gradient(45deg, #f1e6d4, #f1e6d4 10px, #f6efe3 10px, #f6efe3 20px);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.placeholder img { width: 100%; height: 100%; object-fit: cover; }

.placeholder .ph-label {
  background: rgba(54,38,33,.8);
  color: #fff;
  font-size: .78rem;
  padding: .6rem .9rem;
  text-align: center;
  line-height: 1.4;
  max-width: 82%;
}

/* ---------- Cards "Tipos de arte" ---------- */

.art-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.art-card { --ratio: 4 / 3; }

.art-card h3 { margin-top: 1rem; font-size: 1.3rem; }

.art-card .more {
  color: var(--red);
  font-size: .88rem;
  font-weight: 600;
}

/* ---------- Galeria (páginas de seção) ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.8rem;
}

.gallery figure { margin: 0; }

.gallery figcaption {
  margin-top: .7rem;
  font-size: .9rem;
}

.gallery figcaption .title {
  font-family: var(--font-serif);
  font-weight: 700;
  display: block;
}

.gallery figcaption .meta {
  color: var(--ink-soft);
  font-size: .82rem;
}

.page-hero {
  padding: 3.2rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.breadcrumb {
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.breadcrumb a:hover { color: var(--red); }

.subsection-title {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin: 3rem 0 1.6rem;
}

.subsection-title .tag {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-links a {
  display: inline-block;
  margin: .3rem 1rem .3rem 0;
  padding: .6rem 1.1rem;
  border: 1px solid var(--wine);
  color: var(--wine);
  font-size: .9rem;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}

.contact-links a:hover { background: var(--wine); color: #fff; }

form.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.contact-form label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .7rem .8rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  border: 1px solid var(--ink-soft);
  background: var(--card-bg);
  margin-top: .35rem;
}

.contact-form button {
  align-self: flex-start;
  padding: .8rem 1.6rem;
  background: var(--wine);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .03em;
}

.contact-form button:hover { background: var(--red); }

/* ---------- Rodapé ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  font-size: .85rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a:hover { color: var(--red); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(54,38,33,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  max-width: 900px;
  width: 100%;
  color: #fff;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  color: #fff;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-bird { position: static; width: 140px; margin-bottom: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .art-types { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .main-nav { position: fixed; top: 82px; left: 0; right: 0; bottom: 0;
    background: var(--bg); transform: translateX(100%); transition: transform .25s ease;
    padding: 2rem 24px; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.4rem; }
  .menu-toggle { display: block; }
  .art-types { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
