/* ---------------------------------- */
/* BASE STYLES */
/* ---------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a1e2e; /* Deep dark background */
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.site-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #1b3c53;
}

.brand-highlight {
  color: #d2c1b6;
}

/* ---------------------------------- */
/* ENHANCED HEADER STYLES */
/* ---------------------------------- */
.site-header {
  position: fixed;
  width: 100%;
  z-index: 100;
  background: linear-gradient(135deg, #f3f3f3 0%, #ffffff 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(210, 193, 182, 0.2);
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

/* Logo and Branding */
.site-branding {
  flex-shrink: 0;
  padding: 15px 0;
  display: flex;
  align-items: center;
}

.site-branding a {
  text-decoration: none;
  color: white;
  display: inline-block;
  transition: transform 0.3s ease;
}

.site-branding a:hover {
  transform: scale(1.02);
}

.site-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2em;
  font-weight: 900;
  margin: 0;
  line-height: 1.1;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #002d54 0%, #456882 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-description {
  color: #d2c1b6;
  font-size: 0.65em;
  margin: 0;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.9;
}

.custom-logo-wrapper {
  display: flex;
  align-items: center;
}

.custom-logo-wrapper img {
  max-height: 60px;
  width: auto;
  display: block;
}

/* Desktop Navigation Menu */
.main-navigation {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
  gap: 50px;
  padding: 15px 0;
}

.main-navigation .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 45px;
  align-items: center;
}

.main-navigation .nav-menu > li {
  margin: 0px;
  position: relative;
}

.main-navigation a {
  color: #1b3c53;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.1em;
  padding: 8px 0;
  letter-spacing: 1.8px;
  position: relative;
  transition: color 0.3s;
  display: inline-block;
  margin: 0 10px;
  font-family: "Playfair Display", serif;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d2c1b6 0%, #ffffff 100%);
  transition: width 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: #12232f;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
  width: 100%;
}

/* Header CTA Button */
.header-cta {
  margin: 0;
  display: flex;
  align-items: center;
}

.header-cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #234c6a 0%, #1b3c53 100%);
  color: white !important;
  text-decoration: none;
  font-weight: 700;
  text-transform: none;
  font-family: "Playfair Display", serif;
  font-size: 1.05em;
  border-radius: 6px;
  transition: all 0.3s;
  border: 2px solid rgba(210, 193, 182, 0.3);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-cta-button:hover {
  background: linear-gradient(135deg, #d2c1b6 0%, #e5d4c7 100%);
  color: #1b3c53 !important;
  border-color: #d2c1b6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210, 193, 182, 0.4);
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 150;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #1b3c53 0%, #1b3c53 100%);
  margin: 5px 0;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-navigation {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #d2c1b6 0%, #ffffff 100%);
  z-index: 140;
  overflow-y: auto;
  padding-top: 100px;
}

.mobile-navigation.active {
  display: block;
}

.mobile-nav-menu {
  list-style: none;
  padding: 0;
  text-align: center;
}

.mobile-nav-menu li {
  margin: 30px 0;
}

.mobile-nav-menu a {
  color: #1b3c53;
  font-size: 1.4em;
  padding: 15px 0;
  display: block;
  transition: color 0.3s;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.mobile-nav-menu a:hover {
  color: #1b3c53;
}

.mobile-header-cta {
  text-align: center;
  padding: 30px 0 50px;
}

body.menu-open {
  overflow: hidden;
}

.landing-page-content {
  padding-top: 0;
}

/* Navigation Link Styling /*

/* --- Common Navigation Link Styling --- */
/* Set a standard size/padding for all links that have icons */
.page_item a {
  background-repeat: no-repeat;
  background-size: 40px 40px;
  background-position: left 50%;
  padding-left: 45px !important;
}

@media (max-width: 992px) {
  .mobile-nav-menu li {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-nav-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.4em;
    color: #1b3c53;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding: 10px 15px;
  }

  /* Icon before text */
  .mobile-nav-menu .page-item-71 a::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 26px;
    background-image: url("../assets/images/estate.png");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
  }

  .mobile-nav-menu .page-item-2 a::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 26px;
    background-image: url("../assets/images/commercials.png");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
  }

  .mobile-nav-menu .page-item-3 a::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 26px;
    background-image: url("../assets/images/legal.png");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 10px;
  }

  .mobile-nav-menu a:hover {
    color: #234c6a;
  }
}

/* ---------------------------------- */
/* CTA BUTTONS */
/* ---------------------------------- */
.cta-button {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  text-transform: none;
  transition: all 0.3s;
  border: 2px solid transparent;
  border-radius: 6px;
}

.cta-primary {
  background-color: #1b3c53;
  color: #d2c1b6;
  border-color: #1b3c53;
}

.cta-primary:hover {
  background-color: #234c6a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 60, 83, 0.3);
}

.cta-secondary {
  background-color: transparent;
  color: #d2c1b6;
  border-color: #d2c1b6;
}

.cta-secondary:hover {
  background-color: #d2c1b6;
  color: #1b3c53;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210, 193, 182, 0.3);
}

