:root {
  --bg: #faf7f2;
  --bg-alt: #f0ebe2;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --accent: #b8543e;
  --accent-soft: #e8ccb8;
  --line: #ddd5c7;
  --max-w: 1200px;
  --serif: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand span { color: var(--accent); }

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

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 46ch;
  margin: 0 0 32px;
}

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

.hero-visual {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(28, 25, 23, 0.35);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: #9c4632; }

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

.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover { background: #1eb956; }

.btn-block { width: 100%; justify-content: center; }

/* Section headings */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 12px;
}

.section-head p { color: var(--ink-soft); margin: 0; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Vertentes overview */
.vertentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.vertente-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
}

.vertente-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 10px;
  color: var(--accent);
}

.vertente-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.artwork-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.artwork-card:hover {
  box-shadow: 0 20px 40px -20px rgba(28, 25, 23, 0.28);
  transform: translateY(-3px);
}

.artwork-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
}

.artwork-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.artwork-card:hover .artwork-thumb img { transform: scale(1.05); }

.badge-sold {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.artwork-info { padding: 18px 20px 22px; }

.artwork-info .category {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.artwork-info h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 6px 0 4px;
}

.artwork-info .artist {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.artwork-info .meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.artwork-info .price {
  font-weight: 700;
  font-size: 1rem;
}

/* About */
.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-portrait {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(28, 25, 23, 0.35);
}

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

.about-text .section-eyebrow { text-align: left; }

.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin: 8px 0 18px;
}

.about-text p {
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 60ch;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
}

.about-stats div strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--accent);
}

.about-stats div span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px;
}

.contact-card h3 {
  font-family: var(--serif);
  margin-top: 0;
  font-size: 1.3rem;
}

.contact-methods { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-method:hover { border-color: var(--accent); background: var(--bg-alt); }

.contact-method .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-method .label { font-size: 0.78rem; color: var(--ink-soft); }
.contact-method .value { font-weight: 600; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }

.social-links { display: flex; gap: 16px; }

.social-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.social-links a:hover { color: var(--accent); }

/* Modal / Lightbox */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  border-radius: 10px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
}

.modal-image { background: var(--bg-alt); }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }

.modal-body { padding: 40px 36px; }

.modal-body .category {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.modal-body h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 8px 0 4px;
}

.modal-artist {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.modal-body p.description {
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.artist-bio {
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  margin: 8px 0 0;
  padding-top: 18px;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.spec-list li span:first-child { color: var(--ink-soft); }
.spec-list li span:last-child { font-weight: 600; }

.modal-price {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 20px;
}

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

/* Responsive */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 18px;
  }

  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }

  .about .container { grid-template-columns: 1fr; }
  .about-portrait { max-width: 320px; margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; }

  .modal { grid-template-columns: 1fr; }
  .modal-image { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 48px; }
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
