/* ===== GLOBAL RESET & BASE ===== */

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

:root {
  --primary-color: #131245;
  --accent-color: #e1e1e1;
  --button-bg: #131245;
  --button-text: #ffffff;
  --section-bg: #f4f6fa;
  --font: 'Montserrat', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: #ffffff;
  color: #1e1e1e;
}

/* Optional: hide AI overlay if present */
#aiFabShadowRoot {
  display: none !important;
}

/* ===== HEADER / NAVBAR ===== */

:root {
  --header-shadow: 0 10px 30px rgba(0, 0, 0, 0.024);
}

/* Full-width fixed header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  box-shadow: var(--header-shadow);
  z-index: 1000;
}

.top-header .navbar {
  margin: 0 auto;
  background: #ffffffb5; /* translucent over hero */
}

/* Navbar layout */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

.logo {
  height: 76px;
  width: auto;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #2E368E;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Dropdown */
.has-sub {
  position: relative;
}

.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  display: none;
  padding: 8px 0;
  min-width: 200px;
  z-index: 2002;
  list-style: none;
}

.nav-links .sub-menu a {
  display: block;
  padding: 10px 14px;
  color: #131245;
}

.nav-links .sub-menu a:hover {
  background: #f6f7fb;
}

.nav-links .has-sub:hover > .sub-menu {
  display: block;
}

/* Schedule Visit nav button */
.nav-links .btn-nav {
  background: linear-gradient(135deg, #1b92d0, #8cd5f6);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links .btn-nav:hover {
  background: linear-gradient(135deg, #8cd5f6, #1b92d0);
  color: #fff;
}

/* Hamburger (no JS) */
.nav-toggle {
  display: none;
}

.menu-btn {
  display: none;
  cursor: pointer;
  user-select: none;
  font-size: 28px;
  line-height: 1;
  padding: 8px 12px;
  margin-left: 8px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  color: #131245;
  background: #fff;
}

/* Fixed-header anchor offset just for contact section */
#countact {
  scroll-margin-top: 120px;
}

/* Responsive header */
@media (max-width: 992px) {
  .logo {
    height: 48px;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: inline-block;
    position: absolute;
    right: 14px;
    top: 56px;
    z-index: 1001;
  }

  .navbar {
    position: relative;
    padding: 12px 16px 10px 16px;
  }

  .logo {
    height: 48px;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

  .nav-links li {
    border-bottom: 1px solid #f3f3f3;
  }

  .nav-links li:last-child {
    border-bottom: 0;
  }

  .nav-links a {
    display: block;
    padding: 14px 16px;
  }

  /* Expand menu on toggle */
  .nav-toggle:checked ~ .navbar .nav-links {
    max-height: calc(100vh - 120px);
  }
}

/* Focus states */
.nav-links a:focus,
.menu-btn:focus {
  outline: 2px solid #9eff00;
  outline-offset: 2px;
}

/* ===== COMPLETED PROJECTS HERO ===== */

.cp-hero {
  background: linear-gradient(91deg, #74c7ee, #2094d3, #99c93a, #10a74d);
  color: #ffffff;
  padding: 9.5rem 1rem 3.5rem; /* extra top padding for fixed header */
}

.cp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.cp-hero h1 {
  font-family: "Khand", "Montserrat", sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.cp-hero p {
  max-width: 560px;
  font-weight: 300;
  font-size: 0.95rem;
}

/* ===== PROJECTS GRID ===== */

.cp-projects-section {
  max-width: 1200px;
  margin: 2.5rem auto 3.5rem;
  padding: 0 1rem;
}

.cp-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

@media (max-width: 1024px) {
  .cp-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .cp-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Project card */
.cp-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.cp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(185,28,28,0.16), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.cp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.16);
}

.cp-card:hover::before {
  opacity: 1;
}

/* Image frame */
.cp-image-frame {
  width: 100%;
  padding-top: 65%; /* approx 3:2 ratio */
  position: relative;
  overflow: hidden;
}

.cp-image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cp-card:hover .cp-image-frame img {
  transform: scale(1.05);
}

/* Card body */
.cp-card-body {
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cp-project-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.cp-location {
  font-size: 0.85rem;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cp-location i {
  color: #b91c1c;
}

/* Units + Area chips */
.cp-meta {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.8rem;
  color: #374151;
}

.cp-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
}

.cp-meta i {
  font-size: 0.8rem;
  color: #b91c1c;
}

/* ===== CONTACT / SCHEDULE VISIT SECTION ===== */

#countact.schedule-visit-section {
  background: #f8f8f8;
  color: #1f2247;
  padding: 4rem 0 0 0;
  text-align: left;
}

/* Layout container */
#countact {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Row 1: 3 columns */
#countact .row-one {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: flex-start;
}

/* Column headings */
#countact h4 {
  font-size: 20px;
  font-weight: 700;
  color: #131245;
  margin: 24px 0px 16px 0px;
  text-transform: uppercase;
}

#countact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#countact ul li {
  margin: 6px 0;
}

#countact ul li a {
  color: #1f2247;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

#countact ul li a:hover {
  color: #1b92d0;
}

#countact p {
  margin: 0.3rem 0;
  line-height: 1.6;
  font-size: 15px;
}

/* Follow Us icons */
.follow-us p {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.follow-us a i {
  font-size: 28px;
  background: linear-gradient(135deg, #1b92d0, #8cd5f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.follow-us a i:hover {
  transform: scale(1.2);
  opacity: 0.85;
}

/* Visit form card */
.visit-form {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visit-form h3 {
  text-align: center;
  color: #131245;
  font-size: 1.2rem;
  margin: 8px 0px 16px 0px;
}

.visit-form form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.visit-form label {
  display: block;
  width: 100%;
}

.visit-form input,
.visit-form select,
.visit-form button {
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  border-radius: 4px;
}

.visit-form input,
.visit-form select {
  padding: 0.6rem;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  appearance: none;
}

/* Custom dropdown arrow */
.visit-form select {
  background:
    #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333'><path d='M2 4l4 4 4-4z'/></svg>")
    no-repeat right 0.8rem center;
  background-size: 12px;
  cursor: pointer;
}

.visit-form button {
  padding: 0.6rem;
  background: linear-gradient(135deg, #1b92d0, #8cd5f6);
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.visit-form button:hover {
  background: linear-gradient(135deg, #8cd5f6, #1b92d0);
}

/* Theme image (row 2) */
.theme-image {
  width: 100%;
  margin-top: 3rem;
}

.theme-image img {
  display: block;
  width: 100%;
  height: 434px;
  object-fit: cover;
}

/* Responsive contact layout */
@media (max-width: 992px) {
  #countact .row-one {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  #countact .row-one {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .follow-us p {
    justify-content: center;
  }

  .visit-form {
    width: 100%;
    max-width: 100%;
    padding: 1.2rem;
  }

  #countact ul li a {
    font-size: 16px;
  }

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

/* ===== FOOTER BOTTOM ===== */

.footer-bottom {
  background-color: #2D2C2C;
  color: #ffffff;
  height: 70px;
  line-height: 20px;
  font-size: 0.85rem;
  border-top: 1px solid #ffffff;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 58px;
}