/* ---------------------------------- */
/* HERO SECTION */
/* ---------------------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  margin-top: 0;
  /* Essential for positioning the arrow absolute within it */
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

  /* Slightly darker tone across the whole image */
  background-color: rgba(10, 20, 40, 0.5);

  /* Blue gradient fade from bottom */
  background-image: linear-gradient(
    to top,
    rgba(2, 35, 75, 0.9) 0%,
    /* deep blue bottom */ rgba(1, 38, 83, 0.7) 25%,
    /* mid blue */ rgba(0, 70, 155, 0.3) 55%,
    /* soft transition */ rgba(0, 70, 155, 0) 85% /* fade out near top */
  );

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px); /* Safari support */
  opacity: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 900px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4em;
  margin-bottom: 0.2em;
  color: white;
}

.hero-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 1.4em;
  margin-bottom: 2em;
  color: #d2c1b6;
}

.hero-cta-group a {
  margin: 0 10px;
}

/* --- Scroll Down Arrow Styling (for Hero Section) --- */
.scroll-down-arrow {
  position: absolute;
  bottom: 50px; /* Moved up slightly */
  left: 50%;
  transform: translateX(-50%);

  color: #fff; /* White color */
  font-size: 2.5rem;
  line-height: 1;
  z-index: 10;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
}

.scroll-down-arrow:hover {
  color: #f5f5dc; /* Light Beige color on hover */
}

/* ---------------------------------- */
/* VALUE PROPOSITION / ICONS SECTION */
/* ---------------------------------- */
.value-proposition-section {
  background-color: #e7e7e7;
  padding: 80px 0;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.icon-item {
  padding: 30px 20px;
  transition: transform 0.3s;
}

.icon-item:hover {
  transform: translateY(-5px);
}

.icon-large {
  font-size: 3.5em;
  color: #234c6a;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.icon-item:hover .icon-large {
  color: #1b3c53;
}

.icon-title {
  font-family: "Playfair Display", serif;
  font-size: 1.4em;
  font-weight: 700;
  color: #1b3c53;
  margin-top: 0;
  margin-bottom: 10px;
}

.icon-text {
  color: black;
  font-size: 0.95em;
  line-height: 1.6;
  font-family: "Playfair Display", serif;
}

/* --- Scroll to Top Button Styling (REVISED) --- */
.scroll-to-top {
  /* Positioning */
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;

  /* Appearance */
  display: none;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  background-color: #fff; /* White circle background */
  border-radius: 50%;
  border: 2px solid #002d54; /* Dark blue border/ring */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-decoration: none;

  /* Icon Styling (Default state) */
  color: #002d54; /* Dark blue arrow */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Hover effect: Dark blue background, white arrow, white border */
.scroll-to-top:hover {
  background-color: #002d54; /* Dark Blue background */
  color: #fff; /* White arrow */
  border-color: #fff; /* White border */
}

/* ---------------------------------- */
/* OUR COMMITMENT SECTION */
/* ---------------------------------- */
.commitment-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.commitment-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23e7e7e7'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23e7e7e7'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
}

.commitment-section h2 {
  margin-bottom: 10px;
  font-size: 3em;
}

.commitment-section .divider {
  margin-bottom: 20px;
}

.commitment-section .newsletter-subtitle {
  font-size: 1.2em;
  color: #456882;
  max-width: 900px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 80px;
}

.commitment-item {
  padding: 50px 35px;
  background: white;
  border-radius: 12px;
  border-bottom: 5px solid #d2c1b6;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.commitment-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 60, 83, 0.05) 0%,
    rgba(210, 193, 182, 0.1) 100%
  );
  transition: height 0.4s ease;
  z-index: 0;
}

.commitment-item:hover::before {
  height: 100%;
}

.commitment-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(27, 60, 83, 0.2);
  border-bottom-color: #234c6a;
}

.commitment-icon {
  font-size: 3.5em;
  color: #1b3c53;
  margin-bottom: 25px;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.commitment-item:hover .commitment-icon {
  color: #d2c1b6;
  transform: scale(1.1) rotateY(360deg);
}

.commitment-title {
  font-family: "Playfair Display", serif;
  font-size: 1.7em;
  margin-top: 0;
  margin-bottom: 20px;
  color: #1b3c53;
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.commitment-item:hover .commitment-title {
  color: #234c6a;
}

.commitment-text {
  font-size: 1em;
  color: #456882;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", serif;
}

/* Detailed Companies Section */
.companies-detailed-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 3px solid #d2c1b6;
}

.companies-detailed-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 2.5em;
  color: #1b3c53;
  margin-bottom: 50px;
}

.company-detail-grid {
  display: grid;
  gap: 60px;
}

.company-detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(180deg, #1b3c53 0%, #234c6a 100%);
  transition: height 0.4s ease;
}

.company-detail-card:hover::before {
  height: 100%;
}

.company-detail-card:hover {
  transform: translateX(10px);
}

