/* Responsive layout improvements: phone, tablet, laptop and desktop */
img,
video,
iframe {
  max-width: 100%;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
}
main,
section,
header,
footer {
  min-width: 0;
}
@media (max-width: 1100px) {
  .nav-wrap {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .nav {
    gap: 14px;
  }
  .navlinks {
    gap: clamp(12px, 1.7vw, 22px);
  }
  .section,
  .page-content {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .feature-grid {
    gap: 36px;
  }
  .about-grid {
    gap: 4vw;
  }
}
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: #0a526d;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 25;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.nav.mobile-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.mobile-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.mobile-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 760px) {
  .nav-wrap {
    top: 10px !important;
    padding: 0 12px !important;
  }
  .nav {
    width: 100%;
    position: relative;
    border-radius: 24px;
    padding: 8px 10px !important;
    gap: 8px;
  }
  .brand-logo {
    width: 78px !important;
    height: 38px !important;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  .navlinks {
    display: none !important;
  }
  .nav.mobile-open .navlinks {
    display: flex !important;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid #ffffff38;
    border-radius: 18px;
    background: rgba(7, 56, 76, 0.98);
    box-shadow: 0 16px 35px #00192340;
    backdrop-filter: blur(16px);
    z-index: 50;
    font-size: 14px;
  }
  .nav.mobile-open .navlinks a {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    color: #fff;
  }
  .nav.mobile-open .navlinks a:hover,
  .nav.mobile-open .navlinks a:focus {
    background: #ffffff18;
    color: #8ed8ea;
  }
  .hero {
    min-height: 620px !important;
    height: 88svh !important;
  }
  .hero-content {
    width: 88%;
    padding-top: 90px;
  }
  h1 {
    overflow-wrap: anywhere;
  }
  .hero-bottom,
  .section-top,
  .contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats-inner {
    grid-template-columns: 1fr !important;
  }
  .stat {
    border-right: 0 !important;
  }
  .properties,
  .feature-grid,
  .about-grid,
  .group-cards,
  .service-grid,
  .services-grid,
  .values,
  .project-grid,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  .feature-image,
  .about-photo {
    height: auto;
    min-height: 260px;
    max-height: 420px;
  }
  .property {
    min-height: 300px;
  }
  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }
  .page-hero {
    padding-top: 115px !important;
    padding-bottom: 50px !important;
  }
  .page-content {
    padding: 58px 6vw !important;
  }
  .section {
    padding: 65px 6vw !important;
  }
  .contact {
    padding: 65px 6vw !important;
  }
  input,
  select,
  textarea,
  button {
    max-width: 100%;
  }
}
@media (max-width: 420px) {
  .nav-wrap {
    padding: 0 8px !important;
  }
  .nav {
    padding: 7px 8px !important;
  }
  .brand-logo {
    width: 68px !important;
    height: 34px !important;
  }
  .hero {
    min-height: 580px !important;
  }
  h1 {
    font-size: clamp(3.25rem, 17vw, 5.3rem) !important;
  }
  .page-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.5rem) !important;
  }
  .section h2,
  .section-heading {
    font-size: clamp(2.1rem, 10vw, 3.2rem) !important;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .value-card,
  .group-card {
    padding: 22px !important;
  }
}
@media (min-width: 761px) {
  .nav-toggle {
    display: none !important;
  }
  .navlinks {
    display: flex !important;
  }
}
