﻿/* Modernized styles for ST Imóveis */
:root {
  --black: #0f1114;
  --charcoal: #191c1f;
  --dark: #2c3338;
  --mid: #5a6068;
  --red: #d62828;
  --red-soft: #ff4f4f;
  --cream: #f4efe8;
  --cream2: #ebe6e0;
  --white: #fbf7f1;
  --text: #161b20;
  --text-light: #6f7a85;
  --border: rgba(22,22,24,0.12);
  --shadow: 0 24px 80px rgba(17, 19, 21, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Barlow', sans-serif;
  background: radial-gradient(circle at top left, rgba(214, 40, 40, 0.08), transparent 20%),
              radial-gradient(circle at bottom right, rgba(214, 40, 40, 0.06), transparent 18%),
              var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 35%),
              radial-gradient(circle at 10% 10%, rgba(214,40,40,0.08), transparent 18%),
              radial-gradient(circle at 90% 20%, rgba(0,0,0,0.08), transparent 25%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: min(1200px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(17, 19, 21, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  letter-spacing: 2px;
  color: white;
  text-decoration: none;
}

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

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--red);
}

.btn-small {
  padding: 0.75rem 1.6rem;
  font-size: 0.78rem;
}

.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.hero-label {
  display: inline-flex;
  background: rgba(214, 40, 40, 0.14);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  width: fit-content;
}

.hero-copy h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.05rem;
  color: var(--black);
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-copy p {
  max-width: 34rem;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1rem;
}

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

.btn-primary,
.btn-secondary,
.btn-outline {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-primary {
  background: var(--red);
  color: white;
  padding: 0.95rem 2.2rem;
  box-shadow: 0 14px 34px rgba(214, 40, 40, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  background: var(--red-soft);
}

.btn-secondary {
  background: rgba(17, 19, 21, 0.96);
  color: #fff;
  padding: 0.95rem 2.2rem;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-2px);
  background: rgba(17, 19, 21, 1);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  padding: 0.85rem 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.metric-card {
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(22, 27, 32, 0.08);
  box-shadow: 0 15px 30px rgba(22, 27, 32, 0.06);
}

.metric-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
}

.metric-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.hero-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(22, 27, 32, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 32px rgba(22, 27, 32, 0.12);
}

.hero-card-label {
  display: inline-flex;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.55rem;
}

.hero-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.hero-card p {
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 0.95rem;
}

.hero-card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--black);
}

.feature-strip {
  padding: 2.2rem 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 27, 32, 0.08);
  box-shadow: 0 18px 36px rgba(22, 27, 32, 0.06);
}

.feature-item span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  background: rgba(214, 40, 40, 0.14);
  color: var(--red);
  font-size: 1.3rem;
}

.feature-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.feature-item p {
  color: var(--text-light);
  line-height: 1.7;
}

.imoveis-section {
  padding-top: 5rem;
}

.section-header {
  text-align: center;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto 0;
}

.filter-btn {
  border: 1px solid rgba(17, 19, 21, 0.14);
  background: rgba(17, 19, 21, 0.9);
  color: white;
  border-radius: 999px;
  padding: 1rem 1.8rem;
  font-size: 1rem;
  min-width: 130px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  transform: translateY(-2px);
  background: rgba(17, 19, 21, 1);
}

.filter-btn.active {
  background: var(--red);
  color: white;
  box-shadow: 0 12px 24px rgba(214, 40, 40, 0.18);
}

.property-card {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(17, 19, 21, 0.16);
}

.property-figure {
  position: relative;
  min-height: 240px;
  overflow: hidden;
}

.property-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(214, 40, 40, 0.96);
  color: white;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.property-body {
  padding: 1.6rem;
  display: grid;
  gap: 0.9rem;
}

.property-type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  font-weight: 700;
}

.property-body h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.property-location {
  color: var(--text-light);
  font-size: 0.92rem;
}

.property-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.88rem;
}

.property-subinfo {
  color: var(--text-light);
  font-size: 0.84rem;
  line-height: 1.4;
}

.property-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--black);
}

.sobre-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.sobre-image-block {
  position: relative;
}

.sobre-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sobre-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.sobre-details {
  display: grid;
  gap: 1rem;
}

.diferencial-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(22, 27, 32, 0.08);
}

.diferencial-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(214, 40, 40, 0.12);
  color: var(--red);
  font-size: 1.1rem;
}

.diferencial-card h4 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.diferencial-card p {
  color: var(--text-light);
  line-height: 1.7;
}

.contato-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.contato-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
}

.contato-card {
  border-radius: 32px;
  padding: 2rem;
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid rgba(22, 27, 32, 0.08);
}

.contato-info-card {
  display: grid;
  gap: 1.6rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(246, 242, 236, 0.9);
  border-radius: 22px;
  padding: 1.1rem 1.2rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(214, 40, 40, 0.14);
  color: var(--red);
  font-size: 1.25rem;
}

.contact-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 0.3rem;
}

.contact-card p {
  margin: 0;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

.form-group span {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(22, 27, 32, 0.1);
  background: #f9f6f1;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  outline: none;
}

.form-group textarea {
  min-height: 140px;
  resize: none;
}

.site-footer {
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer .logo {
  color: white;
}

@media (max-width: 1100px) {
  .hero-grid,
  .sobre-grid,
  .contato-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100%, calc(100% - 2rem));
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 10vw, 3.8rem);
  }

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

  .imoveis-grid,
  .filter-panel {
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
  }

  .hero-grid,
  .feature-grid,
  .sobre-image,
  .contato-grid {
    grid-template-columns: 1fr;
  }

  .hero-section,
  .feature-strip,
  .imoveis-section,
  .sobre-section,
  .contato-section {
    padding: 3rem 0;
  }

  .hero-label {
    font-size: 0.7rem;
  }

  .property-card {
    border-radius: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
