/*
Theme Name: TrueNorth
Theme URI: https://truenorthunited.sg
Author: TrueNorth United
Author URI: https://truenorthunited.sg
Description: Custom theme for TrueNorth United — Singapore lightning protection & electrical engineering specialist. Built directly from the approved HTML/CSS design mockup for pixel accuracy, with ACF for client-editable content.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: truenorth
*/

/* =========================================================
   1. CSS CUSTOM PROPERTIES — COLOR PALETTE
   ========================================================= */
:root {
  --tn-navy: #0E2A47;
  --tn-navy-dark: #16202C;
  --tn-navy-deep: #0B1B2D;
  --tn-gold: #F2C230;
  --tn-light-gray: #F5F7FA;
  --tn-white: #FFFFFF;

  --tn-text-body: #4E5C70;
  --tn-text-muted: #6A7789;
  --tn-text-dark: #34425A;
  --tn-text-nav: #44536A;
  --tn-text-eyebrow: #7D8A9A;
  --tn-text-on-navy: #A9B9CC;
  --tn-text-on-navy-muted: #9DB0C6;

  --tn-border: #E4E8EE;
  --tn-border-light: #E2E8EF;
  --tn-border-menu: #EEF2F6;
  --tn-border-tag: #D8DFE8;

  --tn-whatsapp: #25D366;
  --tn-whatsapp-hover: #1FB855;

  --tn-container: 1280px;
  --tn-header-height: 84px;
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; max-width: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  background: var(--tn-white);
  color: var(--tn-navy-dark);
  font-family: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--tn-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--tn-navy-dark); }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; color: var(--tn-navy); }

p { margin: 0; }

button { font-family: inherit; }

ul, ol { margin: 0; padding: 0; }

/* =========================================================
   3. LAYOUT UTILITIES
   ========================================================= */
.container {
  max-width: var(--tn-container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.section {
  padding: clamp(56px, 9vh, 100px) clamp(16px, 4vw, 40px);
}

.section--tight {
  padding: clamp(40px, 6vh, 64px) clamp(16px, 4vw, 40px);
}

.section--loose {
  padding: clamp(64px, 11vh, 124px) clamp(16px, 4vw, 40px) clamp(48px, 7vh, 80px);
}

.bg-white { background: var(--tn-white); }
.bg-light { background: var(--tn-light-gray); }
.bg-navy { background: var(--tn-navy); color: var(--tn-white); }
.bg-navy-dark { background: var(--tn-navy-dark); color: var(--tn-white); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--tn-text-eyebrow);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--tn-navy);
}
.bg-navy .eyebrow,
.bg-navy-dark .eyebrow { color: var(--tn-text-on-navy-muted); }
.bg-navy .eyebrow::before,
.bg-navy-dark .eyebrow::before { background: var(--tn-white); }

/* =========================================================
   4. BUTTONS
   Converts the source's style-hover="..." hack into real :hover rules.
   ========================================================= */

/* Primary: solid navy on light background */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--tn-navy);
  color: var(--tn-white);
}
.btn-primary:hover { background: var(--tn-navy-dark); color: var(--tn-white); }

.btn-secondary {
  border-color: var(--tn-navy);
  color: var(--tn-navy);
  background: transparent;
}
.btn-secondary:hover { background: var(--tn-navy); color: var(--tn-white); }

/* Light-on-dark variants: white solid / white outline, for use on navy backgrounds */
.btn-light {
  background: var(--tn-white);
  color: var(--tn-navy);
}
.btn-light:hover { background: #E2E8EF; }

.btn-outline-light {
  border-color: var(--tn-white);
  color: var(--tn-white);
  background: transparent;
}
.btn-outline-light:hover { background: var(--tn-white); color: var(--tn-navy); }

.btn-outline-light--dark:hover { color: var(--tn-navy-dark); }

/* Small nav-style contact button */
.btn-nav {
  background: var(--tn-navy);
  color: var(--tn-white);
  padding: 13px 22px;
  font-size: 12px;
}
.btn-nav:hover { background: var(--tn-navy-dark); }

/* =========================================================
   5. HEADER / DESKTOP NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--tn-white);
  border-bottom: 1px solid var(--tn-border);
  box-shadow: 0 2px 14px rgba(14, 42, 71, 0.06);
}

.site-header__inner {
  width: 100%;
  max-width: var(--tn-container);
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  height: var(--tn-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo { flex-shrink: 0; min-width: 0; }
.mobile-nav { flex-shrink: 0; }

.site-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  line-height: 1;
}
.site-logo img { height: 66px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--tn-text-nav);
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover,
.site-nav a.is-active {
  color: var(--tn-navy);
  border-bottom-color: var(--tn-navy);
}

.site-nav .btn-nav,
.site-nav .btn-nav:hover {
  border-bottom: none;
  color: var(--tn-white);
  padding: 13px 22px;
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: -16px;
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  min-width: 240px;
  background: var(--tn-white);
  border: 1px solid var(--tn-border);
  box-shadow: 0 14px 34px rgba(11, 27, 45, 0.16);
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  display: flex;
}

.nav-dropdown__menu a {
  display: block;
  padding: 13px 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #2E3A4C;
  border-bottom: 1px solid var(--tn-border-menu);
  white-space: nowrap;
}
.nav-dropdown__menu a:hover {
  background: var(--tn-navy);
  color: var(--tn-white);
}

/* =========================================================
   6. MOBILE NAV (<details>)
   ========================================================= */
.mobile-nav { display: none; }

.mobile-nav > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
}
.mobile-nav > summary::-webkit-details-marker { display: none; }

