:root {
  --green: #173F35;
  --bronze: #B87932;
  --ivory: #F7F3E8;
  --charcoal: #252824;
  --sage: #DDE7DF;
  --white: #FFFFFF;
  --shadow: 0 20px 50px rgba(37, 40, 36, 0.12);
  --line: rgba(37, 40, 36, 0.14);
  --max: 1220px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-160%);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--green);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--bronze);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(37, 40, 36, 0.18);
  transition: height 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  height: 70px;
  box-shadow: 0 12px 34px rgba(37, 40, 36, 0.22);
}

.brand {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  width: 58px;
  height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bronze);
  color: var(--bronze);
  font: 700 25px/0.9 "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  background: transparent;
}

.brand-mark span {
  margin-top: 6px;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0;
}

.brand-name {
  color: var(--white);
  font: 700 22px/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-name b {
  color: var(--bronze);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--ivory);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: var(--bronze);
}

.nav-links .nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--white);
}

.menu-toggle {
  position: relative;
  z-index: 101;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 29px;
  height: 3px;
  margin: 6px auto;
  border-radius: 99px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  align-items: center;
  overflow: hidden;
  padding: 140px max(22px, calc((100vw - var(--max)) / 2)) 76px;
  background: var(--ivory);
}

.hero-media {
  position: absolute;
  top: 82px;
  right: 0;
  bottom: 0;
  width: 58%;
  background: url("assets/gm365-community-hero.webp") center / cover no-repeat;
}

.hero-media::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--ivory) 0%, rgba(247, 243, 232, 0.92) 16%, rgba(247, 243, 232, 0.2) 52%, rgba(247, 243, 232, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow,
.kicker {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.kicker::before {
  display: inline-block;
  width: 52px;
  height: 2px;
  background: var(--bronze);
  content: "";
}

h1,
h2,
h3 {
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 28px 0 28px;
  color: var(--charcoal);
  font-size: 58px;
  line-height: 1.08;
}

h1 em {
  display: block;
  color: var(--bronze);
  font-style: normal;
}

.hero-content > p {
  max-width: 520px;
  color: var(--charcoal);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 14px 25px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--charcoal);
}

.button-secondary {
  border-color: var(--bronze);
  background: var(--white);
  color: var(--green);
}

.button-secondary:hover,
.button-secondary:focus {
  background: var(--ivory);
}

.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.section {
  padding: 94px max(22px, calc((100vw - var(--max)) / 2));
}

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 44px;
}

.section-intro.compact {
  margin-bottom: 32px;
}

.section-intro h2,
.investment h2,
.contact h2 {
  max-width: 670px;
  margin-top: 14px;
  color: var(--green);
  font-size: 42px;
  line-height: 1.13;
}

.section-intro > p {
  max-width: 455px;
  color: var(--charcoal);
  font-size: 16px;
}

.pillars {
  background: var(--white);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.pillar-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(37, 40, 36, 0.08);
}

.pillar-image {
  min-height: 205px;
  background-image: url("assets/gm365-pillars-collage.webp");
  background-size: 200% 200%;
}

.pillar-learning {
  background-position: left top;
}

.pillar-enterprise {
  background-position: right top;
}

.pillar-digital {
  background-position: left bottom;
}

.pillar-recreation {
  background-position: right bottom;
}

.pillar-body {
  padding: 0 26px 30px;
  text-align: center;
}

.icon-badge {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  margin: -31px auto 22px;
  border: 6px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(37, 40, 36, 0.16);
}

.icon-badge.green {
  background: var(--green);
}

.icon-badge.bronze {
  background: var(--bronze);
}

.icon-badge svg,
.line-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.pillar-card h3 {
  margin-bottom: 13px;
  color: var(--green);
  font-size: 22px;
  line-height: 1.2;
}

.pillar-card p {
  color: var(--charcoal);
  font-size: 15px;
}

.programs {
  background: var(--ivory);
}

.program-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.program-item {
  min-height: 210px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px;
  background: rgba(255, 255, 255, 0.44);
}

.program-item span {
  color: var(--bronze);
  font-size: 12px;
  font-weight: 800;
}

.program-item h3 {
  margin: 38px 0 12px;
  color: var(--green);
  font-size: 20px;
  line-height: 1.2;
}

.program-item p {
  font-size: 14px;
}

.investment {
  background: linear-gradient(120deg, var(--sage), var(--ivory));
}

.investment-head {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 50px;
}

.investment-head p {
  max-width: 610px;
  margin: 20px 0 28px;
  font-size: 17px;
}

.facility-illustration {
  color: var(--bronze);
}

.facility-illustration svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.investment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 54px;
}

.investment-item {
  min-height: 210px;
  border-left: 1px solid rgba(37, 40, 36, 0.16);
  padding: 4px 28px 0;
  text-align: center;
}

.investment-item:first-child {
  border-left: 0;
}

.line-icon {
  display: inline-flex;
  color: var(--green);
}

.line-icon svg {
  width: 44px;
  height: 44px;
}

.investment-item h3 {
  margin: 16px 0 8px;
  color: var(--green);
  font-size: 19px;
}

.investment-item p {
  font-size: 14px;
}

.location {
  background: var(--white);
}

.location-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.map-card {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sage);
  box-shadow: var(--shadow);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 540px;
  border: 0;
}

