:root {
  --primary-green: #228b22;
  --primary-green-tint: #50c87859;
  --teal: #1FA2A2;
  --accent-gold: #c9a24d;
  --accent-wine: #7a1f1f;

  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --text-main: #1f2933;
  --text-muted: #6b7280;

  --font-body: 'Inter', 'Roboto', Arial, sans-serif;
  --font-heading: 'Montserrat', 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-light);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--bg-dark);
  margin-bottom: 1rem;
}

/* Links and buttons */
a,
button {
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
}

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
  }
  
  .btn-loading {
    position: relative;
    padding-left: 2.5rem !important;
  }
  
  .btn-loading::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-spin 0.6s linear infinite;
  }
  
  @keyframes button-spin {
    to { transform: translateY(-50%) rotate(360deg); }
  }

input[type="radio"],
input[type="checkbox"] {
  width: auto !important;
}

textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 300px;
  /* optional */
}


/* SCROLL ANIMATIONS */

        [data-navbar].scrolled {
            background: var(--bg-dark);
            padding: 1rem 2rem;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        }


        /* Observer CSS */
        [data-fade] {
            opacity: 0;
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        [data-fade="up"] {
            transform: translateY(30px);
        }

        [data-fade="down"] {
            transform: translateY(-30px);
        }

        [data-fade="left"] {
            transform: translateX(30px);
        }

        [data-fade="right"] {
            transform: translateX(-30px);
        }

        [data-fade="scale"] {
            transform: scale(0.9);
        }

        [data-fade].visible {
            opacity: 1;
            transform: translateY(0) translateX(0) scale(1);
        }

        [data-slide] {
            opacity: 0;
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        [data-slide="left"] {
            transform: translateX(-50px);
        }

        [data-slide="right"] {
            transform: translateX(50px);
        }

        [data-slide="up"] {
            transform: translateY(50px);
        }

        [data-slide="down"] {
            transform: translateY(-50px);
        }

        [data-slide].visible {
            opacity: 1;
            transform: translateX(0) translateY(0);
        }

        [data-stagger-item] {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        [data-stagger-item].visible {
            opacity: 1;
            transform: translateY(0);
        }

        [data-src] {
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        [data-src].loaded {
            opacity: 1;
        }

        .placeholder-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
        }

        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }


/* REUSABLES */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* PRELOADER */

.global-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.global-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-container {
  text-align: center;
  position: relative;
}

.preloader-spinner {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

/* Company logo in the center */
.company-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  z-index: 2;
  border-radius: 50%;
  background: white;
  padding: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
  border-top-color: var(--primary-green);
  border-right-color: var(--primary-green-tint);
  animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
  border-bottom-color: var(--primary-green);
  border-left-color: var(--primary-green-tint);
  animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
  border-top-color: var(--primary-green);
  border-left-color: var(--primary-green-tint);
  animation-delay: -0.15s;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide content until preloader is gone */
body.preloader-active main,
body.preloader-active .content-wrapper {
  opacity: 0;
  visibility: hidden;
}

body:not(.preloader-active) main,
body:not(.preloader-active) .content-wrapper {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in;
}

/* Optional: Add a subtle pulse animation to the logo */
@keyframes softPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.company-logo {
  animation: softPulse 2s ease-in-out infinite;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: var(--primary-green);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 20px auto;
}


/* Slider */

.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slider .slide-list {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
  margin-bottom: 3rem;
}

.slide-list .item {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  user-select: none;
}

.slider .slider-btns {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
}

.slider .slider-btns button {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s;

}

.slider .slider-btns button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider .dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.slider .dots span {
  display: block;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.slider .dots span.active {
  background: #fff;
  width: 2rem;
}

/* ============================= */
/* FORM LAYOUT */
/* ============================= */

.form-container {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
  background: var(--bg-light);
}

.ui-form {
  width: 100%;
  max-width: 46rem;
  background: #fff;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  font-family: var(--font-body);
}

.ui-form h2 {
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text-main);
}

.ui-form h3 {
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  color: var(--primary-green);
}

/* ============================= */
/* FORM GROUPS */
/* ============================= */

.form-group {
  margin-bottom: 1.25rem;
}

/* ============================= */
/* FORM HINT / HELP TEXT */
/* ============================= */

.form-hint {
  display: block;
  margin-top: .35rem;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.form-hint::before {
  content: "ℹ ";
  color: var(--teal);
  font-weight: 600;
}


.ui-form label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .35rem;
}

/* ============================= */
/* INPUTS */
/* ============================= */

.ui-form input,
.ui-form select,
.ui-form textarea {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: .6rem;
  border: 1px solid #d1d5db;
  font-size: .95rem;
  font-family: var(--font-body);
  transition: all .2s ease;
  background: #fff;
}

.ui-form input:focus,
.ui-form select:focus,
.ui-form textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px var(--primary-green-tint);
  outline: none;
}

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

.ui-form input + .form-hint,
.ui-form select + .form-hint,
.ui-form textarea + .form-hint {
  margin-top: .4rem;
}

/* ============================= */
/* STEP HANDLING (engine) */
/* ============================= */

.form-step {
  display: none;
  animation: slide .35s ease;
}

.form-step.active {
  display: block;
}

/* ============================= */
/* BLOCK RADIO / CHECKBOX OPTIONS */
/* ============================= */

.block-options {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .5rem;
}

.block-option input {
  display: none;
}

.block-ui {
  border: 1px solid #e5e7eb;
  border-radius: .7rem;
  padding: .9rem 1rem;
  transition: .2s ease;
  background: #fff;
  cursor: pointer;
}

.block-ui strong {
  display: block;
  color: var(--text-main);
  margin-bottom: .25rem;
}

.block-ui small {
  color: var(--text-muted);
  font-size: .75rem;
}

.block-option:hover .block-ui {
  border-color: var(--primary-green);
  background: rgba(34,139,34,0.05);
}

.block-option input:checked + .block-ui {
  border-color: var(--primary-green);
  background: rgba(34,139,34,0.08);
  box-shadow: 0 0 0 2px var(--primary-green-tint);
}

/* ============================= */
/* ACTION BUTTONS */
/* ============================= */

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.form-actions button {
  padding: .7rem 1.4rem;
  border-radius: .6rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: .2s ease;
}

.form-actions button[type="button"] {
  background: #e5e7eb;
  color: #333;
}

.form-actions button[type="submit"],
.form-actions button:last-child {
  background: var(--primary-green);
  color: #fff;
}

.form-actions button:hover {
  transform: translateY(-1px);
  opacity: .95;
}

/* ============================= */
/* STEPPER (progress bar style) */
/* ============================= */

.stepper {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  max-width: 32rem;
  margin-inline: auto;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  height: 4px;
  background: #e5e7eb;
  left: 18px;
  right: 18px;
  z-index: 0;
}

.stepper::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  height: 4px;
  background: var(--primary-green);
  width: var(--progress, 0%);
  transition: width .4s ease;
  z-index: 1;
}

.stepper .step {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: .75rem;
  color: var(--text-muted);
}

.stepper .step::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e5e7eb;
  margin-bottom: .4rem;
  font-weight: 600;
  color: #444;
}

