/* =======================================================================
   MTU Projects — Custom CSS
   Paste into WordPress: Appearance → Customize → Additional CSS
   (Or enqueue as its own stylesheet from functions.php.)
   Everything here is stuff Tailwind utility classes can't express cleanly:
   decorative shapes, hover states, transitions, and the fixed-nav / hero
   interactions.
   ======================================================================= */

:root {
  --ink: #101410;
  --ink-soft: #1c211c;
  --olive: #384735;
  --olive-deep: #2a352a;
  --olive-mid: #5c6e57;
  --beige: #ECE6D6;
  --beige-soft: #F5F1E6;
  --muted: #6d6f63;
  --line: rgba(16,20,16,0.14);
  --line-on-dark: rgba(255,255,255,0.18);
  --radius-pill: 999px;
  --ease: cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

::selection { background: var(--olive); color: #fff; }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

/* ---------- Accessibility utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  z-index: 999;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Announcement bar ---------- */
.announce-bar {
  background: var(--ink);
  color: var(--beige-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
  position: relative;
  z-index: 101;
}
.announce-brand { opacity: 0.65; margin-right: 8px; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-logo-link { display: block; line-height: 0; }
.site-logo-img {
  height: 64px;
  width: auto;
  display: block;
  /* Source file is white artwork on a transparent background — fine over the dark
     hero nav, but needs converting to solid black once the nav goes light on scroll. */
  transition: filter 0.3s var(--ease);
}
.site-nav.scrolled .site-logo-img {
  filter: brightness(0);
}

.footer-logo-link { display: inline-block; line-height: 0; margin-bottom: 18px; }
.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  /* Footer background is always dark (olive), so — unlike the nav — the white
     logo file needs no colour-swap filter here. */
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s var(--ease), opacity 0.15s var(--ease);
  position: relative;
}
.site-nav.scrolled .nav-link { color: var(--ink); }
.nav-link:hover { opacity: 0.7; }
.nav-link.is-active { opacity: 0.55; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: background 0.3s var(--ease);
}
.site-nav.scrolled .burger span { background: var(--ink); }

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16,20,16,0.4);
  z-index: 150;
}
.nav-scrim.open { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { cursor: not-allowed; opacity: 0.6; transform: none; }

.btn-fill {
  background: var(--beige);
  color: var(--ink);
  border-color: var(--beige);
}
.site-nav.scrolled .btn-fill { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-fill:hover { background: var(--beige-soft); }
.cta-band .btn-fill { background: var(--beige); color: var(--ink); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-outline.btn-on-dark {
  color: #fff;
  border-color: var(--line-on-dark);
}
.btn-outline.btn-on-dark:hover { border-color: #fff; }

/* ---------- Section rhythm ---------- */
.site-section { padding: 96px 0; }
.site-section-tint { background: var(--beige-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 40ch;
  text-align: right;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive);
}
.eyebrow-light { color: var(--beige-soft); }
.eyebrow-light::before { background: var(--beige-soft); }

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16,20,16,0.55) 0%, rgba(16,20,16,0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 96px;
}
.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 16ch;
  margin: 0 0 24px;
}
.hero-desc {
  font-size: 17px;
  color: rgba(245,241,230,0.85);
  max-width: 52ch;
  margin: 0 0 36px;
}

/* ---------- Stats ---------- */
.stat-strip { padding: 56px 0; border-bottom: 1px solid var(--line); }
.stat-item { padding-right: 24px; }
.stat-item-border { border-left: 1px solid var(--line); padding-left: 24px; }
.stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--olive);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ---------- About ---------- */
.about-photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--beige-soft);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-body {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 18px;
  max-width: 56ch;
}
.about-quote {
  border-left: 3px solid var(--olive);
  padding-left: 20px;
  margin: 28px 0 32px;
  font-size: 16px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
}
.about-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive-mid);
}

/* ---------- Services ---------- */
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 30px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16,20,16,0.08);
}
.service-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-mid);
  margin: 0 0 18px;
}
.icon-box-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--beige-soft);
  color: var(--olive);
  margin-bottom: 20px;
}
.icon-box-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.icon-box-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 22px;
}
.service-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-link .arrow { transition: transform 0.2s var(--ease); }
.service-link:hover .arrow { transform: translateX(4px); }

