/* Round 1 visual and technical guard layer. Loaded after page-level styles. */
:root {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

h1,
.hero h1,
.page-header h1,
.section-title,
.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.6rem, 5.2vw, 4.25rem); }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

nav,
nav a,
.btn,
.cta-button,
.section-label,
.section-subtitle,
.stat-number,
.stat-label,
.service-card h3,
.service-card p,
.portfolio-card-content h3,
.portfolio-card-tag,
.team-card h4,
.team-role,
.team-bio,
.footer-heading,
.footer-links a,
.footer-contact-item,
.breadcrumb,
.faq-question,
.faq-answer,
.form-group label,
.form-group input,
.form-group textarea,
.form-group select,
.article-content,
.blog-inline-cta,
.service-intent__card h3 {
  font-family: var(--font-body);
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

body * { text-transform: none !important; }
body * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body .section-label {
  text-transform: uppercase !important;
  letter-spacing: 0.2em;
}

.stat-label,
.service-link,
.portfolio-card-tag,
.project-image-badge,
.team-role,
.footer-heading,
.form-group label { letter-spacing: 0; }

.author-identity .author-name,
blockquote.nist-statement p {
  font-family: var(--font-body) !important;
}

a { color: var(--accent); }
main a { color: var(--accent-button); }
.section-dark a,
.section-dark .service-link,
.section-dark .team-role,
.section-dark .portfolio-card-tag,
.section-dark .testimonial-stars,
.section-dark .feature-list li::before {
  color: var(--accent);
}
.section-navy a,
.section-navy .service-link,
.section-navy .team-role,
.section-navy .portfolio-card-tag,
.section-navy .testimonial-stars,
.section-navy .feature-list li::before,
.page-header .breadcrumb a:hover {
  color: var(--accent-light);
}
.section-accent a,
.section-accent .service-link,
.section-accent .team-role,
.section-accent .portfolio-card-tag,
.section-accent .testimonial-stars,
.section-accent .feature-list li::before,
.section-accent .section-label {
  color: var(--accent-tint);
}
.section-dark .section-label,
.services-showcase .section-label,
.trust-authority .section-label {
  color: var(--accent) !important;
}
.section-navy .section-label { color: var(--accent-light) !important; }
.sketchup-video-section .section-label { color: var(--accent-tint) !important; }
.section-accent .section-label { color: var(--accent-tint) !important; }
.section-light .section-label,
.faq-section .section-label,
.service-intent .section-label {
  color: var(--accent-button) !important;
}
.section-light a,
.section-light .service-link,
.section-light .team-role,
.section-light .portfolio-card-tag,
.section-light .testimonial-stars,
.section-light .feature-list li::before,
.service-intent a,
.article-content a,
.blog-inline-cta a {
  color: var(--accent-button);
}

.site-footer .footer-links a:hover,
.site-footer .footer-contact-item a:hover,
.site-footer .social-link:hover {
  color: var(--accent);
}

.social-link:hover {
  background: rgba(234, 114, 52, 0.12);
  border-color: var(--accent);
}

.portfolio-card-tag {
  background: var(--navy-deeper);
  color: var(--accent);
  border-radius: var(--radius-sm);
}

.project-image-badge {
  background: var(--accent-button);
  color: #ffffff;
}

button {
  min-height: 44px !important;
}

.be-hero-cta,
.canvas-protector-overlay,
.svc-accordion-btn,
.filter-btn,
.filter-tag {
  font-size: 0.9rem !important;
}

.btn {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 1rem !important;
  font-weight: 600;
  padding: 0.9rem 1.6rem !important;
  min-height: 48px !important;
  border-radius: var(--radius-sm) !important;
}

.cta-button,
.btn-primary,
button.btn-primary,
.eval-btn-next,
.eval-btn-submit,
button[type="submit"] {
  min-height: 48px;
  background: var(--accent-button) !important;
  border-color: var(--accent-button) !important;
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
}

.cta-button:hover,
.btn-primary:hover,
button.btn-primary:hover,
.eval-btn-next:hover,
.eval-btn-submit:hover,
button[type="submit"]:hover {
  background: var(--accent-button-hover) !important;
  border-color: var(--accent-button-hover) !important;
  color: #ffffff !important;
}

.btn-outline,
.btn-ghost,
.eval-btn-back {
  min-height: 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0.01em;
}

.logo img,
html body .logo img {
  width: auto !important;
  height: 68px !important;
}

header.scrolled .logo img,
html body header.scrolled .logo img {
  height: 56px !important;
}

.page-header,
.contact-hero,
.blog-hero,
.article-hero {
  padding-top: 8rem !important;
}

nav.nav-links {
  gap: clamp(0.75rem, 1.7vw, 2rem);
}

nav.nav-links > a,
nav.nav-links > .dropdown > a {
  font-family: var(--font-body);
}

.footer-contact-item svg {
  flex: 0 0 16px;
  margin-top: 0.28rem;
}

.footer-contact-item span:last-child {
  min-width: 0;
}

.cta-phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.map-caption {
  margin: 0.65rem 0 0;
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
}

.final-cta .btn-outline {
  min-height: 48px;
  background: transparent !important;
  border: 2px solid var(--navy-deeper) !important;
  color: var(--navy-deeper) !important;
}

.final-cta .btn-outline:hover {
  background: var(--navy-deeper) !important;
  color: #ffffff !important;
}

.svc-hero .btn-outline {
  min-height: 48px;
  background: transparent !important;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
}

.svc-hero .btn-outline:hover {
  background: #ffffff !important;
  color: var(--navy-dark) !important;
}

.guide-download-btn {
  min-height: 48px;
  background: var(--accent-button) !important;
  border-color: var(--accent-button) !important;
  color: #ffffff !important;
}

.guide-download-btn:hover {
  background: var(--accent-button-hover) !important;
  border-color: var(--accent-button-hover) !important;
  color: #ffffff !important;
}

.pill-option input[type="radio"]:checked + label {
  background: var(--accent-button) !important;
  border-color: var(--accent-button) !important;
  color: #ffffff !important;
}

#contactForm input:user-invalid,
#contactForm textarea:user-invalid,
#contactForm select:user-invalid {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 3px rgba(184, 58, 58, 0.22) !important;
}

