@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=Sora:wght@500;600;700;800&display=optional');

/*--------------------------------------------------------------
# Forge — BWG original theme
# Warm dark industrial: charcoal-brown surfaces, ember orange +
# molten gold accents, slab cards with inset metal edges.
#
# Per-site palettes override --primary-color / --secondary-color
# (and supply --primary-on-dark, --on-primary, --on-secondary,
# --accent-gradient) via custom-theme.css loaded AFTER this file.
# Therefore: always reference the variables, never hard-coded
# accent hexes (neutral surfaces excepted).
--------------------------------------------------------------*/

:root {
  --bwg-header-h: 72px;

  /* Design Tokens */
  --primary-color: #fb923c;      /* ember orange — 7.7:1 on surface */
  --primary-rgb: 251, 146, 60;
  --secondary-color: #eab308;    /* molten gold */
  --secondary-rgb: 234, 179, 8;
  --background-color: #14100c;   /* deep charcoal-brown */
  --surface-color: #1f1812;
  --surface-border: #382c20;
  --text-color: #b8aca0;
  --heading-color: #faf6f1;
  --contrast-color: #1a130c;     /* dark ink for bright ember/gold fills */

  --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);

  --font-default: 'IBM Plex Sans', system-ui, sans-serif;
  --font-heading: 'Sora', sans-serif;

  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--font-default);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--primary-on-dark, var(--primary-color));
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

::selection {
  background: rgba(var(--primary-rgb), 0.35);
  color: var(--heading-color);
}

/* A11y: visible focus on dark backgrounds */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.mobile-nav-toggle:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Sections land below the sticky header on anchor jumps */
section,
.section {
  scroll-margin-top: calc(var(--bwg-header-h) + 16px);
}

/*--------------------------------------------------------------
# Header (deterministic height = --bwg-header-h)
--------------------------------------------------------------*/
.header {
  height: var(--bwg-header-h);
  padding: 0;
  background: rgba(20, 16, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  z-index: 997;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.scrolled .header {
  background: rgba(20, 16, 12, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.header .logo {
  gap: 10px;
}

.header .logo i {
  font-size: 26px;
  color: var(--primary-on-dark, var(--primary-color));
  line-height: 1;
}

.header .logo h1.sitename {
  font-size: 24px;
  margin: 0;
  font-weight: 800;
  color: var(--heading-color);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.header .btn-getstarted {
  background: var(--accent-gradient);
  color: var(--on-primary, var(--contrast-color));
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-heading);
  margin-left: 24px;
  box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.header .btn-getstarted:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(var(--primary-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: var(--on-primary, var(--contrast-color));
}

/*--------------------------------------------------------------
# Nav Menu (desktop + mobile; behaviors bound by main.js)
--------------------------------------------------------------*/
.navmenu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 26px;
}

.navmenu a {
  color: var(--text-color);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 2px;
  position: relative;
}

.navmenu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: right 0.3s ease;
}

.navmenu a:hover::after,
.navmenu .active::after {
  right: 0;
}

.navmenu a:hover,
.navmenu .active {
  color: var(--primary-on-dark, var(--primary-color));
}

/* Mobile Nav Toggle Icon */
.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--heading-color);
  /* a11y: comfortable >=40px touch target */
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }

  .navmenu {
    display: none;
  }

  body.mobile-nav-active .navmenu {
    display: block;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    background: #1f1812; /* solid dark panel, AA links */
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  body.mobile-nav-active .navmenu ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  body.mobile-nav-active .navmenu a {
    display: block;
    width: 100%;
    padding: 10px 8px;
    font-size: 16px;
    color: var(--heading-color);
  }

  body.mobile-nav-active .navmenu a:hover,
  body.mobile-nav-active .navmenu a.active {
    color: var(--primary-on-dark, var(--primary-color));
  }
}

/*--------------------------------------------------------------
# Hero — ember glow over the coals
--------------------------------------------------------------*/
.hero {
  position: relative;
  padding: 110px 0 90px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -12%;
  right: -8%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.14) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -14%;
  left: -10%;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.10) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero .subtitle {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-on-dark, var(--primary-color));
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 3.4rem;
  line-height: 1.12;
  margin-bottom: 24px;
  color: var(--heading-color);
}

.hero .description {
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-visual,
.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg,
.hero-visual img,
.about-visual svg,
.about-visual img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.45));
}

