/* ==========================================================================
   RentByRodrigo — shared stylesheet
   ========================================================================== */

:root {
  --navy-deep: #0d2038;
  --navy: #16324f;
  --navy-light: #234872;
  --gold: #c9974c;
  --gold-light: #e3b768;
  --bg: #f8f6f2;
  --card: #ffffff;
  --text: #1f2937;
  --text-muted: #5b6472;
  --border: #e6e1d8;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(13, 32, 56, 0.08);
  --shadow-hover: 0 16px 40px rgba(13, 32, 56, 0.14);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy-deep);
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

.section--navy {
  background: var(--navy-deep);
  color: #fff;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c7d2e0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--primary:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-hover);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.btn--outline:hover { border-color: #fff; }

.btn--dark {
  background: var(--navy-deep);
  color: #fff;
}
.btn--dark:hover { background: var(--navy); }

.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-deep);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--gold);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-phone {
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 70%);
  color: #fff;
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 151, 76, 0.28), transparent 70%);
}
.hero .container {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero h1 { color: #fff; }
.hero p.lead {
  color: #d7dfeb;
  font-size: 1.15rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: -56px;
  position: relative;
  z-index: 2;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  text-align: center;
}
.stat-card .num {
  font-family: Georgia, serif;
  font-size: 1.9rem;
  color: var(--navy-deep);
  font-weight: 700;
}
.stat-card .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(201, 151, 76, 0.14);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Listings ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--gold); }
.filter-btn.active {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.property-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.property-thumb {
  height: 190px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.property-thumb svg { width: 64px; height: 64px; color: rgba(255,255,255,0.35); }
.property-status {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.property-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.property-price {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: var(--navy-deep);
  font-weight: 700;
}
.property-price span {
  font-family: -apple-system, sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}
.property-address { font-weight: 600; color: var(--text); margin: 0; }
.property-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.property-desc { font-size: 0.9rem; margin: 0; flex: 1; }

.placeholder-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(201, 151, 76, 0.1);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0 0 40px;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}
.testimonial p.quote {
  font-style: italic;
  color: var(--text);
  font-size: 1.02rem;
}
.testimonial .who {
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 0.9rem;
}
.testimonial .role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Split section (about) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-media {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-media svg { width: 96px; height: 96px; color: rgba(13,32,56,0.35); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  border-radius: var(--radius-lg);
  padding: 52px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: #d7dfeb; margin-bottom: 26px; }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid transparent;
}
.pricing-card.featured {
  border-color: var(--gold);
}
.pricing-card .price {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  color: var(--navy-deep);
  font-weight: 700;
  margin: 10px 0;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}
.pricing-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.pricing-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-weight: 700;
  color: var(--navy-deep);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question .icon { transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--navy-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-info-item .icon-badge {
  background: rgba(255,255,255,0.12);
  color: var(--gold-light);
  flex-shrink: 0;
}
.contact-info-item p { color: #d7dfeb; margin: 0; }
.contact-info-item strong { color: #fff; display: block; margin-bottom: 2px; }

.map-placeholder {
  margin-top: 24px;
  border: 1px dashed rgba(255,255,255,0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: #c7d2e0;
}

.form-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.form-success {
  display: none;
  background: rgba(84, 163, 106, 0.12);
  border: 1px solid #54a36a;
  color: #2f6b40;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.form-success.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #c7d2e0;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid .logo { color: #fff; }
.footer-grid .logo span { color: var(--gold-light); }
.footer-grid p { color: #9fb0c5; font-size: 0.9rem; }
.footer-col h4 {
  color: #fff;
  font-family: -apple-system, sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #c7d2e0; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #8296ae;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 70%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 8px; }
.page-header p { color: #d7dfeb; max-width: 560px; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-cta.open ~ .nav-links,
  .site-header.menu-open .nav-links {
    display: flex;
  }
  .site-header.menu-open .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
  .hero { padding-bottom: 56px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
