/* ============================================================
   BRIGVILLE SOLUTIONS — styles.css
   Brand colors (from brand guide):
     --navy:   #0E2B4D  (primary / darker blue)
     --green:  #50BB49  (secondary / accent green)
     --cream:  #F4F6F8  (background)
     --white:  #FFFFFF
     --ink:    #1A1A2E  (body text)
     --muted:  #5A6A7A  (secondary text)
     --rule:   #DDE3EA  (borders/dividers)
   Fonts (from brand guide):
     Headings: Space Grotesk Bold
     Body:     DM Sans
   ============================================================ */

:root {
  --navy:   #0E2B4D;
  --green:  #50BB49;
  --cream:  #F4F6F8;
  --white:  #FFFFFF;
  --ink:    #1A1A2E;
  --muted:  #5A6A7A;
  --rule:   #DDE3EA;

  --font-display: 'Space Grotesk', Arial, sans-serif;
  --font-body:    'DM Sans', Helvetica, sans-serif;

  --radius: 4px;
  --transition: 0.2s ease;

  --max-width: 1100px;
  --section-padding: 100px 24px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── CONTAINER ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.section-label--light { color: #6DD966; }

.section-header { margin-bottom: 56px; }

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--navy);
  font-weight: 700;
}
.section-title--light { color: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover {
  background: #3da537;
  transform: translateY(-1px);
}
.btn--large { padding: 18px 40px; font-size: 14px; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(244, 246, 248, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo img {
  height: 36px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--navy); }
.nav__cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
}
.nav__cta:hover {
  background: #163d6b !important;
  color: var(--white) !important;
}

/* ── HERO ── */
.hero {
  padding: 180px 24px 100px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -160px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80,187,73,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { max-width: var(--max-width); margin: 0 auto; }
.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
}
.hero__headline {
  font-size: clamp(40px, 6vw, 72px);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 28px;
  max-width: 720px;
  line-height: 1.1;
}
.hero__headline em {
  font-style: normal;
  color: var(--green);
}
.hero__sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 44px;
  line-height: 1.75;
  font-weight: 400;
}
.hero__rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
  margin-top: 80px;
}

/* ── WHO WE SERVE ── */
.serve {
  padding: 80px 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.serve__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}
.serve__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  padding-top: 6px;
}
.serve__text {
  font-size: 20px;
  line-height: 1.65;
  color: var(--navy);
  font-weight: 400;
}

/* ── SERVICES ── */
.services {
  padding: var(--section-padding);
  background: var(--white);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.service-card {
  background: var(--white);
  padding: 48px 36px;
  position: relative;
  transition: background var(--transition);
}
.service-card:hover { background: var(--cream); }
.service-card__number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--rule);
  line-height: 1;
  margin-bottom: 20px;
  transition: color var(--transition);
}
.service-card:hover .service-card__number { color: var(--green); }
.service-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
}
.service-card__desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}
.service-card__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover .service-card__bar { transform: scaleX(1); }

/* ── IMPACT ── */
.impact {
  background: var(--navy);
  padding: var(--section-padding);
}
.impact__inner { max-width: var(--max-width); margin: 0 auto; }
.impact__body {
  max-width: 680px;
  margin-bottom: 56px;
}
.impact__body p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 20px;
}
.impact__body p:last-child { margin-bottom: 0; }
.impact__domains {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.impact__domains span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(80,187,73,0.1);
  padding: 6px 14px;
  border: 1px solid rgba(80,187,73,0.25);
  border-radius: var(--radius);
}

/* ── ABOUT ── */
.about {
  padding: var(--section-padding);
  background: var(--cream);
  border-top: 1px solid var(--rule);
}
.about__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: center;
}
.about__image-placeholder {
  aspect-ratio: 3/4;
  background: var(--rule);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.about__image-placeholder span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__image {
  width: 280px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
}
.about__name {
  font-size: 36px;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
}
.about__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}
.about__bio {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.8;
}

/* ── CONTACT ── */
.contact {
  background: var(--navy);
  padding: 100px 24px;
  text-align: center;
}
.contact__inner { max-width: 640px; margin: 0 auto; }
.contact__headline {
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}
.contact__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}
.contact .btn--primary {
  background: var(--green);
  color: var(--white);
}
.contact .btn--primary:hover {
  background: #3da537;
  transform: translateY(-1px);
}

/* ── FOOTER ── */
.footer {
  background: #071a2e;
  padding: 28px 24px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__logo img {
  height: 28px;
  width: auto;
  opacity: 0.6;
}
.footer__location {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow { animation: fadeUp 0.5s ease both; }
.hero__headline { animation: fadeUp 0.5s 0.1s ease both; }
.hero__sub      { animation: fadeUp 0.5s 0.2s ease both; }
.hero .btn      { animation: fadeUp 0.5s 0.3s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__image-placeholder { max-width: 240px; aspect-ratio: 1/1; }
  .serve__inner { grid-template-columns: 1fr; gap: 16px; }
  .nav__links a:not(.nav__cta) { display: none; }
}
@media (max-width: 600px) {
  :root { --section-padding: 72px 24px; }
  .hero { padding: 140px 24px 80px; }
  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
}