.mobile-nav__bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--tn-navy);
}
.mobile-nav__bar--short { width: 17px; }

.mobile-nav__panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--tn-header-height);
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  background: var(--tn-white);
  border-top: 1px solid var(--tn-border);
  box-shadow: 0 18px 34px rgba(11, 27, 45, 0.16);
  display: flex;
  flex-direction: column;
  z-index: 60;
}

.mobile-nav__panel a {
  display: block;
  padding: 15px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-navy);
  border-bottom: 1px solid var(--tn-border-menu);
}

.mobile-nav__panel a.is-sub {
  padding: 12px 26px 12px 42px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--tn-text-nav);
}

.mobile-nav__panel a.is-contact {
  margin: 16px 20px 22px;
  padding: 16px;
  text-align: center;
  background: var(--tn-navy);
  color: var(--tn-white);
  border-bottom: none;
}

/* =========================================================
   7. FOOTER
   ========================================================= */
.site-footer {
  background: var(--tn-light-gray);
  color: var(--tn-text-nav);
  border-top: 1px solid var(--tn-border-light);
  padding: clamp(42px, 7vh, 68px) clamp(16px, 4vw, 40px) 0;
}

.site-footer__grid {
  max-width: var(--tn-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 40px;
}

.site-footer__brand img { height: 84px; width: auto; }
.site-footer__brand p {
  font-size: 14px;
  line-height: 1.7;
  margin: 18px 0 0;
  max-width: 32ch;
  color: var(--tn-text-nav);
}

.site-footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tn-navy);
  margin-bottom: 18px;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
}

.site-footer__links a { color: var(--tn-text-nav); }
.site-footer__links a:hover { color: var(--tn-navy-dark); }

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__bottom {
  max-width: var(--tn-container);
  margin: 46px auto 0;
  padding: 20px 0 24px;
  border-top: 1px solid var(--tn-border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--tn-text-nav);
}

/* =========================================================
   8. CURSOR-FOLLOWING BOLT
   ========================================================= */
.cursor-bolt {
  position: fixed;
  z-index: 70;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-10px, -12px, 0);
  transition: opacity 0.2s ease;
  will-change: transform;
}
.cursor-bolt__svg {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(242, 194, 48, 0.75));
}

/* =========================================================
   9. WHATSAPP FLOATING BUTTON
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--tn-whatsapp);
  color: var(--tn-white);
  box-shadow: 0 12px 30px rgba(11, 27, 45, 0.3);
}
.whatsapp-float:hover { background: var(--tn-whatsapp-hover); color: var(--tn-white); }

.whatsapp-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: tnPing 2.4s ease-out infinite;
  pointer-events: none;
}

/* =========================================================
   10. KEYFRAMES
   ========================================================= */
@keyframes tnPing {
  0% { transform: scale(0.72); opacity: 0.85; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes tnRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tnMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes tnBob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(7px); opacity: 1; }
}

/* Marquee container/track, used by the stats ribbon on the homepage hero */
.marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: rgba(11, 27, 45, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: tnMarquee 38s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 46px;
  padding: 13px 23px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E3EAF3;
  white-space: nowrap;
}

/* =========================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 900px) {
  .site-nav { display: none !important; }
  .mobile-nav { display: block; }
}

@media (max-width: 640px) {
  .hero-rail { display: none !important; }
}

/* =========================================================
   10b. SCROLL SPINE (decorative charge-travel indicator)
   ========================================================= */