.company-icon-large {
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-icon-large i {
  font-size: 5em;
  color: #1b3c53;
  transition: all 0.4s ease;
}

.company-detail-card:hover .company-icon-large i {
  color: #d2c1b6;
  transform: scale(1.1) rotate(5deg);
}

.company-detail-content h4 {
  font-family: "Playfair Display", serif;
  font-size: 2em;
  margin-top: 0;
  margin-bottom: 15px;
  transition: color 0.3s;
}

.company-detail-card:hover .company-detail-content h4 {
}

.company-tagline {
  font-family: "Playfair Display", serif;
  font-size: 1.2em;
  font-style: italic;
  color: #234c6a;
  margin-bottom: 25px;
}

.company-detail-content p {
  font-size: 1.05em;
  color: #456882;
  line-height: 1.8;
  margin-bottom: 25px;
}

.company-services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 25px;
}

.service-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.service-point:hover {
  background: linear-gradient(
    135deg,
    rgba(210, 193, 182, 0.15) 0%,
    rgba(210, 193, 182, 0.05) 100%
  );
  transform: translateX(5px);
}

.service-point i {
  color: #d2c1b6;
  font-size: 1.1em;
  margin-top: 3px;
  flex-shrink: 0;
}

.service-point span {
  font-size: 0.95em;
  color: #1b3c53;
  line-height: 1.5;
}

/* Why Choose Us Section */
.why-choose-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
  padding-top: 50px;
  border-top: 2px solid #d2c1b6;
}

.why-item {
  text-align: center;
  padding: 25px 15px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.why-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(210, 193, 182, 0.1) 0%,
    rgba(210, 193, 182, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.why-item:hover::before {
  opacity: 1;
}

.why-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(27, 60, 83, 0.15);
}

.why-number {
  font-family: "Playfair Display", serif;
  font-size: 3em;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #d2c1b6 0%, #1b3c53 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.why-item:hover .why-number {
  background: linear-gradient(135deg, #d2c1b6 0%, #e5d4c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.15);
  text-shadow: 0 5px 15px rgba(210, 193, 182, 0.3);
}

.why-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1em;
  font-weight: 700;
  color: #1b3c53;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.why-item:hover .why-title {
  color: #234c6a;
}

.why-text {
  font-size: 0.9em;
  color: #456882;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  font-family: "Playfair Display", serif;
}

/* ---------------------------------- */
/* SERVICES PREVIEW SECTION */
/* ---------------------------------- */
.services-preview-section {
  padding: 80px 0;
  background-color: white;
}

.service-card-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 50px;
  border: 1px solid #456882;
  border-radius: 8px;
}

.service-image-side {
  overflow: hidden;
  border-radius: 8px;
}

.service-card-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
}

.service-card-container:hover .service-card-image {
  transform: scale(1.05);
}

.service-content-side {
  padding-right: 20px;
}

.service-title {
  font-size: 2.5em;
  margin-bottom: 0.1em;
  color: #1b3c53;
}

.service-tagline {
  font-family: "Playfair Display", serif;
  font-size: 1.2em;
  font-style: italic;
  color: #234c6a;
  margin-bottom: 1.5em;
}

.service-description {
  margin-bottom: 2em;
  line-height: 1.6;
}

.service-features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2em;
}

.service-features-list li {
  padding: 10px 0;
  border-bottom: 1px solid #d2c1b6;
  color: black;
  position: relative;
  padding-left: 25px;
}

.service-features-list li::before {
  content: "•";
  color: #456882;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  position: absolute;
  left: 0;
}

.service-cta-button {
  background-color: #234c6a;
  color: #d2c1b6;
  border-color: #234c6a;
}

.service-cta-button:hover {
  background-color: #1b3c53;
  color: white;
  border-color: #1b3c53;
}

/* ---------------------------------- */
/* NEWSLETTER SUBSCRIPTION SECTION */
/* ---------------------------------- */
.newsletter-section {
  background-color: #f0f0f0;
  padding: 80px 0;
  text-align: center;
}

.newsletter-title {
  font-size: 2.8em;
  margin-bottom: 10px;
  color: #1b3c53;
}

.divider {
  width: 60px;
  height: 3px;
  background-color: #d2c1b6;
  margin: 0 auto 30px;
}

.newsletter-subtitle {
  font-size: 1.1em;
  color: #456882;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  max-width: 550px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.newsletter-input {
  flex-grow: 1;
  padding: 15px 20px;
  border: none;
  font-size: 1em;
  color: black;
  background-color: white;
}

.newsletter-input:focus {
  outline: 2px solid #234c6a;
}

.newsletter-button {
  padding: 15px 30px;
  border: none;
  background-color: #234c6a;
  color: #d2c1b6;
  font-size: 1em;
  font-weight: 700;
  text-transform: none;
  font-family: "Playfair Display", serif;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-button:hover {
  background-color: #1b3c53;
}

/* ---------------------------------- */
/* FOOTER STYLES */
/* ---------------------------------- */
.site-footer {
  background-color: #1b3c53;
  color: #d2c1b6;
  padding-top: 50px;
  width: 100%;
}

.footer-columns {
  width: 100%;
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  padding-bottom: 40px;
  text-align: left;
}

.footer-column {
  width: 100%;
}

.footer-column h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.5em;
  font-weight: 700;
  color: white;
  margin-top: 0;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0%;
  width: 40px;
  height: 3px;
  background-color: #234c6a;
}

.footer-column .separator {
  width: 300px;
  height: 1px;
  background-color: #234c6a;
}

.footer-column .separator-margin {
  margin: 10px 0;
}

