/* ============================================
   Tillerstead – Global Theme (theme.css)
   Unifies colors, typography, spacing & layout
   Assumes:
   - Header: .site-header, .site-header-inner, .site-logo,
             .site-header-actions, .site-nav
   - JS: toggles .site-nav.is-open and body.nav-open
   - Sections: .section, .hero, .hero--homepage
   - Footer: .site-footer
   ============================================ */

/* 0) Reset & base
   ------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
:root {
  --brand-brass: #d4af37;
}

.btn-ghost,
.btn-secondary {
  color: var(--brand-brass);
  border-color: var(--brand-brass);
}
.btn-ghost:hover,
.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
}
html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 1) Design tokens (colors, type, space)
   ------------------------------------------- */

:root {
  /* Core brand palette */
  --ts-ink:           #0b1220;
  --ts-ink-soft:      #111827;
  --ts-muted-ink:     #64748b;
  --ts-surface:       #0f172a;
  --ts-surface-alt:   #020617;
  --ts-surface-soft:  #111827;

  --ts-emerald:       #10b981;
  --ts-emerald-soft:  #22c55e;
  --ts-brass:         #d4af37;
  --ts-brass-soft:    #facc15;

  --ts-border-subtle: #1f2937;
  --ts-border-strong: #020617;

  --ts-bg-page:       #020617;
  --ts-bg-section:    #020617;
  --ts-bg-card:       #020617;

  --ts-danger:        #ef4444;
  --ts-warning:       #f97316;
  --ts-info:          #38bdf8;

  /* Aliases for older styles */
  --brand-dark:   var(--ts-surface);
  --brand-light:  #f9fafb;
  --brand-ink:    var(--ts-muted-ink);
  --brand-accent: var(--ts-emerald);

  /* Typography */
  --ts-font-sans:  system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Manrope", "Segoe UI", sans-serif;
  --ts-font-mono:  "IBM Plex Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --ts-text-xs: 0.75rem;
  --ts-text-sm: 0.875rem;
  --ts-text-md: 1rem;
  --ts-text-lg: 1.125rem;
  --ts-text-xl: 1.25rem;
  --ts-text-2xl: 1.5rem;
  --ts-text-3xl: 1.875rem;
  --ts-text-4xl: 2.25rem;
  --ts-text-5xl: 3rem;

  /* Layout / spacing */
  --ts-shell-width: 1080px;
  --ts-radius-sm:   0.375rem;
  --ts-radius-md:   0.75rem;
  --ts-radius-lg:   1rem;
  --ts-radius-pill: 999px;

  --ts-shadow-soft:  0 18px 45px rgba(15, 23, 42, 0.6);
  --ts-shadow-card:  0 18px 60px rgba(15, 23, 42, 0.65);

  --ts-space-xs: 0.5rem;
  --ts-space-sm: 0.75rem;
  --ts-space-md: 1rem;
  --ts-space-lg: 1.5rem;
  --ts-space-xl: 2rem;

  --ts-transition-fast: 150ms ease-out;
  --ts-transition-med:  200ms ease-out;
}

/* 2) Base typography & body
   ------------------------------------------- */

body {
  font-family: var(--ts-font-sans);
  font-size: var(--ts-text-md);
  line-height: 1.6;
  color: #e5e7eb;
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

/* Headings */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5rem;
  font-weight: 650;
  line-height: 1.15;
  color: #f9fafb;
}

h1 {
  font-size: clamp(2.25rem, 3vw, 3rem);
}

h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
}

p {
  margin: 0 0 0.75rem;
  color: var(--ts-muted-ink);
}

/* Links */

a {
  color: var(--ts-emerald);
  text-decoration: none;
  transition: color var(--ts-transition-fast), opacity var(--ts-transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--ts-emerald-soft);
}

/* Lists */

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

/* 3) Layout primitives
   ------------------------------------------- */