.tn-spine {
  position: absolute;
  top: 100vh;
  bottom: 96px;
  left: max(calc((100% - 1280px) / 2 - 54px), 8px);
  width: 46px;
  pointer-events: none;
  z-index: 3;
}
.tn-spine__track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.tn-spine__charge {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
}
.tn-spine__spark {
  position: absolute;
  left: 50%;
  top: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #FFF3C9;
  box-shadow: 0 0 14px 5px rgba(242, 194, 48, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tn-spine__earth {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -2px);
  color: rgba(125, 138, 154, 0.5);
  transition: color 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}
.tn-spine__earth.is-charged {
  color: var(--tn-gold);
  transform: translate(-50%, -2px) scale(1.08);
  filter: drop-shadow(0 0 12px rgba(242, 194, 48, 0.85));
}

@media (max-width: 640px) {
  .tn-spine { display: none !important; }
}

/* =========================================================
   12. HOME — HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: max(560px, calc(100vh - 84px));
  background: var(--tn-navy-deep);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(11, 27, 45, 0.86) 0%, rgba(11, 27, 45, 0.74) 45%, rgba(11, 27, 45, 0.9) 100%);
}
.hero__inner {
  position: relative;
  z-index: 3;
  min-height: max(560px, calc(100vh - 84px));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 8vh, 90px) clamp(20px, 6vw, 80px) clamp(78px, 11vh, 110px);
  animation: tnRise 0.7s ease both;
}
.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: clamp(20px, 3vh, 30px);
}
.hero__brand-top {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--tn-white);
}
.hero__brand-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.44em;
  color: rgba(255, 255, 255, 0.78);
}
.hero__brand-bottom::before,
.hero__brand-bottom::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.hero__eyebrow {
  font-size: clamp(10px, 1.4vw, 13px);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--tn-white);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: center;
}
@media (max-width: 480px) {
  .hero__eyebrow { letter-spacing: 0.12em; }
}
.hero__heading {
  font-size: clamp(34px, 5.4vw, 66px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--tn-white);
  margin: 18px 0 0;
  max-width: 24ch;
}
.hero__subhead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: #D6DEE8;
  margin: 20px 0 0;
  max-width: 48ch;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(32px, 5vh, 48px);
}
.hero__scroll {
  margin-top: clamp(26px, 4vh, 42px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hero__scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  animation: tnBob 2.2s ease-in-out infinite;
}

/* =========================================================
   13. STATEMENT SECTION
   ========================================================= */
.statement__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.statement__heading {
  font-size: clamp(27px, 3.4vw, 44px);
  line-height: 1.24;
  font-weight: 300;
  color: var(--tn-navy);
  margin: 26px 0 0;
  max-width: 20ch;
  text-wrap: pretty;
}
.statement__body-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.statement__body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--tn-text-body);
  font-weight: 300;
  max-width: 52ch;
}
.statement__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tn-navy);
  border-bottom: 2px solid var(--tn-navy);
  padding-bottom: 6px;
}

/* =========================================================
   14. PROTECTION CHAIN
   ========================================================= */
.chain__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: clamp(28px, 4vh, 44px);
}
.chain__head h2 {
  font-size: clamp(23px, 2.6vw, 32px);
  color: var(--tn-white);
}
.chain__intro {
  font-size: 13px;
  line-height: 1.6;
  color: var(--tn-text-on-navy-muted);
  max-width: 46ch;
}
.chain__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.chain__item {
  background: var(--tn-navy);
  padding: clamp(24px, 3vw, 34px) clamp(18px, 2vw, 28px) clamp(28px, 4vw, 40px);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.chain__number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--tn-white);
}
.chain__title {
  font-size: 18px;
  font-weight: 700;
  margin: 14px 0 10px;
  color: var(--tn-white);
}
.chain__desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--tn-text-on-navy);
  font-weight: 300;
}

/* =========================================================
   15. HOW WE WORK
   ========================================================= */
.how {
  max-width: 1180px;
  margin: 0 auto;
}
.how__heading {
  font-size: clamp(25px, 3.1vw, 40px);
  line-height: 1.26;
  font-weight: 300;
  color: var(--tn-navy);
  margin: 24px 0 0;
  max-width: 26ch;
  text-wrap: pretty;
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(22px, 3vw, 52px);
  margin-top: clamp(34px, 5vh, 58px);
}
.how__item {
  border-top: 2px solid var(--tn-navy);
  padding-top: 18px;
  min-width: 0;
}
.how__item-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--tn-navy-dark);
}
.how__item-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--tn-text-muted);
  font-weight: 300;
  margin-top: 9px;
}

/* =========================================================
   16. EXPERTISE / STICKY GALLERY
   ========================================================= */
.expertise__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin: 24px 0 clamp(34px, 5vh, 60px);
}
.expertise__heading {
  font-size: clamp(25px, 3.1vw, 40px);
  font-weight: 300;
  line-height: 1.24;
  color: var(--tn-navy);
  margin: 0;
  max-width: 22ch;
  text-wrap: pretty;
}
.expertise__body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--tn-text-body);
  font-weight: 300;
  max-width: 50ch;
}
.expertise__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tn-navy);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.gallery__media-col {
  align-self: stretch;
  min-width: 0;
}
.gallery__sticky {
  position: sticky;
  top: 108px;
}
.gallery__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - 230px);
  background: var(--tn-border-menu);
  overflow: hidden;
}
.gallery__image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.5s ease, transform 0.7s ease;
  pointer-events: none;
}
.gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__image.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.gallery__readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 2px solid var(--tn-navy);
  padding-top: 13px;
  margin-top: 14px;
}
.gallery__readout-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tn-navy);
}
.gallery__readout-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #5D6B80;
}

