/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand: #0088aa;
  --brand-2: #1a343b;
  --brand-3: #195969;
  --mint: #c6ffff;
  --ink: #153138;
  --bg: #faffff;
  --text: #444;
  --radius: 12px;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
body {
  font-family: "Lexend Deca", sans-serif;
  font-size: 1.8rem;
  background-color: var(--bg);
  color: var(--text);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.8rem 1.2rem;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 0.6rem;
  z-index: 10000;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 0 2rem;
  height: 7.2rem;
  background-color: var(--brand-2);
}

.header-logo {
  height: 6rem;
  width: auto;
  display: block;
}

/* Mobile nav (CSS-only) */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  cursor: pointer;
  line-height: 0;
  position: relative; /* ADDED for z-index layering */
  z-index: 10001; /* so it stays above nav */
}
.nav-toggle-label ion-icon {
  font-size: 3.2rem;
  color: #f1ffff;
}
.nav-toggle-label .icon-close {
  display: none;
}

.nav {
  display: flex;
  column-gap: 3rem;
  text-transform: uppercase;
}

/* Links */
.nav a {
  color: #f1ffff;
  text-decoration: none;
  font-size: 1.6rem;
  transition: opacity 0.2s ease;
}
.nav a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Layout */
.main {
  padding-top: 9.6rem;
}

.section {
  padding: 9rem 10rem 8rem 10rem;
}
.section:not(:first-child) {
  border-top: 1px solid #64e0ff;
}

.primary-heading {
  font-size: 6rem;
  font-weight: 700;
  color: var(--brand);
  text-shadow: 2px 2px 3px #0088aa86;
  line-height: 1.02;
  letter-spacing: -2px;
}
.secondary-heading {
  color: var(--brand);
  text-shadow: 2px 2px 3px #0088aa86;
  margin-bottom: 1.2rem;
  letter-spacing: -1.2px;
  font-size: 4.4rem;
}
.ternary-heading {
  font-size: 3.2rem;
  color: var(--brand);
  margin-bottom: 1rem;
  letter-spacing: -1px;
  font-weight: 600;
}

.btn:link,
.btn:visited,
.btn {
  font-size: 1.8rem;
  padding: 1.2rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 6rem;
  padding: 8rem 6rem;
  max-width: 125rem; /* changed from fixed width to max-width */
  margin: 0 auto;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.hero-description {
  margin: 2rem 0 3rem 0;
  line-height: 1.7;
}
.hero-prices {
  margin: 3rem 0 1rem 0;
  text-transform: uppercase;
}
.hero-price {
  color: #e97a11;
  font-size: 3rem;
  font-weight: 600;
}

.hero-img {
  border-top-right-radius: 8rem;
  border-bottom-right-radius: 8rem;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
  display: block;
}

.btn.btn-properties {
  background-color: var(--brand-3);
  color: #f1ffff;
}
.btn.btn-properties:hover {
  background-color: var(--brand-2);
  color: #d8ffff;
}

.btn.btn-contact {
  background-color: var(--mint);
  color: var(--ink);
}
.btn.btn-contact:hover {
  background-color: var(--brand-3);
  color: #f1ffff;
}

.about-description {
  max-width: 72rem;
}

.about-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.about-logo {
  height: 3.2rem;
  width: 3.2rem;
  padding: 2rem;
  border-radius: 50%;
  color: var(--ink);
  background-color: var(--mint);
  margin-bottom: 1rem;
}
.about-heading {
  font-size: 2.4rem;
  font-weight: 600;
  color: #3a3a3a;
  margin-bottom: 1.2rem;
}
.about-box-description {
  font-size: 1.6rem;
  line-height: 1.7;
}

/* Properties */
.properties-set {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}
.properties-card {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 2rem;
  width: 100%;
  background: #f8feff;
  border-radius: var(--radius);
  overflow: hidden;
}
.properties-img {
  width: 100%;
  height: auto;
  display: block;
}
.properties-right {
  order: 2;
}
.properties-container {
  padding: 2.4rem 3rem;
}
.properties-loc {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  color: #353535;
  margin-bottom: 1rem;
}
.properties-card-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.properties-cards {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--mint);
  font-size: 1.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
}
.properties-card-logo {
  height: 2rem;
  width: 2rem;
}
.properties-description {
  font-size: 1.6rem;
  line-height: 1.7;
  color: #444;
  margin: 2rem 0 1.6rem 0;
}
.properties-list-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.properties-link:link,
.properties-link:visited,
.properties-link {
  text-decoration: none;
  background: var(--brand);
  font-size: 1.7rem;
  color: #f1ffff;
  padding: 1rem 1.6rem;
  border-radius: 0.8rem;
}
.properties-link:hover {
  background: var(--ink);
  color: var(--mint);
}
.properties-link-logo {
  display: flex;
  align-items: center;
}

