/* ===================================================
   NORTHERNMARK ADVISORS GROUP
   Static institutional advisory website
   =================================================== */

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

* {
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0b0c0d;
  --ink-2: #151719;
  --ink-3: #22262a;
  --paper: #f7f7f4;
  --paper-2: #eceae3;
  --paper-3: #ffffff;
  --rule: rgba(11, 12, 13, 0.14);
  --rule-dark: rgba(255, 255, 255, 0.14);
  --gold: #a88242;
  --gold-2: #c0a064;
  --text: #17191c;
  --muted: #5c6268;
  --muted-dark: #a7adb3;

  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;

  --max-w: 1240px;
  --nav-h: 76px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 9vw, 128px);
}

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

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

svg {
  display: block;
}

.container,
.nav__inner,
.hero__inner,
.footer__inner {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.label--light {
  color: var(--gold-2);
}

.heading-lg {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4.35rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.heading-lg--light {
  color: var(--paper);
}

.section-header {
  width: min(760px, 100%);
  margin: 0 auto clamp(42px, 6vw, 72px);
  text-align: center;
}

.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11, 12, 13, 0.16), transparent);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid currentColor;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn--primary {
  color: var(--paper);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn--dark {
  width: 100%;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(11, 12, 13, 0.12);
  background: rgba(247, 247, 244, 0.96);
  backdrop-filter: blur(14px);
}

.nav__inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 34px);
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark__primary {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(1.38rem, 2.2vw, 1.9rem);
  font-weight: 900;
}

.brand-wordmark__secondary {
  margin-left: 0.18em;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(0.92rem, 1.35vw, 1.2rem);
  font-weight: 800;
}

.nav__wordmark {
  flex: 0 1 auto;
  margin-left: auto;
  padding-left: clamp(12px, 2vw, 24px);
}

.nav__links {
  display: flex;
  align-items: center;
  margin-right: auto;
  gap: clamp(18px, 3vw, 36px);
}

.nav__links a,
.nav__mobile a {
  color: var(--ink-3);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__mobile a:hover,
.nav__mobile a:focus-visible {
  color: var(--gold);
}

.nav__cta {
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper) !important;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink) !important;
}

.nav__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav__hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--rule);
  cursor: pointer;
}

.nav__hamburger span {
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav__mobile {
  display: none;
}

.nav__toggle:checked ~ .nav__inner .nav__hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle:checked ~ .nav__inner .nav__hamburger span:nth-child(2) {
  opacity: 0;
}

.nav__toggle:checked ~ .nav__inner .nav__hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 72px) 72px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    var(--ink);
  background-size: 96px 96px, 96px 96px, auto;
  color: var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.hero__bg-grid {
  display: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(22px, 4vw, 34px);
  color: var(--gold-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "";
  width: clamp(34px, 7vw, 84px);
  height: 1px;
  background: currentColor;
}

.hero__headline {
  max-width: 960px;
  margin-bottom: clamp(24px, 4vw, 34px);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 11vw, 7.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
}

.hero__tagline {
  max-width: 620px;
  margin-bottom: clamp(36px, 6vw, 58px);
  color: var(--muted-dark);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.hero__scroll-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 34px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(247, 247, 244, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 42px;
  height: 1px;
  background: var(--gold-2);
}

/* About */
.about,
.industries,
.contact {
  padding-block: var(--section-y);
  background: var(--paper);
}

.about__grid,
.contact__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.45fr);
  gap: clamp(44px, 8vw, 108px);
  align-items: start;
}

.about__left,
.why-us__left {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.about__lead {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
}

.about__body {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(38px, 6vw, 60px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.stat {
  padding: 28px 22px 28px 0;
}

.stat + .stat {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.stat__num {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.stat__label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Services */
.services {
  padding-block: var(--section-y);
  background: var(--ink);
  color: var(--paper);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-dark);
  border-left: 1px solid var(--rule-dark);
}

.service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 42px);
  border-right: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  background: transparent;
  transition: background-color 180ms ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.035);
}

.service-card__num {
  margin-bottom: 26px;
  color: var(--gold-2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.service-card__line {
  width: 34px;
  height: 1px;
  margin-bottom: 22px;
  background: var(--gold-2);
}

.service-card__title {
  max-width: 220px;
  margin-bottom: 14px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}

.service-card__desc {
  color: var(--muted-dark);
  font-size: 0.92rem;
  line-height: 1.68;
}

/* Industries */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.industry-block {
  min-height: 250px;
  padding: clamp(30px, 4vw, 48px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  transition: background-color 180ms ease;
}

.industry-block:hover {
  background: var(--paper-3);
}

.industry-block__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid rgba(168, 130, 66, 0.38);
  color: var(--gold);
}

.industry-block h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}

.industry-block p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

/* Why us */
.why-us {
  padding-block: var(--section-y);
  background: var(--ink-2);
  color: var(--paper);
}

.why-us__inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}

.why-us__accent-line {
  width: 72px;
  height: 1px;
  margin-top: 34px;
  background: var(--gold-2);
}

.why-point {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: clamp(26px, 4vw, 38px) 0;
  border-bottom: 1px solid var(--rule-dark);
}

.why-point:first-child {
  padding-top: 0;
}

.why-point:last-child {
  border-bottom: 0;
}

.why-point__marker {
  color: var(--gold-2);
  font-size: 1.25rem;
  line-height: 1;
}

.why-point__content h3 {
  margin-bottom: 10px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.18;
}

.why-point__content p {
  max-width: 760px;
  color: var(--muted-dark);
  font-size: 0.98rem;
  line-height: 1.76;
}

/* Contact */
.contact__detail {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--rule);
}