.gallery__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 44px);
  min-width: 0;
  padding-bottom: 160px;
}
.gallery__row {
  appearance: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  display: block;
  width: 100%;
  min-height: min(58vh, 440px);
  border: 0;
  border-top: 2px solid var(--tn-border-tag);
  padding: 16px 0 0;
  transition: border-color 0.3s ease;
  text-align: left;
}
.gallery__row.is-active {
  border-top-color: var(--tn-navy);
}
.gallery__row-inner {
  display: grid;
  grid-template-columns: minmax(0, 36px) minmax(0, 1fr);
  gap: 4px 16px;
  align-items: start;
}
.gallery__row-letter {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.2;
  color: #5D6B80;
}
.gallery__row-title {
  display: block;
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--tn-navy);
}
.gallery__row-desc {
  display: block;
  font-size: 15px;
  line-height: 1.75;
  color: #5D6B80;
  font-weight: 300;
  margin-top: 10px;
  max-width: 46ch;
}
.gallery__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 16px;
}
.gallery__tag {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tn-text-nav);
  border: 1px solid var(--tn-border-tag);
  padding: 7px 12px;
}

@media (max-width: 900px) {
  .gallery__sticky { position: static !important; }
  .gallery__rows { padding-bottom: 0; }
  .gallery__row { min-height: 0; }
}
@media (max-width: 560px) {
  .gallery__frame { max-height: none !important; }
}

/* =========================================================
   17. STANDARDS ROW
   ========================================================= */
.standards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(20px, 3vw, 48px);
}
.standards__item {
  border-left: 2px solid var(--tn-navy);
  padding-left: 20px;
}
.standards__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--tn-navy);
}
.standards__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--tn-text-muted);
  margin-top: 7px;
  font-weight: 300;
}

/* =========================================================
   18. CTA BANNER
   ========================================================= */
.cta-banner__inner {
  max-width: var(--tn-container);
  margin: 0 auto;
  padding: clamp(38px, 6vh, 62px) clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}
.cta-banner__heading {
  font-size: clamp(23px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.18;
  max-width: 22ch;
  color: var(--tn-white);
}
.cta-banner__body {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 48ch;
  color: #AEB8C4;
}
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

/* =========================================================
   19. CONTACT SECTION
   ========================================================= */
.contact-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
}
.contact-block__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--tn-text-eyebrow);
}
.contact-block__heading {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.14;
  color: var(--tn-navy);
  margin: 14px 0 30px;
}
.contact-block__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  gap: 6px 20px;
  border-top: 1px solid var(--tn-border-light);
  padding: 16px 0;
}
.contact-block__row:last-of-type { border-bottom: 1px solid var(--tn-border-light); }
.contact-block__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9AA6B5;
}
.contact-block__value {
  grid-column: span 2;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tn-text-dark);
  min-width: 0;
}
.contact-block__value--phone {
  font-size: 18px;
  font-weight: 600;
  color: var(--tn-navy);
}
.contact-block__note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--tn-text-muted);
  margin-top: 22px;
  font-weight: 300;
  max-width: 46ch;
}
.contact-block__map {
  min-height: 360px;
  border: 1px solid var(--tn-border-light);
  background: var(--tn-light-gray);
}
.contact-block__map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.05);
}

/* =========================================================
   20. SERVICES PAGE
   ========================================================= */
.services-hero {
  background: var(--tn-navy);
  color: var(--tn-white);
  padding: clamp(52px, 9vh, 98px) clamp(16px, 4vw, 40px) clamp(44px, 7vh, 80px);
}
.services-hero__inner {
  max-width: var(--tn-container);
  margin: 0 auto;
  animation: tnRise 0.7s ease both;
}
.services-hero__eyebrow {
  color: var(--tn-text-on-navy-muted);
}
.services-hero__eyebrow::before { background: var(--tn-white); }
.services-hero h1 {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 300;
  line-height: 1.16;
  margin: 22px 0 0;
  max-width: 22ch;
  color: var(--tn-white);
  text-wrap: pretty;
}
.services-hero p {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: #C4D1E0;
  font-weight: 300;
  margin: 22px 0 0;
  max-width: 58ch;
}

.services-cta {
  background: var(--tn-navy);
  color: var(--tn-white);
  padding: clamp(44px, 7vh, 84px) clamp(16px, 4vw, 40px);
}
.services-cta__inner {
  max-width: var(--tn-container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.services-cta__heading {
  font-size: clamp(21px, 2.4vw, 31px);
  font-weight: 300;
  color: var(--tn-white);
  max-width: 28ch;
  text-wrap: pretty;
}
.services-cta__body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--tn-text-on-navy);
  font-weight: 300;
  margin-top: 10px;
  max-width: 50ch;
}

