/*
Theme Name: Tarlai Consulting
Theme URI: https://tarlai.com.au/
Author: Tayyab Azam — 5thGarage
Description: Tarlai Consulting — Timber 2 + ACF theme.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: tarlai
*/

/* ==========================================================================
	Filename: style.css
	Version: 1.0.0 (2026-09)
	Website: tarlai.com.au
	Author: Tayyab Azam
	Description: Handles the site global layout. Plain CSS — no build step.

	[Content]
	Tokens (:root)
	Base
	Structure
	Header / Mobile menu
	Billboard
	Content (flexible layouts, stat band)
	Footer
	Forms
	Animation

	[Breakpoints] (media queries can't use variables — search for these values)
	xs 479px · sm 576px · lg 959px / 960px

	Icons: Font Awesome loads separately from assets/fontawesome/ (see partial/head.twig)
   ========================================================================== */

/* ==========================================================================
	Tokens
   ========================================================================== */
:root {
  /* Brand */
  --color-navy: #1b3a6b;
  --color-navy-dark: #0f2447;
  --color-orange: #f28c28;
  --color-orange-dark: #d97414;

  /* Text + surfaces */
  --color-text: #333a45;
  --color-muted: #6b7380;
  --color-white: #fff;
  --color-black: #000;
  --color-grey-bg: #f4f7fb;
  --color-border: #cfd6e0;
  --color-icon-grey: #bdbdbd;
  --color-divider: #eee;

  /* Roles */
  --color-primary: var(--color-navy-dark); /* headings */
  --color-secondary: var(--color-navy); /* links */

  /* Inner page banner gradient (left → right) */
  --color-banner-blue: #3162a5;
  --color-banner-orange: #c46028;

  /* "Connecting people since" band (top → bottom) */
  --color-band-top: #2d8bd9;
  --color-band-bottom: #2bc2a9;

  /* Type */
  --font-heading: "Raleway", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
  --font-icons: "Font Awesome 6 Pro";

  /* Layout */
  --header-height: 80px;
  --container-max: 1320px;
  --container-pad: 40px;
  --section-pad: 100px;
  --radius: 8px;

  /* Shadows */
  --shadow-header: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-header-sticky: 0 6px 20px rgba(15, 36, 71, 0.1);
  --shadow-card: 0 10px 30px rgba(15, 36, 71, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}

@media only screen and (max-width: 959px) {
  :root {
    --container-max: 992px;
    --container-pad: 30px;
    --section-pad: 70px;
  }
}
@media only screen and (max-width: 576px) {
  :root {
    --container-pad: 20px;
  }
}
@media only screen and (max-width: 479px) {
  :root {
    --container-pad: 16px;
  }
}

@charset "UTF-8";
/* ==========================================================================
	Base
   ========================================================================== */
/* ==========================================================================
	Base
   ========================================================================== */
html,
button,
input,
select,
textarea {
  color: var(--color-text);
}

html,
body {
  background: var(--color-white);
  width: 100%;
  margin: 0;
  overflow-x: clip;
}
html.overflow-hidden,
body.overflow-hidden {
  overflow: hidden;
}

html {
  position: relative;
  font-size: 62.5%;
  line-height: 1.618;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

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

body {
  font: 400 16px var(--font-body);
  line-height: 27px;
  color: var(--color-text);
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.25s;
}
a:hover {
  color: var(--color-orange);
}

p {
  margin: 0 0 16px;
}

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

/*
[Typographic scale]
13,15,16,18,21,24,28,32,40,48,64
*/
/* Raleway defaults to old-style numerals — use lining figures for headings and big numbers */
h1, h2, h3, h4, h5, h6,
.btn,
.eyebrow,
.page-banner-word,
.stat-number {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  line-height: 1.25;
  word-wrap: normal;
  margin: 0 0 0.6em;
}

h1,
.h1 {
  font-weight: 700;
  font-size: clamp(38px, 5vw, 64px);
}

h1.page-title {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.28em;
}
h1.page-title > span {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
h1.page-title > span > span {
  display: inline-block;
}

.js h1.page-title.split > span > span {
  transform: translateY(105%);
  opacity: 0;
}

.js .animated h1.page-title.split > span > span {
  animation: reveal 0.6s var(--ease) forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
h2,
.h2 {
  font-weight: 700;
  font-size: clamp(29px, 3vw, 40px);
}

h3,
.h3 {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 0.4em;
}

h4,
.h4 {
  font-weight: 700;
  font-size: 17px;
}

.lead {
  font: 600 18px var(--font-body);
  line-height: 30px;
  color: var(--color-primary);
}

.eyebrow {
  display: inline-block;
  font: 600 13px var(--font-heading);
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-orange);
  margin-bottom: 10px;
}

/* Buttons */
.btn,
a.btn,
button.btn {
  display: inline-block;
  padding: 14px 34px;
  font: 600 15px var(--font-heading);
  line-height: 20px;
  letter-spacing: 0.5px;
  border: 0;
  border-radius: 50px;
  background: var(--color-orange);
  color: var(--color-white);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.btn:hover, .btn:focus-visible,
a.btn:hover,
a.btn:focus-visible,
button.btn:hover,
button.btn:focus-visible {
  background: var(--color-orange-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn.outline,
a.btn.outline,
button.btn.outline {
  background: transparent;
  color: var(--color-secondary);
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn.outline:hover,
a.btn.outline:hover,
button.btn.outline:hover {
  color: var(--color-orange);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Back to top */
#to-top {
  position: fixed;
  bottom: 30px;
  right: 15px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  cursor: pointer;
  transform: translateX(80px);
  z-index: 20;
  transition: transform ease-in-out 0.6s;
}
#to-top i {
  font-size: 16px;
}
#to-top.show {
  transform: translateX(0);
}

/* ==========================================================================
	Structure
	 ========================================================================== */
#wrapper {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto; /* Header, Main (expands), Footer */
}
#wrapper .container-fluid {
  position: relative;
  width: 100%;
  max-width: var(--container-max);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  margin: auto;
}
#wrapper .container-fluid.no-relative {
  position: static;
}

#main {
  position: relative;
}

/* Every flexible layout is a full-width <section class="layout"> */
.layout {
  padding: var(--section-pad) 0;
}
.layout.bg-grey {
  background: var(--color-grey-bg);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.image-left .media {
  order: -1;
}
@media only screen and (max-width: 959px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.media img {
  width: 100%;
  border-radius: var(--radius);
}

/* ==========================================================================
	Accessibility
	 ========================================================================== */
.accessibility a {
  position: absolute;
  font: 600 16px var(--font-body);
  line-height: 24px;
  background: var(--color-orange);
  color: var(--color-black);
  margin: 10px;
  padding: 12px 18px;
  left: -1000px;
  z-index: 2000;
}
.accessibility a:focus {
  left: 0;
  top: 0;
  outline: 3px solid var(--color-navy);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ==========================================================================
	Header
   ========================================================================== */
#global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-header);
  transition: box-shadow 0.3s;
}
#global-header.sticky {
  box-shadow: var(--shadow-header-sticky);
}
#global-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}
#global-header .logo {
  display: flex;
  align-items: center;
  height: 48px;
}
#global-header .logo svg,
#global-header .logo img {
  height: 100%;
  width: auto;
}
#global-header .logo-text {
  font: 700 22px var(--font-heading);
  line-height: 26px;
  color: var(--color-primary);
}
#global-header .header-middle {
  display: flex;
  align-items: center;
  margin-left: auto; /* push the menu to the right */
}
#global-header .header-right {
  margin-left: auto; /* mobile: keeps the menu button on the right */
}
@media only screen and (min-width: 960px) {
  #global-header .header-right {
    margin-left: 0; /* desktop: menu button is hidden, so the menu sits flush right */
  }
}
@media only screen and (max-width: 959px) {
  #global-header .header-middle {
    display: none;
  }
}
#global-header ul.header-nav {
  display: flex;
  gap: 32px;
}
#global-header ul.header-nav > li > a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font: 500 15px var(--font-heading);
  line-height: 22px;
  color: var(--color-primary);
}
#global-header ul.header-nav > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  transition: width 0.25s;
}
#global-header ul.header-nav > li > a:hover::after,
#global-header ul.header-nav > li.current-menu-item > a::after,
#global-header ul.header-nav > li.current-menu-ancestor > a::after,
#global-header ul.header-nav > li.current_page_item > a::after {
  width: 100%;
}
#global-header ul.header-nav > li {
  position: relative;
}
#global-header ul.header-nav > li:hover .sub-menu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#global-header ul.header-nav .sub-menu-wrapper {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 220px;
  padding: 10px 0;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s;
}
#global-header ul.header-nav .sub-menu-wrapper a {
  display: block;
  padding: 8px 20px;
  font: 500 14px var(--font-heading);
  line-height: 20px;
  color: var(--color-primary);
}