/* Contact */
.contact-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.contact-container {
  display: grid;
  width: 100%;
  max-width: 72rem;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  justify-content: center;
  gap: 2rem;
  margin: 0 auto;
}
.contact-label {
  display: block;
  margin-bottom: 0.6rem;
}
.contact-house {
  grid-column: 1 / -1;
}
.contact-input {
  padding: 1.4rem 1.6rem;
  width: 100%;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  font-family: inherit;
  border: 1px solid var(--brand);
  background: #fff;
}
.contact-input:focus {
  border: 2px solid var(--brand);
  outline: none;
}
.contact-input::placeholder {
  color: #01aaaa;
  font-weight: 400;
}
.contact-link {
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
}

/* Footer */
.footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem;
  background: var(--brand-2);
  padding: 5rem 8rem;
  color: #c6ffff;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.footer-heading {
  font-size: 2.2rem;
  color: #d2d2ff;
}
.footer-logo {
  height: 9rem;
  width: auto;
}
.copyright {
  font-size: 1.4rem;
  color: #c6ffff;
}
.social-container {
  margin-left: 0;
}
.social-links-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.footer-social-logo {
  height: 2.2rem;
  width: 2.2rem;
}
.social {
  font-size: 1.6rem;
}
.address {
  color: #c6ffff;
  font-size: 1.6rem;
}

.social-link:link,
.social-link:visited,
.social-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #c6ffff;
  text-decoration: none;
  font-size: 1.6rem;
}
.social-link:hover {
  color: #34c7c7;
}

/* ------------------ Responsive ------------------ */
@media (max-width: 992px) {
  .section {
    padding: 6rem 3rem;
  }
  .hero {
    padding: 6rem 3rem;
    gap: 4rem;
    grid-template-columns: 1fr;
  }
  .properties-card {
    grid-template-columns: 1fr;
  }
  .properties-right {
    order: 0;
  }
}

@media (max-width: 768px) {
  /* Mobile header behavior */
  .header {
    height: 6.4rem;
    padding: 0 1.2rem;
  }
  .header-logo {
    height: 5.2rem;
  }

  /* Show hamburger label */
  .nav-toggle-label {
    display: block;
    position: relative; /* to fix layering */
    z-index: 10001;
  }

  /* Hide desktop nav */
  .nav {
    position: fixed;
    top: 6.4rem;
    left: 0;
    right: 0;
    background: var(--brand-2);
    display: grid;
    gap: 1.6rem;
    padding: 1.6rem;
    transform: translateY(-120%);
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    /* Hide and disable clicks */
    opacity: 0;
    pointer-events: none;

    /* Layer below toggle */
    z-index: 9998;
  }

  /* When toggle is checked, show menu */
  .nav-toggle:checked ~ .nav {
    transform: translateY(0%);
    opacity: 1;
    pointer-events: auto;
  }

  /* Toggle icons */
  .nav-toggle:checked + .nav-toggle-label .icon-open {
    display: none;
  }
  .nav-toggle:checked + .nav-toggle-label .icon-close {
    display: inline-block;
  }

  .nav a {
    padding: 0.8rem 1.2rem;
  }

  .main {
    padding-top: 8rem;
  }

  .primary-heading {
    font-size: 3.2rem;
    letter-spacing: -1px;
  }
  .secondary-heading {
    font-size: 2.6rem;
  }
  .ternary-heading {
    font-size: 2rem;
  }
  .btn {
    font-size: 1.6rem;
    padding: 1rem 1.6rem;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-description {
    max-width: 100%;
  }

  .contact-container {
    grid-template-columns: 1fr;
    max-width: 48rem;
  }
  .contact-house {
    grid-column: 1;
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    gap: 2rem;
  }
  .social-links-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  


}
