/* ==========================================================================
   STEEL FRAME ELITE CURITIBA — ARCHITECTURAL EDITORIAL DESIGN SYSTEM
   Ultra-Luxury, Clean Aesthetic, High-Conversion Rank & Rent Framework
   ========================================================================== */

:root {
  /* Architectural Stone & Linen Luxury Palette */
  --bg-body: #faf9f6;
  --bg-surface: #ffffff;
  --bg-subtle: #f3f0ea;
  --bg-elevated: #ffffff;
  --bg-dark-editorial: #0e131b;
  --bg-dark-card: #161d28;

  /* Typography Colors - High Contrast WCAG AA Compliant */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-inverse: #ffffff;
  --text-inverse-muted: #cbd5e1;

  /* Accent Tones */
  --accent-bronze: #92400e;
  --accent-bronze-light: #fef3c7;
  --accent-steel: #1e3a8a;
  --accent-steel-hover: #172554;
  --accent-slate: #334155;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-stone: #e2ddd3;
  --border-dark: rgba(255, 255, 255, 0.14);

  /* Shadows & Depth */
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-luxury: 0 20px 40px -10px rgba(15, 23, 42, 0.07);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 25px 50px -12px rgba(15, 23, 42, 0.14);

  /* WhatsApp Official */
  --whatsapp: #16a34a;
  --whatsapp-dark: #15803d;
  --whatsapp-glow: rgba(22, 163, 74, 0.35);

  /* Fonts with robust system fallbacks */
  --font-heading: 'Syne', 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-subheading: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacings & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-body);
}

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

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

/* Top Notification / Authority Bar */
.top-bar {
  background: var(--bg-dark-editorial);
  color: #e2e8f0;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-tags {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--whatsapp);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-stone);
  transition: all 0.3s ease;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-accent {
  color: var(--accent-bronze);
}

.logo-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-primary);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--accent-steel);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.2);
}

/* Hero Section — Architectural Editorial */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-subtle) 100%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-bronze);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-subtle);
}

.hero h1 {
  font-size: 3.4rem;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero h1 span.highlight {
  color: var(--accent-steel);
  position: relative;
  display: inline-block;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-lead a {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #ffffff;
  padding: 1rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 24px var(--whatsapp-glow);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-stone);
  padding: 1rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  border-top: 1px solid var(--border-stone);
  padding-top: 1.75rem;
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.highlight-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Media Card */
.hero-media {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
  border: 1px solid var(--border-stone);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.floating-glass-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-info .badge-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.badge-tag {
  background: var(--accent-bronze-light);
  color: var(--accent-bronze);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

/* Section Common Styling */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--accent-bronze);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Interactive Simulator Section */
.simulator-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-stone);
  border-bottom: 1px solid var(--border-stone);
}

.calculator-card {
  background: #ffffff;
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-luxury);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.calc-controls h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.calc-controls p {
  margin-bottom: 2rem;
}

.control-group {
  margin-bottom: 2rem;
}

.control-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-steel);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.4);
  border: 3px solid #ffffff;
}

.finish-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.finish-btn {
  border: 2px solid var(--border-stone);
  background: var(--bg-body);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.finish-btn.active {
  border-color: var(--accent-steel);
  background: var(--accent-steel-light);
}

.finish-btn strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.finish-btn span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Result Box */
.calc-result-box {
  background: var(--bg-dark-editorial);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.calc-result-box .result-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-inverse-muted);
  margin-bottom: 0.5rem;
}

.calc-result-box .result-price {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.calc-result-box .result-details {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  display: flex;
  justify-content: space-around;
}

.calc-whatsapp-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #ffffff;
  padding: 1rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.calc-whatsapp-btn:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

/* Engineering & Multi-layer Detail Section */
.engineering-section {
  background: var(--bg-body);
}

.engineering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.engineering-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
  border: 1px solid var(--border-stone);
}

.engineering-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.layer-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.layer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.layer-card:hover {
  border-color: var(--accent-steel);
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}

.layer-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-bronze);
  background: var(--accent-bronze-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.layer-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.layer-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Architectural Gallery / Portfolio */
.portfolio-section {
  background: var(--bg-subtle);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-stone);
  transition: all 0.35s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.gallery-thumb {
  height: 280px;
  overflow: hidden;
  position: relative;
}

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

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.05);
}

.gallery-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(14, 19, 27, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
}

.gallery-content {
  padding: 1.5rem;
}

.gallery-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.gallery-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Comparison Table Section */
.comparison-section {
  background: var(--bg-surface);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-luxury);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #ffffff;
}

.comp-table th, .comp-table td {
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--border-stone);
}

.comp-table th {
  background: var(--bg-body);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.comp-table th.featured {
  background: var(--accent-steel);
  color: #ffffff;
  font-size: 1.15rem;
}

.comp-table td.featured {
  background: rgba(30, 58, 138, 0.03);
  font-weight: 700;
  color: var(--accent-steel);
}

/* Curitiba & RMC Neighborhoods Grid */
.coverage-section {
  background: var(--bg-body);
}

.geo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.geo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s ease;
}

.geo-card:hover {
  border-color: var(--accent-steel);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.geo-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.geo-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ Accordion Section */
.faq-section {
  background: var(--bg-surface);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-stone);
  border-radius: var(--radius-md);
  background: var(--bg-body);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  text-align: left;
  font-family: var(--font-subheading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  padding: 0 2rem 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  display: none;
}

.faq-item.active {
  background: #ffffff;
  border-color: var(--accent-steel);
  box-shadow: var(--shadow-subtle);
}

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

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Final Statement CTA */
.final-cta {
  background: var(--bg-dark-editorial);
  color: #ffffff;
  text-align: center;
  padding: 6rem 0;
  position: relative;
}

.final-cta h2 {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.final-cta p {
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
}

/* Footer */
footer {
  background: #090c11;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-col h5, .footer-col .footer-col-title {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-subheading);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* Floating WhatsApp Luxury Trigger */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--whatsapp);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px var(--whatsapp-glow);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  animation: subtleFloat 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid, .calculator-card, .engineering-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .geo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .top-bar-tags {
    display: none;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-highlights {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .geo-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .calc-result-box .result-price {
    font-size: 2.2rem;
  }
}