.shell,
.container {
  max-width: var(--ts-shell-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section--tight {
  padding: 2.5rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header .eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--ts-text-xs);
  font-weight: 600;
  color: rgba(148, 163, 184, 0.85);
}

/* Stacks */

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.center {
  text-align: center;
}

/* Grid helpers */

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Utility classes */

.mt-0  { margin-top: 0 !important; }
.mt-1  { margin-top: 0.5rem !important; }
.mt-2  { margin-top: 1rem !important; }
.mt-3  { margin-top: 1.5rem !important; }

.mb-0  { margin-bottom: 0 !important; }
.mb-1  { margin-bottom: 0.5rem !important; }
.mb-2  { margin-bottom: 1rem !important; }
.mb-3  { margin-bottom: 1.5rem !important; }

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-start { justify-content: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2         { gap: 0.5rem; }
.gap-3         { gap: 0.75rem; }
.gap-4         { gap: 1rem; }

/* 4) Cards, surfaces, badges
   ------------------------------------------- */

.card {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
  border-radius: var(--ts-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--ts-shadow-card);
  padding: 1.5rem;
}

.card--subtle {
  border-radius: var(--ts-radius-md);
  background: #020617;
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.72);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: rgba(148, 163, 184, 0.95);
}

.badge--accent {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(45, 212, 191, 0.6);
  color: #a7f3d0;
}

/* 5) Buttons
   ------------------------------------------- */

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--ts-radius-pill);
  font-size: var(--ts-text-sm);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  background: radial-gradient(circle at top left, #22c55e 0, #16a34a 40%, #064e3b 100%);
  color: #022c22;
  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.45);
  transition:
    transform var(--ts-transition-fast),
    box-shadow var(--ts-transition-fast),
    background var(--ts-transition-fast),
    color var(--ts-transition-fast),
    opacity var(--ts-transition-fast);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(16, 185, 129, 0.6);
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: none;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: rgba(15, 23, 42, 0.95);
}

/* 6) Header / Navigation
   ------------------------------------------- */

/* Sticky dark app bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ts-surface-alt);
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Inner layout */
.site-header-inner {
  max-width: var(--ts-shell-width);
  margin-inline: auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.site-logo img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 440px) {
  .site-logo img {
    height: 34px;
  }
}

/* Header actions: call button + nav toggle */
.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

/* Call button (desktop only) */
.call-btn {
  display: none;
}

@media (min-width: 768px) {
  .call-btn {
    display: inline-flex;
  }
}
/* 7) Hero patterns
   ------------------------------------------- */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero--homepage {
  padding: 4rem 0 2.5rem;
}

.hero-inner {
  max-width: var(--ts-shell-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
  }
}

.hero-eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--ts-text-xs);
  font-weight: 600;
  color: rgba(148, 163, 184, 0.9);
}

.hero-heading {
  margin-top: 0.75rem;
}

.hero-lead {
  max-width: 40rem;
  font-size: var(--ts-text-md);
}

.hero-kpis {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .hero-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero-kpi {
  border-radius: var(--ts-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.95);
  padding: 1rem 1.1rem;
}

.hero-kpi-label {
  font-size: var(--ts-text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.hero-kpi-value {
  margin-top: 0.35rem;
  font-size: 1.15rem;
  color: #e5e7eb;
}

/* 8) Forms
   ------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: var(--ts-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-family: var(--ts-font-sans);
  font-size: var(--ts-text-sm);
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

/* 9) Footer
   ------------------------------------------- */

.site-footer {
  background: var(--brand-dark);
  color: var(--brand-light);
  padding: 3rem 1.25rem 2rem;
  margin-top: 3rem;
}

.site-footer-inner {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.footer-heading {
  font-size: var(--ts-text-sm);
  font-weight: 500;
  color: rgba(226, 232, 240, 0.95);
  margin-bottom: 0.25rem;
}

.footer-meta {
  font-size: var(--ts-text-xs);
  color: rgba(148, 163, 184, 0.9);
  margin: 0.1rem 0;
}

.footer-links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: var(--ts-text-xs);
}

.footer-links a {
  color: rgba(148, 163, 184, 0.96);
}

.footer-links a:hover {
  color: #e5e7eb;
}
/* Logo – two-tone wordmark
   ------------------------------------------- */

.logo-two-tone {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.logo-wordmark {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.35rem;
}

@media (max-width: 480px) {
  .logo-wordmark {
    font-size: 1.15rem;
  }
}

.logo-part-til {
  color: #22c55e; /* emerald */
}

.logo-part-stead {
  color: #facc15; /* brass */
}

.logo-llc {
  margin-top: 0.05rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--logo-llc-color, #f9fafb);
  opacity: 0.95;
}

/* Dark-background version (header, hero) */
.logo-two-tone--dark {
  --logo-llc-color: #f9fafb; /* white on dark */
}

/* Light-background version (e.g., footer on white panel) */
.logo-two-tone--light {
  --logo-llc-color: #020617; /* near-black on light */
}
/* Footer logo & branding
   ------------------------------------------- */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--brand-light, #f9fafb);
  gap: 0.25rem;
}

.footer-logo img {
  width: 96px; /* default desktop size */
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 0.25rem auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

@media (min-width: 768px) {
  .footer-logo img {
    width: 112px;
  }
}

.footer-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.9);
  margin-top: 0.15rem;
  line-height: 1.4;
}

/* Footer layout polish */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2rem 1rem;
}

@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    text-align: left;
  }

  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }
}
/* ============================================
   Image system – homepage + portfolio
   ------------------------------------------- */