@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.6rem;
  }
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-accent {
  background: var(--accent-gradient);
  color: var(--on-primary, var(--contrast-color));
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-heading);
  display: inline-block;
  box-shadow: 0 0 22px rgba(var(--primary-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(var(--primary-rgb), 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: var(--on-primary, var(--contrast-color));
}

.btn-text {
  color: var(--heading-color);
  font-weight: 600;
  margin-left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.btn-text:hover {
  color: var(--primary-on-dark, var(--primary-color));
}

/*--------------------------------------------------------------
# Sections & Titles
--------------------------------------------------------------*/
section,
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: inline-block;
  position: relative;
  padding-bottom: 16px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30%;
  right: 30%;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.5);
}

.section-title p {
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-color);
}

/*--------------------------------------------------------------
# Slab Cards — sturdy, inset metal edges, gradient top seam
--------------------------------------------------------------*/
.card-slab {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  height: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-slab::before {
  /* molten seam along the top edge */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.card-slab:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-rgb), 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 24px rgba(var(--primary-rgb), 0.12);
}

.card-slab:hover::before {
  opacity: 1;
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about .info-content h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.about .lead-text {
  font-size: 1.1rem;
  color: var(--text-color);
}

.about .check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0 0;
}

.about .check-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.about .check-list li i {
  color: var(--secondary-color);
  font-size: 1.3rem;
  line-height: 1.4;
}

.about .check-list li h3.check-list-heading {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
}

.about .check-list li span {
  color: var(--text-color);
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.service-icon {
  font-size: 2.4rem;
  color: var(--primary-on-dark, var(--primary-color));
  display: inline-block;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.45));
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--text-color);
}

/*--------------------------------------------------------------
# Portfolio / Work Cards
--------------------------------------------------------------*/
.work-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--secondary-rgb), 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0, 0, 0, 0.45);
}

.work-card .work-image {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--surface-border);
}

.work-card .work-image img,
.work-card .work-image svg {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.work-card:hover .work-image img,
.work-card:hover .work-image svg {
  transform: scale(1.04);
}

.work-info {
  padding: 22px 24px 24px;
}

.work-meta {
  display: block;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: var(--secondary-color);
}

.work-info h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  min-height: 32px;
  color: var(--primary-on-dark, var(--primary-color));
}

.work-link:hover {
  color: var(--secondary-color);
}

/*--------------------------------------------------------------
# Why Us Metrics
--------------------------------------------------------------*/
.metric-card {
  text-align: center;
  padding: 42px 24px;
}

.metric-value {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--primary-on-dark, var(--primary-color));
  text-shadow: 0 0 22px rgba(var(--primary-rgb), 0.4);
  line-height: 1;
  margin-bottom: 12px;
}

.metric-card h3 {
  margin-bottom: 10px;
}

.metric-card p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonial-card {
  padding: 35px;
}

.testimonial-card > p {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-color);
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.testimonial-user svg,
.testimonial-user img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.testimonial-user h3.testimonial-name {
  font-size: 1rem;
  margin: 0;
}

