/* ============================================
   Tree Science — Static Rebuild
   ============================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Gotham Rounded Light';
  src: url('assets/GothamRounded-Light.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham Rounded Medium';
  src: url('assets/GothamRounded-Medium.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  --green-primary: #8DC540;
  --green-dark: #079948;
  --green-darkest: #0E4600;
  --charcoal: #131619;
  --footer-bg: #1E2823;
  --star-gold: #FFBE00;
  --gray-light: #F5F5F5;
  --gray-border: #E8EAEC;
  --gray-text: #878C88;
  --white: #fff;
  --font-body: 'Gotham Rounded Light', 'Poppins', sans-serif;
  --font-heading: 'Gotham Rounded Medium', 'Poppins', sans-serif;
  --max-width: 1600px;
  --transition: all 0.4s ease;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.625;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--green-dark);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  line-height: 1.382;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0 0 0.618em;
}

h1 { font-size: 27px; }
h2 { font-size: 22.5px; }
h3 { font-size: 21.6px; }

::selection {
  background-color: var(--charcoal);
  color: #f8fafc;
}

.wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 5%;
}

/* ============================================
   1. HEADER
   ============================================ */
.site-header {
  position: relative;
  width: 100%;
  z-index: 999;
  background: var(--white);
  transition: var(--transition);
}

.site-header > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo-link {
  display: block;
  flex-shrink: 0;
}

.logo-link img {
  height: 92px;
  width: auto;
}

/* Hamburger */
.menu-toggle {
  position: relative;
  width: 50px;
  height: 50px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.menu-toggle span {
  position: absolute;
  right: 8px;
  width: 25px;
  height: 2px;
  background-color: var(--green-primary);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle span:nth-child(3) { top: 32px; }

.menu-toggle.activated span:nth-child(1) {
  top: 24px;
  transform: rotate(45deg);
}
.menu-toggle.activated span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.activated span:nth-child(3) {
  top: 24px;
  transform: rotate(-45deg);
}

/* Nav — mobile first: hidden */
.nav-primary {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--charcoal);
  padding: 20px 5%;
}

.nav-primary.open {
  display: block;
}

.nav-menu {
  font-family: var(--font-heading);
  font-size: 14.4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu > li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-menu a {
  display: block;
  padding: 12px 0;
  color: #dadada;
}

.nav-menu a:hover,
.nav-menu .current > a {
  color: var(--green-dark);
}

/* CTA nav item (Contact) */
.nav-menu .nav-cta a {
  display: inline-block;
  margin-top: 8px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 4px;
  padding: 10px 20px;
}
.nav-menu .nav-cta a:hover {
  background: var(--charcoal);
}

/* Secondary CTA nav item (AS4970 Calculator) */
.nav-menu .nav-calc a {
  display: inline-block;
  margin-top: 8px;
  color: var(--white);
  border: 1px solid var(--green-dark);
  border-radius: 4px;
  padding: 9px 19px;
}
.nav-menu .nav-calc a:hover {
  color: var(--white);
  background: var(--green-dark);
}

/* Sub-menu — mobile: accordion */
.nav-menu .has-submenu {
  position: relative;
}

.sub-menu {
  display: none;
  padding-left: 20px;
}
.sub-menu.open {
  display: block;
}
.sub-menu a {
  font-size: 13px;
  padding: 10px 0;
  color: #aaa;
}
.sub-menu a:hover {
  color: var(--white);
}

.submenu-toggle {
  position: absolute;
  top: 6px;
  right: 0;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #dadada;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/treesciencee-home-bg.jpg') center top/cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20, 20, 20, 0.35), rgba(40, 40, 40, 0.40));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 5%;
  margin-top: 0;
  max-width: 1000px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.25rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1.382;
  opacity: 0.9;
}

/* ============================================
   3. INTRO
   ============================================ */
.intro {
  background: var(--white);
  padding: 40px 0;
  text-align: center;
}

.intro .wrap {
  max-width: 1500px;
}

.intro p {
  margin-bottom: 1em;
}

.intro a {
  color: var(--green-primary);
}
.intro a:hover {
  color: var(--green-dark);
}

/* ============================================
   4. SERVICES
   ============================================ */
.services {
  background: var(--gray-light);
  padding: 60px 0;
  text-align: center;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.service-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-primary);
  border-radius: 4px;
  padding: 20px 16px;
  min-height: 84px;
  width: 100%;
  transition: var(--transition);
  cursor: pointer;
}

.service-tile:hover {
  background: var(--green-darkest);
}

.service-tile h3 {
  font-size: 16px;
  margin: 0;
  color: var(--white);
}

.service-tile a {
  color: var(--white);
  text-decoration: none;
}
.service-tile a:hover {
  color: var(--gray-light);
}

/* ============================================
   5. OUR CLIENTS
   ============================================ */
.clients {
  background: var(--white);
  padding: 60px 0;
  text-align: center;
}

.clients h2 {
  font-size: 2em;
  margin-bottom: 40px;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}

.carousel-slide img {
  max-height: 80px;
  width: auto;
  margin: 0 auto;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--green-darkest);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  color: var(--green-primary);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

/* Button (shared base for .button and footer submit) */
.button,
.footer-form button[type="submit"] {
  display: inline-block;
  position: relative;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.button {
  padding: 20px 40px 20px 20px;
  text-decoration: none;
}

.button::after {
  content: ">";
  position: absolute;
  right: 20px;
  transition: right 0.25s ease;
}

.button:hover {
  color: var(--white);
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.05);
}

.button:hover::after {
  right: 14px;
}

/* ============================================
   6. TESTIMONIALS
   ============================================ */
.testimonials {
  position: relative;
  padding: 60px 0;
  background: url('assets/treesciencee-home-bg.jpg') center/cover no-repeat;
  text-align: center;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(107, 148, 52, 0.95), rgba(143, 197, 69, 0.80));
  z-index: 1;
}