/* ==========================================================================
  Mobile Menu
   ========================================================================== */
.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 10px;
  color: var(--color-primary);
  cursor: pointer;
}
@media only screen and (max-width: 959px) {
  .menu-toggle {
    display: flex;
  }
}
.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  height: calc(100dvh - var(--header-height));
  width: 100%;
  background: var(--color-white);
  z-index: 999;
  overflow: hidden;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
@media only screen and (min-width: 960px) {
  .mobile-menu {
    display: none;
  }
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s ease;
}
.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--color-divider);
  font: 600 20px var(--font-heading);
  line-height: 24px;
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
}
.mobile-menu .current-menu-item > a {
  color: var(--color-orange);
}
.mobile-menu .menu-panel {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  height: 100%;
  padding: 10px 20px;
  background: var(--color-white);
  transition: left 0.3s ease;
}
.mobile-menu .menu-panel.is-active {
  left: 0;
}
.mobile-menu .back-button {
  color: var(--color-orange);
  padding-left: 24px;
  position: relative;
}
.mobile-menu .back-button::before {
  content: "\f053";
  font-family: var(--font-icons);
  font-weight: 900;
  position: absolute;
  left: 0;
}
.mobile-menu button.submenu-toggle {
  position: relative;
}
.mobile-menu button.submenu-toggle::after {
  content: "\f054";
  font-family: var(--font-icons);
  font-weight: 900;
  position: absolute;
  right: 10px;
}

