/* ===== Lamparina — Design de Interiores ===== */
/* Reset & base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* Tokens ----------------------------------------------------------- */
:root {
  --bg: #faf7f2;
  --bg-alt: #f1ebe1;
  --ink: #2c2825;
  --ink-soft: #6b635b;
  --muted: #a89e91;
  --accent: #8b6f47;
  --accent-dark: #6b5435;
  --line: rgba(44, 40, 37, 0.12);
  --white: #ffffff;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', sans-serif;

  --container: 1240px;
  --container-narrow: 760px;

  --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); margin-bottom: 1rem; font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: .75rem; font-weight: 500; }
h4 { font-size: 1rem; font-weight: 500; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.prose {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow.dark { color: var(--ink-soft); }

.center { text-align: center; }
.center .btn { display: inline-flex; }

/* Layout ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: var(--container-narrow); }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid currentColor;
  transition: all 0.3s var(--easing);
  cursor: pointer;
  background: transparent;
}
.btn-light { color: var(--white); border-color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-outline { color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }

/* Header ----------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 0.3s var(--easing), padding 0.3s var(--easing), box-shadow 0.3s var(--easing);
  background: transparent;
}
.site-header.scrolled,
.site-header.solid {
  background: var(--bg);
  padding: 0.85rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.site-header:not(.scrolled):not(.solid) .brand-mark { color: var(--white); }
.brand-sub {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.3rem;
  font-weight: 400;
}
.site-header:not(.scrolled):not(.solid) .brand-sub { color: rgba(255,255,255,0.85); }

.site-nav {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s var(--easing);
}
.site-header:not(.scrolled):not(.solid) .site-nav a { color: var(--white); }
.site-nav a:hover { color: var(--accent); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 1px;
  background: currentColor;
}
.nav-ig {
  border: 1px solid currentColor;
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--ink);
  margin: 6px auto;
  transition: all 0.3s var(--easing);
}
.site-header:not(.scrolled):not(.solid) .nav-toggle span { background: var(--white); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(360px, 85vw);
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--easing);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { color: var(--ink) !important; font-size: 1rem; }
  .site-header:not(.scrolled):not(.solid) .nav-toggle span { background: var(--ink); }
}

/* Hero slider ------------------------------------------------------ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}
.slider { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s var(--easing);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.55) 100%);
}
.slide.is-active { opacity: 1; z-index: 2; }
.slide-inner {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all 1.2s var(--easing) 0.3s;
}
.slide.is-active .slide-inner {
  transform: translateY(0);
  opacity: 1;
}
.slide-inner .eyebrow { color: rgba(255,255,255,0.9); }
.slide-inner h1 { color: var(--white); margin-bottom: 1.25rem; }
.slide-inner .lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  font-weight: 300;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  color: var(--white);
  width: 50px; height: 50px;
  font-size: 2rem;
  font-family: var(--serif);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  transition: all 0.3s var(--easing);
  opacity: 0.7;
}
.slider-arrow:hover { opacity: 1; background: rgba(255,255,255,0.15); }
.slider-arrow.prev { left: 2rem; }
.slider-arrow.next { right: 2rem; }
@media (max-width: 768px) { .slider-arrow { display: none; } }

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.6rem;
}
.slider-dots button {
  width: 30px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s var(--easing);
  border-radius: 1px;
}
.slider-dots button.is-active { background: var(--white); }

/* Page hero (non-home pages) -------------------------------------- */
.page-hero {
  padding: 9rem 0 4rem;
  background: var(--bg-alt);
  text-align: center;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero .prose { max-width: 600px; margin: 0 auto; }

/* Intro section --------------------------------------------------- */
.intro h2 { margin-bottom: 1.5rem; }

/* Services -------------------------------------------------------- */
.services { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.service-card {
  padding: 2.5rem 2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: all 0.3s var(--easing);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--ink);
}
.service-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Projects grid --------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}
.projects-grid.full {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  margin-top: 2rem;
}
.project-card {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: block;
  transition: transform 0.6s var(--easing);
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7) 100%);
  transition: background 0.4s var(--easing);
}
.project-card:hover::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
}
.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: var(--white);
  z-index: 2;
  transform: translateY(8px);
  transition: transform 0.4s var(--easing);
}
.project-card:hover .project-overlay { transform: translateY(0); }
.project-overlay h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.project-overlay span {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* Filters --------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}
.filter {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.3s var(--easing);
  border-radius: 999px;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.project-card.is-hidden { display: none; }

/* SEO content list (reasons) -------------------------------------- */
.value-prop { background: var(--bg); }
.reasons {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}
.reasons li {
  position: relative;
  padding: 1.25rem 0 1.25rem 2rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  border-bottom: 1px solid var(--line);
}
.reasons li:last-child { border-bottom: 0; }
.reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.85rem;
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.reasons li strong { color: var(--ink); font-weight: 500; }

/* CTA section ----------------------------------------------------- */
.cta { background: var(--ink); color: var(--white); }
.cta h2 { color: var(--white); }
.cta .prose { color: rgba(255,255,255,0.8); }

/* About ----------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-photo {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo { aspect-ratio: 16 / 10; }
}

/* Values ---------------------------------------------------------- */
.values { background: var(--bg-alt); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}
.value h3 {
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.value h3::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 1px;
  background: var(--accent);
}
.value p { color: var(--ink-soft); }

/* Process --------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.step { position: relative; padding-top: 3rem; }
.step-num {
  position: absolute;
  top: 0; left: 0;
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 300;
  line-height: 1;
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* Contact --------------------------------------------------------- */
.contact-section { padding-top: 4rem; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.contact-info h3 { margin-bottom: 2rem; }
.contact-info p { margin-bottom: 1.5rem; color: var(--ink-soft); }
.contact-info strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.contact-info a:hover { color: var(--accent); }

.contact-form h3 { margin-bottom: 2rem; }
.form-row { margin-bottom: 1.5rem; }
.form-row label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border 0.2s var(--easing);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand .brand-mark {
  color: var(--white);
  font-size: 1.6rem;
  display: block;
}
.footer-brand .brand-sub {
  color: rgba(255,255,255,0.6);
  display: block;
  margin-top: 0.3rem;
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col a, .footer-col p {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s var(--easing);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* WhatsApp float -------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--easing);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Utility --------------------------------------------------------- */
@media (max-width: 600px) {
  h1 { font-size: 2.4rem; }
  .section { padding: 4rem 0; }
  .projects-grid { grid-template-columns: 1fr; }
}