/* =========================================================
   21. ABOUT PAGE
   ========================================================= */
.about-hero {
  background: var(--tn-navy);
  color: var(--tn-white);
  padding: clamp(64px, 12vh, 128px) clamp(16px, 4vw, 40px) clamp(56px, 9vh, 104px);
}
.about-hero__inner {
  max-width: var(--tn-container);
  margin: 0 auto;
  animation: tnRise 0.7s ease both;
}
.about-hero__eyebrow { color: var(--tn-text-on-navy-muted); }
.about-hero__eyebrow::before { background: var(--tn-white); }
.about-hero h1 {
  font-size: clamp(32px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 26px 0 0;
  max-width: 18ch;
  color: var(--tn-white);
  text-wrap: pretty;
}
.about-hero p {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: var(--tn-text-on-navy);
  font-weight: 300;
  margin: 28px 0 0;
  max-width: 56ch;
}

.about-profile__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.about-profile__heading {
  font-size: clamp(24px, 2.9vw, 38px);
  line-height: 1.3;
  font-weight: 300;
  color: var(--tn-navy);
  margin: 0;
  max-width: 22ch;
  text-wrap: pretty;
}
.about-profile__body-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about-profile__body-col p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--tn-text-body);
  font-weight: 300;
  max-width: 54ch;
}

.about-name__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}
.about-name__heading {
  font-size: clamp(27px, 3.2vw, 42px);
  font-weight: 300;
  line-height: 1.22;
  margin: 24px 0 0;
  max-width: 16ch;
  color: var(--tn-white);
  text-wrap: pretty;
}
.about-name__body {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--tn-text-on-navy);
  font-weight: 300;
  margin: 24px 0 0;
  max-width: 46ch;
}
.about-name__highlight {
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  padding-left: clamp(20px, 3vw, 38px);
}
.about-name__highlight p {
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.7;
  font-weight: 300;
  color: var(--tn-white);
  margin: 0;
  max-width: 40ch;
  text-wrap: pretty;
}

.about-mv__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(26px, 4vw, 64px);
}
.about-mv__item {
  border-top: 2px solid var(--tn-navy);
  padding-top: 22px;
}
.about-mv__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tn-text-eyebrow);
}
.about-mv__body {
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.6;
  font-weight: 300;
  color: var(--tn-navy);
  margin: 18px 0 0;
  max-width: 34ch;
  text-wrap: pretty;
}

.about-cta__inner {
  max-width: var(--tn-container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.about-cta__heading {
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 300;
  color: var(--tn-navy);
  max-width: 30ch;
  text-wrap: pretty;
}
.about-cta__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--tn-text-muted);
  font-weight: 300;
  margin-top: 10px;
  max-width: 50ch;
}

/* =========================================================
   22. BLOG — LISTING
   ========================================================= */
.blog-hero {
  background: var(--tn-navy);
  color: var(--tn-white);
  padding: clamp(56px, 10vh, 108px) clamp(16px, 4vw, 40px) clamp(48px, 8vh, 88px);
}
.blog-hero__inner {
  max-width: var(--tn-container);
  margin: 0 auto;
  animation: tnRise 0.7s ease both;
}
.blog-hero__eyebrow { color: var(--tn-text-on-navy-muted); }
.blog-hero__eyebrow::before { background: var(--tn-white); }
.blog-hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 300;
  line-height: 1.12;
  margin: 24px 0 0;
  max-width: 20ch;
  color: var(--tn-white);
  text-wrap: pretty;
}
.blog-hero p {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--tn-text-on-navy);
  font-weight: 300;
  margin: 24px 0 0;
  max-width: 56ch;
}

.blog-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  color: var(--tn-navy);
}
.blog-featured:hover { color: var(--tn-navy-dark); }
.blog-featured__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: var(--tn-border-menu);
  min-width: 0;
  overflow: hidden;
}
.blog-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured__body { min-width: 0; }
.blog-featured__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #5D6B80;
}
.blog-featured__tag {
  background: var(--tn-navy);
  color: var(--tn-white);
  padding: 6px 11px;
  letter-spacing: 0.18em;
}
.blog-featured__body h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  margin: 18px 0 0;
  max-width: 20ch;
  color: inherit;
  text-wrap: pretty;
}
.blog-featured__excerpt {
  font-size: 16.5px;
  line-height: 1.8;
  color: #5D6B80;
  font-weight: 300;
  margin: 16px 0 0;
  max-width: 52ch;
}
.blog-featured__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 2px solid var(--tn-navy);
  padding-top: 22px;
  margin-bottom: clamp(28px, 4vh, 48px);
}
.blog-filters__item {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tn-text-nav);
  border: 1px solid var(--tn-border-tag);
  padding: 8px 14px;
}
.blog-filters__item.is-active {
  font-weight: 700;
  background: var(--tn-navy);
  color: var(--tn-white);
  border-color: var(--tn-navy);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(30px, 4vw, 56px);
}
.blog-card { display: block; min-width: 0; color: var(--tn-navy); }
.blog-card:hover { color: var(--tn-navy-dark); }
.blog-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--tn-border-menu);
  overflow: hidden;
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body {
  border-top: 2px solid var(--tn-navy);
  padding-top: 16px;
  margin-top: 18px;
}
.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5D6B80;
}
.blog-card__title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.26;
  margin-top: 12px;
  color: inherit;
}
.blog-card__excerpt {
  display: block;
  font-size: 15px;
  line-height: 1.75;
  color: #5D6B80;
  font-weight: 300;
  margin-top: 10px;
  max-width: 42ch;
}
.blog-empty {
  font-size: 16px;
  color: var(--tn-text-muted);
  font-weight: 300;
}