/* ==========================================================================
	Billboard — video hero (home) + gradient banner (inner pages)
   ========================================================================== */
.billboard.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-navy-dark);
}
.billboard.hero .hero-video,
.billboard.hero .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
.billboard.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-navy-dark) 85%, transparent) 0%, color-mix(in srgb, var(--color-navy-dark) 45%, transparent) 100%);
}
.billboard.hero .container-fluid {
  z-index: 1;
}
.billboard.hero .hero-content {
  max-width: 720px;
  padding: 60px 0;
}
.billboard.hero h1 {
  color: var(--color-white);
  margin-bottom: 0.4em;
}
.billboard.hero .subheading {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 32px;
}
@media only screen and (max-width: 576px) {
  .billboard.hero .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  .billboard.hero h1.page-title {
    justify-content: center;
  }
  .billboard.hero .ctas {
    justify-content: center;
  }
}

/* Inner page banner.
   Photo is set per page with style="--banner-img: url(...)" from the Background image field. */
.billboard.page-banner {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 29vw, 580px);
  color: var(--color-white);
  background-color: var(--color-banner-blue);
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--color-banner-blue) 96%, transparent) 0%, color-mix(in srgb, var(--color-banner-blue) 85%, transparent) 30%, color-mix(in srgb, var(--color-banner-orange) 80%, transparent) 70%, color-mix(in srgb, var(--color-banner-orange) 92%, transparent) 100%), var(--banner-img, none);
  background-size: cover;
  background-position: center;
}
@media only screen and (max-width: 959px) {
  .billboard.page-banner {
    min-height: 300px;
  }
}
.billboard.page-banner .page-banner-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(48px, 5.5vw, 100px);
  padding-bottom: calc(min(12.5vw, 260px) + 32px);
}
@media only screen and (max-width: 959px) {
  .billboard.page-banner .page-banner-content {
    padding-bottom: calc(min(13vw, 90px) + 28px);
  }
}
.billboard.page-banner .page-banner-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(13px, 1vw, 17px);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.billboard.page-banner h1 {
  color: var(--color-white);
  font-size: clamp(29px, 2.8vw, 48px);
  font-weight: 600;
  max-width: 22ch;
  margin: 0;
}
.billboard.page-banner .subheading {
  margin: 12px 0 0;
  max-width: 50ch;
  opacity: 0.9;
}