.map-label {
  position: absolute;
  left: 22px;
  bottom: 22px;
  border-left: 4px solid var(--bronze);
  border-radius: 10px;
  padding: 13px 16px;
  background: var(--white);
  color: var(--green);
  box-shadow: 0 12px 26px rgba(37, 40, 36, 0.12);
}

.map-label span,
.info-card span,
.contact-method small {
  display: block;
  color: var(--bronze);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.map-label strong,
.contact-method strong {
  font: 700 20px "Segoe UI", Arial, sans-serif;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  background: var(--ivory);
}

.info-card h3 {
  margin: 10px 0 4px;
  color: var(--green);
  font-size: 21px;
}

.info-card p {
  font-size: 14px;
}

.location-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.location-buttons .button {
  min-height: 54px;
  padding: 12px 14px;
  font-size: 11px;
}

.contact {
  background: var(--sage);
}

.contact-shell {
  display: grid;
  max-width: var(--max);
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 70px;
  margin: auto;
}

.contact-copy > p {
  max-width: 460px;
  margin: 20px 0 34px;
  font-size: 16px;
}

.contact-method {
  display: inline-flex;
  flex-direction: column;
  border-left: 4px solid var(--bronze);
  padding-left: 17px;
  color: var(--green);
}

.contact-method strong {
  font-size: 30px;
  overflow-wrap: anywhere;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.quick-links a {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 38px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: block;
  margin-bottom: 22px;
}

.contact-form label span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(37, 40, 36, 0.18);
  border-radius: 10px;
  outline: none;
  background: var(--ivory);
  color: var(--charcoal);
  padding: 13px 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--bronze);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
}

.form-note {
  margin-top: 12px;
  color: var(--charcoal);
  text-align: center;
  font-size: 12px;
}

.form-note.sending {
  color: var(--bronze);
  font-weight: 800;
}

.form-note.success {
  color: var(--green);
  font-weight: 800;
}

.form-note.error {
  color: var(--bronze);
  font-weight: 800;
}

footer {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding: 24px max(22px, calc((100vw - var(--max)) / 2));
  background: var(--white);
  color: var(--charcoal);
}

footer .brand-mark {
  color: var(--green);
}

footer .brand-mark span {
  color: var(--green);
}

footer .brand-name,
footer .brand-name b {
  color: var(--green);
}

footer p {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

footer > span {
  color: var(--charcoal);
  font-size: 12px;
}

footer > span b {
  color: var(--charcoal);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 10px;
  background: var(--green);
  color: var(--white);
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.floating-whatsapp > span:first-child {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--white);
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero {
    min-height: 720px;
    grid-template-columns: 1fr;
  }

  .hero-media {
    width: 62%;
  }

  h1 {
    font-size: 50px;
  }

  .pillar-grid,
  .program-list,
  .investment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .investment-head,
  .location-layout,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .investment-item:nth-child(3) {
    border-left: 0;
  }

  .facility-illustration {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    height: 74px;
    padding: 0 18px;
  }

  .site-header.scrolled {
    height: 68px;
  }

  .brand {
    gap: 11px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .brand-mark span {
    font-size: 11px;
  }

  .brand-name {
    max-width: 190px;
    font-size: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--green);
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links .nav-cta {
    margin-top: 8px;
  }

  .hero {
    display: flex;
    min-height: 830px;
    align-items: flex-start;
    padding: 430px 18px 62px;
  }

  .hero-media {
    top: 74px;
    right: 0;
    left: 0;
    width: 100%;
    height: 390px;
    background-position: 66% center;
  }

  .hero-media::before {
    background: linear-gradient(0deg, var(--ivory) 0%, rgba(247, 243, 232, 0.1) 44%, rgba(247, 243, 232, 0) 100%);
  }

  .eyebrow,
  .kicker {
    font-size: 11px;
  }

  h1 {
    margin: 18px 0 20px;
    font-size: 39px;
  }

  .hero-content > p,
  .section-intro > p,
  .investment-head p,
  .contact-copy > p {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .button {
    width: 100%;
    min-height: 54px;
    padding: 12px 14px;
    font-size: 12px;
  }

  .section {
    padding: 72px 18px;
  }

  .section-intro {
    display: block;
    margin-bottom: 32px;
  }

  .section-intro h2,
  .investment h2,
  .contact h2 {
    font-size: 34px;
  }

  .section-intro > p {
    margin-top: 18px;
  }

  .pillar-grid,
  .program-list,
  .investment-grid {
    grid-template-columns: 1fr;
  }

  .program-list {
    border-left: 0;
  }

  .program-item {
    min-height: auto;
    border-left: 1px solid var(--line);
  }

  .program-item h3 {
    margin-top: 24px;
  }

  .investment-grid {
    gap: 20px;
    margin-top: 36px;
  }

  .investment-item,
  .investment-item:nth-child(3) {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(37, 40, 36, 0.16);
    padding: 24px 8px 0;
  }

  .investment-item:first-child {
    border-top: 0;
  }

  .map-card,
  .map-card iframe {
    min-height: 380px;
  }

  .location-buttons {
    grid-template-columns: 1fr;
  }

  .contact-shell {
    gap: 42px;
  }

  .contact-method strong {
    font-size: 25px;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  footer {
    flex-direction: column;
    padding: 30px 18px 82px;
    text-align: center;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    padding: 12px;
  }

  .floating-whatsapp span:last-child {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand-name {
    max-width: 150px;
    font-size: 14px;
  }

  h1 {
    font-size: 35px;
  }

  .section-intro h2,
  .investment h2,
  .contact h2 {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
