/* 
   Bruno Montador de Móveis - Landing Page Styles
   Design: Premium Wood & Gold aesthetic, high performance, mobile-first
*/

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* --- Design Tokens --- */
:root {
  /* Color Palette (Vanilla Fallback + Modern OKLCH) */
  --background: oklch(0.97 0.015 80);
  --foreground: oklch(0.2 0.03 40);
  --card: oklch(0.99 0.01 80);
  --card-foreground: oklch(0.2 0.03 40);
  --primary: oklch(0.28 0.05 40);
  --primary-foreground: oklch(0.97 0.015 80);
  --secondary: oklch(0.92 0.03 75);
  --secondary-foreground: oklch(0.28 0.05 40);
  --muted: oklch(0.93 0.02 75);
  --muted-foreground: oklch(0.45 0.03 40);
  --accent: oklch(0.68 0.14 65);
  --accent-foreground: oklch(0.99 0.01 80);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.99 0.01 80);
  --border: oklch(0.88 0.02 75);
  --input: oklch(0.88 0.02 75);
  --ring: oklch(0.68 0.14 65);
  
  /* Brand colors */
  --wood: oklch(0.42 0.08 45);
  --wood-dark: oklch(0.22 0.04 40);
  --gold: oklch(0.72 0.13 70);
  --cream: oklch(0.96 0.02 85);
  --whatsapp: oklch(0.65 0.17 145);
  --whatsapp-hover: oklch(0.60 0.17 145);

  /* Typography */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;

  /* Shadows & Gradients */
  --shadow-warm: 0 20px 60px -20px oklch(0.25 0.05 40 / 0.35);
  --shadow-card: 0 8px 30px -10px oklch(0.25 0.05 40 / 0.25);
  --gradient-hero: linear-gradient(135deg, oklch(0.22 0.04 40) 0%, oklch(0.32 0.06 40) 100%);
  --gradient-gold: linear-gradient(135deg, oklch(0.75 0.13 75) 0%, oklch(0.62 0.14 60) 100%);
  
  --radius: 0.75rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--wood-dark);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Button Styles --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
  box-shadow: var(--shadow-warm);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 25px 65px -15px oklch(0.25 0.05 40 / 0.45);
}

.btn-outline {
  border: 1px solid oklch(0.72 0.13 70 / 0.6);
  color: var(--cream);
}

.btn-outline:hover {
  background-color: oklch(0.72 0.13 70 / 0.1);
  transform: translateY(-2px);
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--whatsapp);
  color: #ffffff;
  padding: 0.9rem 1.25rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-warm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.floating-whatsapp svg {
  width: 1.5rem;
  height: 1.5rem;
}

.floating-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 65px -15px oklch(0.25 0.05 40 / 0.45);
}

@media (max-width: 576px) {
  .floating-whatsapp span {
    display: none;
  }
  .floating-whatsapp {
    padding: 0.9rem;
  }
}

/* --- Header --- */
header {
  border-bottom: 1px solid oklch(0.88 0.02 75 / 0.6);
  background-color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

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

.header-logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.header-text p:first-child {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wood-dark);
}

.header-text p:last-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

.header-phone {
  font-weight: 600;
  color: var(--wood-dark);
}

.header-phone:hover {
  color: var(--gold);
}

/* --- Menu & Navigation --- */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--wood-dark);
  position: relative;
  padding: 0.5rem 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--whatsapp);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px oklch(0.65 0.17 145 / 0.2);
}

.nav-cta:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px oklch(0.65 0.17 145 / 0.35);
}

.nav-cta::after {
  display: none;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 50;
}

.mobile-menu-btn .bar {
  width: 100%;
  height: 2px;
  background-color: var(--wood-dark);
  border-radius: 9999px;
  transition: var(--transition);
}

/* Mobile styles for header elements */
@media (max-width: 991px) {
  .header-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--cream);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .header-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid oklch(0.88 0.02 75 / 0.4);
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
  }

  .header-phone {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Hamburger transform to X */
  .mobile-menu-btn.open .bar:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
  }
  
  .mobile-menu-btn.open .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-btn.open .bar:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: var(--cream);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: 
    radial-gradient(circle at 20% 20%, var(--gold) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, var(--gold) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid oklch(0.72 0.13 70 / 0.4);
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--gold);
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.hero-desc {
  font-size: 1.1rem;
  color: oklch(0.96 0.02 85 / 0.85);
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 20rem;
  height: 20rem;
  background-color: oklch(0.72 0.13 70 / 0.15);
  border-radius: 50%;
  filter: blur(80px);
}

.hero-img {
  position: relative;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
}

@media (min-width: 768px) {
  .hero-img {
    width: 24rem;
    height: 24rem;
  }
}