.stepper .step.active::before,
.stepper .step.completed::before {
  background: var(--primary-green);
  color: #fff;
}

.stepper .step.active {
  color: var(--primary-green);
  font-weight: 600;
}

/* ============================= */
/* ANIMATION */
/* ============================= */

@keyframes slide {
  from {
    opacity: 0;
    transform: translateX(25px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}




/* ================== Navbar Base ================== */
nav {
  width: 100%;
  padding: 0.5rem 5%;
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

/* Logo */
nav .logo a {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  gap: 0.5rem;
}

nav .logo img {
  height: 4rem;
}

nav h2 {
  font-size: 2rem;
  font-weight: lighter;
  margin: 0px;
  color: var(--primary-green);
}

nav h2 span {
  font-size: 1.25rem;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--primary-green);
}

.nav-links li a.active {
  color: var(--primary-green);
  font-weight: bold;
}

nav .nav-links>li:last-child {
  display: flex;
  align-items: center;
}

/* Button */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  background: var(--primary-green);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  color: #fff;
}

.btn:hover {
  background: #1d7a1d;
}

/* Hamburger */
#menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  z-index: 20;
  /* ensure it's above menu */
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.4s ease;
  transform-origin: center;
}

/* Hamburger animation */
#menu-toggle:checked+.hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(.45rem, .45rem);
}

