/* ================================================
   Lacerda Real Estate - Main Stylesheet
   No animations | Clean & Professional
   ================================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1B3A5C;
  --primary-dark: #0F2440;
  --secondary: #C6A96C;
  --secondary-light: #D4BC88;
  --text: #333333;
  --text-light: #666666;
  --bg: #FFFFFF;
  --bg-alt: #F8F7F4;
  --bg-dark: #F0EDE8;
  --border: #E2DED8;
  --white: #FFFFFF;
  --max-width: 1200px;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--secondary);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.375rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.625rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.375rem;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-top {
  background: var(--primary);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.header-top a {
  color: var(--secondary-light);
}

.header-top a:hover {
  color: var(--white);
}

.header-main {
  padding: 0.75rem 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.site-logo span {
  color: var(--secondary);
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  color: var(--white);
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--secondary-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--secondary);
  color: var(--white);
  padding: 0.375rem 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 4px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-small {
  padding: 2.5rem 0;
}

.hero-small h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero-small p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-alt);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-light);
  margin: 0 0.375rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--secondary-light);
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--primary-dark);
}

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

.btn-dark:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

/* Testimonials */
.testimonial {
  background: var(--white);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  border-radius: 0 6px 6px 0;
}

.testimonial blockquote {
  font-style: italic;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
}

.stars {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Content Layout */
.content-page {
  padding: 3rem 0;
}

.content-page .container {
  max-width: 900px;
}

.content-body h2 {
  margin-top: 2rem;
}

.content-body h3 {
  margin-top: 1.5rem;
}

.content-body ul,
.content-body ol {
  margin-bottom: 1.25rem;
}

/* Sidebar Layout */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
}

.sidebar .card {
  margin-bottom: 1.5rem;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

tr:nth-child(even) {
  background: var(--bg-alt);
}

/* Checklist */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  padding: 0.625rem 0 0.625rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-size: 1.1rem;
}

/* Calculator */
.calculator {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.calculator label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--primary);
}

.calculator input,
.calculator select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.calculator input:focus,
.calculator select:focus {
  outline: none;
  border-color: var(--secondary);
}

.calc-result {
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem;
  border-radius: 4px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Contact Bar */
.contact-bar {
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 2rem 0;
  text-align: center;
}

.contact-bar h2 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.contact-bar p {
  margin-bottom: 1rem;
}

.contact-bar .btn {
  margin: 0 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--secondary);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.375rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* FAQ / Accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--bg-alt);
  border: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--primary);
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: var(--bg-dark);
}

.faq-answer {
  padding: 1rem 1.25rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Review Cards */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.review-card .stars {
  margin-bottom: 0.75rem;
}

.review-card p {
  margin-bottom: 0.75rem;
}

.review-author {
  font-weight: 600;
  color: var(--primary);
}

.review-date {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* Rating Summary */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.rating-big {
  text-align: center;
}

.rating-big .number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.rating-big .stars {
  font-size: 1.5rem;
}

.rating-big .count {
  color: var(--text-light);
  font-size: 0.9rem;
}

.rating-bars {
  flex: 1;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  font-size: 0.9rem;
}

.rating-bar .bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar .bar-fill {
  height: 100%;
  background: var(--secondary);
  border-radius: 4px;
}

/* Highlight Box */
.highlight-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.highlight-box.important {
  border-left: 4px solid var(--secondary);
}

/* Stats Row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .header-top .container { justify-content: center; text-align: center; }

  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .main-nav.active { display: flex; }

  .main-nav a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hero { padding: 2.5rem 0; }
  .hero h1 { font-size: 1.75rem; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .stats-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-item {
    flex-basis: 40%;
  }

  .rating-summary {
    flex-direction: column;
    text-align: center;
  }

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

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.5rem; }
  .section { padding: 2.5rem 0; }
}
