/* ==========================================================================
   Turner Global Resources — dark theme
   Type scale and layout measured from the live site; color scheme inverted.
   ========================================================================== */

:root {
  /* Brand palette */
  --tgr-green:          #34A856;  /* primary green */
  --tgr-green-hover:    #4cc06e;  /* lightens on dark, rather than darkening */
  --tgr-green-light:    #53C775;  /* capability card headings */
  --tgr-green-bright:   #00AC77;
  --tgr-green-dark:     #00583D;  /* deep brand green — card panels */

  /* Dark surfaces */
  --tgr-bg:             #242222;  /* page background */
  --tgr-surface:        #2E2C2C;  /* raised cards, form inputs */
  --tgr-border:         #3D3939;
  --tgr-dark-text:      #242222;  /* dark grey text, used on green */

  /* Text */
  --tgr-white:          #ffffff;
  --tgr-muted:          #C9C5C5;  /* secondary copy on dark */
  --tgr-slate:          #9A9595;

  /* Typography */
  --font-body:    "Mulish", Helvetica, Arial, sans-serif;
  --font-display: "Oswald", Helvetica, Arial, sans-serif;

  /* Layout */
  --container:      1170px;
  --gutter:         20px;
  --section-pad:    100px;
  --radius:         6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--tgr-bg); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--tgr-white);
  background: var(--tgr-bg);
  overflow-x: hidden;
}

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

a { color: var(--tgr-green); text-decoration: none; font-weight: 600; }
a:hover { color: var(--tgr-green-hover); }

::selection { background: var(--tgr-green); color: var(--tgr-white); }

/* Headings — sizes are em-derived from the 18px base on the source site */
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-family: var(--font-body); color: var(--tgr-white); }
h1 { font-size: 99px; font-weight: 700; line-height: 1.26; }
h2 { font-size: 54px; font-weight: 700; line-height: 1.143; }
h3 { font-size: 32.4px; font-weight: 700; line-height: 1.25; }
h4 { font-size: 25.2px; font-weight: 500; line-height: 1.4; }
h5 { font-size: 20.25px; font-weight: 400; line-height: 1.4; }
h6 { font-size: 16.2px; font-weight: 400; line-height: 1.4; letter-spacing: 1px; text-transform: uppercase; color: var(--tgr-green); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-pad) 0; }
.text-center { text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.4px;
  line-height: 1.2;
  letter-spacing: 1px;
  color: var(--tgr-white);
  background-color: var(--tgr-green);
  border: 0;
  border-radius: 10px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.btn:hover {
  color: var(--tgr-white);
  background-color: var(--tgr-green-hover);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Site header — dark bar, reversed logo
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--tgr-bg);
  padding: 28px 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo img { width: 112px; height: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--tgr-white);
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  font-weight: 600;
  font-size: 18px;
  color: var(--tgr-white);
  position: relative;
}
.site-nav a:hover { color: var(--tgr-green); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--tgr-green);
  transition: width .25s ease;
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { width: 100%; }
.site-nav a[aria-current="page"] { color: var(--tgr-green); }

/* --------------------------------------------------------------------------
   Hero band — full-bleed photo only, no text over it
   -------------------------------------------------------------------------- */
.hero-band {
  background-color: var(--tgr-bg);
  background-image: url("../img/hero-header.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  padding: 100px 0 150px;
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */
.intro { padding: 70px 0 var(--section-pad); background: var(--tgr-bg); }

.intro__title {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.143;
  color: var(--tgr-green);
  margin-bottom: .55em;
}
.intro__lead,
.intro__text {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--tgr-white);
  max-width: 900px;
}
.intro__lead { font-weight: 700; margin-bottom: 1.1em; }
.intro__text { color: var(--tgr-muted); }

/* --------------------------------------------------------------------------
   Capability cards
   -------------------------------------------------------------------------- */
.capabilities { background: var(--tgr-bg); }
.capabilities__title { text-align: center; margin-bottom: 48px; color: var(--tgr-white); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cap-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tgr-surface);
  aspect-ratio: 16 / 9;
}

.cap-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

/* Scrim so the title stays legible over any photo */
.cap-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.80) 22%, rgba(0,0,0,.45) 48%, rgba(0,0,0,.08) 78%, rgba(0,0,0,0) 100%);
  transition: background .3s ease;
}

.cap-tile__title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--tgr-white);
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
}

.cap-tile:hover img { transform: scale(1.06); }
.cap-tile:hover::after {
  background: linear-gradient(to top, rgba(0,88,61,.92) 0%, rgba(0,88,61,.72) 30%, rgba(0,0,0,.42) 58%, rgba(0,0,0,.06) 85%);
}

/* --------------------------------------------------------------------------
   Quote banner — FLIPPED: green background, dark grey text
   -------------------------------------------------------------------------- */
.banner { background-color: var(--tgr-green); padding: var(--section-pad) 0; }
.banner__title {
  max-width: 1000px;
  font-size: 54px;
  font-weight: 700;
  line-height: 1.143;
  color: var(--tgr-dark-text);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Subcontractor / feature cards
   -------------------------------------------------------------------------- */
.subcontractor { background: var(--tgr-bg); }
.subcontractor__head { max-width: 900px; margin: 0 auto 54px; text-align: center; }
.subcontractor__head h2 { margin-bottom: .5em; color: var(--tgr-white); }
.subcontractor__head p { font-size: 18px; font-weight: 400; color: var(--tgr-muted); }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.feature-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 34px 32px;
  background: var(--tgr-surface);
  border: 1px solid var(--tgr-border);
  border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--tgr-green);
  box-shadow: 0 20px 44px rgba(0,0,0,.45);
}