.footer-column .separator-margin-bottom {
  margin-bottom: 10px;
}

.footer-column p {
  margin: 0;
  font-size: 1em;
}

.footer-column a {
  color: #d2c1b6;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: white;
}

.footer-column i {
  color: #456882;
  margin-right: 8px;
}

.footer-bottom {
  border-top: 1px solid #234c6a;
  padding: 20px 0;
  text-align: center;
  font-size: 0.8em;
  color: #456882;
}

/* ---------------------------------- */
/* BRAND COLUMN STYLING */
/* ---------------------------------- */
.footer-brand {
  display: flex;
  align-items: center; /* Vertically centers logo & text */
  text-align: left;
  gap: 20px; /* Space between logo and text */
}

.footer-brand .footer-logo {
  width: 130px; /* Adjust as desired */
  height: auto;
  object-fit: cover;
}

.footer-brand p {
  font-size: 0.9em;
  line-height: 1.5;
  color: #d2c1b6;
  margin: 0;
}

/* ---------------------------------- */
/* Responsive Media Queries */
/* ---------------------------------- */
@media (max-width: 992px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .commitment-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .why-choose-section {
    grid-template-columns: repeat(2, 1fr);
  }
  .company-services-list {
    grid-template-columns: 1fr; /* Make services list single column earlier */
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 15px 0;
  }

  .header-content {
    gap: 20px;
  }

  .header-container {
    padding: 0 25px;
  }

  .site-title {
    font-size: 1.6em;
  }

  .site-description {
    font-size: 0.55em;
    letter-spacing: 2px;
  }

  .hero-title {
    font-size: 2.5em;
  }

  /* --- Detailed Companies Section Responsive --- */
  .companies-detailed-section h3 {
    font-size: 2em;
    text-align: center;
  }

  .company-detail-card {
    grid-template-columns: 1fr; /* Stack icon and content */
    gap: 30px;
    padding: 30px 25px;
    text-align: center;
  }

  .company-detail-card:hover {
    transform: translateX(0) translateY(-5px); /* Reset horizontal transform, keep vertical */
  }

  .company-icon-large {
    justify-content: center; /* Center the icon horizontally */
  }

  .company-icon-large i {
    font-size: 4em; /* Slightly smaller icon */
  }

  .company-detail-content h4 {
    font-size: 1.6em;
  }

  .company-services-list {
    text-align: left; /* Re-align list items to the left for readability */
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
  }
  .footer-column h4::after {
    left: 0;
    transform: none;
  }
  .footer-column {
    padding-bottom: 20px;
  }

  .service-card-container {
    grid-template-columns: 1fr;
    padding: 30px;
  }
}

/* --- OUR STORY SECTION - LUXURY EDITION --- */

/* Main Section Styling */
.our-story-section {
  padding: 100px 0;
  background: linear-gradient(
      135deg,
      rgba(13, 36, 56, 0.95) 0%,
      rgba(27, 60, 83, 0.92) 50%,
      rgba(35, 76, 106, 0.95) 100%
    ),
    url("../assets/images/bg-story.jpg") center/cover no-repeat fixed;
  color: #d2c1b6;
  position: relative;
  overflow: hidden;
}

.our-story-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #d2c1b6 50%,
    transparent 100%
  );
}

.our-story-section::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(210, 193, 182, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Container for two-column layout */
.story-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
  position: relative;
  z-index: 1;
}

/* Left Content Area */
.story-content-left {
  flex: 1;
  max-width: 50%;
  animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.story-pretitle {
  display: inline-block;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 15px;
  color: #d2c1b6;
  text-transform: uppercase;
  padding: 8px 20px;
  background: rgba(210, 193, 182, 0.1);
  border-left: 3px solid #d2c1b6;
  backdrop-filter: blur(10px);
}

.story-title {
  font-family: "Playfair Display", serif;
  font-size: 4em;
  color: #d2c1b6;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.1;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #d2c1b6 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.story-text {
  font-size: 1.15em;
  line-height: 1.8;
  margin-top: 25px;
  font-family: "Playfair Display", serif;
  margin-bottom: 50px;
  color: rgba(210, 193, 182, 0.9);
  max-width: 90%;
}

/* Stats Grid with Animated Counters */
.story-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid rgba(210, 193, 182, 0.2);
}

.stat-item {
  text-align: left;
  padding: 25px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(210, 193, 182, 0.05) 100%
  );
  border-radius: 12px;
  border-left: 4px solid #d2c1b6;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(210, 193, 182, 0.15) 0%,
    transparent 100%
  );
  transition: width 0.5s ease;
  z-index: 0;
}

.stat-item:hover::before {
  width: 100%;
}