.testimonial-user span {
  font-size: 13px;
  color: var(--text-color);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact-info-block {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px;
  align-items: flex-start;
  height: auto;
}

.contact-info-block i {
  font-size: 1.4rem;
  color: var(--primary-on-dark, var(--primary-color));
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid var(--surface-border);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-info-block h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.contact-info-block p {
  margin-bottom: 0;
  color: var(--text-color);
}

.contact-form {
  padding: 36px;
}

.contact-form input,
.contact-form textarea {
  background: var(--background-color);
  border: 1px solid var(--surface-border);
  color: var(--heading-color);
  padding: 13px 16px;
  border-radius: 8px;
  width: 100%;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  /* AA: 7.9:1 on the field background */
  color: var(--text-color);
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-on-dark, var(--primary-color));
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 12px rgba(var(--primary-rgb), 0.25);
  outline: none;
}

.contact-form button {
  background: var(--accent-gradient);
  color: var(--on-primary, var(--contrast-color));
  border: none;
  padding: 14px 34px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 0 22px rgba(var(--primary-rgb), 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(var(--primary-rgb), 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/*--------------------------------------------------------------
# Page Title + Breadcrumbs (inner pages)
--------------------------------------------------------------*/
.page-title {
  background: var(--surface-color);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 28px 0 30px;
  position: relative;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 180px;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0.8;
}

.page-title .breadcrumbs {
  margin-bottom: 12px;
}

.page-title .breadcrumbs ol.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  gap: 6px;
}

.page-title .breadcrumbs ol.breadcrumb li + li::before {
  content: '/';
  color: var(--text-color);
  padding-right: 6px;
  float: none;
}

.page-title .breadcrumbs ol.breadcrumb li,
.page-title .breadcrumbs ol.breadcrumb li.active {
  color: var(--text-color);
}

.page-title .breadcrumbs a {
  color: var(--primary-on-dark, var(--primary-color));
  font-weight: 600;
}

.page-title .breadcrumbs a:hover {
  color: var(--secondary-color);
}

.page-title .title-wrapper h1 {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.page-title .title-wrapper p {
  margin-bottom: 0;
  color: var(--text-color);
}

/*--------------------------------------------------------------
# Starter Section (long-form article pages) — AA on dark
--------------------------------------------------------------*/
.starter-section {
  padding-top: 56px;
}

.starter-section p,
.starter-section li {
  color: var(--text-color);
  font-size: 1.05rem;
}

.starter-section h2,
.starter-section h3,
.starter-section h4 {
  color: var(--heading-color);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.starter-section a {
  color: var(--primary-on-dark, var(--primary-color));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.starter-section a:hover {
  color: var(--secondary-color);
}

.starter-section blockquote {
  border-left: 3px solid var(--primary-on-dark, var(--primary-color));
  background: var(--surface-color);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  color: var(--text-color);
}

.starter-section img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/*--------------------------------------------------------------
# Inner detail pages
--------------------------------------------------------------*/
.detail-aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-aside-list li {
  margin-bottom: 14px;
}

.detail-aside-list a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  color: var(--text-color);
  font-weight: 500;
}

.detail-aside-list a:hover,
.detail-aside-list a.active {
  color: var(--primary-on-dark, var(--primary-color));
}

.detail-aside-title {
  font-size: 1.25rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--surface-border);
}

/*--------------------------------------------------------------
# Footer (theme footer on inner pages)
--------------------------------------------------------------*/
.footer {
  background: var(--surface-color);
  border-top: 1px solid var(--surface-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: var(--text-color);
  font-size: 14px;
  padding-top: 50px;
  position: relative;
}

.footer .footer-top {
  padding-bottom: 30px;
}

.footer .logo {
  gap: 8px;
}

.footer .logo i {
  font-size: 22px;
  color: var(--primary-on-dark, var(--primary-color));
}

.footer .sitename {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer .footer-contact p {
  margin-bottom: 4px;
}

.footer h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--heading-color);
}

.footer .footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer .footer-links ul li {
  margin-bottom: 10px;
}

.footer .footer-links a {
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.footer .footer-links a:hover {
  color: var(--primary-on-dark, var(--primary-color));
}

.footer .copyright {
  border-top: 1px solid var(--surface-border);
  padding: 22px 0;
  margin-top: 10px;
}

.footer .copyright strong {
  color: var(--heading-color);
}

/*--------------------------------------------------------------
# Scroll Top Button (rescued by the engine from theme footers)
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: var(--on-primary, var(--contrast-color));
  box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.scroll-top i {
  font-size: 26px;
  color: var(--on-primary, var(--contrast-color));
  line-height: 0;
}

.scroll-top:hover {
  transform: translateY(-3px);
  color: var(--on-primary, var(--contrast-color));
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Injected Global Footer harmonization
# (engine appends .spec-site-global-footer, dark slate #0f172a —
# blend it into Forge's charcoal-brown, keep links AA)
--------------------------------------------------------------*/
.spec-site-global-footer {
  background: #14100c !important;
  border-top: 1px solid var(--surface-border) !important;
  color: var(--text-color) !important;
}

.spec-site-global-footer a {
  color: var(--primary-on-dark, var(--primary-color)) !important;
}

.spec-site-global-footer a:hover {
  color: var(--secondary-color) !important;
}

/*--------------------------------------------------------------
# A11y / QA blocks
--------------------------------------------------------------*/

/* Headings re-leveled for document outline keep former visual size */
.h4-style {
  font-size: calc(1.275rem + 0.3vw);
}

.h5-style {
  font-size: 1.25rem;
}

/* Icon-only links must meet minimum target size */
.scroll-top,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
}

.scroll-top {
  display: flex;
}

.social-links a {
  color: var(--text-color);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  margin-left: 8px;
}

.social-links a:hover {
  color: var(--primary-on-dark, var(--primary-color));
  border-color: rgba(var(--primary-rgb), 0.5);
}

/* Safety pin: any residual AOS-marked content renders fully opaque
   so text never sits below WCAG 1.4.3 thresholds */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Compact header on phones: long injected site names (h1.sitename) must not
   wrap into the hero, and the header CTA can't fit beside the nav toggle. */
@media (max-width: 575px) {
  .header .logo h1.sitename,
  .header .logo .sitename {
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62vw;
  }
  .header .btn-getstarted {
    display: none;
  }
}