.feature-card__icon {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tgr-green);
  color: var(--tgr-white);
}
.feature-card__icon svg { width: 26px; height: 26px; }

.feature-card__title {
  font-size: 20.25px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--tgr-white);
  margin: 0 0 .5em;
}
.feature-card__body p { font-size: 18px; font-weight: 400; color: var(--tgr-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Partner With Us
   -------------------------------------------------------------------------- */
.partner { padding: var(--section-pad) 0; background: var(--tgr-bg); }

.partner__grid {
  display: grid;
  grid-template-columns: 35% 55%;
  gap: 10%;
  align-items: center;
}
.partner__media img { width: 100%; border-radius: var(--radius); }

.partner__content h2 {
  font-size: 43.2px;
  font-weight: 800;
  line-height: 1.143;
  color: var(--tgr-green);
  margin-bottom: .5em;
}
.partner__content p { font-size: 18px; font-weight: 400; color: var(--tgr-muted); margin-bottom: 2em; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { padding: 50px 0 40px; background: var(--tgr-bg); border-top: 1px solid var(--tgr-border); }
.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer__brand img { width: 120px; margin-bottom: 18px; }
.site-footer address {
  font-style: normal;
  font-size: 15px;
  font-weight: 400;
  color: var(--tgr-white);
  line-height: 1.6;
}
.site-footer__nav ul { display: flex; gap: 24px; list-style: none; margin: 0 0 14px; padding: 0; }
.site-footer__nav a { font-size: 15px; }
.site-footer__nav a { color: var(--tgr-white); }
.site-footer__nav a:hover { color: var(--tgr-green); }
.site-footer__copy { font-size: 13px; font-weight: 400; color: var(--tgr-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  padding: 90px 0;
  background-color: var(--tgr-bg);
  background-image: url("../img/contact-banner.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(52,168,86,.88), rgba(0,88,61,.88));
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tgr-white);
  margin: 0;
}

.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 70px; align-items: start; }

.form-field { margin-bottom: 22px; }
.form-field label {
  display: block;
  font-size: 18px;
  font-weight: 400;
  color: var(--tgr-white);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tgr-white);
  background: var(--tgr-surface);
  border: 1px solid var(--tgr-border);
  border-radius: 4px;
  padding: 10px 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--tgr-slate); }
.form-field textarea { min-height: 260px; resize: vertical; }
.form-field input:hover,
.form-field textarea:hover { border-color: var(--tgr-green-bright); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--tgr-green);
  box-shadow: 0 0 0 3px rgba(52,168,86,.25);
}

.contact-aside {
  padding: 34px 30px;
  background: var(--tgr-green-dark);
  color: var(--tgr-white);
  border-radius: var(--radius);
}
.contact-aside h3 { color: var(--tgr-white); font-size: 25.2px; }
.contact-aside a { color: var(--tgr-white); }
.contact-aside a:hover { color: rgba(255,255,255,.8); }
.contact-aside__item { margin-bottom: 22px; }
.contact-aside__item:last-child { margin-bottom: 0; }
.contact-aside__label {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tgr-green-light);
  margin-bottom: 8px;
}

.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.45;
}
.capability-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
}
.capability-list li:last-child { margin-bottom: 0; }
.capability-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tgr-green-light);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  :root { --section-pad: 60px; }

  h1 { font-size: 90px; }
  h2, .intro__title, .banner__title { font-size: 43.2px; }

  .site-logo img { width: 96px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cap-tile__title { font-size: 20px; padding: 18px 20px; }
  .partner__grid { grid-template-columns: 1fr; gap: 40px; }
  .partner__media { max-width: 400px; }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  :root { --section-pad: 30px; }

  h1 { font-size: 45px; }
  h2, .intro__title, .banner__title { font-size: 32px; }

  .site-header { padding: 14px 0; }
  .site-logo img { width: 77px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--tgr-surface);
    box-shadow: 0 12px 24px rgba(0,0,0,.5);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--tgr-border); }
  .site-nav a { display: block; padding: 16px 20px; }
  .site-nav a::after { display: none; }

  .hero-band { padding: 60px 0 90px; background-position: center 40%; }

  .intro { padding: 40px 0 var(--section-pad); }
  .intro__lead, .intro__text { font-size: 18px; }

  .feature-grid { grid-template-columns: 1fr; gap: 24px; }

  .cap-grid { grid-template-columns: 1fr; gap: 18px; }
  .cap-tile__title { font-size: 19px; padding: 16px 18px; }

  .feature-card { flex-direction: column; gap: 16px; padding: 28px 24px; }

  .partner__content { text-align: center; }
  .partner__content h2 { font-size: 32px; }
  .partner__media { max-width: 100%; margin: 0 auto; }

  .page-banner { padding: 60px 0; }
  .page-banner h1 { font-size: 32px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-field textarea { min-height: 180px; }

  .site-footer__inner { flex-direction: column; gap: 28px; }
  .site-footer address { font-size: 14px; }
  .site-footer__copy { font-size: 13px; }
}
