/* ============================================================
   TRISCOPE — Trelity-style design system
   Layout/typography matched to trelity.com
   Color palette: Triscope brand
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,600;0,700;0,800;1,700&family=Signika+Negative:wght@400;500;600;700&display=swap');

:root {
  --white:          #ffffff;
  --off-white:      #F4F1EB;
  --soft-surface:   #E5E2DC;
  --arch-gray:      #7C8287;
  --steel-blue:     #58738A;
  --steel-blue-dk:  #3e5870;
  --deep-graphite:  #1F2326;
  --near-black:     #111416;
  --border:         #d4d1cb;
  --text-body:      #333333;
  --text-muted:     #7C8287;

  /* Trelity structural colors mapped to Triscope palette */
  --blue-bg:        #1F2326;
  --blue-heading:   #58738A;
  --teal-btn:       #58738A;
  --teal-btn-hover: #3e5870;
  --accent-bar:     #7C8287;
  --mint-col:       #E8EDE8;
  --faq-teal:       #58738A;
  --footer-lime:    #7C8287;

  --font-heading: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Signika Negative', 'Helvetica Neue', Arial, sans-serif;

  --max-width:    1240px;
  --header-h:     130px;
  --transition:   0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--blue-heading);
  line-height: 1.15;
  font-weight: 700;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--blue-heading);
  line-height: 1.15;
}

.section-heading--white { color: var(--white); }
.section-heading--dark  { color: var(--blue-heading); }

.body-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-body);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.btn--teal {
  background: var(--teal-btn);
  color: var(--white);
}
.btn--teal:hover { background: var(--teal-btn-hover); }

.btn--white {
  background: var(--white);
  color: var(--blue-bg);
}
.btn--white:hover { background: var(--off-white); }

.btn--outline {
  background: transparent;
  color: var(--blue-heading);
  border: 2px solid var(--blue-heading);
  border-radius: 999px;
}
.btn--outline:hover {
  background: var(--blue-heading);
  color: var(--white);
}

.btn--lg { font-size: 0.9375rem; padding: 16px 40px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header__inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-header__logo img {
  width: 280px;
  height: auto;
  object-fit: contain;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.site-header__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-header__links a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--near-black);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.site-header__links a.active,
.site-header__links a:hover { color: var(--steel-blue); }

.site-header__links a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--near-black);
}

.site-header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.site-header__hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--near-black);
  transition: all 0.3s ease;
}

.site-header__mobile {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: var(--white);
  padding: 24px 48px 32px;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.site-header__mobile.open { display: flex; }
.site-header__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--near-black);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.site-header__mobile a:hover {
  color: var(--steel-blue);
}

/* ============================================================
   INTRO HERO — full-bleed image with centered overlay
   (Franklin Ellis style opening screen)
   ============================================================ */
.intro-hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 480px;
  overflow: hidden;
  background: var(--near-black);
}

.intro-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Light overall darkening so the image never fights the UI */
.intro-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17,20,22,0.22) 0%,
    rgba(17,20,22,0.08) 45%,
    rgba(17,20,22,0.38) 100%
  );
}

.intro-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

/* Full-bleed dark band running across the image, behind the text */
.intro-hero__band {
  position: relative;
  padding: 30px 24px 34px;
  width: 100%;
}

.intro-hero__band::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: rgba(17,20,22,0.82);
  z-index: -1;
}

.intro-hero__label {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
}

.intro-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
}

/* Scroll-down chevron */
.intro-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
}

.intro-hero__scroll span {
  display: block;
  width: 18px;
  height: 18px;
  border-right: 2px solid rgba(255,255,255,0.85);
  border-bottom: 2px solid rgba(255,255,255,0.85);
  transform: rotate(45deg);
}

.intro-hero__scroll span:last-child { opacity: 0.5; margin-top: -10px; }

.intro-hero__scroll:hover span { border-color: var(--white); }

@media (prefers-reduced-motion: no-preference) {
  .intro-hero__scroll { animation: intro-hero-bob 2.2s ease-in-out infinite; }
}

@keyframes intro-hero-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* Offset the smooth-scroll target so the sticky header doesn't cover it */
#home-hero { scroll-margin-top: var(--header-h); }

/* ============================================================
   HOME HERO — split layout
   ============================================================ */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
  min-height: 620px;
}

.home-hero__image {
  position: relative;
  overflow: hidden;
}

.home-hero__image img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center;
}

.home-hero__text {
  background: var(--blue-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  position: relative;
}

.home-hero__accent {
  width: 48px;
  height: 6px;
  background: var(--accent-bar);
  margin-bottom: 32px;
}

.home-hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0;
}