.blog-subscribe {
  background: var(--tn-light-gray);
  padding: clamp(46px, 8vh, 88px) clamp(16px, 4vw, 40px);
}
.blog-subscribe__inner {
  max-width: var(--tn-container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.blog-subscribe__heading {
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 300;
  color: var(--tn-navy);
  max-width: 28ch;
  text-wrap: pretty;
}
.blog-subscribe__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--tn-text-muted);
  font-weight: 300;
  margin-top: 10px;
  max-width: 48ch;
}

/* =========================================================
   23. BLOG — SINGLE POST
   ========================================================= */
.post-head {
  background: var(--tn-white);
  max-width: var(--tn-container);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 76px) clamp(16px, 4vw, 40px) 0;
  box-sizing: border-box;
}
.post-head__inner {
  max-width: 760px;
  animation: tnRise 0.6s ease both;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5D6B80;
}
.post-back:hover { color: var(--tn-navy); }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #5D6B80;
}
.post-meta__tag {
  background: var(--tn-navy);
  color: var(--tn-white);
  padding: 6px 11px;
  letter-spacing: 0.18em;
}
.post-head h1 {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--tn-navy);
  margin: 20px 0 0;
  text-wrap: pretty;
}
.post-lede {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.72;
  color: var(--tn-text-nav);
  font-weight: 300;
  margin: 22px 0 0;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--tn-border-tag);
  margin-top: 30px;
  padding-top: 18px;
}
.post-byline__mark {
  width: 44px;
  height: 44px;
  background: var(--tn-navy);
  color: var(--tn-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex: none;
}
.post-byline__name { font-size: 15px; font-weight: 700; color: var(--tn-navy-dark); }
.post-byline__role { font-size: 13.5px; color: #5D6B80; font-weight: 300; }

.post-lead-img {
  background: var(--tn-white);
  max-width: var(--tn-container);
  margin: 0 auto;
  padding: clamp(30px, 5vh, 52px) clamp(16px, 4vw, 40px) 0;
  box-sizing: border-box;
}
.post-lead-img__inner { max-width: 1080px; }
.post-lead-img__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--tn-border-menu);
  overflow: hidden;
}
.post-lead-img__frame img { width: 100%; height: 100%; object-fit: cover; }
.post-lead-img__caption {
  font-size: 12.5px;
  color: #5D6B80;
  font-weight: 300;
  margin-top: 10px;
}

.post-article {
  background: var(--tn-white);
  max-width: var(--tn-container);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 74px) clamp(16px, 4vw, 40px) clamp(50px, 8vh, 88px);
  box-sizing: border-box;
}
.entry-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.entry-content p {
  font-size: 18px;
  line-height: 1.85;
  color: #2E3A4C;
  font-weight: 300;
  margin: 0;
}
.entry-content h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--tn-navy);
  margin: 14px 0 0;
}
.entry-content blockquote,
.entry-content .post-pullquote {
  border-left: 3px solid var(--tn-gold);
  padding: 4px 0 4px 22px;
  margin: 8px 0;
}
.entry-content blockquote p,
.entry-content .post-pullquote p {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  font-weight: 300;
  color: var(--tn-navy);
  text-wrap: pretty;
}
.entry-content ol.post-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.entry-content ol.post-steps li {
  display: grid;
  grid-template-columns: minmax(0, 34px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-top: 1px solid var(--tn-border-tag);
  padding-top: 14px;
}
.post-steps__num {
  font-size: 16px;
  font-weight: 300;
  color: #5D6B80;
}
.entry-content ol.post-steps li span:last-child {
  font-size: 16.5px;
  line-height: 1.75;
  color: #2E3A4C;
  font-weight: 300;
}
.entry-content figure.post-figure {
  margin: 12px 0;
}
.entry-content figure.post-figure img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--tn-border-menu);
}
.entry-content figure.post-figure figcaption {
  font-size: 12.5px;
  color: #5D6B80;
  font-weight: 300;
  margin-top: 10px;
}