.services-note {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 44px;
}

/* ---------- Approach ---------- */
.approach-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 26px;
}
.approach-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-mid);
  margin: 4px 0 12px;
}
.approach-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}
.approach-card p:last-child {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- Blog ---------- */
.blog-card-media {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/10.5;
}
.blog-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-card-media:hover img { transform: scale(1.05); }
.blog-card-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.blog-card-body { padding-top: 18px; }
.blog-card-date {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}
.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}
.blog-card-read {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.blog-foot { text-align: center; margin-top: 48px; }

/* ---------- Glossary ---------- */
.glossary-search {
  position: relative;
  margin-bottom: 24px;
}
.glossary-search input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 14px 18px 14px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
}
.glossary-search input:focus { border-color: var(--olive); outline: none; }
.glossary-search-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}
.glossary-letter-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.glossary-letter-tile {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.glossary-letter-tile:hover { border-color: var(--olive); transform: translateY(-2px); }
.glossary-letter-tile.active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
}
.glossary-letter-tile.disabled {
  opacity: 0.3;
  cursor: default;
  color: var(--muted);
}
.glossary-letter-tile.disabled:hover { border-color: var(--line); transform: none; }

.glossary-hint {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14.5px;
}

.glossary-group { margin-bottom: 32px; }
.glossary-group-letter {
  font-size: 24px;
  font-weight: 800;
  color: var(--olive);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--olive);
  display: inline-block;
}
.glossary-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.glossary-item:hover { background: var(--beige-soft); margin: 0 -16px; padding: 18px 16px; }
.glossary-term {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.glossary-toggle {
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.glossary-item.open .glossary-toggle { transform: rotate(45deg); }
.glossary-def {
  font-size: 14px;
  color: var(--muted);
  max-width: 64ch;
  margin: 10px 0 0;
  display: none;
  line-height: 1.6;
}
.glossary-item.open .glossary-def { display: block; }
.glossary-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--beige);
  color: var(--olive);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-left: 10px;
}
.glossary-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 96px 0;
}
.cta-portrait {
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 28px;
  border: 2px solid rgba(255,255,255,0.2);
}
.cta-portrait img { width: 100%; height: 100%; object-fit: cover; }
.cta-title {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin: 0 auto 32px;
  line-height: 1.1;
}

/* Dummy contact form (static preview — see HTML comment) */
.dummy-contact-form {
  max-width: 480px;
  margin: 48px auto 0;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-on-dark);
  border-radius: 18px;
  padding: 28px;
}
.dummy-form-row { margin-bottom: 16px; }
.dummy-form-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--beige-soft);
  margin-bottom: 6px;
}
.dummy-form-row input,
.dummy-form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-on-dark);
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.dummy-form-note {
  font-size: 12px;
  color: rgba(245,241,230,0.55);
  margin: 14px 0 0;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--olive);
  color: var(--beige-soft);
  padding: 80px 0 28px;
}
.footer-top { padding-bottom: 56px; border-bottom: 1px solid var(--line-on-dark); }
.footer-desc {
  font-size: 13.5px;
  color: rgba(245,241,230,0.72);
  margin: 18px 0 0;
  max-width: 32ch;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--beige-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer-social-link:hover {
  background: var(--beige-soft);
  color: var(--olive);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,241,230,0.6);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a, .footer-col span {
  font-size: 14px;
  color: var(--beige-soft);
}
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(245,241,230,0.55);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-legal a {
  color: rgba(245,241,230,0.72);
  font-size: 12px;
}
.footer-legal a:hover { color: var(--beige-soft); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-desc { text-align: left; }
  .stat-item-border { border-left: none; padding-left: 0; }
}

@media (max-width: 768px) {
  .burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78vw;
    max-width: 320px;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 200;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links .nav-link { color: #fff; font-size: 16px; }

  .site-logo-img { height: 46px; }
  .footer-logo-img { height: 46px; }

  .hero-section { min-height: 80vh; }
  .site-section { padding: 64px 0; }
  .cta-band { padding: 64px 0; }
}
