/* Red brand theme with high-contrast readable text. */
:root {
  --primary: #b4232f;
  --primary-dark: #7f1d2d;
  --secondary: #551b26;
  --accent: #e34a4a;
  --text: #2d1e21;
  --text-light: #6b5558;
  --background: #fff8f7;
  --white: #ffffff;
  --surface: #ffffff;
  --border: #ead1d0;
  --soft-surface: #f8e9e8;
}

body {
  color: #2d1e21 !important;
  background: #fff8f7 !important;
}

header {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: #ead1d0 !important;
  box-shadow: 0 8px 24px rgba(85, 27, 38, 0.1) !important;
}

.nav-links a,
.nav-links a:hover {
  color: #2d1e21 !important;
}

.dropdown-content {
  border-color: #ead1d0 !important;
}

.dropdown-content a:hover {
  background: #f8e9e8 !important;
  color: #7f1d2d !important;
}

.menu-toggle,
.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle.active {
  border-color: #e2b9b8 !important;
  background: #fff8f7 !important;
  color: #7f1d2d !important;
}

h1,
h2,
h3,
.section-title,
.specs-text h2,
.product-info h3,
.home h1,
#Applications h1,
#products-intro h1,
#NEWS h1 {
  color: #551b26;
}

.home h1,
.news-header h1,
.section-title,
.description-text h2 {
  background-image: linear-gradient(135deg, #551b26, #b4232f) !important;
}

.feature-block,
.product-card,
.feature-card,
.benefit-card,
.marble-card,
.contact-card,
.contact-form-container,
.info-card,
.container {
  border-color: #ead1d0 !important;
  box-shadow: 0 14px 32px rgba(85, 27, 38, 0.09) !important;
}

.feature-block:hover,
.product-card:hover,
.contact-card:hover,
.contact-form-container:hover {
  border-color: #e2a3a2 !important;
  box-shadow: 0 18px 38px rgba(85, 27, 38, 0.16) !important;
}

.feature-icon,
.product-features i,
.info-card i,
.contact-icon,
.contact-detail-icon,
.loading-spinner i {
  color: #b4232f !important;
}

.cta-button,
.read-more-btn,
.submit-btn,
.brochure-button,
.admin-btn,
.login-btn,
.logout-btn {
  background: #7f1d2d !important;
  color: #ffffff !important;
  border-color: #7f1d2d !important;
}

.cta-button:hover,
.read-more-btn:hover,
.submit-btn:hover,
.brochure-button:not(:disabled):hover,
.admin-btn:hover,
.login-btn:hover,
.logout-btn:hover {
  background: #b4232f !important;
}

#product-showcase {
  padding: 1rem 0 6rem;
  background: #ffffff !important;
}

#product-showcase .products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

#product-showcase .product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid #ead1d0 !important;
  border-radius: 12px;
}

#product-showcase .product-image {
  position: relative;
  height: 240px;
  background: #f8e9e8;
}

#product-showcase .product-image::after {
  content: '';
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(85, 27, 38, 0.22));
  pointer-events: none;
}

#product-showcase .product-image img {
  transform: scale(1);
  transition: transform 0.5s ease, filter 0.5s ease;
}

#product-showcase .product-card:hover .product-image img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

#product-showcase .product-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(85, 27, 38, 0.28);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#product-showcase .product-card:hover .product-overlay {
  opacity: 1;
}

#product-showcase .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

#product-showcase .product-info h3 {
  color: #551b26 !important;
  font-size: 1.25rem;
}

#product-showcase .product-info p {
  flex: 0 0 auto;
  color: #6b5558;
  line-height: 1.7;
  margin-bottom: 1rem;
}

#product-showcase .product-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #ead1d0;
}

#product-showcase .product-features span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 2.35rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #ead1d0;
  border-radius: 8px;
  background: #fff8f7;
  color: #7f1d2d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
}

#product-showcase .product-features span i {
  display: inline-grid;
  flex: 0 0 1.65rem;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #f8e9e8;
  color: #b4232f;
  font-size: 0.78rem;
}

@media (max-width: 992px) {
  #product-showcase .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

@media (max-width: 600px) {
  #product-showcase .products-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  #product-showcase .product-image {
    height: 220px;
  }

  #product-showcase .product-overlay {
    opacity: 1;
    background: linear-gradient(transparent, rgba(85, 27, 38, 0.2));
    place-items: end center;
    padding-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  #product-showcase .product-overlay {
    display: grid;
    place-items: center;
    padding: 0;
  }

  #product-showcase .product-overlay .cta-button {
    justify-self: center;
    align-self: center;
    margin: 0;
  }
}

