/*
Theme Name: T Floyd Scaffolding
Theme URI: https://t-floyd-scaffolding.newbuildweb.site/
Author: Purple Digital
Description: Custom theme for T Floyd Scaffolding Ltd.
Version: 1.2.3
Text Domain: tfloyd-scaffolding
*/

:root {
  --tf-ink: #10211d;
  --tf-muted: #52625d;
  --tf-green: #76a53d;
  --tf-green-2: #5f8d30;
  --tf-green-dark: #123b2c;
  --tf-blue: #18385f;
  --tf-yellow: #f2c94c;
  --tf-paper: #f7f8f3;
  --tf-white: #ffffff;
  --tf-border: #d9ded5;
  --tf-shadow: 0 18px 45px rgba(16, 33, 29, 0.14);
  --tf-radius: 8px;
  --tf-max: 1160px;
  --tf-mobile-measure: 22rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  margin: 0;
  background: var(--tf-paper);
  color: var(--tf-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--tf-yellow);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--tf-ink);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 0.65em;
}

h1 {
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  max-width: 690px;
  overflow-wrap: break-word;
  text-wrap: balance;
}

@media (min-width: 981px) {
  .hero-home h1 {
    font-size: clamp(2.45rem, 4.45vw, 4.15rem);
  }

  .home-rely-heading {
    font-size: clamp(2rem, 2.1vw, 2.125rem);
  }

  .contact-hero-heading {
    font-size: clamp(2.45rem, 3.8vw, 3.75rem);
    max-width: 760px;
  }

  .contact-hero-heading span,
  .footer-email-local,
  .footer-email-domain {
    white-space: nowrap;
  }
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 3.1rem);
  overflow-wrap: break-word;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1rem;
  overflow-wrap: break-word;
}

ul {
  margin-top: 0;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  background: var(--tf-yellow);
  color: var(--tf-ink);
  height: auto;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 1rem;
  width: auto;
  z-index: 1000;
}

.container {
  margin: 0 auto;
  max-width: var(--tf-max);
  padding: 0 clamp(1rem, 4vw, 3rem);
  width: 100%;
}

.site-header {
  background: var(--tf-green);
  box-shadow: 0 8px 24px rgba(16, 33, 29, 0.16);
  color: var(--tf-ink);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;
  min-height: 112px;
  padding-bottom: 0.85rem;
  padding-top: 0.85rem;
}

.brand {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  background: var(--tf-green);
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(16, 33, 29, 0.24);
  height: 78px;
  object-fit: cover;
  width: 114px;
}

.brand-text {
  display: grid;
  font-size: 0.92rem;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.03rem;
}

.brand-text span {
  color: #1b342d;
}

.primary-nav {
  justify-self: end;
}

.nav-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  border-radius: 6px;
  color: var(--tf-ink);
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 0.46rem 0.65rem;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  color: var(--tf-ink);
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 -3px 0 var(--tf-yellow);
}

.nav-list a:hover {
  text-decoration: underline;
}

