/* ===== CSS Variables ===== */
:root {
  --navy: #1e3a5f;
  --navy-dark: #152a45;
  --green: #2d8f4e;
  --green-hover: #257a42;
  --green-light: #e8f5ec;
  --green-pale: #f0faf3;
  --text: #1a2e4a;
  --text-muted: #5a6b7d;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(30, 58, 95, 0.08);
  --shadow-sm: 0 2px 12px rgba(30, 58, 95, 0.06);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --header-h: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn--primary:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
}

.btn--outline {
  background: var(--white);
  color: var(--green);
  border-color: var(--green);
}

.btn--outline:hover {
  background: var(--green-light);
}

.btn--sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.btn--block-mobile {
  width: 100%;
}

/* ===== Logo ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.logo__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__line {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.logo__line--accent {
  color: var(--green);
}

.logo--light .logo__line {
  color: var(--white);
}

.logo--light .logo__line--accent {
  color: var(--green);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white);
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  z-index: 99;
}

.nav.is-open {
  transform: translateX(0);
}

.nav__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__links a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
}

.nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav__link-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.5rem 0;
}

.nav__link-icon svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

/* ===== Hero ===== */
.hero {
  padding: 1.75rem 0 0;
}

.hero__header {
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(1.625rem, 5.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0;
}

.hero__accent {
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 0.875rem;
  background: var(--green);
  border-radius: 2px;
}

.hero__main {
  display: grid;
  grid-template-columns: 1fr minmax(130px, 42%);
  gap: 0.75rem 1rem;
  align-items: start;
}

.hero__content {
  grid-column: 1;
  grid-row: 1;
}

.hero__desc {
  font-size: 0.9375rem;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: none;
}

.hero__image-wrap {
  display: block;
  grid-column: 2;
  grid-row: 1;
  position: relative;
  align-self: start;
}

.hero__image-wrap::before {
  content: '';
  position: absolute;
  inset: -8% -12% -8% -8%;
  background: #eef2f6;
  border-radius: 50%;
  z-index: 0;
}

.hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero__buttons {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ===== Features ===== */
.features {
  padding: 1.75rem 0 2.5rem;
}

.features__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #f1f5f9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.125rem;
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}

.feature:last-child {
  border-bottom: none;
}

.feature__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.feature__desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Section Headers ===== */
.section-header {
  margin-bottom: 2rem;
}

.section-header--center {
  text-align: center;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
}

/* ===== Services ===== */
.services {
  padding: 3rem 0 4rem;
  background: #f8fafc;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform 0.15s ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card__icon--blue { background: #e8f0fe; color: #3b6fd4; }
.service-card__icon--green { background: var(--green-light); color: var(--green); }
.service-card__icon--purple { background: #f0e8fe; color: #7c4dff; }
.service-card__icon--orange { background: #fff3e0; color: #f57c00; }
.service-card__icon--teal { background: #e0f7fa; color: #00838f; }
.service-card__icon--indigo { background: #e8eaf6; color: #3949ab; }

.service-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== Communities ===== */
.communities {
  padding: 4rem 0;
}

.communities__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.25rem;
}

.community-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.community-card__hex {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  margin-bottom: -20px;
  position: relative;
  z-index: 1;
}

.community-card__hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-bottom: 0.625rem;
  box-shadow: 0 2px 8px rgba(45, 143, 78, 0.3);
}

.community-card__icon svg {
  width: 18px;
  height: 18px;
}

.community-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--green-light) 100%);
  padding: 3rem 0;
  overflow: hidden;
}

.cta__bg-image {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 35%;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=600&q=80') center/cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cta__title {
  font-size: clamp(1.375rem, 4vw, 1.875rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.cta__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 480px;
}

.cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.footer__brand {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.footer__col--links {
  display: none;
}

.footer__col--contact {
  padding-top: 1.75rem;
}

.footer__heading {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer__contact li {
  margin-bottom: 0;
}

.footer__contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  transition: opacity var(--transition);
}

.footer__contact-card:hover {
  opacity: 0.9;
}

.footer__contact-card--static {
  cursor: default;
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer__contact-icon svg {
  width: 22px;
  height: 22px;
}

.footer__contact-icon--phone {
  background: #2563eb;
}

.footer__contact-icon--whatsapp {
  background: #25d366;
}

.footer__contact-icon--email {
  background: #3b82f6;
}

.footer__contact-icon--location {
  background: #2563eb;
}

.footer__contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.footer__contact-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}

.footer__contact-sublabel {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 0 2rem;
  margin-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__legal {
  display: none;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--white);
}

/* ===== Tablet (≥ 640px) ===== */
@media (min-width: 640px) {
  .btn--block-mobile {
    width: auto;
  }

  .hero__buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .features {
    padding: 2.5rem 0 3rem;
  }

  .features__grid {
    flex-direction: row;
    gap: 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  .feature {
    flex: 1;
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 0;
    border-bottom: none;
  }

  .feature__icon {
    border-radius: 50%;
    width: 48px;
    height: 48px;
  }

  .feature__desc {
    font-size: 0.875rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .communities__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
  }

  .community-card__hex {
    max-width: 180px;
  }

  .cta__buttons {
    max-width: 280px;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ===== Desktop (≥ 1024px) ===== */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    inset: auto;
    transform: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    overflow: visible;
    gap: 2rem;
    background: transparent;
  }

  .nav__links {
    flex-direction: row;
    gap: 2rem;
  }

  .nav__links a {
    padding: 0;
    font-size: 0.9375rem;
    border-bottom: none;
    transition: color var(--transition);
  }

  .nav__links a:hover {
    color: var(--green);
  }

  .nav__actions {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .nav__link-icon {
    padding: 0;
    font-size: 0.875rem;
  }

  .hero {
    padding: 4rem 0 0;
  }

  .hero > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
    row-gap: 1.25rem;
    align-items: center;
  }

  .hero__header {
    margin-bottom: 0;
  }

  .hero__main {
    display: contents;
  }

  .hero__content {
    grid-column: 1;
    grid-row: 2;
  }

  .hero__desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 0;
  }

  .hero__image-wrap {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
  }

  .hero__image-wrap::before {
    display: none;
  }

  .hero__image {
    aspect-ratio: 3 / 2;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  .hero__buttons {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
  }

  .hero__title {
    margin-bottom: 0;
  }

  .features {
    padding: 3rem 0 4rem;
  }

  .services {
    padding: 5rem 0;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .communities {
    padding: 5rem 0;
  }

  .communities__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }

  .community-card__hex {
    max-width: 140px;
  }

  .community-card__title {
    font-size: 0.75rem;
  }

  .cta {
    padding: 4rem 0;
  }

  .cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cta__buttons {
    flex-shrink: 0;
  }

  .footer {
    padding: 3rem 0 0;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer__brand {
    padding-bottom: 0;
    border-bottom: none;
  }

  .footer__col--links {
    display: block;
  }

  .footer__col--contact {
    padding-top: 0;
  }

  .footer__contact {
    gap: 0.625rem;
  }

  .footer__contact-card {
    gap: 0.625rem;
  }

  .footer__contact-icon {
    width: 28px;
    height: 28px;
  }

  .footer__contact-icon svg {
    width: 14px;
    height: 14px;
  }

  .footer__contact-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
  }

  .footer__contact-sublabel {
    display: none;
  }

  .footer__bottom {
    margin-top: 0;
    border-top: none;
    padding: 1.5rem 0;
  }

  .footer__legal {
    display: flex;
    gap: 1.5rem;
  }
}

/* ===== Large Desktop (≥ 1200px) ===== */
@media (min-width: 1200px) {
  .community-card__hex {
    max-width: 160px;
  }

  .community-card__title {
    font-size: 0.8125rem;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
