:root {
  --green: #8dc63f;
  --green-dark: #74a830;
  --teal: #00abb5;
  --dark: #1a1a1a;
  --navy-text: #333d4d;
  --bg-light: #f5f5f5;
  --contact-teal: #4d8b72;
  --contact-dark: #282828;
  --white: #ffffff;
  --border-grey: #e2e2e2;
  --font-heading: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 188px;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  margin: 0 0 16px;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border: 2px solid var(--green);
  border-radius: 3px;
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

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

.btn-white {
  border-color: var(--white);
  color: var(--white);
}

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

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  background: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

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

.main-nav ul {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--dark);
  padding: 6px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--green);
  transition: width .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--green);
}

.header-cta {
  white-space: nowrap;
  padding: 11px 26px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

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

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

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

.contact-us-link {
  display: none;
}

/* =========================================================
   HERO (Home page)
   ========================================================= */
.hero {
  position: relative;
  min-height: 850px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--background-overlay, rgba(0, 0, 0, 0.35));
  --background-overlay: #48484859;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 84px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-tagline {
  max-width: 100%;
  margin: 0 auto;
}

/* =========================================================
   PAGE BANNER (inner pages)
   ========================================================= */
.page-banner {
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.page-banner h1 {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: 40px;
  font-weight: 600;
  margin: 0;
}

/* =========================================================
   SECTIONS - generic
   ========================================================= */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--bg-light);
}

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

.eyebrow-heading {
  font-size: 26px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 22px;
}

/* Corporate Philosophy (2-col) */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.philosophy .lead {
  font-weight: 700;
  color: var(--dark);
}

.philosophy img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Dark CTA banner */
.cta-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  text-align: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.cta-banner-content h2 {
  color: var(--white);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Services icon row */
.services-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  margin-bottom: 46px;
}

.service-item .icon {
  height: 1em;
  font-size: 50px;
  margin: 0 auto 18px;
  color: var(--dark);
}

.service-item h3 {
  font-size: 25px;
  margin-bottom: 12px;
  margin-top: 40px;
  line-height: 30px;
}

.service-item p {
  font-size: 14.5px;
  color: var(--navy-text);
}

.services-row-cta {
  text-align: center;
}

/* Phone / Email band */
.contact-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  gap: 30px;
}

.contact-band .icon {
  height: 1em;
  margin: 0 auto 14px;
  font-size: 50px;
}

.contact-band h4 {
  font-size: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  margin-top: 40px;
}

.contact-band p {
  margin: 0;
  font-size: 15px;
}

/* Contacts / Get In Touch split */
/* .contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
} */

.contact-split .col {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 60px;
}

.contact-split .contacts-container {
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.contact-split .col-teal {
  background: var(--contact-teal);
  color: var(--white);
}

.contact-split .col-dark {
  background: var(--contact-dark);
  color: var(--white);
}

.contact-split h2 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-split .person {
  margin: 30px 0 30px;
}

.contact-split .person strong {
  display: block;
  font-size: 15.5px;
}

.contact-split .person span {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
}

.contact-split .contact-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14.5px;
}

.contact-split .contact-line a {
  text-decoration: underline;
}

/* =========================================================
   Simple content pages (About / Services / Employment / Case Law)
   ========================================================= */
.page-content h1 {
  font-size: 30px;
  margin-bottom: 26px;
}

.page-content-box {
  background: var(--bg-light);
  padding: 30px;
}

.page-content-box p {
  font-size: 15px;
  color: var(--navy-text);
}

.page-content-box p strong {
  color: var(--dark);
}

/* Employment layout */
.employment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* IPP Case law listing */
.case-article {
  margin-bottom: 46px;
}

.case-article:last-child {
  margin-bottom: 0;
}

.case-article h3 a {
  color: var(--green);
  font-size: 22px;
  font-weight: 600;
}

.case-article h3 a:hover {
  text-decoration: underline;
}

.case-article .date {
  font-size: 13px;
  color: #888;
  margin: 8px 0 10px;
  display: block;
}

.case-article p {
  font-size: 15px;
  color: var(--navy-text);
}

.read-more-link {
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
}

.read-more-link:hover {
  text-decoration: underline;
}

/* Article detail pages */
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.article-meta i {
  height: 1em;
}

.article-body p {
  font-size: 15px;
  color: var(--navy-text);
}

.article-body p.strong-block {
  font-weight: 700;
  color: var(--dark);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--white);
  padding: 25px 0 0;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 10px;
}

.footer-logo img {
  height: 160px;
  width: auto;
}

.footer-nav {
  padding-bottom: 15px;
}

.footer-nav ul {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--dark);
  transition: color .15s ease;
}

.footer-nav a:hover {
  color: var(--green);
}

.footer-bottom {
  /* border-top: 1px solid var(--border-grey); */
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: black;
}

.footer-bottom a {
  color: var(--teal);
  font-weight: 600;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  background: var(--white);
  border: 1px solid #d8d8d8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .25s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green);
  border-color: var(--green);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--dark);
  fill: none;
  stroke-width: 2;
}

.back-to-top:hover svg {
  stroke: var(--white);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {

  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    padding: 10px 24px 20px;
  }

  .site-header.nav-open .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-header.nav-open .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .site-header.nav-open .header-cta {
    display: none;
  }

  .contact-us-link {
    display: block;
  }

  .philosophy {
    align-items: flex-start;
    gap: 20px;
  }

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

  .contact-split .col {
    padding: 50px 34px;
  }

  .services-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 44px;
  }

  .hero-content h1 {
    font-size: 60px;
  }
}

@media (max-width: 860px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-nav ul {
    justify-content: center;
  }
  .footer-nav {
    padding-bottom: 0px;
  }
}

@media (max-width: 780px) {
  .philosophy {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 158px;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    min-height: 480px;
  }

  .hero-content h1 {
    font-size: 45px;
  }

  .page-banner {
    height: 180px;
  }

  .page-banner h1 {
    font-size: 35px;
  }

  .services-row {
    grid-template-columns: 1fr;
  }

  .page-content-box {
    padding: 30px 20px;
  }

  .contact-band {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .contact-split .col {
    padding: 40px 22px;
  }

  .logo img {
    height: 130px;
  }

  .footer-logo img {
    height: 130px;
  }
}