/* Atlas Immobilier — Real Estate demo (navy + gold, professional trust) */

:root {
  --re-navy: #1a365d;
  --re-navy-dark: #122640;
  --re-navy-light: #2c5282;
  --re-gold: #b8860b;
  --re-gold-light: #d4a843;
  --re-cream: #f7f5f0;
  --re-white: #ffffff;
  --re-slate: #4a5568;
  --re-slate-light: #718096;
  --re-border: #e2ddd4;
  --re-shadow: 0 4px 20px rgba(26, 54, 93, 0.12);

  --re-font-display: 'Playfair Display', Georgia, serif;
  --re-font-body: 'Source Sans 3', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--re-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--re-navy-dark);
  background: var(--re-cream);
}

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

a {
  color: var(--re-navy-light);
  text-decoration: none;
}

a:hover {
  color: var(--re-gold);
}

h1, h2, h3, h4 {
  font-family: var(--re-font-display);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 1rem;
}

/* Header */
.re-header {
  position: sticky;
  top: var(--demo-banner-height, 2.75rem);
  z-index: 50;
  background: var(--re-white);
  border-bottom: 1px solid var(--re-border);
  box-shadow: 0 1px 4px rgba(26, 54, 93, 0.06);
}

.re-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.re-logo {
  font-family: var(--re-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--re-navy);
  text-decoration: none;
}

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

.re-nav {
  display: none;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .re-nav {
    display: flex;
  }
}

.re-nav a {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--re-slate);
  border-radius: 0.375rem;
  text-decoration: none;
}

.re-nav a:hover {
  color: var(--re-navy);
  background: var(--re-cream);
}

.re-header__cta {
  display: inline-flex;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--re-white);
  background: var(--re-navy);
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background 150ms ease;
}

.re-header__cta:hover {
  background: var(--re-navy-light);
  color: var(--re-white);
}

/* Hero */
.re-hero {
  position: relative;
  padding: 4rem 1.25rem 5rem;
  background: linear-gradient(135deg, var(--re-navy-dark) 0%, var(--re-navy) 50%, var(--re-navy-light) 100%);
  color: var(--re-white);
  overflow: hidden;
}

.re-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(184, 134, 11, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.re-hero__inner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
}

.re-hero__badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--re-gold-light);
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 9999px;
}

.re-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  max-width: 16ch;
  margin-bottom: 1rem;
  color: var(--re-white);
}

.re-hero__subtitle {
  font-size: 1.125rem;
  max-width: 42ch;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

/* Search box */
.re-search {
  background: var(--re-white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--re-shadow);
  max-width: 52rem;
}

.re-search__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.re-search__tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--re-slate);
  background: var(--re-cream);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}

.re-search__tab--active {
  background: var(--re-navy);
  color: var(--re-white);
}

.re-search__fields {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .re-search__fields {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}

.re-search__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--re-slate);
}

.re-search__input,
.re-search__select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: var(--re-navy-dark);
  background: var(--re-cream);
  border: 1px solid var(--re-border);
  border-radius: 0.375rem;
}

.re-search__btn {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--re-white);
  background: var(--re-gold);
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease;
}

.re-search__btn:hover {
  background: var(--re-gold-light);
}

/* Stats */
.re-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 72rem;
  margin: -2.5rem auto 0;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .re-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.re-stat {
  background: var(--re-white);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--re-shadow);
  border: 1px solid var(--re-border);
}

.re-stat__number {
  font-family: var(--re-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--re-navy);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.re-stat__label {
  font-size: 0.8125rem;
  color: var(--re-slate-light);
  font-weight: 500;
}

/* Sections */
.re-section {
  padding: 4rem 1.25rem;
}

.re-section--alt {
  background: var(--re-white);
}

.re-section__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.re-section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.re-section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--re-navy);
}

.re-section__subtitle {
  font-size: 1.0625rem;
  color: var(--re-slate-light);
  max-width: 40ch;
  margin: 0 auto;
}

/* Listings */
.re-listings {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .re-listings {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .re-listings {
    grid-template-columns: repeat(3, 1fr);
  }
}

.re-listing {
  background: var(--re-white);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--re-border);
  box-shadow: var(--re-shadow);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.re-listing:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26, 54, 93, 0.16);
}

.re-listing__image {
  position: relative;
  height: 11rem;
  background-size: cover;
  background-position: center;
}

.re-listing__image--villa {
  background: linear-gradient(160deg, #2c5282 0%, #1a365d 40%, #b8860b 100%);
}

.re-listing__image--apartment {
  background: linear-gradient(160deg, #4a5568 0%, #2d3748 50%, #718096 100%);
}

.re-listing__image--riad {
  background: linear-gradient(160deg, #8b4513 0%, #a0522d 40%, #d4a843 100%);
}

.re-listing__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--re-white);
  background: var(--re-navy);
  border-radius: 0.25rem;
}

.re-listing__badge--rent {
  background: var(--re-gold);
}

.re-listing__body {
  padding: 1.25rem;
}

.re-listing__price {
  font-family: var(--re-font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--re-navy);
  margin-bottom: 0.25rem;
}

.re-listing__location {
  font-size: 0.875rem;
  color: var(--re-slate-light);
  margin-bottom: 0.75rem;
}

.re-listing__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--re-slate);
}

.re-listing__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Services */
.re-services {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .re-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .re-services {
    grid-template-columns: repeat(4, 1fr);
  }
}

.re-service {
  padding: 1.75rem 1.5rem;
  background: var(--re-cream);
  border-radius: 0.75rem;
  border: 1px solid var(--re-border);
  text-align: center;
}

.re-service__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--re-white);
  color: var(--re-gold);
  border-radius: 0.75rem;
  box-shadow: var(--re-shadow);
}

.re-service__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.re-service__title {
  font-size: 1.125rem;
  color: var(--re-navy);
  margin-bottom: 0.5rem;
}

.re-service__text {
  font-size: 0.875rem;
  color: var(--re-slate-light);
  margin: 0;
}

/* Testimonials */
.re-testimonials {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .re-testimonials {
    grid-template-columns: repeat(3, 1fr);
  }
}

.re-testimonial {
  padding: 1.5rem;
  background: var(--re-cream);
  border-radius: 0.75rem;
  border: 1px solid var(--re-border);
}

.re-testimonial__stars {
  color: var(--re-gold);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.re-testimonial__text {
  font-size: 0.9375rem;
  color: var(--re-slate);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.re-testimonial__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--re-navy);
}

/* CTA */
.re-cta {
  padding: 4rem 1.25rem;
  background: linear-gradient(135deg, var(--re-navy-dark), var(--re-navy));
  color: var(--re-white);
  text-align: center;
}

.re-cta__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.re-cta__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--re-white);
  margin-bottom: 1rem;
}

.re-cta__text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.re-cta__btn {
  display: inline-flex;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--re-navy);
  background: var(--re-gold-light);
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background 150ms ease;
}

.re-cta__btn:hover {
  background: var(--re-white);
  color: var(--re-navy);
}

/* Agency footer */
.re-footer {
  background: var(--re-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 1.25rem 2rem;
}

.re-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .re-footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.re-footer__brand {
  font-family: var(--re-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--re-white);
  margin-bottom: 0.75rem;
}

.re-footer__brand span {
  color: var(--re-gold-light);
}

.re-footer__text {
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}

.re-footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--re-gold-light);
  margin-bottom: 1rem;
}

.re-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.re-footer__links li {
  margin-bottom: 0.5rem;
}

.re-footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.re-footer__links a:hover {
  color: var(--re-white);
}

.re-footer__bottom {
  max-width: 72rem;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  text-align: center;
}