.post-cta {
  background: var(--tn-navy);
  color: var(--tn-white);
  padding: clamp(46px, 8vh, 86px) clamp(16px, 4vw, 40px);
}
.post-cta__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.post-cta__heading {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 300;
  color: var(--tn-white);
  max-width: 28ch;
  text-wrap: pretty;
}
.post-cta__body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--tn-text-on-navy);
  font-weight: 300;
  margin-top: 10px;
  max-width: 50ch;
}

.post-related {
  background: var(--tn-white);
  padding: clamp(46px, 8vh, 90px) clamp(16px, 4vw, 40px);
}
.post-related__inner { max-width: var(--tn-container); margin: 0 auto; }
.post-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(26px, 4vw, 52px);
}
.post-related__card {
  display: block;
  min-width: 0;
  color: var(--tn-navy);
  border-top: 2px solid var(--tn-navy);
  padding-top: 16px;
}
.post-related__card:hover { color: var(--tn-navy-dark); }
.post-related__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5D6B80;
}
.post-related__title {
  display: block;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.28;
  margin-top: 12px;
  color: inherit;
}

/* =========================================================
   24. CONTACT PAGE
   ========================================================= */
.contact-hero {
  background: var(--tn-navy);
  color: var(--tn-white);
  padding: clamp(54px, 9vh, 100px) clamp(16px, 4vw, 40px) clamp(46px, 8vh, 84px);
}
.contact-hero__inner {
  max-width: var(--tn-container);
  margin: 0 auto;
  animation: tnRise 0.7s ease both;
}
.contact-hero__eyebrow { color: var(--tn-text-on-navy-muted); }
.contact-hero__eyebrow::before { background: var(--tn-white); }
.contact-hero h1 {
  font-size: clamp(31px, 4.6vw, 56px);
  font-weight: 300;
  line-height: 1.14;
  margin: 24px 0 0;
  max-width: 20ch;
  color: var(--tn-white);
  text-wrap: pretty;
}
.contact-hero p {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--tn-text-on-navy);
  font-weight: 300;
  margin: 24px 0 0;
  max-width: 54ch;
}

.contact-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.contact-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #5D6B80;
  border-top: 2px solid var(--tn-navy);
  padding-top: 18px;
}

.contact-success {
  border: 1px solid var(--tn-border-tag);
  background: var(--tn-light-gray);
  padding: 22px 24px;
  margin-top: 26px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--tn-navy-dark);
  font-weight: 500;
}
.contact-error {
  border: 1px solid #D8523D;
  background: #FBECEA;
  padding: 18px 22px;
  margin-top: 26px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #8A2A1C;
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.contact-form label span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tn-navy-dark);
}
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--tn-border-tag);
  background: var(--tn-white);
  padding: 14px 15px;
  font-size: 15px;
  color: var(--tn-navy-dark);
  min-width: 0;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--tn-navy);
  outline-offset: -2px;
}
.contact-form textarea { resize: vertical; }
.contact-form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 18px;
}
.contact-form__need { display: flex; flex-direction: column; gap: 10px; }
.contact-form__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-form__chip {
  appearance: none;
  font: inherit;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 11px 16px;
  border: 1px solid var(--tn-border-tag);
  background: var(--tn-white);
  color: var(--tn-text-nav);
  transition: all 0.2s ease;
}
.contact-form__chip.is-active {
  border-color: var(--tn-navy);
  background: var(--tn-navy);
  color: var(--tn-white);
}
.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.contact-form__hint {
  font-size: 13.5px;
  color: #5D6B80;
  font-weight: 300;
}

.contact-info { display: flex; flex-direction: column; margin-top: 22px; }
.contact-info__row {
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 1fr);
  gap: 8px 20px;
  border-bottom: 1px solid var(--tn-border-light);
  padding: 16px 0;
}
.contact-info__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5D6B80;
}
.contact-info__value {
  font-size: 15.5px;
  line-height: 1.7;
  color: #2E3A4C;
  font-weight: 300;
}
.contact-info__value--link {
  color: var(--tn-navy);
  font-weight: 600;
}
.contact-info__wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  border: 2px solid var(--tn-navy);
  color: var(--tn-navy);
  padding: 14px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-info__wa:hover { background: var(--tn-navy); color: var(--tn-white); }