/* Product system showcase */
.home-page #products-intro {
  position: relative;
  overflow: hidden;
  padding: 3rem max(2rem, calc((100vw - 1180px) / 2)) 5rem !important;
  background: #fff8f7 !important;
}

.products-intro-inner { position: relative; z-index: 1; width: min(100%, 760px); margin: 0 auto; text-align: center; }
.section-kicker { display: inline-block; color: #a12b38; font-size: .72rem; font-weight: 800; letter-spacing: .2em; }
.home-page #products-intro h1 { margin: 0 0 1.15rem; color: #35171e; font-size: clamp(3rem, 7vw, 6.4rem); line-height: 1.12; letter-spacing: -.065em; }
.home-page #products-intro h1 em, .vis800-feature h2 em { color: #b4232f; font-style: normal; }
.home-page #products-intro p { max-width: 570px; margin: 0 auto; color: #6b5558; font-size: 1.07rem; line-height: 1.85; }
.products-intro-link, .vis800-feature-link { display: inline-flex; align-items: center; gap: .8rem; margin-top: 1.6rem; color: #7f1d2d; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-decoration: none; }
.home-page .products-intro-link { min-height: 48px; justify-content: center; margin-top: 1.7rem; padding: .85rem 1.25rem; border: 1px solid #7f1d2d; border-radius: 4px; background: #7f1d2d; color: #fff; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.home-page .products-intro-link:hover { transform: translateY(-2px); border-color: #b4232f; background: #b4232f; }
.home-page .products-intro-link:focus-visible { outline: 3px solid #b4232f; outline-offset: 4px; }
.products-intro-link i, .vis800-feature-link i { transition: transform .2s ease; }
.products-intro-link:hover i { transform: translateY(4px); }
.vis800-feature-link:hover i { transform: translateX(5px); }
.home-page #product-showcase { padding: 1rem max(2rem, calc((100vw - 1180px) / 2)) 4.5rem !important; background: #fff !important; }
.home-page .products-showcase-heading { display: grid; justify-items: center; gap: .75rem; margin: 0 auto 2.5rem; text-align: center; }
.products-showcase-heading h2 { margin-top: .5rem; color: #35171e; font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.04em; }
.products-showcase-heading > p { max-width: 600px; margin: 0; color: #6b5558; font-size: .92rem; line-height: 1.7; }
.vis800-feature { display: grid; grid-template-columns: .85fr 1.2fr .8fr; align-items: stretch; overflow: hidden; margin-bottom: 4.5rem; border: 1px solid #ead1d0; border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgba(85,27,38,.09); }
.vis800-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 3vw, 3rem); }
.feature-index { color: #a12b38; font-size: .67rem; font-weight: 800; letter-spacing: .17em; }
.vis800-feature h2 { margin: 1rem 0; color: #35171e; font-size: clamp(2.3rem, 4vw, 4rem); line-height: .98; letter-spacing: -.06em; }
.vis800-feature-copy > p { margin: 0; color: #6b5558; font-size: .92rem; line-height: 1.8; }
.vis800-feature-link { margin-top: 1.5rem; }
.vis800-feature-visual { position: relative; display: grid; place-items: center; min-height: 330px; padding: 2rem; background: radial-gradient(ellipse at center, #fff 4%, #f6e8e7 100%); }
.vis800-feature-visual img { width: 100%; height: 100%; max-height: 365px; object-fit: contain; }
.visual-caption { position: absolute; left: 1.5rem; bottom: 1.25rem; color: #7f1d2d; font-size: .61rem; font-weight: 800; letter-spacing: .16em; }
.vis800-feature-points { display: flex; flex-direction: column; justify-content: center; padding: 1.6rem; background: #fbf4f3; }
.vis800-feature-points > div { display: flex; gap: .85rem; padding: 1.15rem 0; border-bottom: 1px solid #ead1d0; }
.vis800-feature-points > div:last-child { border-bottom: 0; }
.vis800-feature-points strong { color: #b4232f; font-size: .7rem; letter-spacing: .08em; }
.vis800-feature-points span { display: grid; gap: .28rem; }
.vis800-feature-points b { color: #35171e; font-size: .83rem; }
.vis800-feature-points small { color: #715e61; font-size: .75rem; line-height: 1.55; }
.products-grid-heading { display: flex; justify-content: space-between; margin: 0 0 .75rem; padding-bottom: .75rem; border-bottom: 1px solid #ead1d0; color: #8b7477; font-size: .67rem; font-weight: 800; letter-spacing: .17em; }
.home-page #product-showcase .products-grid { margin-top: 0; gap: 1.2rem; }
.home-page #product-showcase .product-card { border: 1px solid #e7e7e5 !important; border-radius: 8px; box-shadow: 0 6px 18px rgba(35,30,28,.045) !important; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.home-page #product-showcase .product-image { height: 178px; display: flex; align-items: flex-start; justify-content: space-between; padding: .8rem; background: #f4f5f3; }
.home-page #product-showcase .product-image::after { display: none; }
.home-page #product-showcase .product-image img { width: 100%; height: 100%; object-fit: contain; }
.home-page #product-showcase .product-number,
.home-page #product-showcase .product-type { position: absolute; z-index: 1; top: .8rem; color: #7f1d2d; font-size: .61rem; font-weight: 800; letter-spacing: .1em; }
.home-page #product-showcase .product-number { left: .8rem; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 1px solid rgba(127,29,45,.16); border-radius: 50%; background: rgba(255,255,255,.92); }
.home-page #product-showcase .product-type { right: .8rem; padding: .4rem .48rem; border: 1px solid rgba(127,29,45,.12); border-radius: 3px; background: rgba(255,255,255,.92); font-size: .54rem; }
.home-page #product-showcase .product-info { padding: 1.05rem 1.1rem 1rem; }
.home-page #product-showcase .product-eyebrow { margin-bottom: .35rem; color: #a12b38; font-size: .58rem; font-weight: 800; letter-spacing: .1em; }
.home-page #product-showcase .product-info h3 { margin-bottom: .65rem; color: #35171e !important; font-size: 1.18rem; letter-spacing: 0; }
.home-page #product-showcase .product-info p { min-height: 3.9em; margin-bottom: .3rem; color: #6b5558; font-size: .81rem; line-height: 1.55; }
.home-page #product-showcase .product-features { display: grid; min-height: 4rem; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: stretch; gap: 0; padding-top: .5rem; border-top: 1px solid #eee9e8; }
.home-page #product-showcase .product-features span { display: flex; width: 100%; min-width: 0; min-height: 3.25rem; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .25rem .15rem; border: 0; border-right: 1px solid #eee9e8; border-radius: 0; background: transparent; color: #5f4b4d; font-size: .59rem; line-height: 1.25; text-align: center; white-space: normal; }
.home-page #product-showcase .product-features span:last-child { border-right: 0; }
.home-page #product-showcase .product-features span i { width: 1rem; height: 1rem; flex: 0 0 1rem; background: transparent; color: #a12b38; font-size: .68rem; }
.home-page #product-showcase .product-card-link { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding: .65rem .8rem; border: 0; border-radius: 4px; background: #7f1d2d; color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .09em; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.home-page #product-showcase .product-card-link:hover { transform: translateY(-1px); background: #b4232f; }
.home-page #product-showcase .product-card-link:focus-visible { outline: 3px solid #b4232f; outline-offset: 3px; }
.home-page #product-showcase .product-card-link i { transition: transform .2s ease; }
.home-page #product-showcase .product-card-link:hover i { transform: translateX(4px); }
.home-page #product-showcase .product-card:hover { transform: translateY(-3px); border-color: #c77a78 !important; box-shadow: 0 14px 28px rgba(35,30,28,.1) !important; }

@media (max-width: 900px) {
  .home-page #product-showcase .product-info p { min-height: 3.9em; }
}
@media (max-width: 600px) {
  .home-page #products-intro { padding: 4rem 1.2rem 3rem !important; }
  .home-page #product-showcase { padding: 1rem 1.2rem 3rem !important; }
  .home-page #product-showcase .product-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products-showcase-heading { display: block; }
  .products-showcase-heading > p { margin-top: .7rem; }
  .home-page #product-showcase .products-grid { padding: 0; }
  .home-page #product-showcase .product-image { height: 190px; }
  .home-page #product-showcase .product-info p { min-height: 0; }
}

#Applications,
#products-intro,
#NEWS,
#application-content,
.description-section,
.specs-section,
.map-section {
  background: #fff8f7 !important;
}

#application-content {
  background: #ffffff !important;
}

.application-hero {
  background-color: #ffffff !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-radius: 12px !important;
}

.application-hero::before {
  background: rgba(255, 255, 255, 0.12) !important;
}

.app-content-overlay {
  width: 100% !important;
  max-width: none !important;
  padding: 0 1.25rem !important;
  border-radius: 0;
  background: transparent !important;
  color: #ffffff !important;
  box-shadow: none;
}

.app-content-overlay h2,
.app-content-overlay p {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(85, 27, 38, 0.65);
}

.hero-section::before {
  background: linear-gradient(120deg, rgba(85, 27, 38, 0.22), rgba(85, 27, 38, 0.78)) !important;
}

.contact-hero,
.footer {
  background: linear-gradient(120deg, #551b26, #b4232f) !important;
}

.contact-card a,
.info-card a,
#contact a,
.contact-card a:hover {
  color: #b4232f !important;
}

.contact-details h2:after {
  background: #b4232f !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #b4232f !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 47, 0.16) !important;
}

.form-success,
.form-error {
  background: #f8e9e8 !important;
  color: #7f1d2d !important;
}

.metalforming-page .hero-content h1 {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  background: #ffffff !important;
  color: #551b26 !important;
  text-shadow: none !important;
}

.metalforming-page .section-title,
.metalforming-page .description-text h2 {
  color: #551b26 !important;
  background: none !important;
  -webkit-text-fill-color: #551b26 !important;
}

.metalforming-page .description-section,
.metalforming-page .description-image {
  background: #ffffff !important;
}

.application-page .hero-content h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(85, 27, 38, 0.65);
}

.application-page .section-title,
.application-page .description-text h2 {
  color: #551b26 !important;
  background: none !important;
  -webkit-text-fill-color: #551b26 !important;
}

.application-page .feature-card p,
.application-page .description-text p {
  color: #6b5558 !important;
}

.application-page .feature-card,
.application-page .description-section {
  background: #ffffff !important;
}

.application-page .feature-icon,
.application-page .description-text h2::after {
  color: #b4232f !important;
}

@media (max-width: 768px) {
  .nav-links {
    background: #ffffff !important;
    box-shadow: 0 14px 28px rgba(85, 27, 38, 0.12) !important;
  }
}

/* Shared page rhythm */
#Home {
  padding: 2.75rem 2rem 4rem !important;
  scroll-margin-top: 0;
}

#Home .home h1 {
  margin-top: 0;
}

#home-title {
  scroll-margin-top: 92px;
}

.home-page #home-title,
.home-page #Applications h1,
.home-page #products-intro h1,
.home-page #NEWS h1 {
  margin: 0 0 1.15rem;
  font-size: 2.8rem !important;
  line-height: 1.25;
  text-transform: uppercase;
}

#Home .home-content {
  gap: 1.25rem;
  margin-top: 2.5rem;
}

#Home .home-content .feature-block p {
  text-align: justify;
  text-justify: inter-word;
}

#Applications,
#products-intro,
#NEWS {
  padding-top: 4rem !important;
  padding-bottom: 2rem !important;
}

.home-page #products-intro {
  padding-top: 1.5rem !important;
}

.home-page #NEWS {
  max-width: none;
  padding: 5rem max(2rem, calc((100vw - 1180px) / 2)) !important;
  background: #292325 !important;
  color: #fff;
}

.home-page .news-feature {
  display: grid;
  width: min(100%, 1180px);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  margin: 0 auto;
}

.home-page .news-kicker {
  display: block;
  margin-bottom: 1rem;
  color: #f08b8b;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.home-page .news-feature-heading h1 {
  margin: 0 0 1.15rem;
  color: #fff !important;
}

.home-page .news-feature-heading h2 {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-size: 2rem;
  line-height: 1.2;
}

.home-page .news-feature-copy {
  max-width: 590px;
}

.home-page .news-feature-copy .news-deck {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, .9);
  font-size: 1.05rem;
  line-height: 1.7;
}

.home-page .news-feature-copy .news-highlight {
  margin: 0 0 1.7rem;
  padding: .85rem 1rem;
  border-left: 2px solid #c94750;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .68);
  font-size: .9rem;
  line-height: 1.75;
}

.home-page .news-highlight strong {
  display: block;
  margin-bottom: .35rem;
  color: #f08b8b;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.home-page .news-read-more {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .8rem;
  padding: .7rem 1rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 4px;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}

.home-page .news-read-more:hover {
  border-color: #c94750;
  background: #7f1d2d;
}

.home-page .news-read-more:focus-visible {
  outline: 3px solid #f08b8b;
  outline-offset: 3px;
}

#Applications-navbar {
  margin-bottom: 0;
}

.hero-section {
  height: 480px !important;
  margin-top: 80px !important;
  margin-bottom: 2.5rem !important;
}

.content-section,
.description-section,
.specs-section,
.benefits-section,
.marble-types {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.features-grid,
.benefits-grid,
.specs-content,
.description-content,
.marble-grid {
  gap: 1.25rem !important;
}

#product-showcase {
  padding-top: 0 !important;
  padding-bottom: 4rem !important;
}

@media (max-width: 768px) {
  #Home {
    padding: 2rem 1rem 2.5rem !important;
  }

  #Applications,
  #products-intro,
  #NEWS {
    padding-top: 3rem !important;
    padding-bottom: 1.5rem !important;
  }

  .home-page #products-intro {
    padding-top: 1.25rem !important;
  }

  .home-page #home-title,
  .home-page #Applications h1,
  .home-page #products-intro h1,
  .home-page #NEWS h1 {
    margin: 0 0 1.15rem;
    font-size: 2.8rem !important;
    line-height: 1.25;
  }

  .home-page #NEWS {
    padding: 3.5rem 1.25rem !important;
  }

  .home-page .news-feature {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .home-page .news-feature-heading h2 {
    max-width: 18ch;
    font-size: 1.65rem;
  }

  .home-page .news-feature-copy .news-deck {
    font-size: .95rem;
  }

  .hero-section {
    height: 390px !important;
    margin-top: 70px !important;
    margin-bottom: 2rem !important;
  }

  .content-section,
  .description-section,
  .specs-section,
  .benefits-section,
  .marble-types {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  #product-showcase {
    padding-bottom: 2.5rem !important;
  }
}

/* Shared navigation dimensions */
header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000 !important;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0.75rem 2rem !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.logo img {
  display: block;
  width: auto;
  height: 40px !important;
  max-width: 210px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  margin: 0 !important;
  position: relative;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a:focus-visible {
  background: #f8e9e8;
  color: #7f1d2d !important;
  outline: none;
}

.dropdown-content {
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(85, 27, 38, 0.14);
}

.dropdown-content a {
  display: flex;
  min-height: 2.25rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 5px;
  color: #2d1e21 !important;
  font-size: 0.82rem !important;
  text-transform: none;
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
  background: #f8e9e8 !important;
  color: #7f1d2d !important;
  outline: none;
}

/* Keep the site navigation consistent across every page. */
.nav-links {
  gap: 2.5rem;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  transition: color 0.25s ease, background 0.2s ease, transform 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #b4232f;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links > li > a:hover,
.nav-links > li > a:focus-visible {
  background: #f8e9e8;
  color: #7f1d2d !important;
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 0.35rem;
  }
}

/* Premium homepage introduction and capability cards. */
.home-page #Home {
  padding: clamp(3.5rem, 7vw, 6rem) max(1.25rem, calc((100vw - 1240px) / 2)) 5rem !important;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(180, 35, 47, 0.055), transparent 34rem),
    linear-gradient(145deg, #fffdfc 0%, #fff8f7 100%) !important;
}

.home-page #Home .home {
  max-width: 1240px;
  text-align: left;
}