#menu-toggle:checked+.hamburger span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked+.hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(.5rem, -.5rem);
}

/* ================== Dropdown Base ================== */
.dropdown {
  position: relative;
}

.dropdown>input {
  display: none;
}

.dropdown-toggle {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.5rem 0;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-main);
}

.dropdown-toggle i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

/* Dropdown menu (shared base) */
.dropdown-menu {
  list-style: none;
  background: #fff;
  border-radius: 0.4rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  min-width: 220px;
  position: absolute;
  top: 120%;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 30;
  text-align: left;
}

.dropdown-menu li a {
  display: block;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu li a:hover {
  background: rgba(34, 139, 34, 0.08);
  color: var(--primary-green);
}

.profile-image {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
}

.site-footer {
  background: var(--bg-dark);
  color: #e5e7eb;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 5%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

/* Brand */
.footer-col.brand img {
  height: 5rem;
  margin-bottom: 1rem;
}

.footer-col.brand h2 {
  line-height: 1.6;
  color: #fff;
  max-width: 360px;
}

.footer-col.brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 360px;
}

/* Columns */
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li,
.footer-col ul li a {
  font-size: 0.95rem;
  color: #cbd5e1;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: var(--primary-green);
}

/* Contact */
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-contact i {
  color: var(--primary-green);
}

/* Socials */
.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  transition: 0.3s;
}

.footer-socials a:hover {
  background: var(--primary-green);
  color: #0f172a;
}

/* Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 1.2rem 5%;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* ================== Privacy Policy ================== */
.privacy-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.8;
}

.privacy-container h1,
.privacy-container h2,
.privacy-container h3 {
  font-family: var(--font-heading);
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.privacy-container h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.privacy-container h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
}

.privacy-container h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

.privacy-container p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.privacy-container ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-container ul li {
  margin-bottom: 0.5rem;
}

/* Optional: Highlight important notes */
.privacy-container .policy-note {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 2rem;
  text-align: center;
}

/* Links styling */
.privacy-container a {
  color: var(--primary-green);
  text-decoration: underline;
  transition: color 0.3s;
}

.privacy-container a:hover {
  color: var(--accent-gold);
}

/* ================= Terms of Use Page ================= */

.terms-container {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  color: var(--text-main);
  line-height: 1.7;
}

.terms-container h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-green);
  text-align: center;
}

.terms-container h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
  border-left: 4px solid var(--primary-green);
  padding-left: 0.8rem;
}

.terms-container p {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.terms-container ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
  list-style-type: disc;
}

.terms-container ul li {
  margin-bottom: 0.6rem;
}

.terms-container a {
  color: var(--primary-green);
  text-decoration: underline;
  transition: color 0.3s;
}

.terms-container a:hover {
  color: var(--accent-gold);
}

.terms-container .policy-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2rem;
  text-align: center;
}


/* Layout */