.home-hero__headline em {
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--steel-blue);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* ============================================================
   TRUST / LOGOS STRIP
   ============================================================ */
.trust-section {
  padding: 80px 48px;
  background: var(--white);
  text-align: center;
}

.trust-section__inner { max-width: var(--max-width); margin: 0 auto; }

.trust-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--blue-heading);
  margin-bottom: 48px;
  line-height: 1.3;
}

.trust-section__subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--arch-gray);
  margin-bottom: 24px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

/* Service labels — thin top rule per label, Franklin Ellis style */
.trust-logos__item {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--arch-gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 2px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}

.trust-logos__item:hover {
  color: var(--steel-blue);
  border-top-color: var(--steel-blue);
}

.trust-logos__nums {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.trust-logos__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-heading);
}

/* ============================================================
   QUOTE / REASSURANCE
   ============================================================ */
.quote-section {
  padding: 100px 48px;
  background: var(--off-white);
}

.quote-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.quote-section__question {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 700;
  font-style: italic;
  color: var(--steel-blue);
  line-height: 1.25;
  margin-bottom: 16px;
  position: relative;
  padding-left: 0;
  padding-bottom: 20px;
}

.quote-section__question::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--steel-blue) 0%, var(--steel-blue-dk) 100%);
  border-radius: 2px;
}

.quote-section__answer {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--blue-heading);
  margin-bottom: 32px;
}

.quote-section__body {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-section {
  background: var(--blue-bg);
  padding: 100px 48px;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(88, 115, 138, 0.15) 100%);
  pointer-events: none;
}

.stats-section__inner { 
  max-width: var(--max-width); 
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stats-section__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 700px;
}

.stats-section__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.75;
}

/* ============================================================
   AUDIENCE BLOCKS (Principals / PMs)
   ============================================================ */
.audience-section {
  padding: 100px 48px;
  background: var(--white);
}

.audience-section--alt { background: var(--off-white); }

.audience-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.audience-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--blue-heading);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 16px;
}

.audience-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--steel-blue);
}

.audience-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 60px;
}

.audience-list li {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  padding-left: 28px;
  position: relative;
}

/* Check bullets on benefit lists — MAST / Infallible style */
.audience-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--steel-blue);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
}

/* ============================================================
   SERVICES PREVIEW (home)
   ============================================================ */
.services-home {
  padding: 100px 48px;
  background: var(--white);
}

.services-home__inner { max-width: var(--max-width); margin: 0 auto; }

.services-home__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--blue-heading);
  margin-bottom: 56px;
}

.services-home__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

/* Card treatment + hover lift — Infallible Studio service grid style */
.service-preview-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--steel-blue);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.09);
}

.service-preview-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-heading);
  margin-bottom: 12px;
}

.service-preview-card__desc {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ============================================================
   SERVICES PAGE — intro
   ============================================================ */
.page-intro {
  padding: 80px 48px 60px;
  background: var(--white);
}

.page-intro__inner { max-width: var(--max-width); margin: 0 auto; }

.page-intro__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--blue-heading);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 20px;
}

/* Subtle accent rule under page titles — Franklin Ellis style */
.page-intro__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 3px;
  background: var(--steel-blue);
}

.page-intro__text {
  font-size: 1.0625rem;
  color: var(--text-body);
  line-height: 1.8;
  max-width: 800px;
}

/* ============================================================
   SERVICE ROW — two column with carousel
   ============================================================ */
.service-row {
  padding: 80px 48px;
  background: var(--white);
}

.service-row--alt { background: var(--off-white); }

.service-row__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.service-row__inner--reverse .service-row__media { order: 2; }
.service-row__inner--reverse .service-row__content { order: 1; }

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  background: var(--soft-surface);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.carousel__track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel__slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel__slide img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--steel-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition);
}
.carousel__btn:hover { 
  background: var(--white);
  color: var(--steel-blue-dk);
}
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }

/* Software logo tiles */
.software-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.sw-icon {
  width: 76px;
  text-align: center;
}

.sw-icon__box {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px;
  margin-bottom: 6px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.sw-icon__box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sw-icon:hover .sw-icon__box {
  border-color: var(--steel-blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sw-icon__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: var(--text-body);
}

/* Service content */
.service-row__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: var(--blue-heading);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 16px;
}

.service-row__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--steel-blue);
}

.service-row__list li {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  padding: 6px 0 6px 20px;
  position: relative;
}