.testimonials .wrap {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.testimonial-slider {
  position: relative;
  display: grid;
}

.testimonial-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.testimonial-stars {
  margin-bottom: 1.5em;
}

.testimonial-stars img {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 0 2px;
}

.testimonial-slide blockquote {
  color: rgba(255, 255, 255, 0.618);
  font-size: 19.8px;
  margin: 0 0 2em;
  line-height: 1.5;
}

.testimonial-slide blockquote::before,
.testimonial-slide blockquote::after {
  content: '\201C';
  font-size: 25.2px;
  font-style: italic;
  line-height: 1;
}

.testimonial-slide blockquote::after {
  content: '\201D';
}

.testimonial-slide h5 {
  color: var(--white);
  font-size: 19.8px;
  margin-bottom: 0.3em;
}

.testimonial-slide .company {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-style: italic;
  max-width: 400px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2em;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.382;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active,
.testimonial-dot:hover {
  opacity: 0.618;
  transform: scale(1.2);
}

/* ============================================
   7. FOOTER
   ============================================ */
.site-footer {
  background: var(--gray-light);
  color: #3d3d3d;
  font-size: 14px;
  line-height: 1.382;
  padding: 60px 0;
  position: relative;
}

.footer-grid {
  display: grid;
  gap: 40px;
}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 0;
  color: #3d3d3d;
}

/* Quick Links */
.footer-links li {
  padding: 4px 0;
}

.footer-links a {
  color: var(--gray-text);
  font-size: 14px;
}

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

.footer-links .sub-links {
  padding-left: 16px;
}

/* Connect */
.footer-connect {
  color: var(--gray-text);
}

.footer-tagline {
  color: var(--gray-text);
  margin-bottom: 16px;
}

.footer-connect .contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-connect .contact-icon {
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-connect .contact-icon svg {
  width: 18px;
  height: 18px;
}

.footer-connect a {
  color: var(--gray-text);
}

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

/* Scroll to top */
.scroll-top {
  position: absolute;
  right: 5%;
  bottom: 20px;
  width: 26px;
  height: 26px;
  background: url('assets/arrow.svg') center/contain no-repeat;
  transform: rotate(180deg);
  opacity: 0.75;
  transition: all 0.3s ease;
  display: block;
}

.scroll-top:hover {
  opacity: 1;
}

/* ============================================
   8. SUBFOOTER
   ============================================ */
.subfooter {
  background: var(--footer-bg);
  color: var(--white);
  padding: 20px 0;
}

.subfooter .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.subfooter .copy {
  font-size: 14px;
}

.subfooter a {
  color: var(--white);
}

.subfooter a:hover {
  color: var(--green-dark);
}

/* ============================================
   RESPONSIVE — ≥548px (tablet)
   ============================================ */
@media (min-width: 548px) {
  .service-tile {
    width: calc(50% - 6px);
  }

  .carousel-slide {
    flex: 0 0 50%;
  }

  .subfooter .wrap {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================
   RESPONSIVE — ≥860px (desktop)
   ============================================ */
@media (min-width: 860px) {
  h1 { font-size: 28px; }
  h2 { font-size: 25.2px; }

  .wrap {
    padding: 0 5%;
  }

  /* Hero */
  .hero p {
    font-size: 18px;
  }

  /* Intro */
  .intro {
    padding: 60px 0;
  }

  /* Services — 5 col */
  .services {
    padding: 80px 0;
  }

  .services-grid {
    flex-wrap: nowrap;
  }

  .service-tile {
    width: calc(20% - 10px);
    flex: 1;
  }

  /* Clients carousel — show 4 */
  .carousel-slide {
    flex: 0 0 25%;
  }

  .clients {
    padding: 80px 0;
  }

  /* Testimonials */
  .testimonials {
    padding: 80px 0;
  }

  /* Footer — 3 col */
  .site-footer {
    padding: 80px 0;
  }

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

  /* Subfooter */
  .subfooter .wrap {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================
   RESPONSIVE — ≥1024px (large desktop)
   ============================================ */
/* ============================================
   RESPONSIVE — ≥1280px (desktop nav)
   Below this the full menu doesn't fit on one line, so the hamburger stays.
   ============================================ */
@media (min-width: 1280px) {
  /* Header desktop nav */
  .menu-toggle {
    display: none;
  }

  .nav-primary {
    display: flex !important;
    position: static;
    width: auto;
    background: transparent;
    padding: 0;
    align-items: center;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    font-size: 12.6px;
  }

  .nav-menu > li {
    border-bottom: none;
  }

  .nav-menu a {
    padding: 10px 8px;
    color: var(--charcoal);
  }

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

  .nav-menu .nav-cta a {
    margin-top: 0;
    padding: 10px 20px;
  }

  .nav-menu .nav-calc a {
    margin: 0 8px 0 0;
    padding: 9px 19px;
    color: var(--green-dark);
  }

  .nav-menu .nav-calc a:hover {
    color: var(--white);
  }

  /* Submenu — desktop: dropdown */
  .submenu-toggle {
    display: none;
  }

  .nav-menu .has-submenu {
    position: relative;
  }

  .nav-menu .has-submenu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 250px;
    padding: 8px 0;
    z-index: 99;
  }

  .nav-menu .has-submenu:hover .sub-menu {
    display: block;
  }

  .sub-menu a {
    padding: 10px 20px;
    color: var(--charcoal);
    font-size: 12.6px;
    white-space: nowrap;
  }

  .sub-menu a:hover {
    color: var(--green-dark);
  }

  .nav-menu a {
    white-space: nowrap;
  }
}

@media (min-width: 1440px) {
  .nav-menu a {
    padding: 10px 15px;
  }
}

/* ============================================
   SUBPAGE — Narrower intro content
   ============================================ */
.subpage .hero {
  background-position: center center;
}

.subpage .hero::after {
  background: rgba(0, 0, 0, 0.54);
}

.subpage .hero h1 {
  font-size: 24px;
  text-transform: none;
}

.meet-the-team .hero h1 {
  font-size: 46px;
}

.subpage .intro {
  text-align: left;
}

.subpage .intro .wrap {
  max-width: 1000px;
}

.subpage .intro ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.subpage .intro h2 {
  margin-top: 1.5em;
}

/* ============================================
   SUBPAGE — Breadcrumb
   ============================================ */
.breadcrumb {
  background: #f5f5f5;
  border-left: 5px solid var(--green-darkest);
  padding: 20px 15px;
  margin-bottom: 60px;
  font-size: 14px;
  color: var(--gray-text);
}

.breadcrumb a {
  color: var(--green-primary);
}

.breadcrumb a:hover {
  color: var(--green-dark);
}

/* ============================================
   SUBPAGE — Page CTA
   ============================================ */
.page-cta {
  background: var(--green-darkest);
  padding: 60px 0;
  text-align: center;
}

.page-cta h3 {
  color: var(--white);
  text-transform: none;
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 30px;
}

.button.white {
  background: var(--white);
  color: var(--green-dark);
}

.button.white:hover {
  background: var(--gray-light);
  color: var(--green-darkest);
}

@media (min-width: 860px) {
  .page-cta {
    padding: 80px 0;
  }
}

/* ============================================
   SERVICE PAGE — Hero Backgrounds
   ============================================ */
.service-project-arborist .hero {
  background-image: url('assets/hero-project-arborist.jpg');
}

.service-assessments-reporting .hero {
  background-image: url('assets/hero-assessments-reporting.jpg');
}

.service-tree-inventory .hero {
  background-image: url('assets/hero-tree-inventory.jpg');
}

.service-plant-health-care .hero {
  background-image: url('assets/hero-plant-health-care.jpg');
}

.service-expert-witness .hero {
  background-image: url('assets/hero-expert-witness.jpg');
}

/* ============================================
   CARD GRID — Projects & Articles
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 60px;
}

.card {
  display: block;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 18px;
  color: var(--charcoal);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.card-body p {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.5;
  margin: 0;
}

/* Project cards: title only, no body padding top */
.card--project .card-body {
  padding: 16px 20px;
}

.card--project .card-body h3 {
  margin-bottom: 0;
}

/* Article cards: taller image ratio */
.card--article .card-image {
  aspect-ratio: 3 / 2;
}

@media (min-width: 548px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.projects-page .hero h1,
.articles-page .hero h1,
.faq-page .hero h1,
.privacy-policy-page .hero h1 {
  font-size: 46px;
}

.projects-page .intro .wrap,
.articles-page .intro .wrap {
  max-width: var(--max-width);
}

/* ============================================
   CARD LISTINGS — Filter Bar
   ============================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-btn {
  background: var(--gray-light);
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-text);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--charcoal);
}

.filter-btn.active {
  background: var(--green-dark);
  color: var(--white);
}

.card.hidden {
  display: none;
}

/* ============================================
   BLOG ARTICLE PAGE — Hero Backgrounds
   ============================================ */
[class*="article-"] .hero h1 {
  font-size: 46px;
}

.article-arborist-reports .hero { background-image: url('assets/hero-arborist-reports.jpg'); }
.article-as4970 .hero { background-image: url('assets/hero-as4970.jpg'); }
.article-tree-protection .hero { background-image: url('assets/hero-tree-protection.jpg'); }
.article-vertical-garden .hero { background-image: url('assets/hero-vertical-garden.jpg'); }
.article-soil-health .hero { background-image: url('assets/hero-soil-health.jpg'); }
.article-tree-stump .hero { background-image: url('assets/hero-tree-stump.jpg'); }
.article-rooftop-gardens .hero { background-image: url('assets/hero-rooftop-gardens.jpg'); }

.subpage .intro h3 {
  text-transform: none;
  letter-spacing: 0;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.subpage .intro hr {
  border: none;
  border-top: 1px solid var(--gray-border);
  margin: 2em 0;
}

/* ============================================
   FAQ PAGE — Accordion
   ============================================ */
.faq-list {
  margin-bottom: 2em;
}

.faq-item {
  border-bottom: 1px solid var(--gray-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 16px;
  text-align: left;
  color: var(--charcoal);
  cursor: pointer;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--green-dark);
}

.faq-question::after {
  content: '+';
  flex-shrink: 0;
  margin-left: 20px;
  font-size: 22px;
  font-weight: 300;
  color: var(--green-primary);
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
  content: '\2212';
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 16px;
  line-height: 1.6;
}

.faq-answer.open {
  display: block;
}

.faq-answer ol,
.faq-answer ul {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

.faq-answer ol {
  list-style: decimal;
}

.faq-answer ul {
  list-style: disc;
}

.faq-answer li {
  margin-bottom: 0.4em;
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 2em;
}

.project-meta dl {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.project-meta dt {
  font-family: var(--font-heading);
  display: inline;
}

.project-meta dd {
  display: inline;
  margin: 0;
}

.project-meta dd::after {
  content: '';
  display: block;
}

.project-meta .client-logo {
  flex-shrink: 0;
  max-width: 140px;
  align-self: flex-start;
}

.project-meta .client-logo img {
  max-width: 100%;
  height: auto;
}

[class*="project-pg-"] .hero h1 {
  font-size: 46px;
}

.project-pg-cross-river-rail .hero { background-image: url('assets/hero-cross-river-rail.jpg'); }
.project-pg-icb .hero { background-image: url('assets/hero-icb.jpg'); }
.project-pg-ripley-valley .hero { background-image: url('assets/hero-ripley-valley.jpg'); }
.project-pg-minnippi .hero { background-image: url('assets/hero-minnippi.jpg'); }
.project-pg-yarrabilba .hero { background-image: url('assets/hero-yarrabilba.jpg'); }
.project-pg-moreton-bay .hero { background-image: url('assets/hero-moreton-bay.jpg'); }
.project-pg-toowoomba .hero { background-image: url('assets/hero-toowoomba.jpg'); }
.project-pg-metacap .hero { background-image: url('assets/hero-metacap.jpg'); }
.project-pg-energex .hero { background-image: url('assets/hero-energex.jpg'); }
.project-pg-nsw-education .hero { background-image: url('assets/hero-nsw-education.jpg'); }
.project-pg-logan-water .hero { background-image: url('assets/hero-logan-water.jpg'); }
.project-pg-gold-coast .hero { background-image: url('assets/hero-gold-coast.jpg'); }
.project-pg-scenic-rim .hero { background-image: url('assets/hero-scenic-rim.jpg'); }
.project-pg-airport-link .hero { background-image: url('assets/hero-airport-link.jpg'); }
.project-pg-legacy-way .hero { background-image: url('assets/hero-legacy-way.jpg'); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page .hero h1 {
  font-size: 24px;
  text-transform: none;
}

.contact-page .intro {
  text-align: center;
}

.contact-page .breadcrumb {
  text-align: left;
}

.contact-intro {
  font-size: 18px;
  margin-bottom: 2em;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 2em;
}

.contact-card {
  background: var(--gray-light);
  border-radius: 6px;
  padding: 30px 20px;
  text-align: center;
}

.contact-card-icon {
  color: var(--green-primary);
  margin-bottom: 12px;
}

.contact-card-icon svg {
  display: inline-block;
}

.contact-card h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--gray-text);
}

.contact-card a {
  font-size: 18px;
  font-family: var(--font-heading);
  color: var(--charcoal);
}

.contact-card a:hover {
  color: var(--green-dark);
}

@media (min-width: 548px) {
  .contact-details {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   404 PAGE
   ============================================ */
.notfound-links li {
  padding: 6px 0;
}

.notfound-links a {
  font-size: 18px;
  font-family: var(--font-heading);
  color: var(--green-dark);
}

.notfound-links a:hover {
  color: var(--charcoal);
}