/* Giant word that bleeds off the bottom edge */
.page-banner-word {
  position: absolute;
  z-index: 1;
  left: -0.03em;
  bottom: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(96px, 21vw, 416px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--color-white);
  white-space: nowrap;
  transform: translateY(18%);
  pointer-events: none;
  user-select: none;
}
@media only screen and (max-width: 959px) {
  .page-banner-word {
    font-size: clamp(72px, 22vw, 144px);
  }
}

/* ==========================================================================
	Content — flexible layouts
   ========================================================================== */
.description > :last-child,
.article-body > :last-child {
  margin-bottom: 0;
}

/* ---------- image_features_layout ---------- */
.image_features_layout .feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 28px;
  margin-top: 24px;
}
@media only screen and (max-width: 576px) {
  .image_features_layout .feature-grid {
    grid-template-columns: 1fr;
  }
}
.image_features_layout .feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.image_features_layout .feature h3 {
  margin-bottom: 6px;
}
.image_features_layout .feature p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}
.image_features_layout .feature-icon {
  flex: 0 0 56px;
  font-size: 44px;
  line-height: 1;
  text-align: center;
  color: var(--color-icon-grey);
  margin-top: 2px;
}

/* ---------- list_image_layout ---------- */
.tick-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin: 20px 0 36px;
}
@media only screen and (max-width: 576px) {
  .tick-list {
    grid-template-columns: 1fr;
  }
}
.tick-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
  color: var(--color-primary);
}
.tick-list li::before {
  content: "\f00c";
  font-family: var(--font-icons);
  font-weight: 900;
  font-size: 9px;
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-white);
}

@media only screen and (max-width: 959px) {
  .list_image_layout .media {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ---------- profile_layout ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}
@media only screen and (max-width: 959px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.profile-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}
@media only screen and (max-width: 959px) {
  .profile-card {
    position: static;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}
.profile-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.profile-card-body {
  padding: 22px 24px 26px;
  text-align: center;
}
.profile-card-body h4 {
  margin-bottom: 2px;
}

.profile-role {
  display: block;
  color: var(--color-muted);
  font-size: 15px;
  margin-bottom: 16px;
}

/* Pill link used for LinkedIn (profile card + footer) */
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--color-white) 30%, transparent);
  border-radius: 50px;
  font-size: 14px;
  line-height: 1.2;
}
.social.social-dark {
  color: var(--color-secondary);
  border-color: color-mix(in srgb, var(--color-navy) 25%, transparent);
}
.social.social-dark:hover {
  color: var(--color-orange);
  border-color: var(--color-orange);
}

/* ---------- form_layout ---------- */
.form-layout-grid {
  align-items: start;
}
.form-layout-grid .sticky-media {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}
@media only screen and (max-width: 959px) {
  .form-layout-grid .sticky-media {
    position: static;
    max-width: 420px;
    margin: 0 auto;
  }
}

.contact-details {
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.contact-details li {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.contact-details span {
  min-width: 60px;
  font: 600 13px var(--font-heading);
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-orange);
}
.contact-details a {
  font-weight: 600;
}

.form-wrap {
  margin-top: 32px;
}

/* ---------- Editor content fallback (plain pages) ---------- */
.editor-content .content {
  max-width: 820px;
}

/* ==========================================================================
	Stat band — "Connecting people since 2016" (sits above the footer)
   ========================================================================== */
.stat-band {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  background: linear-gradient(180deg, var(--color-band-top) 0%, var(--color-band-bottom) 100%);
  clip-path: inset(-100vw 0 0 0);
}
.stat-band .stat-band-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  min-height: clamp(200px, 22.7vw, 400px);
}
@media only screen and (max-width: 576px) {
  .stat-band .stat-band-inner {
    min-height: 170px;
    gap: 20px;
  }
}
.stat-band .stat-band-text {
  justify-self: end;
}
.stat-band h2 {
  color: var(--color-white);
  margin: 0;
  text-align: right;
  font-size: clamp(21px, 3.3vw, 51px);
  max-width: 11em;
}
@media only screen and (max-width: 576px) {
  .stat-band h2 {
    font-size: 21px;
  }
}
.stat-band .stat {
  position: relative;
  align-self: stretch;
}
.stat-band .stat-number {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translateY(12%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(144px, 37vw, 608px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--color-white);
  pointer-events: none;
  user-select: none;
}
@media only screen and (max-width: 576px) {
  .stat-band .stat-number {
    font-size: 46vw;
  }
}

/* Section above the band goes grey so the white number shows where it overlaps */
.layout-blocks:has(+ .stat-band) > .layout:last-child,
#main > .layout:has(+ .stat-band),
#main > .billboard:has(+ .stat-band) {
  background: var(--color-grey-bg);
}