.service-row__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 5px; height: 5px;
  background: var(--steel-blue);
}

.service-row__list li strong { color: var(--near-black); }

/* ============================================================
   FAQ — 3 column grid
   ============================================================ */
.faq-section {
  padding: 100px 48px;
  background: var(--white);
}

.faq-section__inner { max-width: var(--max-width); margin: 0 auto; }

.faq-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--blue-heading);
  margin-bottom: 56px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 56px;
}

.faq-item__question {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--faq-teal);
  margin-bottom: 16px;
  line-height: 1.35;
  position: relative;
  padding-left: 8px;
  border-left: 3px solid var(--faq-teal);
}

.faq-item__answer {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.75;
}

.faq-item__answer ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 8px;
}

.faq-item__answer li { margin-bottom: 4px; }

/* ============================================================
   DIFFERENCE — hero split
   ============================================================ */
.diff-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.diff-hero__text {
  background: var(--blue-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
}

.diff-hero__accent {
  width: 48px; height: 6px;
  background: var(--accent-bar);
  margin-bottom: 28px;
}

.diff-hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.diff-hero__headline em {
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--steel-blue);
  text-underline-offset: 5px;
}

.diff-hero__image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

/* ============================================================
   CORE VALUES — 3 column
   ============================================================ */
.values-section {
  padding: 100px 48px;
  background: var(--white);
}

.values-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 56px;
  align-items: start;
}

.values-section__num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--blue-heading);
  margin-bottom: 20px;
}

.values-section__body {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 16px;
}

.values-list {
  columns: 1;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.values-list li {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 8px 0;
  line-height: 1.5;
}

.values-section__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   PEOPLE SECTIONS
   ============================================================ */
.people-section {
  padding: 100px 48px;
  background: var(--white);
}

.people-section--alt { background: var(--off-white); }

.people-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.people-section__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--blue-heading);
  margin-bottom: 24px;
}

.people-section__body {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.people-section__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ============================================================
   PHOTO GALLERY
   ============================================================ */
.gallery-section {
  padding: 80px 48px 100px;
  background: var(--white);
}

.gallery-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-section__inner img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: 80px 48px 100px;
  background: var(--white);
}

.contact-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group--full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--near-black);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  background: var(--white);
  color: var(--text-body);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--steel-blue);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.contact-sidebar {
  background: var(--blue-bg);
  padding: 40px 32px;
  color: var(--white);
}

.contact-sidebar h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

