/* =========================================================
   Aline Bertin | Ceramista
   Minimalista — fundo branco, texto preto, Montserrat
   ========================================================= */

:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #666666;
  --color-line: #e6e6e6;
  --max-width: 1120px;
  --gutter: 24px;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--color-line);
  padding: 40px 0 22px;
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  flex-direction: column;
}

.site-name {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--color-text);
}

.site-tagline {
  margin: 10px 0 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.2s ease;
}

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

.nav-links a.active {
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 3px;
}

/* ---------- Galeria (página inicial) ---------- */
.gallery-section {
  padding: 48px 24px 80px;
}

.intro-text {
  max-width: 620px;
  margin: 0 0 48px;
  font-weight: 300;
  font-size: 1.02rem;
  color: #333;
}

/* ---------- Sections (Sobre / Contato) ---------- */
.section {
  padding: 80px 24px;
}

.section-title {
  font-weight: 300;
  font-size: 1.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 56px;
}

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: #f4f4f4;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 898 / 1600;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.94;
}

/* ---------- Sobre ---------- */
.about-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

.about-photo {
  margin: 0;
  flex: 0 0 340px;
}

.about-photo img {
  width: 100%;
  height: auto;
}

.about {
  flex: 1 1 auto;
}

.about p {
  font-weight: 300;
  margin: 0 0 22px;
  color: #222;
}

.about p:last-child {
  margin-bottom: 0;
}

/* ---------- Contato ---------- */
.contact-text {
  text-align: center;
  font-weight: 300;
  color: #333;
  max-width: 520px;
  margin: 0 auto 28px;
}

.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.contact-links a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-links a:hover {
  border-color: var(--color-text);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 32px 0;
  margin-top: 40px;
}

.site-footer p {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.97);
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  font-weight: 300;
  line-height: 1;
  padding: 12px;
}

.lightbox-close {
  top: 20px;
  right: 28px;
  font-size: 2.4rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  color: var(--color-muted);
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .about-layout {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .about-photo {
    flex: 0 0 auto;
    width: 100%;
    max-width: 380px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 28px 0 18px;
  }
  .header-inner {
    align-items: flex-start;
    gap: 16px;
  }
  .nav-links {
    gap: 18px;
    margin-bottom: 0;
  }
  .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }
  .gallery-section {
    padding: 32px 20px 60px;
  }
  .section {
    padding: 48px 20px 60px;
  }
  .lightbox-nav {
    font-size: 2.2rem;
  }
}

@media (max-width: 620px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