/* Generic image reset */
.hero img,
.scope-card img,
.gallery img,
.gallery-grid img,
.gallery-item img,
.portfolio img,
.portfolio-grid img,
.gitem img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
}

/* Homepage "scope" cards – uniform 4:3 crops */
.scope-card figure {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

/* Give the figure a consistent aspect ratio */
.scope-card figure {
  aspect-ratio: 4 / 3;
}

/* Portfolio / gallery grid – same idea */
.gallery,
.gallery-grid,
.portfolio-grid {
  display: grid;
  gap: 1.1rem;
}

/* Adjust columns at breakpoints */
@media (min-width: 640px) {
  .gallery,
  .gallery-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .gallery,
  .gallery-grid,
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Individual gallery items */
.gallery-item,
.gitem,
.portfolio-item {
  border-radius: 0.9rem;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
}

/* Lock the visible window to 4:3 for cards */
.gallery-item,
.gitem,
.portfolio-item {
  aspect-ratio: 4 / 3;
}

/* Subtle hover zoom on desktop only */
@media (hover: hover) and (pointer: fine) {
  .gallery-item img,
  .gitem img,
  .portfolio-item img,
  .scope-card figure img {
    transition: transform 180ms ease-out;
  }

  .gallery-item:hover img,
  .gitem:hover img,
  .portfolio-item:hover img,
  .scope-card:hover figure img {
    transform: scale(1.03);
  }
}
/* ============================================
   Portfolio image layout
   ============================================ */

/* Grid layout for the gallery */
.portfolio-page #gallery {
  display: grid;
  gap: 1.1rem;
}

/* 1 column on small screens */
@media (max-width: 639px) {
  .portfolio-page #gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 2 columns on tablets */
@media (min-width: 640px) and (max-width: 1023px) {
  .portfolio-page #gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 3 columns on desktop */
@media (min-width: 1024px) {
  .portfolio-page #gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Each figure = card with image + caption */
.gitem.portfolio-item {
  display: flex;
  flex-direction: column;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
}

/* Link wraps the image */
.gitem.portfolio-item > a {
  display: block;
}

/* Image sizing – same rules everywhere */
.gitem.portfolio-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;       /* mobile limit */
  object-fit: cover;       /* crop nicely */
}

/* Give a bit more vertical space on bigger screens */
@media (min-width: 640px) {
  .gitem.portfolio-item img {
    max-height: 300px;
  }
}

@media (min-width: 1024px) {
  .gitem.portfolio-item img {
    max-height: 340px;
  }
}

/* Caption styling */
.gitem.portfolio-item figcaption {
  padding: 0.6rem 0.75rem 0.75rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.95);
  line-height: 1.4;
}
/* ============================================
   Footer layout & styling
   ============================================ */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  padding: 2.5rem 1.5rem 2rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.92);
}

.footer-inner {
  max-width: var(--ts-shell-width);
  margin-inline: auto;
  display: grid;
  gap: 1.75rem;
  text-align: center;
}

/* Columns on larger screens */
@media (min-width: 880px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.1fr);
    text-align: left;
    align-items: flex-start;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Brand block */
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

@media (min-width: 880px) {
  .footer-brand {
    align-items: flex-start;
  }
}

.footer-logo img {
  width: 72px;
  height: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

@media (min-width: 880px) {
  .footer-logo img {
    width: 84px;
  }
}

.footer-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.86rem;
  color: rgba(148, 163, 184, 0.96);
}