.contact__detail-label,
.form-group label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact__email {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.94rem, 1.25vw, 1.06rem);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

.contact__email:hover,
.contact__email:focus-visible {
  color: var(--gold);
}

.contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.social-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.social-btn--linkedin:hover,
.social-btn--linkedin:focus-visible {
  border-color: #0a66c2;
  background: #0a66c2;
  color: #fff;
}

.social-btn--whatsapp:hover,
.social-btn--whatsapp:focus-visible {
  border-color: #128c7e;
  background: #128c7e;
  color: #fff;
}

.contact__form {
  display: grid;
  gap: 24px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  outline: 0;
  padding: 12px 0 13px;
  transition: border-color 180ms ease;
  appearance: none;
}

.form-group select {
  min-height: 52px;
  padding-right: 30px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.25 7 7.25 13 1.25' stroke='%23A88242' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 8px center;
  background-repeat: no-repeat;
}

.form-group textarea {
  min-height: 124px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(92, 98, 104, 0.55);
}

/* Footer */
.footer {
  padding-block: clamp(54px, 7vw, 82px);
  border-top: 1px solid var(--rule-dark);
  background: var(--ink);
  color: var(--paper);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) minmax(140px, 0.5fr) minmax(280px, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.brand-wordmark--footer {
  color: var(--paper);
}

.brand-wordmark--footer .brand-wordmark__primary {
  font-size: clamp(1.72rem, 3.3vw, 2.55rem);
}

.brand-wordmark--footer .brand-wordmark__secondary {
  font-size: clamp(1.06rem, 2vw, 1.46rem);
}

.footer__brand p {
  max-width: 460px;
  margin-top: 18px;
  color: var(--muted-dark);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer__nav {
  display: grid;
  gap: 14px;
}

.footer__nav a {
  color: rgba(247, 247, 244, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--gold-2);
}

.footer__meta {
  display: grid;
  gap: 14px;
  justify-items: end;
  text-align: right;
}

.footer__copy {
  color: rgba(247, 247, 244, 0.76);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer__disc {
  max-width: 430px;
  color: rgba(167, 173, 179, 0.72);
  font-size: 0.78rem;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .nav__inner {
    gap: 18px;
  }

  .brand-wordmark__primary {
    font-size: 1.4rem;
  }

  .brand-wordmark__secondary {
    font-size: 0.94rem;
  }

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

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

@media (max-width: 900px) {
  :root {
    --nav-h: 68px;
    --section-y: clamp(64px, 10vw, 92px);
  }

  .nav__links {
    display: none;
  }

  .nav__wordmark {
    margin-left: auto;
    margin-right: 10px;
    padding-left: 0;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile {
    display: grid;
    grid-template-columns: 1fr;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    background: var(--paper);
    transition: max-height 220ms ease, border-color 220ms ease;
  }

  .nav__mobile a {
    padding: 18px var(--gutter);
    border-bottom: 1px solid var(--rule);
  }

  .nav__toggle:checked ~ .nav__mobile {
    max-height: 340px;
    border-top-color: var(--rule);
  }

  .about__grid,
  .contact__grid,
  .why-us__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__left,
  .why-us__left {
    position: static;
  }

  .section-header {
    text-align: left;
    margin-inline: 0;
  }

  .hero__scroll-hint {
    display: none;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__meta {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .nav__wordmark .brand-wordmark__primary {
    font-size: clamp(1.12rem, 5vw, 1.46rem);
  }

  .nav__wordmark .brand-wordmark__secondary {
    font-size: clamp(0.78rem, 3.4vw, 1rem);
  }

  .hero {
    min-height: 92svh;
    padding-block: calc(var(--nav-h) + 54px) 52px;
    background-size: 72px 72px, 72px 72px, auto;
  }

  .hero__eyebrow {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero__headline {
    font-size: clamp(3rem, 15vw, 4.4rem);
    line-height: 0.94;
  }

  .hero__tagline {
    max-width: 34rem;
  }

  .about__stats,
  .services__grid,
  .industries__grid {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 24px 0;
  }

  .stat + .stat {
    padding-left: 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .service-card,
  .industry-block {
    min-height: auto;
  }

  .why-point {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact__social,
  .social-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  :root {
    --gutter: 18px;
  }

  .heading-lg {
    font-size: 2.05rem;
  }

  .hero__headline {
    font-size: 2.85rem;
  }

  .btn {
    width: 100%;
  }
}