.service-hero {
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-hero.real-estate {
  background: url('../assets/real-banner-2.jpg') center/cover no-repeat;
}

.service-hero.construction {
  background: url('../assets/construction-banner.jpg') center/cover no-repeat;
}

.service-hero.property-management {
  background: url('../assets/property-banner.jpg') center/cover no-repeat;
}

.ict-hero {
  background: url('../assets/ict-banner.jpg') center/cover no-repeat;
}

.service-hero .hero-content {
  background: rgba(0, 0, 0, 0.35);
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  backdrop-filter: blur(4px);
  min-height: 15rem;
}

.service-hero h1 {
  color: #fff;
  margin-block: 7.5rem;
}

/* Pagination */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.pagination-pages {
  display: flex;
  gap: 1rem;
}

.pagination button,
.pagination span {
  height: 2.5rem;
  width: 2.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 5rem;
  border: 1px solid #ccc;
  background: #fff;
}

.pagination button:hover {
  cursor: pointer;
}

.pagination .active {
  background: var(--primary-green);
  color: #fff;
  border-color: var(--primary-green);
}

/* Mobile */
.filter-toggle {
  display: none;
}

.service-cta {
  background: var(--primary-green);
  margin: 2rem min(3rem, 5%);
  border-radius: 1rem;
  padding: min(3rem, 10%);
  display: flex;
  flex-direction: column;
  align-self: center;
}

.service-cta h2 {
  color: #fff;
  text-align: center;
}

.service-cta p {
  color: #cbd5e1;
  text-align: center;
}

.service-cta a {
  background: #fff;
  color: var(--primary-green);
  border-radius: 2rem;
  align-self: center;
  margin-top: 1rem;
  border: 2px solid #fff;
}

.service-cta a:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
}



/* TABS */

/* Tab buttons */
.tab-nav {
  display: flex;
  gap: 2rem;
  border-bottom: 2px solid #eee;
}

.tab-btn {
  background: none;
  border: none;
  padding: .75rem 0;
  font-size: 1rem;
  cursor: pointer;
  color: #777;
  position: relative;
}

.tab-btn.active {
  color: var(--bg-dark);
  font-weight: 600;
}

/* Panels */
.tab-content {
  padding: 2rem min(3rem, 5%);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.filter-close-btn {
  display: none; /* hidden on desktop */
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-color, #333);
  padding: 0.25rem;
  z-index: 10;
}

@media (max-width: 900px) {
  .filters {
    position: fixed; /* or absolute depending on your layout */
    top: 0;
    left: -100%;
    height: 100%;
    z-index: 999;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding-top: 3rem; /* space for close button */
  }

  .filters.open {
    border-radius: 0px;
    left: 0;
  }

  .filter-close-btn {
    display: flex;
  }
}

.property-page .tabs {
  background: #fff;
}

.property-page .tab-nav {
  padding: .5rem min(3rem, 5%);
}


/* GALLERY */
.property-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.property-page .gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: .75rem;
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}

.property-page .gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

/* FEATURES */
.property-page .features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.property-page .features-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #f9fafb;
  padding: .9rem 1rem;
  border-radius: .6rem;
}

.property-page .features-list i {
  color: var(--primary-green);
  font-size: 1.1rem;
}


/* REVIEWS */
.property-page .tab-panel#reviews.active {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.property-page .review-card {
  display: flex;
  gap: 1.5rem;
  border: var(--bg-dark) solid 1px;
  background: #fff;
  padding: 1.5rem;
  border-radius: .75rem;
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
}

.property-page .review-card .img-wrapper {
  display: flex;
  align-items: center;
}

.property-page .review-card img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.property-page .review-card .content {
  width: 100%;
}

.property-page .review-card .head {
  display: flex;
  justify-content: space-between;
}

.property-page .review-card .date {
  float: inline-end;
  color: var(--text-muted);
  font-size: .75rem;
}

/* PROPERTY MANAGEMENT REQUEST FORM */

.package-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.package-card {
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 1rem;
  position: relative;
}