.footer-area {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.96);
}

/* Nav */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  color: rgba(203, 213, 225, 0.96);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #22c55e;
}

/* Contact / address */
.footer-hic {
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.84rem;
  color: rgba(148, 163, 184, 0.96);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.6rem;
}

.footer-contact a {
  text-decoration: none;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.95);
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #22c55e;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  margin-top: 2rem;
  padding-top: 1.2rem;
  max-width: var(--ts-shell-width);
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: 0.5rem;
}

.footer-credit {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.96);
  line-height: 1.5;
}

.footer-credit a {
  color: #22c55e;
  text-decoration: none;
  font-weight: 500;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #16a34a;
  text-decoration: underline;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(100, 116, 139, 0.95);
}
/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #020617;
  border-bottom: 1px solid rgba(15, 23, 42, 0.95);
}

.site-header-inner {
  max-width: var(--ts-shell-width, 1120px);
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo */
.site-logo {
  text-decoration: none;
}

/* desktop: nav inline, burger hidden */
.site-nav {
  margin-left: 2rem;
}

.site-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.site-menu a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(209, 213, 219, 0.95);
}

.site-menu a[aria-current="page"] {
  color: #22c55e;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: #f9fafb;
}

/* header actions */
.site-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.call-btn.btn {
  padding-inline: 0.9rem;
  font-size: 0.9rem;
}

/* nav toggle base */
.nav-toggle {
  display: none; /* hidden on desktop */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(191, 219, 254, 0.9);
}

.nav-toggle-bar {
  width: 20px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  display: block;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* hamburger → X when open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================
   Mobile nav overlay
   ============================================ */
@media (max-width: 900px) {
  .site-header-inner {
    padding-inline: 1.1rem;
  }

  .site-nav {
    /* hidden by default; becomes overlay */
    position: fixed;
    inset: 0;
    padding: 4.5rem 1.5rem 2.5rem;
    background: rgba(15, 23, 42, 0.97);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 45;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .site-menu a {
    font-size: 1.15rem;
    font-weight: 500;
  }

  .site-header-actions .call-btn.btn {
    display: none; /* hide call button in tight mobile header */
  }

  .nav-toggle {
    display: inline-flex;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* ============================================
   Desktop-only tweaks
   ============================================ */
@media (min-width: 901px) {
  .site-nav {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: transparent;
  }

  .site-header {
    position: sticky;
  }
}
/* Subpage hero – remove white strip under header */
.page-hero,
.hero--page {
  background: transparent;
  border-top: none;
  padding-top: 1.5rem; /* or 0 if you want the card tight under the header */
}

/* If there’s a hero card inside, tighten its top margin */
.page-hero .hero-card,
.hero--page .hero-card {
  margin-top: 0;
}
/* ============================================
   Breadcrumbs
   ============================================ */

.breadcrumbs {
  max-width: var(--ts-shell-width, 1120px);
  margin: 0.75rem auto 0.25rem;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
}

.breadcrumbs-list {
  list-style: none;          /* kills the 1., 2. numbering */
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumbs-list li {
  display: inline-flex;
  align-items: center;
}

/* separator */
.breadcrumbs-list li + li::before {
  content: "›";
  margin: 0 0.35rem;
  color: rgba(148, 163, 184, 0.6);
}

.breadcrumbs a {
  text-decoration: none;
  color: rgba(203, 213, 225, 0.95);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: #22c55e;
}

.breadcrumbs [aria-current="page"] {
  color: rgba(148, 163, 184, 0.95);
  font-weight: 500;
}
/* === Brand Accent Buttons — Tillerstead Gold === */
.btn-ghost,
.btn-secondary {
  color: #d4af37;
  border-color: #d4af37;
  background: transparent;
  transition: all 0.2s ease;
}

.btn-ghost:hover,
.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: #d4af37;
  color: #fff;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}
/* Section CTA links under 'Tile scopes' */
.section-cta a:first-of-type {
  color: #d4af37; /* brass for primary link */
  font-weight: 600;
}

.section-cta a:last-of-type {
  color: #22c55e; /* emerald green secondary */
}

.section-cta a:hover {
  text-decoration: underline;
  opacity: 0.9;
}