.stat-item:hover {
  transform: translateY(-8px) translateX(5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-left-color: #ffffff;
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 3.5em;
  color: #d2c1b6;
  font-weight: 900;
  margin-bottom: 5px;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}

.stat-item:hover .stat-number {
  color: #ffffff;
  transform: scale(1.1);
}

.stat-label {
  text-transform: uppercase;
  font-size: 0.75em;
  color: #456882;
  letter-spacing: 2px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 8px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
  color: #d2c1b6;
}

/* CTA Link */
.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #d2c1b6;
  text-decoration: none;
  margin-top: 40px;
  padding: 15px 30px;
  border: 2px solid #d2c1b6;
  border-radius: 6px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.story-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(210, 193, 182, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.story-cta:hover::before {
  left: 100%;
}

.story-cta i {
  transition: transform 0.4s ease;
}

.story-cta:hover {
  background-color: #d2c1b6;
  color: #1b3c53;
  border-color: #d2c1b6;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(210, 193, 182, 0.3);
}

.story-cta:hover i {
  transform: translateX(5px);
}

/* Right Image Area with Overlapping Effect */
.story-image-placeholder {
  flex: 1;
  min-height: 600px;
  max-width: 50%;
  position: relative;
  animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Create overlapping image effect (Dark Blue Background) */
.story-image-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 85%;
  height: 85%;
  background: linear-gradient(135deg, #234c6a 0%, #456882 100%);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Transparent Card Layer (The target area) */
.story-image-placeholder::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 85%;
  height: 85%;
  background: linear-gradient(
    135deg,
    rgba(210, 193, 182, 0.3) 0%,
    rgba(69, 104, 130, 0.3) 100%
  );
  border-radius: 12px;
  border: 3px solid rgba(210, 193, 182, 0.5);
  backdrop-filter: blur(10px);
  z-index: 2;
}

/* Wrapper for Icons (The stacking context for icons) */
.company-icons-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 85%;
  height: 85%;
  z-index: 4;

  /* Center the center badge within this wrapper */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Base Style for all Icon Cards (Circular, Transparent, Frosted) */
.company-icon-card {
  position: absolute;
  width: 160px;
  height: 160px;
  /* --- TRANSPARENCY FIX --- */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(210, 193, 182, 0.1) 100%
  ); /* Light transparent gradient */
  border: 3px solid rgba(210, 193, 182, 0.7); /* Opaque border for definition */
  backdrop-filter: blur(8px); /* Frosted glass effect */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  /* ----------------------- */
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 5;
  padding: 10px;
}

.company-icon-card i {
  font-size: 3.5em;
  color: #d2c1b6; /* Light theme color for visibility */
  margin-bottom: 5px;
  transition: transform 0.4s ease;
}

.company-icon-label {
  font-size: 0.85em;
  font-weight: 700;
  color: #ffffff; /* White text for contrast */
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Shadow for legibility */
}

/* ---------------------------------- */
/* ICON POSITIONING AND SPINNING */
/* ---------------------------------- */

/* --- Outer Ring (4 New Icons) --- 
   Assumes these are the first 4 divs in .company-icons-wrapper: nth-child(1) to nth-child(4)
*/

/* 1. CONSTRUCTION (Top Center) */
.company-icons-wrapper .company-icon-card:nth-child(1) {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
}

/* 2. ADVICE (Right Center) */
.company-icons-wrapper .company-icon-card:nth-child(2) {
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
}

/* 3. FINANCE (Bottom Center) */
.company-icons-wrapper .company-icon-card:nth-child(3) {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
}

/* 4. PARTNERSHIP (Left Center) */
.company-icons-wrapper .company-icon-card:nth-child(4) {
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
}

/* --- Inner Ring (3 Original Icons) --- 
   Assumes these are the next 3 divs in .company-icons-wrapper: nth-child(5) to nth-child(7)
*/

/* 5. BEST LEGAL (Top-Left on inner circle) */
.company-icons-wrapper .company-icon-card:nth-child(5) {
  top: 5%;
  left: 20%;
  /* Combine positioning transform with animation transform */
  transform: translate(-50%, -50%) rotate(0deg);
}

/* 6. BEST ESTATE (Bottom on inner circle) */
.company-icons-wrapper .company-icon-card:nth-child(6) {
  bottom: 5%;
  left: 50%;
  transform: translate(-50%, 50%) rotate(0deg);
}

/* 7. BEST COMMERCIAL (Top-Right on inner circle) */
.company-icons-wrapper .company-icon-card:nth-child(7) {
  top: 5%;
  right: 20%;
  transform: translate(50%, -50%) rotate(0deg);
}

/* Central Badge Styling (Ensuring it's visible) */
.center-badge {
  position: relative;
  z-index: 6; /* Ensure it is on top of icon cards */
}

/* --- Spinning Icon CSS --- */

/* 1. Define the Keyframe Animation */
@keyframes spin-clockwise {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-counter-clockwise {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* 2. Apply the Animation to the inner ring (clockwise) */
.spinning-icon {
  /* Animation: spin for 12 seconds, linear speed, run infinitely */
  /* Note: The rotation will apply to the *container*, but the absolute positioning will make it appear to orbit. */
  animation: spin-clockwise 12s linear infinite;
  will-change: transform;
}

/* 3. Apply the Animation to the new outer ring (counter-clockwise) */
.outer-icon {
  /* Animation: spin for 16 seconds, counter-clockwise, run infinitely */
  animation: spin-counter-clockwise 16s linear infinite;
  will-change: transform;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .story-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 60px;
    padding: 0 40px;
  }

  .story-content-left,
  .story-image-placeholder {
    max-width: 100%;
  }

  .story-image-placeholder {
    min-height: 400px;
    width: 100%;
  }

  .story-title {
    font-size: 3em;
  }

  /* Reset icon positioning on smaller screens */
  .company-icons-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    z-index: 1;
    /* Remove animations on mobile */
    animation: none !important;
  }

  /* Target all icon cards when stacked vertically on mobile */
  .company-icons-wrapper .company-icon-card {
    position: relative !important; /* Override absolute positioning */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: 100%;
    height: auto;
    border-radius: 12px;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    animation: none !important; /* Remove individual icon animations on mobile */
  }

  .company-icon-card i {
    margin-bottom: 0;
  }

  .center-badge {
    order: -1; /* Move badge to top */
    margin-bottom: 20px;
  }

  /* Hide the overlapping elements on mobile for cleaner view */
  .story-image-placeholder::before,
  .story-image-placeholder::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .company-icons-wrapper {
    display: none;
  }
  .story-image-placeholder {
    display: none;
  }
  .our-story-section {
    padding: 60px 0;
  }

  .story-stats-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .story-title {
    font-size: 2.5em;
  }

  .story-text {
    max-width: 100%;
  }

  .story-container {
    padding: 0 25px;
  }
}

/* 1. MAKE THE BADGE BIGGER */
.center-badge {
  font-size: 50px;
}

/* Fade-in animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Base fade-in style */
.fade-in {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

/* Delay classes for staggered animation */
.fade-in.delay-1 {
  animation-delay: 0.4s;
}

.fade-in.delay-2 {
  animation-delay: 0.8s;
}

@media (max-width: 600px) {
  .icon-grid {
    grid-template-columns: 1fr;
  }

  .why-choose-section {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
    max-width: 90%;
  }
  .newsletter-input {
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
  }
  .newsletter-button {
    border-radius: 0 0 6px 6px;
    width: 100%;
  }
}

.service-icon i {
  font-size: 2.2em;
  color: #d2c1b6;
  transition: color 0.4s ease;
}

.service-card:hover .service-icon i {
  color: #1b3c53;
}

.service-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8em;
  color: #1b3c53;
  margin-bottom: 15px;
}

.service-card-text {
  font-size: 1.05em;
  color: #456882;
  line-height: 1.7;
  margin-bottom: 25px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  padding: 10px 0;
  font-size: 0.95em;
  color: #1b3c53;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-features i {
  color: #d2c1b6;
  font-size: 1.1em;
}

/* Property Types Section */
.property-types-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.property-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.property-type-card {
  padding: 40px 30px;
  background: white;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 4px solid #d2c1b6;
}

.property-type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(27, 60, 83, 0.15);
  border-bottom-color: #1b3c53;
}

.property-icon-wrapper {
  width: 90px;
  height: 90px;
  background: linear-gradient(
    135deg,
    rgba(27, 60, 83, 0.1) 0%,
    rgba(210, 193, 182, 0.1) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.4s ease;
}

.property-type-card:hover .property-icon-wrapper {
  background: linear-gradient(135deg, #1b3c53 0%, #234c6a 100%);
  transform: rotate(10deg) scale(1.1);
}

.property-icon-wrapper i {
  font-size: 2.5em;
  color: #1b3c53;
  transition: color 0.4s ease;
}

.property-type-card:hover .property-icon-wrapper i {
  color: #d2c1b6;
}

.property-type-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5em;
  color: #1b3c53;
  margin-bottom: 15px;
}

.property-type-card p {
  font-size: 0.95em;
  color: #456882;
  line-height: 1.6;
}

/* Process Section */
.commercial-process-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0d2438 0%, #1b3c53 100%);
  color: white;
}

.commercial-process-section .section-title,
.commercial-process-section .section-subtitle {
  color: white;
}

.commercial-process-section .section-subtitle {
  color: #d2c1b6;
}

.process-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    #d2c1b6 0%,
    rgba(210, 193, 182, 0.3) 100%
  );
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
}

