/* Above All Realtors - Custom Styling (Peru Real Estate Edition) */
:root {
  --primary: #0A192F;
  --primary-light: #172A45;
  --accent: #C5A059;
  --accent-hover: #AA7C11;
  --text-main: #2D3748;
  --text-muted: #718096;
  --bg-light: #F7FAFC;
  --bg-white: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(10,25,47,0.08);
  --shadow-lg: 0 10px 25px rgba(10,25,47,0.12);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--accent-hover); }

/* Header & Nav */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header-top {
  background: #06101E;
  padding: 6px 0;
  font-size: 13px;
  color: #A0AEC0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-top a { color: #CBD5E0; }
.header-top a:hover { color: var(--accent); }

.navbar {
  padding: 16px 0;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.brand-logo span.accent { color: var(--accent); }
.brand-logo svg { width: 34px; height: 34px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: #E2E8F0;
  font-weight: 500;
  font-size: 15px;
  padding: 6px 0;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14.5px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(197,160,89,0.3);
}
.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: #FFFFFF;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 120px 0 100px;
  color: #FFFFFF;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10,25,47,0.88) 0%, rgba(10,25,47,0.72) 100%);
}
.hero-content {
  position: relative;
  max-width: 780px;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: rgba(197,160,89,0.2);
  color: var(--accent);
  border: 1px solid rgba(197,160,89,0.4);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}
.hero-subtitle {
  font-size: 18px;
  color: #CBD5E0;
  margin-bottom: 30px;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Page Header */
.page-banner {
  background: var(--primary);
  color: #FFFFFF;
  padding: 60px 0;
  border-bottom: 3px solid var(--accent);
}
.page-banner h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}
.breadcrumb {
  font-size: 14px;
  color: #A0AEC0;
}
.breadcrumb a { color: #CBD5E0; }
.breadcrumb a:hover { color: var(--accent); }

/* Sections */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.section-tag {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}
.section-desc {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 16px;
}

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 36px;
}
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #E2E8F0;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img-wrap img {
  transform: scale(1.05);
}
.card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.card-text {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-muted);
}
.property-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--accent);
}

/* Feature Details & Technical Content */
.content-block {
  margin-bottom: 40px;
}
.content-block h2 {
  font-size: 26px;
  color: var(--primary);
  margin-bottom: 16px;
}
.content-block p {
  color: var(--text-main);
  margin-bottom: 16px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.spec-table th {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spec-table tr:nth-child(even) { background: #F8FAFC; }

/* Interactive Calculator */
.calc-box {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 36px;
  border: 1px solid var(--border-color);
}
.tile-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.tile-btn {
  background: #F8FAFC;
  border: 2px solid var(--border-color);
  padding: 16px 12px;
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}
.tile-btn.selected, .tile-btn:hover {
  border-color: var(--accent);
  background: #FFFDF9;
  color: var(--accent);
}
.slider-group {
  margin: 30px 0;
}
.slider-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
}
.calc-slider {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.calc-result-panel {
  background: var(--primary);
  color: #FFFFFF;
  padding: 26px;
  border-radius: var(--radius);
  margin-top: 25px;
}
.calc-val-main {
  font-size: 34px;
  font-weight: 900;
  color: var(--accent);
  margin: 10px 0;
}
.calc-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 15px;
  margin-top: 15px;
  font-size: 14px;
}
.calc-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--primary);
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color 0.2s;
  background: #FFFFFF;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
}
textarea.form-control { resize: vertical; min-height: 110px; }

/* Footer */
.site-footer {
  background: var(--primary);
  color: #A0AEC0;
  padding: 60px 0 20px;
  font-size: 14px;
  border-top: 3px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-title {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #CBD5E0; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact p { margin-bottom: 8px; line-height: 1.5; }
.footer-compliance {
  background: #06101E;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #718096;
}

/* Alert boxes */
.alert-box {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  font-size: 15px;
}
.alert-success {
  background: #DEF7EC;
  color: #03543F;
  border: 1px solid #BCF0DA;
}

@media (max-width: 900px) {
  .hero-title { font-size: 32px; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.active { display: flex; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .calc-breakdown { grid-template-columns: 1fr; }
}