/* ==========================================================================
	Footer
   ========================================================================== */
#global-footer {
  background: var(--color-navy-dark);
  color: color-mix(in srgb, var(--color-white) 80%, transparent);
}
#global-footer a {
  color: color-mix(in srgb, var(--color-white) 85%, transparent);
}
#global-footer a:hover {
  color: var(--color-orange);
}
#global-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}
@media only screen and (max-width: 576px) {
  #global-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}
#global-footer .logo {
  display: inline-flex;
  height: 56px;
  margin-bottom: 18px;
}
#global-footer .logo svg,
#global-footer .logo img {
  height: 100%;
  width: auto;
}
#global-footer .logo-text {
  font: 700 22px var(--font-heading);
  line-height: 26px;
  color: var(--color-white);
}
#global-footer .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#global-footer h4 {
  color: var(--color-white);
  font-size: 18px;
}
#global-footer .footer-contact li {
  margin-bottom: 6px;
}
#global-footer .footer-menu {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
}
#global-footer .footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--color-white) 10%, transparent);
  padding: 18px 0;
  font-size: 14px;
  text-align: center;
}
#global-footer .footer-bottom p {
  margin: 0;
}

/* ==========================================================================
	Forms — plugin-agnostic (Contact Form 7 markup, works for most form plugins)
	Layout helpers for the form markup:
	  .form-grid  two-column grid        .full  field spans both columns
   ========================================================================== */
.form-wrap {
  --field-border: var(--color-border);
  --field-radius: 6px;
  --field-focus: var(--color-navy);
}
.form-wrap form {
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
/* Fallback if a plugin still wraps fields in <p>: let the wrapper act as the grid item */
.form-grid > p {
  margin: 0;
}
.form-grid > p:has(> .full) {
  grid-column: 1 / -1;
}
.form-grid > p:empty,
.form-grid > br,
.form-grid label > br {
  display: none;
}
@media only screen and (max-width: 576px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-wrap label {
  display: block;
  font: 600 15px/22px var(--font-heading);
  color: var(--color-primary);
}
.form-wrap label > .wpcf7-form-control-wrap,
.form-wrap label > input,
.form-wrap label > select,
.form-wrap label > textarea {
  display: block;
  margin-top: 6px;
}
.form-wrap .req {
  color: var(--color-orange);
}

.form-wrap input[type="text"],
.form-wrap input[type="email"],
.form-wrap input[type="tel"],
.form-wrap input[type="url"],
.form-wrap input[type="number"],
.form-wrap select,
.form-wrap textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  background: var(--color-white);
  font: 400 16px/23px var(--font-body);
  color: var(--color-primary);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-wrap textarea {
  min-height: 140px;
  resize: vertical;
}
.form-wrap select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230f2447' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
}
.form-wrap input::placeholder,
.form-wrap textarea::placeholder {
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.form-wrap input:focus,
.form-wrap select:focus,
.form-wrap textarea:focus {
  outline: none;
  border-color: var(--field-focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-navy) 20%, transparent);
}

/* File upload */
.form-wrap input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed var(--field-border);
  border-radius: var(--field-radius);
  background: var(--color-white);
  font: 400 15px/22px var(--font-body);
  color: var(--color-text);
}
.form-wrap input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 8px 16px;
  border: 0;
  border-radius: 50px;
  background: var(--color-grey-bg);
  font: 600 14px/20px var(--font-heading);
  color: var(--color-primary);
  cursor: pointer;
}
.form-wrap .hint {
  display: block;
  margin-top: 6px;
  font: 400 13px/18px var(--font-body);
  color: var(--color-muted);
}

/* Checkbox / consent */
.form-wrap .wpcf7-acceptance label,
.form-wrap .consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font: 400 15px/22px var(--font-body);
  color: var(--color-text);
}
.form-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--color-orange);
  flex: 0 0 auto;
}