.step-number {
  background-color: #d2c1b6;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-number p {
  font-family: "Playfair Display", serif;
  font-size: 2.5em;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #d2c1b6 0%, #1b3c53 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.service-icon i {
  font-size: 2.2em;
  color: #d2c1b6;
  transition: color 0.4s ease;
}

.service-card:hover .service-icon i {
  color: #1b3c53;
}

.service-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8em;
  color: #1b3c53;
  margin-bottom: 15px;
}

.service-card-text {
  font-size: 1.05em;
  color: #456882;
  line-height: 1.7;
  margin-bottom: 25px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  padding: 10px 0;
  font-size: 0.95em;
  color: #1b3c53;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-features i {
  color: #d2c1b6;
  font-size: 1.1em;
}

/* Property Types Section */
.property-types-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

/* ================================== */
/* RECOMMENDATIONS SLIDER SECTION */
/* ================================== */

.recommendations-section {
  padding: 100px 0;
  background: white;
  overflow: hidden;
}

.recommendations-slider-wrapper {
  position: relative;
  margin-top: 50px;
}

.recommendations-slider {
  overflow: hidden;
  padding: 20px 0;
}

.slider-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease-in-out;
}

/* Property Card Styles */
.property-card {
  min-width: 380px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 4px solid #d2c1b6;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(27, 60, 83, 0.2);
  border-bottom-color: #1b3c53;
}