.header-call {
  background: var(--tf-yellow);
  border-radius: 6px;
  color: var(--tf-ink);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.72rem 0.95rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-menu {
  align-self: center;
  display: none;
  justify-self: end;
  position: relative;
}

.mobile-menu summary {
  align-items: center;
  background: var(--tf-yellow);
  border: 2px solid rgba(16, 33, 29, 0.2);
  border-radius: 6px;
  color: var(--tf-ink);
  cursor: pointer;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  list-style: none;
  width: 52px;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary:focus-visible {
  outline: 3px solid var(--tf-blue);
  outline-offset: 3px;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  background: var(--tf-ink);
  border-radius: 999px;
  display: block;
  height: 3px;
  width: 24px;
}

.hamburger-icon {
  position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  left: 0;
  position: absolute;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

.mobile-menu[open] .hamburger-icon {
  background: transparent;
}

.mobile-menu[open] .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu[open] .hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu-nav {
  background: var(--tf-white);
  border: 1px solid rgba(16, 33, 29, 0.14);
  border-radius: var(--tf-radius);
  box-shadow: var(--tf-shadow);
  min-width: min(280px, calc(100vw - 2rem));
  padding: 0.65rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.7rem);
  z-index: 80;
}

.mobile-menu-nav .nav-list {
  align-items: stretch;
  display: grid;
  gap: 0.15rem;
  justify-content: stretch;
}

.mobile-menu-nav .nav-list a {
  color: var(--tf-ink);
  padding: 0.7rem 0.8rem;
}

.mobile-menu-nav .nav-list .current-menu-item > a,
.mobile-menu-nav .nav-list .current_page_item > a {
  background: rgba(118, 165, 61, 0.16);
  box-shadow: inset 4px 0 0 var(--tf-green);
}

.site-main {
  min-height: 55vh;
}

.hero {
  background: linear-gradient(90deg, var(--tf-paper) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--tf-border);
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6.2rem) 0;
}

.hero-grid,
.split {
  align-items: center;
  display: grid;
  gap: clamp(1.75rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

.hero-copy {
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  color: var(--tf-blue);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.lead {
  color: #253d36;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.55;
  max-width: 690px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 0.78rem 1.1rem;
  text-decoration: none;
}

.button-primary {
  background: var(--tf-green);
  color: var(--tf-ink);
}

.button-secondary {
  background: var(--tf-yellow);
  color: var(--tf-ink);
}

.button-outline {
  border: 2px solid var(--tf-green);
  color: var(--tf-ink);
}

.proof-list,
.tick-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.proof-list li,
.tick-list li {
  padding-left: 1.55rem;
  position: relative;
}

.proof-list li::before,
.tick-list li::before {
  background: var(--tf-yellow);
  border-radius: 50%;
  content: "";
  height: 0.7rem;
  left: 0;
  position: absolute;
  top: 0.55rem;
  width: 0.7rem;
}

.hero-media,
.image-panel {
  margin: 0;
}

.hero-media img,
.image-panel img {
  aspect-ratio: 4 / 3;
  border-radius: var(--tf-radius);
  box-shadow: var(--tf-shadow);
  object-fit: cover;
  width: 100%;
}

.image-panel.tall img {
  aspect-ratio: 3 / 4;
}

.hero-media figcaption,
.image-panel figcaption {
  color: var(--tf-muted);
  font-size: 0.92rem;
  margin-top: 0.75rem;
}

.work-grid {
  align-items: start;
}

.work-grid .image-panel {
  height: 100%;
}

.work-grid .image-panel figcaption {
  margin-top: 0.6rem;
}

.section {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

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

.section-green {
  background: var(--tf-green);
  color: var(--tf-ink);
}

.section-green h2,
.section-green h3,
.section-green p {
  color: var(--tf-ink);
}

.section-green .eyebrow {
  color: var(--tf-ink);
}

.section-head {
  max-width: 780px;
}

.section-head.center {
  margin: 0 auto 2rem;
  text-align: center;
}

.heading-tight {
  font-size: clamp(2.2rem, 3.3vw, 3.25rem);
  margin-left: auto;
  margin-right: auto;
  max-width: 17ch;
}

.button-row-center-desktop {
  justify-content: center;
}

.prose {
  max-width: 72ch;
}

.prose h1 {
  max-width: 100%;
}

.prose h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  margin-top: 1.65em;
}

.prose p,
.prose li {
  max-width: 66ch;
}

.prose ul {
  margin-bottom: 1.2rem;
  padding-left: 1.25rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--tf-white);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius);
  min-width: 0;
  padding: clamp(1.1rem, 2vw, 1.45rem);
}

.service-card {
  border-top: 5px solid var(--tf-green-2);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.stat-band {
  background: var(--tf-blue);
  color: var(--tf-white);
}

.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  border-left: 4px solid var(--tf-yellow);
  padding: 0.35rem 0 0.35rem 1rem;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.2;
}

.stat span {
  color: #e8edf1;
  display: block;
}

.cta-band {
  background: var(--tf-yellow);
  color: var(--tf-ink);
}

.cta-inner {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}

.cta-inner h2 {
  margin-bottom: 0.35rem;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}

.contact-list li {
  list-style: none;
}

.contact-list a {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  background: var(--tf-green);
  color: var(--tf-ink);
  padding: clamp(2.7rem, 5vw, 4.5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
}

.footer-brand img {
  background: var(--tf-green);
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  height: auto;
  margin-bottom: 1rem;
  width: 140px;
}

.site-footer h2,
.site-footer h3,
.site-footer p {
  color: var(--tf-ink);
}

.site-footer h2 {
  font-size: 1.45rem;
}

.site-footer h3 {
  color: var(--tf-ink);
  font-size: 1rem;
}

.footer-links,
.footer-services {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--tf-ink);
}

.footer-credit a {
  font-weight: 800;
}

.footer-base {
  border-top: 1px solid rgba(16, 33, 29, 0.18);
  color: #1b342d;
  font-size: 0.92rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
}

@supports (animation-timeline: scroll()) {
  @media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
    .header-inner {
      animation: header-compact linear both;
      animation-range: 0 160px;
      animation-timeline: scroll(root);
    }

    .brand img {
      animation: logo-compact linear both;
      animation-range: 0 160px;
      animation-timeline: scroll(root);
    }
  }
}

@keyframes header-compact {
  to {
    min-height: 86px;
    padding-bottom: 0.55rem;
    padding-top: 0.55rem;
  }
}

@keyframes logo-compact {
  to {
    height: 60px;
    width: 88px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    align-items: center;
    column-gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    min-height: 0;
    row-gap: 0.8rem;
  }

  .primary-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .header-call {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero-grid,
  .split,
  .grid-2,
  .grid-3,
  .stat-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 16px;
    line-height: 1.62;
  }

  .site-header,
  .site-main,
  .site-footer,
  .hero,
  .section {
    max-width: 100vw;
    overflow-x: clip;
    width: 100%;
  }

  .container {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .admin-bar .site-header {
    top: 0;
  }

  .brand {
    align-items: center;
    gap: 0.55rem;
  }

  .brand img {
    height: 52px;
    width: 76px;
  }

  .brand-text strong {
    font-size: 1rem;
    line-height: 1.12;
    max-width: 145px;
  }

  .brand-text span {
    font-size: 0.94rem;
  }

  .mobile-menu summary {
    height: 46px;
    width: 48px;
  }

  .nav-list {
    gap: 0.1rem 0.75rem;
    min-width: 0;
    width: 100%;
  }

  .header-call,
  .button {
    width: 100%;
  }

  .hero-grid,
  .split,
  .grid,
  .grid-2,
  .grid-3,
  .stat-grid,
  .footer-grid,
  .hero-copy,
  .section-head,
  .card,
  .cta-inner,
  .hero-actions,
  .button-row {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .hero-copy,
  .section-head,
  .prose,
  .split > div:not(.grid) {
    margin-left: auto;
    margin-right: auto;
    max-width: min(100%, var(--tf-mobile-measure));
  }

  .hero-copy > *,
  .section-head > *,
  .prose > *,
  .split > div:not(.grid) > *,
  .card,
  .lead,
  h1,
  h2,
  h3,
  p,
  .proof-list,
  .tick-list,
  .contact-list,
  .hero-actions,
  .button-row,
  .button,
  .header-call {
    max-width: calc(100vw - 2rem);
  }

  .hero-actions,
  .button-row {
    display: block;
    margin-top: 1.1rem;
  }

  .hero-actions .button,
  .button-row .button {
    display: flex;
  }

  .hero-actions .button + .button,
  .button-row .button + .button {
    margin-top: 0.55rem;
  }

  .hero {
    padding: 2.6rem 0;
  }

  .lead {
    font-size: 1.05rem;
  }

  h1 {
    font-size: clamp(1.42rem, 6.35vw, 1.78rem);
    max-width: 100%;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  h3,
  .card h3 {
    font-size: 1.18rem;
  }

  .contact-list a {
    word-break: break-word;
  }

  .desktop-email-break {
    display: none;
  }

  .section-head.center,
  .section-head.center .button-row,
  .hero-media,
  .image-panel,
  .hero-media figcaption,
  .image-panel figcaption {
    text-align: left;
  }

  .section-head.center {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-media,
  .image-panel {
    justify-self: start;
  }

  .heading-tight {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .button-row-center-desktop {
    justify-content: flex-start;
  }
}
