/* stylesv2.css */

/* Reset & Base */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: 'Lato', sans-serif;
  color: #333;
}

/* Hide native scrollbar */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: url('background5.png') center/cover no-repeat fixed;
  position: relative;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE 10+ */
}
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Wrapper fills remaining space */
.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.4);
  overflow: visible;
}

/* Header / Navigation */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 95%;
  background-color: #004a70;
  padding: 20px 0;
  text-align: right;
  z-index: 1000;
  position: relative; /* establish positioning context */
}
header .brand-name {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(1.2rem, 4vw, 2rem); /* dynamic scaling */
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
nav a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  transition: background-color 0.3s ease;
}
nav a:hover {
  background-color: rgba(0,77,139,0.8);
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1100;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.3s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after  { top: 8px; }

/* Mobile Navigation */
@media (max-width: 1000px) {
  .nav-toggle {
    display: block;
  }
  nav { display: none; }
  .nav-menu {
    display: none;
    width: 100%;
    background-color: #004a70;
    position: absolute;
    top: 100%;
    left: 0;
  }
  header.open .nav-menu {
    display: block;
  }
  .nav-menu nav ul {
    flex-direction: column;
    gap: 0;
  }
  .nav-menu nav li {
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .nav-menu nav a {
    display: block;
    padding: 1rem;
    text-align: center;
  }
  header.open .hamburger {
    background: transparent;
  }
  header.open .hamburger::before {
    transform: rotate(45deg) translate(5px,5px);
  }
  header.open .hamburger::after {
    transform: rotate(-45deg) translate(5px,-5px);
  }
}

/* Main Content */
main {
  flex: 1;
  width: 90vw;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: rgba(255,255,255,0.85);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}
h1, h2 {
  text-align: center;
  color: #004a70;
}
h3 {
  text-align: center;
  color: #d9a441;
}
h1 {
  font-size: clamp(2rem, 6vw, 3.5rem); /* responsive main title */
  font-weight: 700;
}
h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
}
h3 {
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
}
section {
  text-align: center;
  margin-bottom: 3rem;
}

/* Ensure mobile nav works under 1000px */
@media (max-width: 1000px) {
    .nav-menu nav {
    display: block !important;
  }
}

/* Carousel Container */
.property-carousel { overflow: hidden; position: relative; }
.property-wrapper { display: flex; will-change: transform; }
.property-wrapper > .property-list + .property-list { margin-left: 1rem; }
.property-list { display: flex; flex-wrap: nowrap; gap: 1rem; flex-shrink: 0; }
.property { flex-shrink: 0; background: #fff; border-radius:12px; box-shadow:0 4px 10px rgba(0,0,0,0.15); padding:1rem; width:250px; transition:transform 0.3s ease; cursor:pointer; }
.property:hover { transform: translateY(-5px); }
.property img { width:100%; border-radius:10px; }
.property h3 { margin:0.5rem 0; color: #004a70; }
.property ul { padding:0; list-style:none; text-align:left; margin:0 auto; max-width:200px; }
.property ul li::before { content:"• "; color: #004a70; }

/* Single Featured Property */
.single-property {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap; /* allow wrapping on small screens */
}
.single-property .property {
  width: clamp(250px, 80vw, 500px); /* responsive width */
  background: #fff;
  border-radius:12px;
  box-shadow:0 4px 10px rgba(0,0,0,0.15);
  padding:1rem;
  transition:transform 0.3s ease;
}
.single-property .property img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.single-property .property h3 {
  font-size: clamp(1rem, 3vw, 1.5rem);
}
.single-property .property ul li {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
}

/* Buttons & Sections */
.view-properties { background-color: #004a70; border:none; padding:12px 24px; border-radius:10px; font-size:1rem; cursor:pointer; transition:background-color 0.3s ease; margin-top:2rem; }
.view-properties a { color:#fff; text-decoration:none; }
.view-properties:hover { background-color:#023e8a; }
.contact-info { padding:2rem; background-color: #004a70; opacity: 75%; color:#fff; border-radius:16px; box-shadow:0 8px 20px rgba(0,0,0,0.15); }

footer {
  background-color: #004a70;
  color: #eee;
  text-align: center;
  opacity: 75%;
  font-size: 0.9rem;
  padding: 0.1rem;
}
footer a {
  color: #fff;
  text-decoration: underline;
}
.footer-content {
  margin: 0 auto;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

/* 2-Column Layout for Services & Promise Lists */
.services-list,
.promise-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(350px, 1fr));
  gap: 3rem;
  margin: 0;
  padding: 0;
  justify-items: stretch;
}

/* Card-style Items */
.services-list li,
.promise-list li {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.services-list li:hover,
.promise-list li:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Icon/Emoji Styling */
.services-list li::before,
.promise-list li::before {
  content: attr(data-icon);
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: block;
}

/* Highlighted Titles */
.services-list li strong,
.promise-list li strong {
  display: block;
  margin-bottom: 0.75rem;
  color: #004a70;
  font-size: 1.25rem;
}

/* Body of Items */
.services-list li,
.promise-list li {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Link Styling within Services */
.services-list li a {
  color: #d9a441;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.services-list li a:hover {
  color: #b58a36;
}

/* Responsive: Single Column on Mobile */
@media (max-width: 768px) {
  main section {
    padding: 2rem;
  }
  .services-list,
  .promise-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .services-list li,
  .promise-list li {
    padding: 1.5rem;
  }
}

/* Animations & Responsive */
@media (max-width:768px) {
  main { padding:1.5rem; }
  footer { font-size:0.85rem; }
}
@media (min-width:1600px) {
  main { padding:3rem; max-width:1500px; margin:80px auto; }
  h1 { font-size:3.5rem; }
  h2 { font-size:2.4rem; }
  h3 { font-size:1.8rem; }
  p, li { font-size:1.2rem; }
}