#contactForm .contact-submit:disabled {
  background: var(--accent-button) !important;
  border-color: var(--accent-button) !important;
  color: #ffffff !important;
  cursor: wait;
  opacity: 0.72;
}

.form-success-card {
  border-color: rgba(234, 114, 52, 0.35) !important;
}

#home {
  justify-content: flex-start;
  text-align: left;
}

#home .hero-overlay {
  background: linear-gradient(120deg, rgba(6,22,40,0.94) 0%, rgba(20,50,80,0.78) 55%, rgba(6,22,40,0.9) 100%);
}

#home .hero-content {
  width: min(720px, calc(100% - 3rem));
  max-width: 720px;
  margin-left: max(1.5rem, calc((100vw - 1280px) / 2 + 1.5rem));
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

#home .hero h1,
#home h1 {
  font-size: clamp(1.8rem, 2.35vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-align: left;
  text-wrap: balance;
}

#home .hero-subhead,
#home .hero-trust-line,
#home .hero p {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: left;
  letter-spacing: 0;
}

#home .hero-cta,
#home .hero-trust-line {
  justify-content: flex-start;
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.03);
}

.mobile-call-bar {
  background: var(--accent-button);
  color: #ffffff;
}

@media (min-width: 1200px) {
  #home h1 { white-space: nowrap; }
}

@media (max-width: 1100px) {
  html body header,
  html body header.scrolled {
    padding: 0.5rem 0 !important;
  }

  html body .header-content {
    padding: 0 1rem !important;
  }

  html body .hamburger {
    display: flex !important;
    width: 48px !important;
    height: 48px !important;
    padding: 12px !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    background: transparent !important;
    border: 0 !important;
    position: relative !important;
    z-index: 1002 !important;
  }

  html body .hamburger::after { content: none !important; }
  html body .hamburger span {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    min-height: 2px !important;
    flex: 0 0 2px !important;
    background: var(--navy) !important;
  }
  html body .hamburger.active span { background: #ffffff !important; }
  html body .hamburger.active span:nth-child(1) { transform: translateY(11px) rotate(45deg) !important; }
  html body .hamburger.active span:nth-child(2) { opacity: 0 !important; }
  html body .hamburger.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg) !important; }

  html body nav.nav-links { display: none !important; }
  html body nav.nav-links.active {
    display: flex !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    padding: 6rem 1.5rem 2rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    overflow-y: auto !important;
    background: var(--navy-deeper) !important;
    z-index: 1001 !important;
  }

  html body nav.nav-links.active > a,
  html body nav.nav-links.active > .dropdown > a {
    display: block !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
    font-size: 1.05rem !important;
    text-align: left !important;
  }

  html body nav.nav-links.active .cta-button {
    display: flex !important;
    margin-top: 1rem !important;
    padding: 0.9rem 1.6rem !important;
    background: var(--accent-button) !important;
    color: #ffffff !important;
    text-align: center !important;
  }

  html body nav.nav-links.active .dropdown {
    width: 100% !important;
  }

  html body nav.nav-links.active .dropdown-menu {
    position: static !important;
    display: block !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 0 0 1rem !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  html body nav.nav-links.active .dropdown.active .dropdown-menu {
    max-height: 640px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body nav.nav-links.active .dropdown-menu a {
    display: block !important;
    padding: 0.65rem 0 !important;
    color: rgba(255,255,255,0.88) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    background: transparent !important;
  }

  body.nav-open { overflow: hidden; }

  .logo img,
  html body .logo img,
  header.scrolled .logo img,
  html body header.scrolled .logo img {
    height: 56px !important;
  }

  .page-header,
  .contact-hero,
  .blog-hero,
  .article-hero {
    padding-top: 6.75rem !important;
  }
}

@media (max-width: 640px) {
  #home {
    padding-top: 5rem !important;
  }

  #home .hero-content {
    width: calc(100% - 2rem);
    margin-left: 1rem;
  }

  #home .hero h1,
  #home h1 {
    font-size: clamp(1.72rem, 7.1vw, 1.82rem);
    white-space: normal;
  }

  #home .hero-trust-line {
    align-items: flex-start;
  }

  .btn,
  .btn-primary,
  .btn-outline,
  .btn-ghost,
  .cta-button {
    min-height: 48px !important;
    font-size: 1rem !important;
    padding: 0.9rem 1.6rem !important;
  }

  .mobile-call-bar {
    min-height: 48px;
    height: calc(48px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
}

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