.package-card.highlighted {
  border-color: var(--primary-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.package-card .badge {
  position: absolute;
  top: -.6rem;
  right: 1rem;
  background: var(--primary-green);
  color: #fff;
  padding: .3rem .7rem;
  border-radius: 1rem;
  font-size: .7rem;
}

.hidden {
  display: none;
}

.tabs.package-tabs .tab-nav {
  width: 100%;
  justify-content: space-around;
  border-bottom: none;
}

.tabs.package-tabs .tab-nav button {
  position: relative;
  /* anchor for the span */
  overflow: hidden;
  /* 🔑 hides the outside part */
  border: 2px solid var(--text-muted);
  font-weight: 600;
  padding: 1.25rem;
  border-radius: .5rem;
}


.tabs.package-tabs .tab-nav button span {
  position: absolute;
  top: -19px;
  left: auto;
  font-size: 9px;
  color: #ffffff;
  border-radius: 0px;
  padding: 4px;
  background: #ffc05e;
  width: 44px;
  height: 40px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.tabs.package-tabs .tab-nav button span i {
  position: absolute;
  top: 27px;
  right: 20px;
}

.tabs.package-tabs .tab-nav button.highlighted {
  border-color: #ffc05e;
}

.tabs.package-tabs .tab-nav button.active,
.tabs.package-tabs .tab-nav button:hover {
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.tabs.package-tabs .tab-nav button.active span,
.tabs.package-tabs .tab-nav button:hover span {
  display: none;
}

.tabs.package-tabs .tab-panel li {
  list-style: none;
}

.tabs.package-tabs .tab-panel li::before {
  content: "✔";
  color: var(--primary-green);
  margin-right: .5rem;
}


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

.utility-card {
  position: relative;
  border: 2px solid var(--text-muted);
  border-radius: .75rem;
  padding: 1.25rem;
  cursor: pointer;
  text-align: center;
  transition: all .25s ease;
  user-select: none;
}

.utility-card i {
  font-size: 1.4rem;
  margin-bottom: .4rem;
  display: block;
  color: var(--text-muted);
}

.utility-card span {
  font-weight: 600;
}

.utility-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* checked state */
.utility-card input:checked+i,
.utility-card input:checked~span {
  color: var(--primary-green);
}

.utility-card input:checked~i {
  color: var(--primary-green);
}

.utility-card:has(input:checked) {
  border-color: var(--primary-green);
  background: rgba(0, 255, 128, 0.05);
}


/* RESPONSIVE */
@media (max-width: 900px) {
  .property-page .property-hero {
    flex-direction: column;
  }
}

/* Responsive */
@media (max-width: 900px) {
    nav h2 span {
    display: none;
  }
  
  .project-top {
    grid-template-columns: 1fr;
  }

  .project-image img {
    height: 280px;
  }
}



/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {


  .property-management .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .property-management .property-card {
    width: calc(50%);
    max-width: unset;
  }

  .property-management .plan-card.featured {
    transform: none;
  }


  .page-container .property-details {
    flex-direction: column;
  }

}

/* Mobile */
@media (max-width: 768px) {

  .construction-services,
  .project-grid {
    grid-template-columns: 2;
  }
}






/* Responsive */
@media (max-width: 768px) {
  .privacy-container {
    padding: 2rem 1rem;
  }

  .privacy-container h1 {
    font-size: 2rem;
  }

  .privacy-container h2 {
    font-size: 1.5rem;
  }
}

















/* Responsive */
@media (max-width: 900px) {
  .testimonial-content {
    flex-direction: column-reverse;
  }
}




/* Footer responsive tweaks */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-contact li {
    justify-content: center;
  }
}

/* Desktop Dropdown Hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
  }
}

/* Mobile / Tablet Styles */
@media (max-width: 768px) {
    
    /* Hamburger */
    .hamburger {
        display: flex;
  }

  /* Hamburger animation when toggled */
  #menu-toggle:checked+.hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(.45rem, .45rem);
}

#menu-toggle:checked+.hamburger span:nth-child(2) {
    opacity: 0;
}

  #menu-toggle:checked+.hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(.5rem, -.5rem);
  }

  /* Nav menu */
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 4.5rem;
    /* match navbar height */
    right: 0;
    width: 100%;
    height: calc(100vh - 4.5rem);
    background: #fff;
    display: none;
    padding: 2rem 0;
    text-align: center;
    gap: 1rem;
}

/* Show menu when checkbox is checked */
#menu-toggle:checked+.hamburger+.nav-links {
    display: flex;
}

/* Dropdown collapsible */
.dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: none;
}

  .dropdown>input:checked~.dropdown-menu {
      display: flex;
      flex-direction: column;
  }

  .dropdown>input:checked+.dropdown-toggle i {
    transform: rotate(180deg);
  }
}

.error-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.error-section .error-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.error-section .error-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.error-section .digit {
  font-size: 8rem;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  animation: float 3s ease-in-out infinite;
}