.home-page .home-intro {
  max-width: 790px;
  margin: 0 0 3rem;
}

.home-page .home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  color: #9b2934;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-page .home-eyebrow::before {
  width: 1.8rem;
  height: 1px;
  background: #b4232f;
  content: "";
}

.home-page #home-title {
  display: block;
  max-width: 780px;
  margin: 0 0 1.15rem;
  color: #35171e !important;
  background: none !important;
  -webkit-text-fill-color: #35171e !important;
  font-size: 2.8rem !important;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-align: left;
  text-transform: none;
}

.home-page #home-title::after {
  display: none;
}

.home-page .home-intro > p {
  max-width: 650px;
  margin: 0;
  color: #6b5558;
  font-size: 1.06rem;
  line-height: 1.8;
  text-align: left;
}

.home-page #Home .home-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.home-page #Home .feature-block {
  min-width: 0;
  margin: 0;
  padding: 1.5rem 1.5rem 1.6rem;
  border: 1px solid rgba(85, 27, 38, 0.12) !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(61, 26, 31, 0.055) !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-page #Home .feature-block:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 35, 47, 0.3) !important;
  box-shadow: 0 18px 34px rgba(61, 26, 31, 0.1) !important;
}

.home-page .feature-number {
  display: block;
  margin-bottom: 1.2rem;
  color: #b4232f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-page .feature-number i {
  color: #9b8587;
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.14em;
}