.contact-next {
  background: var(--tn-light-gray);
  padding: clamp(46px, 8vh, 88px) clamp(16px, 4vw, 40px);
}
.contact-next__heading {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 300;
  color: var(--tn-navy);
  max-width: 24ch;
  text-wrap: pretty;
}
.contact-next__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(22px, 3vw, 52px);
  margin-top: clamp(28px, 4vh, 48px);
}
.contact-next__item { border-top: 2px solid var(--tn-navy); padding-top: 18px; min-width: 0; }
.contact-next__num { font-size: 20px; font-weight: 300; color: #5D6B80; }
.contact-next__title { font-size: 17px; font-weight: 700; color: var(--tn-navy-dark); margin-top: 8px; }
.contact-next__desc { font-size: 15px; line-height: 1.75; color: #5D6B80; font-weight: 300; margin-top: 9px; }

.contact-map {
  position: relative;
  width: 100%;
  height: clamp(280px, 44vh, 440px);
  background: var(--tn-border-menu);
  filter: grayscale(1) contrast(1.05);
}
.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================================
   25. SERVICE DETAIL PAGE
   Shared by Lightning Protection Systems, Earthing & Bonding,
   Electrical Works (page-service-detail.php).
   ========================================================= */
.svc-detail-hero {
  background: var(--tn-navy);
  color: var(--tn-white);
  padding: clamp(52px, 9vh, 98px) clamp(16px, 4vw, 40px) clamp(44px, 7vh, 80px);
}
.svc-detail-hero__inner {
  max-width: var(--tn-container);
  margin: 0 auto;
  animation: tnRise 0.7s ease both;
}
.svc-detail-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tn-text-on-navy-muted);
}
.svc-detail-hero__breadcrumb a { color: var(--tn-text-on-navy-muted); }
.svc-detail-hero__breadcrumb a:hover { color: var(--tn-white); }
.svc-detail-hero__breadcrumb .is-current { color: var(--tn-white); }
.svc-detail-hero h1 {
  font-size: clamp(31px, 4.6vw, 56px);
  font-weight: 300;
  line-height: 1.14;
  margin: 22px 0 0;
  max-width: 20ch;
  color: var(--tn-white);
  text-wrap: pretty;
}
.svc-detail-hero h1 strong { font-weight: 800; }
.svc-detail-hero p {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: #C4D1E0;
  font-weight: 300;
  margin: 22px 0 0;
  max-width: 62ch;
}

.svc-detail-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}
.svc-detail-media-col {
  align-self: stretch;
  min-width: 0;
}
.svc-detail-media {
  position: sticky;
  top: 108px;
}
.svc-detail-media__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - 220px);
  background: var(--tn-border-menu);
  overflow: hidden;
}
.svc-detail-media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-detail-chips {
  border-top: 2px solid var(--tn-navy);
  padding-top: 13px;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.svc-detail-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tn-text-nav);
  border: 1px solid var(--tn-border-tag);
  padding: 8px 13px;
}
.svc-detail-chip:hover {
  border-color: var(--tn-navy);
  color: var(--tn-navy);
}

.svc-detail-sections {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 5vh, 58px);
}
.svc-detail-item {
  scroll-margin-top: 108px;
  border-top: 2px solid var(--tn-navy);
  padding-top: 18px;
}
.svc-detail-item__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #5D6B80;
}
.svc-detail-item__heading {
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--tn-navy);
  margin: 10px 0 0;
}
.svc-detail-item__body {
  font-size: 16.5px;
  line-height: 1.82;
  color: #2E3A4C;
  font-weight: 300;
  margin: 12px 0 0;
  max-width: 62ch;
}

.svc-detail-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}
.svc-detail-feature {
  border-top: 1px solid var(--tn-border-tag);
  padding-top: 14px;
}
.svc-detail-feature__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tn-navy-dark);
}
.svc-detail-feature__desc {
  font-size: 15.5px;
  line-height: 1.78;
  color: #5D6B80;
  font-weight: 300;
  margin-top: 7px;
  max-width: 58ch;
}

.svc-detail-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.svc-detail-bullet {
  display: grid;
  grid-template-columns: minmax(0, 28px) minmax(0, 1fr);
  gap: 12px;
  border-top: 1px solid var(--tn-border-tag);
  padding-top: 12px;
}
.svc-detail-bullet__dot {
  color: var(--tn-gold);
  font-size: 16px;
  line-height: 1.6;
}
.svc-detail-bullet__text {
  font-size: 15.5px;
  line-height: 1.78;
  color: #2E3A4C;
  font-weight: 300;
}

.svc-detail-pullquote {
  border-left: 3px solid var(--tn-gold);
  padding: 4px 0 4px 20px;
  margin-top: 24px;
}
.svc-detail-pullquote p {
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.55;
  font-weight: 300;
  color: var(--tn-navy);
  margin: 0;
  max-width: 46ch;
  text-wrap: pretty;
}

.svc-detail-other__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(22px, 3vw, 48px);
}
.svc-detail-other__card {
  display: block;
  border-top: 2px solid var(--tn-navy);
  padding-top: 16px;
  color: var(--tn-navy);
  min-width: 0;
}
.svc-detail-other__card:hover { color: var(--tn-navy-dark); }
.svc-detail-other__card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.24;
}
.svc-detail-other__card-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #5D6B80;
  font-weight: 300;
  margin-top: 9px;
  max-width: 42ch;
}

@media (max-width: 900px) {
  .svc-detail-media { position: static !important; }
}
@media (max-width: 560px) {
  .svc-detail-media__frame { max-height: none !important; }
}