.error-section .digit:nth-child(1) {
  animation-delay: 0s;
  color: var(--primary-green);
  text-shadow: 0 10px 20px var(--primary-green-tint);
}

.error-section .digit:nth-child(2) {
  animation-delay: 0.5s;
  color: var(--teal);
  text-shadow: 0 10px 20px rgba(31, 162, 162, 0.2);
}

.error-section .digit:nth-child(3) {
  animation-delay: 1s;
  color: var(--primary-green);
  text-shadow: 0 10px 20px var(--primary-green-tint);
}

.error-section .leaf-decoration {
  margin: -10px 0 20px;
}

.error-section .leaf {
  display: inline-block;
  font-size: 2rem;
  color: var(--primary-green);
  margin: 0 15px;
  animation: spin 10s linear infinite;
}

.error-section .leaf:nth-child(2) {
  animation-direction: reverse;
  color: var(--teal);
}

.error-section .error-title {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 15px;
  color: var(--text-main);
}

.error-section .error-message {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.error-section .error-message i {
  color: var(--accent-wine);
  margin: 0 5px;
}

.error-section .action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 35px 0 25px;
}

.error-section .action-btn {
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.error-section .action-btn.primary {
  background: linear-gradient(135deg, var(--primary-green), var(--teal));
  color: white;
  box-shadow: 0 4px 15px rgba(34, 139, 34, 0.3);
}

.error-section .action-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(34, 139, 34, 0.4);
}

.error-section .action-btn.secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--primary-green-tint);
}

.error-section .action-btn.secondary:hover {
  background: var(--primary-green-tint);
  border-color: var(--primary-green);
}

.error-section .quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 30px 0;
  padding: 20px 0;
  border-top: 2px dashed var(--primary-green-tint);
  border-bottom: 2px dashed var(--primary-green-tint);
}

.error-section .quick-link {
  padding: 8px 20px;
  background: white;
  border-radius: 30px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-section .quick-link i {
  color: var(--primary-green);
  font-size: 0.9rem;
}

.error-section .quick-link:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-2px);
}

.error-section .quick-link:hover i {
  color: white;
}

.error-section .error-code {
  margin-top: 30px;
  font-family: monospace;
  color: var(--text-muted);
  font-size: 0.9rem;
  opacity: 0.7;
}

.error-section .error-code span {
  color: var(--accent-gold);
  font-weight: bold;
}

/* Animations (keep global since they're keyframes) */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 600px) {
  .error-section .digit {
    font-size: 5rem;
  }
  
  .error-section .error-title {
    font-size: 2rem;
  }
  
  .error-section .leaf {
    font-size: 1.5rem;
    margin: 0 8px;
  }
  
  .error-section .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .error-section .action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .error-section .quick-links {
    gap: 8px;
  }
  
  .error-section .quick-link {
    padding: 6px 15px;
    font-size: 0.85rem;
  }
}

/* ═══════════════════════════════════════════
   GALLERY MODAL — Brand Color Overrides
   Replaces admin blue with primary green
═══════════════════════════════════════════ */

/* Navigation buttons */
.ui-modal-gallery .ui-gallery-nav {
  background: rgba(34, 139, 34, 0.75);
  color: #fff;
  border: none;
}

.ui-modal-gallery .ui-gallery-nav:hover {
  background: #228b22;
}

/* Counter pill */
.ui-modal-gallery .ui-gallery-counter {
  background: rgba(34, 139, 34, 0.85);
  color: #fff;
}

/* Close button */
.ui-modal-gallery .ui-modal-close {
  color: #228b22;
  background: rgba(255, 255, 255, 0.9);
}

.ui-modal-gallery .ui-modal-close:hover {
  background: #228b22;
  color: #fff;
}

/* Overlay background — darker for fullscreen immersion */
.ui-modal-gallery .ui-modal-overlay {
  background: rgba(0, 0, 0, 0.92);
}

/* Modal body background */
.ui-modal-gallery .ui-modal-content {
  background: #000;
}

/* Focus ring on nav buttons */
.ui-modal-gallery .ui-gallery-nav:focus-visible {
  outline: 2px solid #228b22;
  outline-offset: 2px;
}