.home-page #Home .feature-block h3 {
  margin: 0 0 0.8rem;
  padding: 0;
  color: #35171e;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.home-page #Home .feature-block h3::before {
  display: none;
}

.home-page #Home .feature-block p {
  margin: 0;
  color: #6b5558;
  font-size: 0.86rem;
  line-height: 1.75;
  text-align: left;
  text-justify: auto;
}

@media (max-width: 900px) {
  .home-page #Home .home-content {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .home-page .home-intro {
    margin-bottom: 2rem;
  }

  .home-page #Home .feature-block {
    padding: 1.35rem 1.4rem;
  }

  .home-page .feature-number {
    margin-bottom: 0.7rem;
  }
}

@media (max-width: 600px) {
  .home-page #Home {
    padding: 3rem 1.15rem 3.5rem !important;
  }

  .home-page #home-title {
    font-size: 2.15rem !important;
  }

  .home-page .home-intro > p {
    font-size: 0.98rem;
  }
}

/* Center the homepage introduction while keeping the feature cards editorial. */
.home-page .home-intro {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  scroll-margin-top: 100px;
}

.home-page #home-title,
.home-page .home-intro > p {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

/* Use the site's Raleway typeface consistently, including form controls. */
body,
button,
input,
select,
textarea {
  font-family: "Raleway", sans-serif;
}

/* A single heading color carries through the homepage sections. */
.home-page #Home h1,
.home-page #Home h3,
.home-page #Applications h1,
.home-page #products-intro h1,
.home-page #product-showcase h2,
.home-page #product-showcase h3,
.home-page #NEWS h1,
.home-page #NEWS h2 {
  color: #35171e !important;
  background: none !important;
  -webkit-text-fill-color: #35171e !important;
}

