/* ============================================================
   NORTHBRIDGE ADVISORY — STYLESHEET
   ============================================================
   Table of Contents:
   1.  Variables
   2.  Reset & Base
   3.  Typography
   4.  Layout Utilities
   5.  Buttons
   6.  Navigation
   7.  Hero
   8.  Section Base
   9.  Bullet Lists
   10. Services Grid
   11. Company Information
   12. Contact Form
   13. Footer
   14. Responsive — Tablet (≤ 900px)
   15. Responsive — Mobile (≤ 600px)
   ============================================================ */


/* ============================================================
   1. VARIABLES
   ============================================================ */
:root {
  /* Colors */
  --white:        #ffffff;
  --off-white:    #f6f6f4;
  --border:       #e0e0dc;
  --text:         #111111;
  --text-muted:   #545454;
  --text-light:   #888888;
  --navy:         #0d1e3a;
  --navy-hover:   #162d54;

  /* Typography */
  --font-sans:    'Inter', sans-serif;
  --font-serif:   'Playfair Display', serif;

  /* Layout */
  --max-width:    1080px;
  --container-px: 28px;

  /* Spacing */
  --section-py:   96px;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: var(--font-sans);
}

::placeholder {
  color: #b0b0ac;
}

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


/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}

p {
  color: var(--text-muted);
}


/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
}


/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-align: center;
}

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

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

.btn--nav {
  background-color: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 9px 22px;
  font-size: 0.75rem;
}

.btn--nav:hover {
  background-color: var(--navy);
  color: var(--white);
}


/* ============================================================
   6. NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.nav__logo img {
  width: 340px;
  height: auto;
}


/* ============================================================
   7. HERO
   ============================================================ */
.hero {
  padding: 120px 0 104px;
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  max-width: 780px;
}

.hero__headline {
  font-size: clamp(2rem, 4.5vw, 3.375rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 28px;
}

.hero__subtext {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 44px;
}


/* ============================================================
   8. SECTION BASE
   ============================================================ */
.section {
  padding: var(--section-py) 0;
}

.section--alt {
  background-color: var(--off-white);
}

.section--dark {
  background-color: var(--navy);
}

.section__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  margin-bottom: 20px;
}

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

.section__lead {
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 28px;
}

.section__body {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 32px;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}

.section__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--text);
  padding-left: 20px;
  border-left: 3px solid var(--navy);
  margin-bottom: 28px;
  line-height: 1.5;
}


/* ============================================================
   9. BULLET LISTS
   ============================================================ */
.bullet-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 1rem;
}

.bullet-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 600;
}


/* ============================================================
   10. SERVICES GRID
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.service-card {
  border: 1px solid var(--border);
  padding: 44px 36px;
}

.service-card__icon {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-card__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.service-card__note {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}


/* ============================================================
   11. COMPANY INFORMATION
   ============================================================ */
.company__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 12px;
}

.company__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
}

.company__detail {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.company__email {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.company__ops-item {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.company__ops-item::before {
  content: '· ';
  color: rgba(255, 255, 255, 0.3);
}


/* ============================================================
   12. CONTACT FORM
   ============================================================ */
.contact__form {
  margin-top: 44px;
  max-width: 720px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

/* Groups inside a row should not double-add bottom margin */
.form__row .form__group {
  margin-bottom: 0;
}

.form__group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.form__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-light);
  font-size: 0.75rem;
}

.form__group input,
.form__group textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 12px 16px;
  width: 100%;
  outline: none;
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--navy);
}

.form__group textarea {
  resize: vertical;
  line-height: 1.6;
}

.form__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form__divider {
  font-size: 0.875rem;
  color: var(--text-light);
}

.contact__email-link {
  font-size: 0.9375rem;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__email-link:hover {
  color: var(--navy-hover);
}


/* ============================================================
   13. FOOTER
   ============================================================ */
.footer {
  background-color: var(--text);
  padding: 56px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer__logo {
  height: 48px;
  width: auto;
  filter: invert(1) brightness(2);
  opacity: 0.8;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__link {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}


/* ============================================================
   14. RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --section-py: 72px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .company__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* ============================================================
   15. RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  :root {
    --section-py: 56px;
  }

  .nav__inner {
    height: 80px;
  }

  .nav__logo img {
    width: 160px;
    height: auto;
  }

  /* Hide nav CTA on very small screens — hero CTA is visible */
  .btn--nav {
    display: none;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero__subtext {
    font-size: 1rem;
  }

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

  .form__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .services__grid {
    max-width: 100%;
  }

  .footer__links {
    gap: 20px;
  }
}
