/* ========================================
   Capito Real Estate — Static Website CSS
   ======================================== */

:root {
  --navy: #102A56;
  --orange: #F05A1A;
  --white: #FFFFFF;
  --light: #F7F9FC;
  --navy-70: rgba(16, 42, 86, 0.7);
  --navy-10: rgba(16, 42, 86, 0.1);
  --shadow: 0 4px 24px rgba(16, 42, 86, 0.08);
  --shadow-hover: 0 8px 32px rgba(16, 42, 86, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 72px;
  --max-width: 1320px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

address {
  font-style: normal;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: rgba(240, 90, 26, 0.2);
  color: var(--navy);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 48px;
  text-align: center;
}

.btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: #d94e16;
  border-color: #d94e16;
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: rgba(16, 42, 86, 0.15);
}

.btn-secondary:hover {
  background: rgba(16, 42, 86, 0.05);
  border-color: rgba(16, 42, 86, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(16, 42, 86, 0.2);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-whatsapp {
  background: #16a34a;
  color: var(--white);
  border-color: #16a34a;
}

.btn-whatsapp:hover {
  background: #15803d;
  border-color: #15803d;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 0.9375rem;
  min-height: 52px;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  min-height: 40px;
  font-size: 0.8125rem;
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 42, 86, 0.06);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--orange);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 480px) {
  .brand-name { font-size: 1rem; }
  .brand-tag { font-size: 0.75rem; }
  .brand-logo { width: 48px; height: 48px; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(16, 42, 86, 0.8);
  border-radius: 6px;
  transition: all var(--transition);
}

.nav-desktop a:hover {
  background: rgba(16, 42, 86, 0.05);
  color: var(--navy);
}

.btn-call-desktop {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(16, 42, 86, 0.05);
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  z-index: 999;
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 8px;
  transition: background var(--transition);
}

.nav-mobile a:hover {
  background: rgba(16, 42, 86, 0.05);
}

.nav-mobile .btn-block {
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .btn-call-desktop { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(16, 42, 86, 0.88) 0%,
    rgba(16, 42, 86, 0.72) 50%,
    rgba(16, 42, 86, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 3rem;
  color: var(--white);
  max-width: 680px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-navy {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.badge-orange {
  background: rgba(240, 90, 26, 0.25);
  color: #ffd4c2;
}

.hero-brand {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-descriptor {
  font-size: 0.875rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .hero-text { font-size: 1.125rem; }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.hero-trust {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

/* Sections */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}

.section-white { background: var(--white); }
.section-light { background: var(--light); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--navy-70);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .section-header p { font-size: 1.0625rem; }
}

/* Grid */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Cards */
.card {
  background: var(--light);
  border: 1px solid rgba(16, 42, 86, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--navy-70);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.icon-orange { background: rgba(240, 90, 26, 0.12); color: var(--orange); }
.icon-navy { background: rgba(16, 42, 86, 0.08); color: var(--navy); }
.icon-green { background: #f0fdf4; color: #15803d; }
.icon-emerald { background: #ecfdf5; color: #047857; }

/* Trust cards */
.trust-card {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.trust-card:hover {
  box-shadow: var(--shadow-hover);
}

.trust-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
}

.trust-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.trust-card p {
  font-size: 0.875rem;
  color: var(--navy-70);
  line-height: 1.6;
}

/* Property cards */
.property-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(16, 42, 86, 0.08);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.property-image {
  position: relative;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.04);
}

.property-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.05em;
}

.property-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 42, 86, 0.55), transparent 60%);
}

.property-body {
  padding: 1.25rem;
}

.property-body p {
  font-size: 0.875rem;
  color: var(--navy-70);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.about-content > p {
  font-size: 1rem;
  color: var(--navy-70);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about-box {
  background: var(--white);
  border: 1px solid rgba(16, 42, 86, 0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.about-box h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-box p {
  font-size: 0.875rem;
  color: var(--navy-70);
  line-height: 1.6;
}

.location-card {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(16, 42, 86, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--navy-70);
}

.location-card svg {
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 2px;
}

.location-card strong {
  color: var(--navy);
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact-info {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .contact-info { padding: 2.5rem; }
}

.contact-brand {
  font-size: 1.375rem;
  font-weight: 700;
}

.contact-descriptor {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.contact-detail {
  margin-bottom: 1.5rem;
}

.contact-label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.375rem;
}

.contact-phone {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.contact-phone:hover {
  opacity: 0.9;
}

.contact-info address {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 480px) {
  .contact-actions { flex-direction: row; }
  .contact-actions .btn { flex: 1; }
}

/* Form */
.contact-form {
  background: var(--light);
  border: 1px solid rgba(16, 42, 86, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .contact-form { padding: 2rem; }
}

.contact-form h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--navy-70);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(16, 42, 86, 0.15);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240, 90, 26, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

#submitBtn.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 4rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    padding: 4rem 2rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-brand img {
  border-radius: 50%;
}

.footer-name {
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-tag {
  font-size: 0.875rem;
  color: var(--orange);
  font-weight: 600;
}

.footer-services {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-nav h3,
.footer-contact h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a,
.footer-contact a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--orange);
}

.footer-contact address {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Floating buttons */
.float-btn {
  position: fixed;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.float-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.float-whatsapp {
  bottom: 5.5rem;
  right: 1rem;
  background: #16a34a;
}

.float-call {
  bottom: 1rem;
  right: 1rem;
  background: var(--orange);
}

@media (min-width: 640px) {
  .float-whatsapp {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .float-call {
    display: none;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal pages */
.legal-page {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
  min-height: 100vh;
}

.legal-page .container {
  max-width: 720px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page p {
  font-size: 0.9375rem;
  color: var(--navy-70);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal-page a {
  color: var(--orange);
  font-weight: 500;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
}

.legal-back:hover {
  color: var(--orange);
}