/* Submit — matches .btn */
.form-wrap input[type="submit"],
.form-wrap button[type="submit"] {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 34px;
  border: 0;
  border-radius: 50px;
  background: var(--color-orange);
  font: 600 15px/20px var(--font-heading);
  letter-spacing: 0.5px;
  color: var(--color-white);
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.25s;
}
.form-wrap input[type="submit"]:hover,
.form-wrap button[type="submit"]:hover {
  background: var(--color-orange-dark);
  transform: translateY(-2px);
}
.form-wrap input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* CF7 validation + responses */
.form-wrap .wpcf7-not-valid {
  border-color: #c0392b;
}
.form-wrap .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font: 400 13px/18px var(--font-body);
  color: #c0392b;
}
.form-wrap .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 18px;
  border: 0;
  border-left: 4px solid var(--color-navy);
  border-radius: 4px;
  background: var(--color-grey-bg);
  font: 400 15px/22px var(--font-body);
}
.form-wrap .wpcf7 form.sent .wpcf7-response-output {
  border-left-color: var(--color-band-bottom);
}
.form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.form-wrap .wpcf7 form.failed .wpcf7-response-output {
  border-left-color: #c0392b;
}
.form-wrap .wpcf7 form.submitting .wpcf7-spinner {
  vertical-align: middle;
  margin-left: 12px;
}
/* reCAPTCHA v3: badge hidden, required notice shown under the form instead */
.grecaptcha-badge {
  visibility: hidden !important;
}
.form-wrap .recaptcha-note {
  margin: 16px 0 0;
  font: 400 12px/18px var(--font-body);
  color: var(--color-muted);
}
.form-wrap .recaptcha-note a {
  color: inherit;
  text-decoration: underline;
}

/* Spam honeypot (see functions.php) — hidden from people, visible to bots */
.tarlai-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The few CF7 core display rules the theme needs (CF7's own stylesheet is switched off) */
.form-wrap .wpcf7 form .wpcf7-response-output:empty,
.form-wrap .wpcf7 form.init .wpcf7-response-output,
.form-wrap .wpcf7 form.resetting .wpcf7-response-output,
.form-wrap .wpcf7 form.submitting .wpcf7-response-output {
  display: none;
}
.form-wrap .wpcf7 .hidden-fields-container,
.form-wrap .wpcf7-display-none {
  display: none;
}
.form-wrap .wpcf7-form-control-wrap {
  position: relative;
}
.form-wrap .wpcf7-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-orange);
  border-radius: 50%;
  animation: wpcf7-spin 0.8s linear infinite;
}
.form-wrap .wpcf7 form.submitting .wpcf7-spinner {
  display: inline-block;
}
@keyframes wpcf7-spin {
  to {
    transform: rotate(360deg);
  }
}
.form-wrap .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ==========================================================================
	Animation — scroll reveal (driven by app.js)
	.animate-this   : direct children fade/rise in one after another
	.image-fade-in  : image fades in from a slight zoom
	.animate-marker : gets .animated when in view (billboard heading, big words, "16")
	Hidden states only apply when JS is running (.js on <html>).
   ========================================================================== */
.js .animate-this > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .animate-this.animated > * {
  opacity: 1;
  transform: translateY(0);
}
.js .image-fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .image-fade-in.animated {
  opacity: 1;
  transform: translateY(0);
}
.js .page-banner-content .page-banner-eyebrow,
.js .page-banner-content .subheading {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.8s var(--ease) 0.1s, translate 0.8s var(--ease) 0.1s;
}
.js .page-banner-content.animated .page-banner-eyebrow, .js .page-banner-content.animated .subheading {
  opacity: 1;
  translate: none;
}
.js .page-banner-word,
.js .stat-band .stat {
  opacity: 0;
  translate: 0 40px;
  transition: opacity 1.1s var(--ease), translate 1.1s var(--ease);
}
.js .page-banner-word.animated,
.js .stat-band .stat.animated {
  opacity: 1;
  translate: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .animate-this > *,
  .js .image-fade-in,
  .js .page-banner-word,
  .js .stat-band .stat,
  .js .page-banner-content .page-banner-eyebrow,
  .js .page-banner-content .subheading,
  .js h1.page-title.split > span > span {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    animation: none !important;
    transition: none !important;
  }
  .billboard.hero .hero-video {
    display: none;
  }
}