/* Campos Lima — Janelas e Estores
 * Paleta: warm precision (charcoal + cream + ocre)
 * Tipografia: Fraunces (serif, headings) + Inter (sans, body)
 * ~10 linhas de JS no index.html para o menu mobile; sem build, sem deps
 */

:root {
  --ink: #1f2937;
  --paper: #faf7f2;
  --paper-warm: #f4eee2;
  --accent: #b85c2e;
  --muted: #6b7280;
  --line: #e6e0d4;
  --whatsapp: #25d366;

  --max: 1100px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 1.0625rem/1.6 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem var(--gutter);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-size: 0.95rem;
}
.nav .cta {
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ---------- Mobile nav (hamburger toggles .nav.open via JS) ---------- */

@media (max-width: 720px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 22px;
    z-index: 60;
  }
  .nav-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.5rem var(--gutter);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
    z-index: 40;
  }
  .nav.open {
    transform: translateY(0);
    visibility: visible;
  }
  .nav a {
    font-size: 1.05rem;
    padding: 0.25rem 0;
  }
  .nav .cta {
    align-self: flex-start;
    padding: 0.65rem 1.25rem;
    margin-top: 0.5rem;
  }
}

/* ---------- Section base ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem var(--gutter);
}

.section h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.3rem);
  margin-bottom: 2rem;
}

.section-intro {
  max-width: 52ch;
  color: var(--muted);
  margin: -1.25rem 0 2.5rem;
}

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

.hero { padding-top: 2rem; }

.hero-photo {
  width: 100%;
  height: clamp(280px, 55vh, 540px);
  object-fit: cover;
  background: var(--line);
}

.hero-text { padding-top: 2.5rem; max-width: 62ch; }

.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.13rem;
  color: #374151;
  margin: 0 0 1.75rem;
}

.hero-meta {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  font-size: 0.97rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }

/* ---------- Services ---------- */

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.services-list li {
  background: var(--paper);
  padding: 1.5rem;
  font-weight: 500;
}

/* ---------- Process ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.25rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.steps h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.steps p { color: var(--muted); font-size: 0.97rem; margin: 0; }

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

.gallery {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.gallery li {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--line);
}

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

.gallery li:hover img { transform: scale(1.04); }

/* ---------- Gallery "Ver mais" expansion (semantic <details>) ---------- */

.gallery-more {
  margin-top: 1.5rem;
  text-align: center;
}

.gallery-more summary {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 0.97rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  list-style: none;
}
.gallery-more summary::-webkit-details-marker { display: none; }
.gallery-more summary::marker { content: ''; }
.gallery-more summary:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-1px);
}
.gallery-more[open] summary { margin-bottom: 1rem; }
.gallery-extra { margin-top: 0.5rem; }

/* ---------- About ---------- */

.about p {
  max-width: 60ch;
  font-size: 1.06rem;
  margin: 0 0 1.25rem;
}

/* ---------- Contact ---------- */

.contact { background: var(--paper-warm); }

.contact-line {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.contact-line .label {
  color: var(--muted);
  margin-right: 0.75rem;
}

.contact-line a {
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
}

.contact-area {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2.5rem;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--gutter);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- WhatsApp floating action button ---------- */

.whatsapp-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  z-index: 100;
  transition: transform 0.2s ease;
}

.whatsapp-fab:hover { transform: translateY(-2px); }
