/* Nexacore Solutions Limited — site styles */

:root {
  --navy: #051F44;
  --deep: #06244A;
  --royal: #05379D;
  --blue: #2078EC;
  --blue-strong: #1662CF; /* AA-contrast variant for text and buttons */
  --charcoal: #343434;
  --muted: #5B6476;
  --line: #E1E6EF;
  --tint: #F3F6FB;
  --white: #FFFFFF;
  --whatsapp: #15803F;

  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(5, 31, 68, .08);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); }
address { font-style: normal; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-strong); margin-bottom: .75em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .6em 1.15em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue-strong); color: var(--white); }
.btn-primary:hover { background: var(--royal); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--tint); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #116B34; }
.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(5,31,68,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 220px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  color: var(--navy); font-weight: 500; text-decoration: none; font-size: .95rem;
}
.site-nav a:not(.btn):hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue-strong); font-weight: 600; }

.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    linear-gradient(105deg, rgba(5,31,68,.96) 0%, rgba(6,36,74,.9) 45%, rgba(5,55,157,.72) 100%),
    url("../assets/img/hero-apartments.jpg") center / cover no-repeat,
    var(--navy);
}
.hero-inner { position: relative; padding: 96px 20px 88px; max-width: 1180px; }
.hero h1 { color: var(--white); max-width: 22ch; }
.hero .eyebrow { color: #7DB5FF; }
.hero .lead { font-size: 1.12rem; max-width: 60ch; color: #DCE6F7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }

.sector-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sector-chips li {
  font-size: .82rem; font-weight: 500; padding: .45em 1em; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
}

.hero-shapes .hex, .page-hero .hex {
  position: absolute; aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-1 { width: 380px; right: -90px; top: -60px; background: rgba(32,120,236,.28); }
.hex-2 { width: 220px; right: 170px; bottom: -70px; background: rgba(255,255,255,.07); }
.hex-3 { width: 120px; right: 60px; bottom: 90px; border: 0; background: rgba(32,120,236,.45); }

/* Inner-page banner */
.page-hero {
  position: relative; overflow: hidden; color: #DCE6F7; padding: 72px 0 64px;
  background:
    linear-gradient(105deg, rgba(5,31,68,.97) 0%, rgba(6,36,74,.92) 55%, rgba(5,55,157,.75) 100%),
    url("../assets/img/hero-apartments.jpg") center / cover no-repeat,
    var(--navy);
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: #7DB5FF; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { font-size: 1.1rem; max-width: 60ch; margin: 0; }
.page-hero .hex-1 { width: 300px; top: -90px; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img {
  width: 100%; aspect-ratio: 5 / 5.2; object-fit: cover;
  clip-path: polygon(50% 0, 100% 22%, 100% 78%, 50% 100%, 0 78%, 0 22%);
}
.about-photo::before {
  content: ""; position: absolute; inset: 6% -4% -4% 6%; z-index: -1;
  background: var(--blue); opacity: .18;
  clip-path: polygon(50% 0, 100% 22%, 100% 78%, 50% 100%, 0 78%, 0 22%);
}
.rc { font-weight: 600; color: var(--navy); font-size: .9rem; letter-spacing: .04em; }

.vmv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.vmv-card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--blue);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.vmv-card p { margin: 0; color: var(--muted); }
.values { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.values li {
  background: var(--tint); color: var(--navy); font-weight: 500; font-size: .88rem;
  padding: .35em .85em; border-radius: 6px;
}

/* Home: service tiles */
.service-tiles {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.service-tile {
  display: flex; flex-direction: column; gap: 16px; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.service-tile:hover { border-color: var(--blue); transform: translateY(-2px); }
.service-tile .service-icon { margin: 0; flex: none; }
.tile-more { background: var(--blue-strong); border-color: var(--blue-strong); justify-content: space-between; }
.tile-more:hover { background: var(--royal); border-color: var(--royal); }
.tile-more .tile-title { color: var(--white); }
.tile-arrow { color: var(--white); font-size: 1.6rem; line-height: 1; }
.tile-title { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; line-height: 1.15; color: var(--navy); }

/* Services page: jump links */
.jump-links { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.jump-links a {
  display: inline-block; padding: .55em 1.1em; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: var(--white); border: 1px solid var(--line); color: var(--navy); text-decoration: none;
}
.jump-links a:hover { border-color: var(--blue); color: var(--blue-strong); }
.service { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-cta { grid-column: span 2; }
.service {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.service h2, .service h3 { font-size: 1.35rem; text-transform: none; }
.service > p { color: var(--muted); font-size: .95rem; }
.service ul { margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.caps-toggle { display: none; }
.service li { position: relative; padding: .3em 0 .3em 1.3em; border-top: 1px solid var(--line); }
.service li::before {
  content: ""; position: absolute; left: 0; top: .95em; width: 7px; height: 8px;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.service { overflow: hidden; }
.service-photo {
  width: calc(100% + 56px); max-width: none; margin: -28px -28px 0;
  aspect-ratio: 8 / 5; object-fit: cover;
}
.service-photo + .service-icon { margin-top: -29px; position: relative; }
.service-icon {
  width: 52px; height: 58px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--royal), var(--blue));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.service-icon svg, .ci svg {
  width: 24px; height: 24px; fill: none; stroke: var(--white);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.service-cta {
  position: relative; isolation: isolate; border: 0; color: var(--white);
  justify-content: flex-end; padding: 40px;
  background:
    linear-gradient(100deg, rgba(5,31,68,.97) 0%, rgba(5,31,68,.88) 50%, rgba(5,55,157,.55) 100%),
    url("../assets/img/hero-apartments.jpg") center / cover no-repeat,
    var(--navy);
}
.service-cta .eyebrow { color: #7DB5FF; }
.service-cta > p:not(.eyebrow) { max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cta-hex {
  position: absolute; z-index: -1; right: -40px; top: -50px; width: 220px; aspect-ratio: 1 / 1.1547;
  background: rgba(32,120,236,.35);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.service-cta h2, .service-cta h3 { color: var(--white); font-size: clamp(1.9rem, 3vw, 2.6rem); text-transform: uppercase; }
.service-cta p { color: #DCE6F7; }


/* Why us */
.why-grid {
  list-style: none; padding: 0; margin: 0 0 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.why-grid li { border-left: 4px solid var(--blue); padding: 4px 0 4px 18px; }
.why-grid-end { margin-bottom: 0; }
.why-grid strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--navy); margin-bottom: 4px; }
.why-grid span { color: var(--muted); font-size: .95rem; }

.approach-title { font-size: 1.9rem; text-transform: uppercase; }
.approach {
  list-style: none; padding: 0; margin: 0 0 64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none;
}
.approach li { background: var(--tint); border-radius: var(--radius); padding: 24px; }
.approach strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--navy); margin-bottom: 6px; }
.approach span:last-child { color: var(--muted); font-size: .93rem; }
.step-num { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--blue-strong); line-height: 1; margin-bottom: 10px; }

.hse {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center;
  border-radius: var(--radius); padding: 36px;
  background: linear-gradient(120deg, var(--navy), var(--deep));
  color: #DCE6F7;
}
.hse h3 { color: var(--white); font-size: 1.8rem; }
.hse p { margin: 0; }
.hse-tags { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hse-tags li {
  text-align: center; font-weight: 600; font-size: .9rem; color: var(--white);
  padding: .8em .5em; border-radius: 8px; background: rgba(32,120,236,.35); border: 1px solid rgba(125,181,255,.35);
}

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate; color: #DCE6F7; padding: 72px 0;
  background:
    linear-gradient(100deg, rgba(5,31,68,.97) 0%, rgba(5,31,68,.9) 55%, rgba(5,55,157,.6) 100%),
    url("../assets/img/hero-apartments.jpg") center / cover no-repeat,
    var(--navy);
}
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-band-inner > div:first-child { max-width: 620px; }
.cta-band .eyebrow { color: #7DB5FF; }
.cta-band h2 { color: var(--white); }
.cta-band p:last-child { margin: 0; }
.cta-band .cta-hex { right: -30px; top: -60px; width: 260px; }

/* Contact */
.section-dark { background: var(--navy); color: #DCE6F7; }
.section-dark h1, .section-dark h2 { color: var(--white); }
.contact-page h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-dark .eyebrow { color: #7DB5FF; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.contact-list { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.contact-list strong { display: block; color: var(--white); font-size: .95rem; }
.contact-list a { display: block; color: #9CC6FF; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.contact-list .map-link { display: inline-block; font-size: .88rem; margin-top: 2px; padding: 8px 0; }
.ci {
  width: 44px; height: 48px; display: grid; place-items: center; background: var(--blue);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.contact-form {
  background: var(--white); color: var(--charcoal); border-radius: 14px; padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.contact-form h2, .contact-form h3 { font-size: 1.7rem; text-transform: none; color: var(--navy); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal);
  padding: .7em .85em; border: 1px solid #C9D2E0; border-radius: 8px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(32,120,236,.2);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--tint); padding: 44px 0 88px; border-top: 1px solid var(--line); } /* bottom room for the WhatsApp button */
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 28px; align-items: start; }
.footer-inner img { width: 180px; margin-bottom: 10px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .9rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 2px; }
.footer-nav a, .footer-contact a { color: var(--navy); text-decoration: none; font-size: .92rem; padding: 4px 0; word-break: break-word; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--blue-strong); text-decoration: underline; }
.footer-meta {
  grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
}
.credit a { color: var(--navy); font-weight: 600; text-decoration: none; }
.credit a:hover { color: var(--blue-strong); text-decoration: underline; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whatsapp); box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* Simple page (thank-you, 404) */
.simple-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.simple-page p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.5em; }

/* Responsive */
@media (max-width: 1024px) {
  .why-grid, .approach { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-cta { grid-column: auto; }
  .service-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .brand img { width: 170px; }

  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px;
    position: relative; transition: transform .2s, background-color .2s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(5,31,68,.08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }

  .hero-inner { padding: 64px 20px 60px; }
  .hex-1 { width: 240px; right: -110px; }
  .hex-2, .hex-3 { display: none; }

  .section { padding: 64px 0; }
  .about-grid, .contact-grid, .hse { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 420px; }
  .vmv { grid-template-columns: 1fr; margin-top: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .page-hero, .cta-band { padding: 52px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* Capability lists collapse on small screens (only when JS can expand them) */
  .js .caps-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    margin: 4px 0 0; padding: 12px 0; background: none; border: 0; border-top: 1px solid var(--line);
    font: 600 .92rem/1.2 var(--font-body); color: var(--blue-strong); cursor: pointer; text-align: left;
  }
  .js .caps-toggle::after {
    content: ""; width: 9px; height: 9px; margin-right: 4px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px); transition: transform .2s;
  }
  .js .caps-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-3px); }
  .js .caps { display: none; }
  .js .caps.is-open { display: block; }
  .js .caps li:first-child { border-top: 0; }
}

@media (max-width: 560px) {
  .why-grid, .approach, .field-row { grid-template-columns: 1fr; }
  .hse { padding: 26px; }
  .contact-form { padding: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .service-tiles { grid-template-columns: 1fr; gap: 12px; }
  .service-tile { flex-direction: row; align-items: center; padding: 14px 18px; }
  .service-tile .service-icon { width: 44px; height: 50px; }
  .service-tile .service-icon svg { width: 22px; height: 22px; }
  .tile-title { font-size: 1.15rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .wa-float, .service-tile { transition: none; }
}