.home-page #products-intro h1 em {
  color: #35171e !important;
  -webkit-text-fill-color: #35171e !important;
}

.home-page #NEWS {
  background: #fff8f7 !important;
  color: #35171e;
}

.home-page .news-feature-copy .news-deck {
  color: #6b5558;
}

.home-page .news-read-more {
  border-color: #7f1d2d;
  background: #7f1d2d;
  color: #ffffff;
}

.home-page .news-read-more:hover {
  border-color: #b4232f;
  background: #b4232f;
}

/* Preserve the original dark News panel and its contrast. */
.home-page #NEWS {
  background: #292325 !important;
  color: #ffffff;
}

.home-page #NEWS h1,
.home-page #NEWS h2 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.home-page .news-feature-copy .news-deck {
  color: rgba(255, 255, 255, 0.9);
}

.home-page .news-read-more {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #ffffff;
}

.home-page .news-read-more:hover {
  border-color: #c94750;
  background: #7f1d2d;
}

@media (max-width: 768px) {
  .nav-container {
    min-height: 70px;
    padding: 0.75rem 1rem !important;
  }

  .nav-links {
    gap: 0.35rem;
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links a {
    width: 100%;
    padding: 0.65rem 0.75rem;
  }
}

/* Final mobile menu state: closed by default, shown only when toggled. */
@media (max-width: 768px) {
  header .nav-container {
    position: relative;
    min-height: 70px;
  }

  header .nav-container > .nav-links {
    display: none !important;
    visibility: hidden !important;
    position: absolute;
    z-index: 1001;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 28px rgba(85, 27, 38, 0.14);
  }

  header .nav-container > .nav-links.active {
    display: flex !important;
    visibility: visible !important;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 1rem;
  }

  header .nav-container > .nav-links > li {
    width: 100%;
  }

  header .nav-container > .nav-links a {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    padding: 0.65rem 0.75rem;
  }

  header .nav-container > .menu-toggle {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    position: relative;
    z-index: 1002;
    border: 1px solid #ead1d0;
    border-radius: 10px;
    background: #fff8f7;
    color: #7f1d2d;
    cursor: pointer;
  }
}

/* Improve spacing and paragraph flow on phones on the home page. */
@media (max-width: 768px) {
  #Home .home-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  #Home .home-content > .feature-block {
    margin-top: 0;
    padding: 2rem 1.25rem 1.25rem;
  }

  #Home .home-content > .feature-block h3 {
    margin-top: 0;
    margin-bottom: 0.85rem;
    line-height: 1.25;
  }

  #products-intro p {
    max-width: 36rem;
    margin: 0 auto;
    padding: 0;
    font-size: 1rem;
    line-height: 1.65;
    text-wrap: pretty;
  }
}