/* Logo panel — the brand mark is dark, so it sits on a light tile */
.contact-sidebar__logo {
  background: var(--white);
  padding: 28px 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-sidebar__logo img {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.contact-sidebar p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-sidebar__item {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
}

.contact-sidebar__item strong {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2px;
}

/* ============================================================
   FOOTER — Trelity block layout
   ============================================================ */
.site-footer {
  display: grid;
  grid-template-columns: 1fr 12px 1fr;
  grid-template-rows: auto auto;
}

.site-footer__cta-row {
  grid-column: 1 / -1;
}

.site-footer__brand {
  background: var(--white);
  padding: 56px 48px 48px;
}

.site-footer__brand-inner { max-width: 400px; }

.site-footer__logo img {
  width: 200px;
  height: auto;
  margin-bottom: 24px;
}

.site-footer__address {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 24px;
}

.site-footer__copy {
  font-size: 0.75rem;
  color: var(--arch-gray);
}

.site-footer__strip {
  background: var(--footer-lime);
}

.site-footer__nav {
  background: var(--blue-bg);
  padding: 56px 48px;
  display: flex;
  align-items: flex-start;
}

.site-footer__nav ul li { margin-bottom: 16px; }

.site-footer__nav a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer__nav a:hover { color: rgba(255,255,255,0.75); }

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-link {
  color: var(--steel-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Minimal arrow link — lighter alternative to a filled button */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-blue);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}

.link-arrow::after {
  content: '\2192';
  font-size: 1.0625rem;
  line-height: 1;
  transition: transform var(--transition);
}

.link-arrow:hover {
  color: var(--steel-blue-dk);
  border-bottom-color: var(--steel-blue);
}

.link-arrow:hover::after { transform: translateX(4px); }

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  
  .service-preview-card,
  .btn {
    transition: all 0.3s ease;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .home-hero,
  .diff-hero { grid-template-columns: 1fr; }
  
  /* Keep images visible on tablet but adjust them */
  .home-hero__image,
  .diff-hero__image { 
    min-height: 360px;
    max-height: 400px;
  }
  .home-hero__image img,
  .diff-hero__image img {
    min-height: 360px;
    max-height: 400px;
  }
  
  .quote-section__inner,
  .service-row__inner,
  .people-section__inner,
  .values-section__inner { grid-template-columns: 1fr; gap: 40px; }
  .service-row__inner--reverse .service-row__media,
  .service-row__inner--reverse .service-row__content { order: unset; }
  .services-home__grid,
  .faq-grid,
  .gallery-section__inner { grid-template-columns: 1fr 1fr; }
  .audience-list { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer__strip { display: none; }
  .contact-section__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 80px; }
  
  /* Header */
  .site-header__inner { padding: 16px 24px; }
  .site-header__logo img { width: 180px; }
  .site-header__links,
  .site-header__nav .btn { display: none; }
  .site-header__hamburger { display: flex; }
  
  /* Intro hero */
  .intro-hero {
    height: calc(72vh - var(--header-h));
    height: calc(72svh - var(--header-h));
    min-height: 400px;
  }
  .intro-hero__scroll { bottom: 20px; }
  .intro-hero__band { padding: 22px 20px 26px; }

  /* Hero sections - SHOW images on mobile */
  .home-hero,
  .diff-hero { 
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .home-hero__image,
  .diff-hero__image { 
    display: block !important;
    order: 1;
    min-height: 280px;
    max-height: 320px;
    width: 100%;
  }
  
  .home-hero__image img,
  .diff-hero__image img {
    min-height: 280px;
    max-height: 320px;
    width: 100%;
    object-fit: cover;
  }
  
  .home-hero__text,
  .diff-hero__text { 
    order: 2;
    padding: 40px 24px;
    min-height: auto;
  }
  
  /* Carousel improvements for mobile */
  .carousel__slide img {
    height: 260px;
    min-height: 260px;
  }
  
  /* Service cards */
  .service-preview-card {
    padding: 24px 0;
  }
  
  /* Gallery */
  .gallery-section__inner img {
    height: 200px;
  }
  
  /* People section images */
  .people-section__image img {
    height: 280px;
  }
  
  /* All sections padding */
  .trust-section,
  .quote-section,
  .stats-section,
  .audience-section,
  .services-home,
  .page-intro,
  .service-row,
  .faq-section,
  .values-section,
  .people-section,
  .gallery-section,
  .contact-section { 
    padding-left: 24px; 
    padding-right: 24px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .services-home__grid,
  .faq-grid,
  .gallery-section__inner { grid-template-columns: 1fr; }
  
  .form-grid { grid-template-columns: 1fr; }
  .site-footer__brand,
  .site-footer__nav { padding: 32px 24px; }
  
  /* Software icons */
  .software-row {
    justify-content: center;
  }

}

@media (max-width: 480px) {
  :root { --header-h: 70px; }
  
  .site-header__logo img { width: 150px; }
  .site-header__inner { padding: 12px 20px; }
  
  .intro-hero { min-height: 340px; }
  .intro-hero__label { font-size: 0.8125rem; }

  /* Hero images on small mobile */
  .home-hero__image,
  .diff-hero__image { 
    min-height: 240px;
    max-height: 260px;
  }
  
  .home-hero__image img,
  .diff-hero__image img {
    min-height: 240px;
    max-height: 260px;
  }
  
  .home-hero__text,
  .diff-hero__text { 
    padding: 32px 20px;
  }
  
  /* Typography adjustments */
  .home-hero__headline {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .section-heading {
    font-size: 1.5rem;
  }
  
  .page-intro__title {
    font-size: 2rem;
  }
  
  /* Carousels */
  .carousel__slide img {
    height: 220px;
    min-height: 220px;
  }
  
  .carousel__btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  
  /* All sections */
  .trust-section,
  .quote-section,
  .stats-section,
  .audience-section,
  .services-home,
  .page-intro,
  .service-row,
  .faq-section,
  .values-section,
  .people-section,
  .gallery-section,
  .contact-section { 
    padding-left: 20px; 
    padding-right: 20px;
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  /* Gallery */
  .gallery-section__inner img {
    height: 180px;
  }
  
  /* People images */
  .people-section__image img {
    height: 240px;
  }
  
  /* Buttons */
  .btn {
    padding: 12px 24px;
    font-size: 0.8125rem;
  }
  
  .btn--lg {
    padding: 14px 28px;
    font-size: 0.875rem;
  }
  
  /* Trust logos */
  .trust-logos {
    gap: 24px;
  }
  
  .trust-logos__item {
    font-size: 0.9rem;
  }
}