/* --- Benefits Section --- */
.benefits-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px -15px oklch(0.25 0.05 40 / 0.3);
}

.benefit-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.benefit-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.benefit-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* --- About Section --- */
.about {
  background-color: var(--cream);
}

.about-content {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto;
}

.section-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold);
}

.section-title {
  font-size: 2rem;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.about-desc {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.about-desc strong {
  color: var(--wood-dark);
}

.about-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .about-stats {
    flex-direction: row;
  }
}

.stat-item {
  flex: 1;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--wood-dark);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-divider {
  display: none;
  width: 1px;
  height: 3rem;
  background-color: var(--border);
}

@media (min-width: 768px) {
  .stat-divider {
    display: block;
  }
}

/* --- Portfolio/Works Section --- */
.portfolio-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 576px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.portfolio-img-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--muted);
  position: relative;
}

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

.portfolio-card:hover .portfolio-img {
  transform: scale(1.06);
}

.portfolio-caption {
  padding: 1.25rem;
  font-weight: 600;
  color: var(--wood-dark);
}

/* --- Contact Form Section --- */
.contact-section {
  background-color: var(--cream);
}

.contact-intro {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 3rem auto;
}

.contact-intro p {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.contact-form {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .contact-form {
    padding: 3rem;
  }
}

.form-group-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .form-group-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--foreground);
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  transition: var(--transition);
}

.form-input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

.form-input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px oklch(0.72 0.13 70 / 0.2);
}

textarea.form-input {
  resize: vertical;
}

.error-text {
  font-size: 0.75rem;
  color: var(--destructive);
  margin-top: 0.25rem;
  font-weight: 500;
}

.form-checkbox-label {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  cursor: pointer;
  margin-top: 0.5rem;
}

.form-checkbox {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--gold);
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
}

.form-submit-btn {
  background-color: var(--whatsapp);
  color: #ffffff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-warm);
  transition: var(--transition);
  margin-top: 1rem;
}

.form-submit-btn:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-1px);
}

/* --- Reviews Section --- */
.reviews-section {
  text-align: center;
}

.reviews-container {
  margin-top: 3rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

/* --- CTA Pre-footer Section --- */
.cta-banner {
  background: var(--gradient-hero);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-title {
  color: var(--cream);
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.cta-title span {
  color: var(--gold);
}

.cta-desc {
  font-size: 1.1rem;
  color: oklch(0.96 0.02 85 / 0.8);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- Footer --- */
footer {
  background-color: var(--wood-dark);
  color: oklch(0.96 0.02 85 / 0.8);
  font-size: 0.85rem;
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid oklch(0.28 0.05 40 / 0.5);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
  }
}

.footer-title {
  color: var(--cream);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-subtitle {
  font-size: 0.8rem;
  color: oklch(0.96 0.02 85 / 0.6);
  margin-top: 0.25rem;
}

.footer-section p {
  line-height: 1.6;
}

.footer-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  margin-top: 0.75rem;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid oklch(0.96 0.02 85 / 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: oklch(0.96 0.02 85 / 0.5);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom a {
  color: var(--gold);
  font-weight: 600;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* --- LGPD Banner --- */
.lgpd-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 60;
  max-width: 48rem;
  margin: 0 auto;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-warm);
  animation: slideUp 0.5s ease forwards;
  display: none; /* Controlled via JS */
}

@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.lgpd-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .lgpd-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.lgpd-text {
  font-size: 0.8rem;
  line-height: 1.6;
  color: oklch(0.2 0.03 40 / 0.95);
}

.lgpd-text a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
}

.lgpd-buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.lgpd-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lgpd-btn-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.lgpd-btn-decline:hover {
  background-color: var(--muted);
}

.lgpd-btn-accept {
  background-color: var(--wood-dark);
  color: var(--cream);
  border: none;
}

.lgpd-btn-accept:hover {
  opacity: 0.9;
}

/* --- Privacy Policy Document styles (dedicated page) --- */
.privacy-page header {
  position: static;
}

.privacy-page .back-link {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wood-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy-main {
  max-width: 48rem;
  margin: 0 auto;
}

.privacy-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.privacy-date {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.privacy-content section {
  margin-bottom: 2rem;
}

.privacy-content h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.privacy-content p, .privacy-content ul {
  font-size: 0.95rem;
  line-height: 1.7;
  color: oklch(0.2 0.03 40 / 0.95);
  margin-bottom: 1rem;
}

.privacy-content ul {
  padding-left: 1.5rem;
}

.privacy-content ul li {
  margin-bottom: 0.4rem;
}

.privacy-content a {
  color: var(--gold);
  text-decoration: underline;
}

.privacy-back-btn {
  margin-top: 2rem;
}