.property-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.1);
}

.property-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #d2c1b6 0%, #e5d4c7 100%);
  color: #1b3c53;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.property-content {
  padding: 25px;
}

.property-title {
  font-family: "Playfair Display", serif;
  font-size: 1.6em;
  color: #1b3c53;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.property-card:hover .property-title {
  color: #234c6a;
}

.property-location {
  font-size: 0.9em;
  color: #456882;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-location i {
  color: #d2c1b6;
}

.property-description {
  font-size: 0.95em;
  color: #456882;
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 60px;
}

.property-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.feature-item i {
  font-size: 1.4em;
  color: #1b3c53;
  transition: color 0.3s ease;
}

.property-card:hover .feature-item i {
  color: #d2c1b6;
}

.feature-item span {
  font-size: 0.85em;
  color: #456882;
  font-weight: 600;
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.property-price {
  font-family: "Playfair Display", serif;
  font-size: 1.8em;
  font-weight: 900;
  color: #1b3c53;
  background: linear-gradient(135deg, #1b3c53 0%, #234c6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.property-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #1b3c53 0%, #234c6a 100%);
  color: #d2c1b6;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.property-btn:hover {
  background: linear-gradient(135deg, #234c6a 0%, #1b3c53 100%);
  transform: translateX(3px);
  box-shadow: 0 5px 15px rgba(27, 60, 83, 0.3);
}

/* Slider Navigation Buttons */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1b3c53 0%, #234c6a 100%);
  border: none;
  border-radius: 50%;
  color: #d2c1b6;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.slider-nav:hover {
  background: linear-gradient(135deg, #234c6a 0%, #1b3c53 100%);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(27, 60, 83, 0.3);
}

.slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.prev-btn {
  left: -25px;
}

.next-btn {
  right: -25px;
}

.slider-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slider-nav:disabled:hover {
  transform: translateY(-50%) scale(1);
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.slider-dot:hover {
  background: #d2c1b6;
  transform: scale(1.2);
}

.slider-dot.active {
  background: linear-gradient(135deg, #1b3c53 0%, #234c6a 100%);
  width: 30px;
  border-radius: 6px;
}

/* ================================== */
/* RECOMMENDATIONS RESPONSIVE */
/* ================================== */

@media (max-width: 1024px) {
  .property-card {
    min-width: 350px;
  }

  .slider-nav {
    width: 45px;
    height: 45px;
    font-size: 1.1em;
  }

  .prev-btn {
    left: -15px;
  }

  .next-btn {
    right: -15px;
  }
}

@media (max-width: 768px) {
  .recommendations-section {
    padding: 80px 0;
  }

  .property-card {
    min-width: 320px;
  }

  .property-image {
    height: 200px;
  }

  .property-title {
    font-size: 1.4em;
  }

  .property-price {
    font-size: 1.5em;
  }

  .property-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .feature-item i {
    font-size: 1.2em;
  }

  .feature-item span {
    font-size: 0.75em;
  }

  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1em;
  }

  .prev-btn {
    left: 0;
  }

  .next-btn {
    right: 0;
  }
}

@media (max-width: 480px) {
  .property-card {
    min-width: 280px;
  }

  .property-content {
    padding: 20px;
  }

  .property-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .property-btn {
    width: 100%;
    text-align: center;
  }
}

/* Property Types Section */
.property-types-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.property-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.property-type-card {
  padding: 40px 30px;
  background: white;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 4px solid #d2c1b6;
}

.property-type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(27, 60, 83, 0.15);
  border-bottom-color: #1b3c53;
}

.property-icon-wrapper {
  width: 90px;
  height: 90px;
  background: linear-gradient(
    135deg,
    rgba(27, 60, 83, 0.1) 0%,
    rgba(210, 193, 182, 0.1) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.4s ease;
}

.property-type-card:hover .property-icon-wrapper {
  background: linear-gradient(135deg, #1b3c53 0%, #234c6a 100%);
  transform: rotate(10deg) scale(1.1);
}

.property-icon-wrapper i {
  font-size: 2.5em;
  color: #1b3c53;
  transition: color 0.4s ease;
}

.property-type-card:hover .property-icon-wrapper i {
  color: #d2c1b6;
}

.property-type-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5em;
  color: #1b3c53;
  margin-bottom: 15px;
}

.property-type-card p {
  font-size: 0.95em;
  color: #456882;
  line-height: 1.6;
}
/* === FLIP CARD STYLES === */

/* Flip Card CTA Button - Uses your existing button styles */

.flip-card-cta i {
  transition: transform 0.3s ease;
}

.flip-card-cta:hover i {
  transform: translateX(3px);
}

.flip-back-btn:hover i {
  transform: translateX(-3px);
}

/* Back Card Styling */
.card-back h4 {
  color: white;
  margin-bottom: 15px;
  font-size: 2em;
}

.card-back .back-description {
  color: #d2c1b6;
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.7;
}

.back-services-detailed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .company-detail-card {
    height: 650px;
  }

  .card-face {
    padding: 40px;
  }

  .card-front {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .company-icon-large {
    justify-content: center;
  }

  .flip-card-cta {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .company-detail-card {
    height: 700px;
  }

  .card-face {
    padding: 30px 25px;
  }

  .company-icon-large i {
    font-size: 4em;
  }

  .company-detail-content h4 {
    font-size: 1.6em;
  }

  .back-service-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .back-service-item i {
    font-size: 2.5em;
  }

  /* === END READABILITY FIX === */

  /* === MOBILE RESPONSIVE FIX (No 3D Flip) === */
  @media (max-width: 992px) {
    /* Disable 3D perspective on mobile */
    .company-detail-card-wrapper {
      perspective: none;
    }

    /* Set height to auto, disable 3D transform */
    .company-detail-card {
      height: auto;
      transition: none;
      transform-style: flat;
      transform: none !important;
    }

    .company-detail-card.flipped {
      transform: none; /* Disable flip transform */
    }

    /* Reset faces to stack vertically */
    .card-face {
      position: relative; /* No longer absolute */
      height: auto;
      transform: none !important; /* Remove all rotations */
      backface-visibility: visible;
      display: grid; /* Use grid/flex for layout */
      padding: 40px;
      overflow: visible; /* Allow content to flow */
    }

    /* Hide the back face by default on mobile */
    .card-back {
      display: none;
    }

    /* When .flipped is added by JS... */
    .company-detail-card.flipped .card-front {
      display: none; /* Hide the front */
    }
    .company-detail-card.flipped .card-back {
      display: flex; /* Show the back */
    }

    /* Original mobile layout styles */
    .card-front {
      grid-template-columns: 1fr;
      gap: 30px;
      text-align: center;
    }

    .company-icon-large {
      justify-content: center;
    }

    .flip-card-cta {
      align-self: center;
    }
  }
  /* === END MOBILE FIX === */

  @media (max-width: 768px) {
    /* Card height is now auto, so no fixed height needed */

    .card-face {
      padding: 30px 25px;
    }

    .company-icon-large i {
      font-size: 4em;
    }

    .company-detail-content h4 {
      font-size: 1.6em;
    }

    .back-service-item {
      flex-direction: column;
      text-align: center;
      align-items: center;
    }

    .back-service-item i {
      font-size: 2.5em;
    }
  }
}

/* === FLIP CARD STYLES (FIXED VERSION) === */

.company-detail-card-wrapper {
  perspective: 1500px;
  margin-bottom: 2rem;
  width: 100%;
}

.company-detail-card {
  position: relative;
  width: 100%;
  height: 600px;
  transition: transform 0.8s ease-in-out;
  transform-style: preserve-3d;
}

.company-detail-card.flipped {
  transform: rotateY(180deg);
}

/* Shared face styling */
.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
  background: white;
  overflow: hidden;
  border-left: 5px solid #d2c1b6;
  padding: 50px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* FRONT */
.card-front {
  transform: rotateY(0deg);
}

/* BACK */
.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #1b3c53 0%, #234c6a 100%);
  color: white;
}

/* Flip button */
.flip-card-cta {
  margin-top: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1b3c53 0%, #234c6a 100%);
  color: #d2c1b6;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.flip-card-cta:hover {
  background: linear-gradient(135deg, #d2c1b6 0%, #e5d4c7 100%);
  color: #1b3c53;
  transform: translateY(-2px);
}

.flip-card-cta i {
  transition: transform 0.3s ease;
}

.flip-card-cta:hover i {
  transform: translateX(3px);
}

.main-navigation {
  display: flex; /* Make the menu and CTA side-by-side */
  align-items: center; /* Vertically align them */
}

.main-navigation .page-item-71 a::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 26px;
  background-image: url("../assets/images/estate.png");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
}

.main-navigation .page-item-2 a::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 26px;
  background-image: url("../assets/images/commercials.png");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
}

.main-navigation .page-item-3 a::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 26px;
  background-image: url("../assets/images/legal.png");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
}

.header-cta {
  display: flex; /* Make the buttons inside side-by-side */
  gap: 10px; /* Add some space between the buttons */
  /* Add margin to position them correctly relative to the menu */
  margin-left: 20px;
}

/* Only needed if another rule is setting the LIs to display: block; */
  .main-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

.main-navigation .nav-menu li {
  list-style: none;
  display: inline-block !important;
  gap: 45px !important;
}

.main-navigation .nav-menu {
  display: flex !important; /* Forces the flex model */
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 45px !important; /* Should now work correctly */
  align-items: center;
}

/* 3. Ensures the links (the text itself) don't wrap and cause issues */
.main-navigation .nav-menu > li > a {
  white-space: nowrap;
}

/* Show the hamburger menu and hide the full navigation on screens smaller than 992px */
@media screen and (max-width: 991px) {
  /* Show the hamburger menu icon */
  .mobile-menu-toggle {
    display: block; /* or inline-flex, depending on desired layout */
  }

  /* Hide the standard desktop menu */
  .main-navigation {
    display: none !important;
  }

  /* Make the mobile menu visible when its parent is activated by JS */
  .mobile-navigation.active {
    display: block; /* or flex, depending on content layout */
    /* Add other mobile menu styling here (position, background, size) */
  }
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4 {
  padding-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}
