/*
  RB Properties Management - Main Stylesheet
  ---
  - Fonts: Cormorant Garamond, Manrope
  - Colors: Obsidian, Sand, Bronze
  - Layout: Responsive Grid
*/

/* ------------------- */
/* Google Fonts Import */
/* ------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Manrope:wght@300;400;500&display=swap');

/* ------------------- */
/* Custom Properties   */
/* ------------------- */
:root {
  --color-obsidian: #0A0A0A;
  --color-sand: #EAE6E1;
  --color-bronze: #A58A5D;
  --color-text: #333333;
  --color-background: #FFFFFF;
  --color-light-gray: #F4F4F4;

  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;

  --header-height: 80px;
}

/* ------------------- */
/* Global Styles       */
/* ------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-obsidian);
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-bronze);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-obsidian);
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ------------------- */
/* Header & Navigation */
/* ------------------- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-light-gray);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-obsidian);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text);
}
.nav-links a.active,
.nav-links a:hover {
    color: var(--color-bronze);
    border-bottom: 2px solid var(--color-bronze);
    padding-bottom: 4px;
}
/* ------------------- */
/* Hero Section        */
/* ------------------- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: -2;
}
.hero-background.active {
    opacity: 1;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* ------------------- */
/* Search Bar          */
/* ------------------- */
.smart-search {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 600px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.smart-search input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--color-text);
}

.smart-search input:focus {
  outline: none;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    border: 1px solid transparent;
}
.btn-primary {
  background-color: var(--color-bronze);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-obsidian);
  color: white;
  border-color: var(--color-obsidian);
}

/* ------------------- */
/* Sections            */
/* ------------------- */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 4rem;
}

/* ------------------- */
/* Metrics             */
/* ------------------- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.metric-card {
    background-color: var(--color-light-gray);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #EAEAEA;
}

.metric-card .value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-bronze);
}

.metric-card .label {
    font-size: 1rem;
    color: #555;
    margin-top: 0.5rem;
}

/* ------------------- */
/* Footer              */
/* ------------------- */
.footer {
    background-color: var(--color-obsidian);
    color: var(--color-sand);
    padding: 4rem 0;
}
.footer a {
    color: var(--color-sand);
}
.footer a:hover {
    color: var(--color-bronze);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.footer-column h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 0.5rem;
}
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}
