:root {
  /* brand colours */
  --primary-color: #002B45; /* deep navy for trust and stability */
  --accent-color: #F5A623; /* warm golden accent for emphasis */
  --text-color: #333333;
  --light-color: #ffffff;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: #fafafa;
}

/* Header and navigation */
header {
  background: var(--primary-color);
  color: var(--light-color);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}
/* Logo inside brand */
.brand img {
  height: 50px;
  margin-right: 0.5rem;
}
.brand span {
  color: var(--light-color);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav li {
  margin: 0;
}

nav a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

nav a:hover {
  color: var(--accent-color);
}

/* Mobile navigation toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero section */
.hero {
  position: relative;
  height: 70vh;
  background: url('images/hero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--light-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--light-color);
}

.btn {
  background: var(--accent-color);
  color: var(--light-color);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: background 0.2s ease-in-out;
}

.btn:hover {
  background: #e09a19;
}

/* Section styling */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.section p.lead {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card-content p {
  margin-bottom: 1rem;
}

.card-content a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Style for price range inputs placed side by side */
.price-range {
  display: flex;
  gap: 0.5rem;
}
.price-range input {
  flex: 1;
}
/* Checkbox groups for property type and strategy */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-color);
}

input,
textarea,
select {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: var(--light-color);
  padding: 2rem 1rem;
  text-align: center;
}

footer nav a {
  color: var(--accent-color);
  margin: 0 0.5rem;
  text-decoration: none;
}

footer small {
  display: block;
  margin-top: 1rem;
  color: #cccccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  nav ul {
    flex-direction: column;
    gap: 1rem;
    background: var(--primary-color);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: none;
  }
  nav ul.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}
