/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: #dee2e2;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.logo img {
  height: 60px;
  margin-right: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.nav-links a.active {
  border-bottom: 2px solid #000;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  padding: 10px;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hero */
.hero {
  background: url('../images/aboutushero.jpg') no-repeat center center/cover;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: left;
  position: relative;
  padding-left: 40px;
}

.hero-overlay {
  text-align: center;
  color: white;
  background: rgba(0, 0, 0, 0);
  padding: 20px;
}

.hero-overlay h2 {
  font-size: 2rem;
  font-weight: 400;
}

.hero-overlay h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 10px;
}
.hero-overlay .subtitle {
    font-size: 3.2em;
    margin-left: 10px; /* Starts text 20px from the left side of the screen */
    text-align: left;
    margin-top: 0px;
}

.hero-overlay .subtitle2 {
    font-size: 4.2em;
    margin-left: 5px; /* Starts text 20px from the left side of the screen */
    text-align: left;
    margin-top: 0.5px;
}

/* What We Do */
.what-we-do {
  background: #e8f0ef;
  padding: 60px 20px;
  text-align: center;
}

.what-we-do h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.what-we-do p {
  max-width: 900px;
  margin: auto;
  font-size: 1.1rem;
}

/* Our Values */
.our-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0; /* Remove any gap between flex items */
}

.values-image {
  flex: 1 0 50%; /* Grow and shrink, initial 50% width */
  background: url('../images/property.jpg') no-repeat center center/cover;
  min-height: 500px;
}

.values-text {
  flex: 1 0 50%; /* Grow and shrink, initial 50% width */
  background: #f9a825;
  color: white;
  padding: 60px 40px;
}

.values-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.values-text h3 {
  margin-top: 20px;
  font-size: 1.3rem;
}

/* Our Values 2 */
.our-values2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0; /* Remove any gap between flex items */
}

.values-image2 {
  flex: 1 0 50%; /* Grow and shrink, initial 50% width */
  background: url('../images/key delivery.jpg') no-repeat center center/cover;
  min-height: 500px;
}

.values-text2 {
  flex: 1 0 50%; /* Grow and shrink, initial 50% width */
  background: lightgray;
  color: white;
  padding: 60px 40px;
}

.values-text2 h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: black;
}

.values-text2 h3 {
  margin-top: 20px;
  font-size: 1.3rem;
  color: black;
}

.values-text2 p {
  color: black;
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 20px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #e0e7e9;
    position: relative;
    z-index: 10;
    overflow: visible; /* Ensure dropdown isn’t clipped */
}

.logo img {
    height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center; /* Ensure all items are vertically centered */
}

nav a {
    color: #333f4a; /* Corrected color */
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 10px; /* Match padding with dropdown link */
}

nav a:hover {
    color: #f4a261;
}

/* Dropdown Specific Styling */
.dropdown {
    position: relative; /* Positioning context for the dropdown menu */
}

.dropdown > a {
    padding: 5px 10px; /* Consistent padding with other nav links */
    display: flex; /* Align text and arrow */
    align-items: center; /* Vertically center text and arrow */
}

.dropdown > a::after {
    content: " ▾"; /* Single arrow added via CSS */
    font-size: 0.8em; /* Smaller arrow */
    margin-left: 5px; /* Space between text and arrow */
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.dropdown:hover > a::after {
    transform: rotate(180deg); /* Rotate arrow upward on hover */
}

.dropdown-menu {
    display: none; /* Ensure menu is hidden by default */
    position: absolute;
      background: lightgray;
    padding: 10px;
    list-style: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    border-radius: 5px;
    z-index: 1001; /* Higher z-index to ensure visibility */
    top: 100%; /* Position below the header link */
    left: 0; /* Align with the parent */
    min-width: 200px; /* Ensure enough width for long names */
}

.dropdown:hover .dropdown-menu {
    display: block; /* Show on hover */
}

.dropdown-menu li {
    margin: 0; /* Remove default margins */
}

.dropdown-menu a {
    color: #333f4a; /* Match nav link color */
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    padding: 5px 10px;
    white-space: nowrap; /* Prevent text wrapping */
}

.dropdown-menu a:hover {
    color: #f4a261; /* Match nav hover color */
}
