/*
 * Apollo Textile Mills - brand overrides
 * Loaded after main.css. Brand colours live in main.css :root
 * (--theme: #C9C9C9 secondary grey, --theme2: #E8545E primary red).
 * This file fixes places where the grey accent would be unreadable on
 * light backgrounds and adds the few components the template lacks.
 */

/* ---------- Logo (header sizing lives in the Header section) ---------- */
.offcanvas__logo a img {
  width: 150px;
  height: auto;
}
.footer-widgets-wrapper .footer-widget-items .widget-logo img {
  width: 180px;
  height: auto;
}

/* ---------- Accents: red instead of light grey on white backgrounds ---------- */
.header-main .main-menu ul li a:hover,
.header-main .main-menu ul li:hover > a,
.header-main .main-menu ul li:hover > a::after,
.header-main .main-menu ul li.active > a {
  color: var(--theme2) !important;
}
.section-title .sub-title::before,
.hero-1 .hero-content .sub-title::before {
  background-color: var(--theme2);
}
.service-box-one .content .title a:hover,
.link-btn:hover,
.breadcrumb-wrapper .page-heading .breadcrumb-list li a:hover,
.footer-widgets-wrapper .footer-widget-items .widget-content .list-area li:hover a,
.footer-bottom .footer-wrapper p a:hover,
.mean-container .mean-nav ul li a:hover {
  color: var(--theme2);
}
.footer-widgets-wrapper .footer-widget-items .widget-head {
  border-image: linear-gradient(90deg, var(--theme2) 4.85%, rgba(201, 201, 201, 0) 96.39%);
  border-image-slice: 1;
}
.footer-widgets-wrapper .footer-widget-items .widget-content .border-text {
  -webkit-text-stroke: 1px var(--theme2);
}
.footer-contact-area .client-area .phone-box .content span {
  color: var(--theme);
}
.hero-1 .swiper-dot .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: var(--theme2);
}
.cta-wrapper .cta-info-wrap .info-item .info-link {
  color: var(--white);
}
.back-to-top,
.cursor-inner,
.cursor-inner.cursor-hover {
  background-color: var(--theme2);
}
.cursor-outer {
  border-color: var(--theme2);
  background-color: transparent;
}
.back-to-top {
  color: var(--white);
}
::-webkit-scrollbar-thumb {
  background: var(--theme2);
}

/* Secondary (outline) button used next to the main grey button */
.theme-btn.theme-btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  line-height: 56px;
}
.theme-btn.theme-btn-outline:hover {
  border-color: var(--header);
}
.theme-btn.theme-btn-red {
  background-color: var(--theme2);
  color: var(--white);
}

/* ---------- Hero ---------- */
.hero-1 .hero-content h1,
.hero-1 .hero-content .hero-title {
  color: var(--white);
  font-size: 66px;
  line-height: 115%;
  text-transform: none;
  font-weight: 700;
}
@media (max-width: 1199px) {
  .hero-1 .hero-content h1,
  .hero-1 .hero-content .hero-title {
    font-size: 56px;
  }
}
@media (max-width: 767px) {
  .hero-1 .hero-content h1,
  .hero-1 .hero-content .hero-title {
    font-size: 42px;
  }
}
@media (max-width: 470px) {
  .hero-1 .hero-content h1,
  .hero-1 .hero-content .hero-title {
    font-size: 34px;
  }
}
.hero-1 .hero-content p {
  text-transform: none;
}
.hero-1 .hero-button {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-1 .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 34, 57, 0.85) 0%, rgba(11, 34, 57, 0.55) 55%, rgba(11, 34, 57, 0.25) 100%);
}

/* ---------- Breadcrumb subheading ---------- */
.breadcrumb-wrapper .page-heading .page-subheading {
  color: var(--white);
  font-size: 20px;
  margin: 10px auto 20px;
  max-width: 680px;
}
.breadcrumb-wrapper .page-heading .breadcrumb-list {
  justify-content: center;
}

/* ---------- Key figures strip ---------- */
.key-figures .counter-items .counter-box h2 {
  white-space: nowrap;
}

/* ---------- Product cards (5 across on wide screens) ---------- */
.service-box-one .icon img {
  width: 36px;
  height: 36px;
}
.service-box-one .content {
  margin-top: 120px;
}
.service-box-one .bg-image img {
  object-fit: cover;
}

/* ---------- Product detail blocks ---------- */
.product-detail {
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 110px;
}
.product-detail:last-child {
  border-bottom: 0;
}
.product-detail .product-image img {
  width: 100%;
  border-radius: 30px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.product-detail h2 {
  margin-bottom: 20px;
}
.product-detail .product-number {
  color: var(--theme2);
  font-weight: 700;
  font-family: "Hanken Grotesk", sans-serif;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}
.suitable-for {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.suitable-for strong {
  color: var(--header);
  font-family: "Hanken Grotesk", sans-serif;
}
.suitable-for span {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 16px;
  font-size: 15px;
  color: var(--header);
}

/* ---------- Machinery cards ---------- */
.machine-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  transition: all 0.3s ease-in-out;
}
.machine-card:hover {
  border-color: var(--theme2);
  box-shadow: var(--box-shadow);
}
.machine-card .machine-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--theme2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.machine-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.machine-card p {
  margin-bottom: 0;
}

/* ---------- Highlight figure (11 MW, Usterized) ---------- */
.highlight-box {
  background-color: var(--header);
  border-radius: 30px;
  padding: 50px 40px;
  color: var(--white);
  height: 100%;
}
.highlight-box .figure {
  font-size: 80px;
  line-height: 1;
  font-weight: 700;
  color: var(--theme2);
  font-family: "Hanken Grotesk", sans-serif;
}
.highlight-box h3 {
  color: var(--white);
  margin: 15px 0;
}
.highlight-box p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}
@media (max-width: 575px) {
  .highlight-box .figure {
    font-size: 56px;
  }
}

/* ---------- Simple two-column content block ---------- */
.content-block .content-image img {
  width: 100%;
  border-radius: 30px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.content-block p + p {
  margin-top: 16px;
}
.check-list {
  margin-top: 24px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--header);
  font-weight: 500;
}
.check-list li img {
  margin-top: 4px;
}

/* ---------- Gallery ---------- */
.project-wrapper-3 .project-items .project-image .project-thumb {
  aspect-ratio: 630 / 425;
}
.project-wrapper-3 .project-items .project-image .project-content .content p {
  margin-bottom: 0;
}

/* ---------- Quality process thumbs ---------- */
.work-process-box-items-2 .thumb img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- Leadership ---------- */
.leader-card {
  max-width: 520px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: 30px;
  padding: 50px 40px;
  text-align: center;
  border-top: 4px solid var(--theme2);
  box-shadow: var(--box-shadow);
}
.leader-card .leader-initials {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: var(--theme);
  color: var(--header);
  font-size: 32px;
  font-weight: 700;
  font-family: "Hanken Grotesk", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.leader-card h3 {
  margin-bottom: 6px;
}
.leader-card p {
  color: var(--theme2);
  font-weight: 600;
  margin-bottom: 0;
}

/* ---------- Contact form ---------- */
.contact-wrapper-3 .contact-from select.inptFld {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B2239' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 44px;
  color: var(--text);
}
.contact-wrapper-3 .contact-from .form-message {
  margin-top: 16px;
  font-weight: 500;
}
.contact-wrapper-3 .contact-from .form-message.success {
  color: #1e7e34;
}
.contact-wrapper-3 .contact-from .form-message.error {
  color: #b02a37;
}
.contact-wrapper-3 .contact-items .content a {
  color: inherit;
}

/* ---------- Fixes after visual review ---------- */
.key-figures {
  padding-top: 60px;
}
.about-wrapper-one .about-content .about-list-items ul li,
.cta-wrapper .cta-info-wrap .info-item p,
.footer-widgets-wrapper .footer-widget-items .widget-content .contact-list p,
.footer-contact-area .client-area .phone-box .content span {
  text-transform: none;
}
.advantage-wrapper .advantage-box-items .advantage-btn-box .adv-icon {
  font-size: 26px;
  color: var(--theme2);
}
.advantage-wrapper .advantage-box-items .advantage-content .advantage-thumb img {
  aspect-ratio: 4 / 3;
}
.work-process-box-items-2 .content p,
.working-process-box-items .content p {
  text-transform: none;
}

/* =====================================================================
 * Header: full-width white sticky bar (replaces the floating pill)
 * ===================================================================== */
:root {
  --header-h: 90px;
  --header-h-sticky: 72px;
  --red-dark: #CC3E48;
}
@media (max-width: 575px) {
  :root {
    --header-h: 76px;
    --header-h-sticky: 64px;
  }
}
.header-1,
.header-1.header-one,
.header-1.header-one.sticky {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background-color: var(--white);
  border-radius: 0;
  box-shadow: none;
  animation: none !important;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.header-1.header-one.sticky {
  box-shadow: 0 2px 12px rgba(11, 34, 57, 0.08);
}
/* Same width as the page content */
.header-1 .container,
.header-1.header-one .container {
  max-width: 1320px;
}
@media (max-width: 1399px) {
  .header-1 .container,
  .header-1.header-one .container {
    max-width: 1140px;
  }
}
@media (max-width: 1199px) {
  .header-1 .container,
  .header-1.header-one .container {
    max-width: 960px;
  }
}
@media (max-width: 991px) {
  .header-1 .container,
  .header-1.header-one .container {
    max-width: 720px;
  }
}
@media (max-width: 767px) {
  .header-1 .container,
  .header-1.header-one .container {
    max-width: 540px;
  }
}
@media (max-width: 575px) {
  .header-1 .container,
  .header-1.header-one .container {
    max-width: 100%;
  }
}
.header-1.header-one .mega-menu-wrapper,
.sticky.header-one .mega-menu-wrapper {
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.header-1 .header-main {
  min-height: var(--header-h);
  padding: 0;
  gap: 20px;
  transition: min-height 0.3s ease;
}
.header-1.sticky .header-main {
  min-height: var(--header-h-sticky);
}
/* Logo left, menu centred, button right */
.header-1 .header-main > .logo,
.header-1 .header-main > .header-right {
  flex: 1 1 0;
}
.header-1 .header-main > .logo {
  display: flex;
  align-items: center;
}
.header-1 .header-main > .mean__menu-wrapper {
  flex: 0 0 auto;
}
.header-1 .logo img,
.header-1 .logo img {
  height: 50px;
  width: auto;
  transition: height 0.3s ease;
}
.header-1.sticky .logo img {
  height: 42px;
}
@media (max-width: 575px) {
  .header-1 .logo img {
    height: 42px;
  }
  .header-1.sticky .logo img {
    height: 36px;
  }
}
.header-1 .header-main .main-menu ul li a {
  padding: 12px 0;
  font-weight: 500;
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .header-1 .header-main .main-menu ul li {
    margin-inline-end: 26px;
  }
}
/* Request a Quote: red with white text */
.header-1 .header-right .theme-btn,
.offcanvas__contact .theme-btn {
  background-color: var(--theme2);
  color: var(--white);
  height: 50px;
  line-height: 50px;
  padding: 0 28px;
}
.header-1 .header-right .theme-btn::before,
.offcanvas__contact .theme-btn::before {
  background-color: var(--red-dark);
}
.header-1 .header-right .theme-btn:hover,
.offcanvas__contact .theme-btn:hover {
  color: var(--white);
}
/* Push page content below the fixed header */
#smooth-content {
  padding-top: var(--header-h);
}
.breadcrumb-wrapper .page-heading {
  padding: 110px 0 110px;
}
@media (max-width: 767px) {
  .breadcrumb-wrapper .page-heading {
    padding: 80px 0;
  }
}
.product-detail {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* =====================================================================
 * Footer: solid brand red, all text white
 * ===================================================================== */
.footer-section {
  background-color: var(--theme2) !important;
  background-image: none !important;
}
.footer-widgets-wrapper .footer-widget-items .widget-logo img {
  width: auto;
  height: 64px;
}
.footer-widgets-wrapper .footer-widget-items .widget-head {
  border-image: linear-gradient(90deg, #FFFFFF 4.85%, rgba(255, 255, 255, 0) 96.39%);
  border-image-slice: 2;
}
.footer-widgets-wrapper .footer-widget-items .widget-head h4,
.footer-widgets-wrapper .footer-widget-items .widget-content p,
.footer-widgets-wrapper .footer-widget-items .widget-content .list-area li a,
.footer-widgets-wrapper .footer-widget-items .widget-content .contact-list .contact-tittle,
.footer-widgets-wrapper .footer-widget-items .widget-content .contact-list p,
.footer-widgets-wrapper .footer-widget-items .widget-content .contact-list p a,
.footer-contact-area .client-area .phone-box .content span,
.footer-contact-area .client-area .phone-box .content h4 a,
.footer-bottom .footer-wrapper p,
.footer-bottom .footer-wrapper p a {
  color: var(--white) !important;
}
.footer-widgets-wrapper .footer-widget-items .widget-content p,
.footer-widgets-wrapper .footer-widget-items .widget-content .list-area li a,
.footer-widgets-wrapper .footer-widget-items .widget-content .contact-list p {
  font-weight: 500;
}
.footer-widgets-wrapper .footer-widget-items .widget-content .border-text {
  -webkit-text-stroke: 1px var(--white);
  color: transparent;
}
/* Link hover: stay white, underline */
.footer-widgets-wrapper .footer-widget-items .widget-content .list-area li:hover a,
.footer-widgets-wrapper .footer-widget-items .widget-content .contact-list p a:hover,
.footer-contact-area .client-area .phone-box .content h4 a:hover,
.footer-bottom .footer-wrapper p a:hover {
  color: var(--white) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* Phone and email icon circles: white with red icon */
.footer-contact-area .client-area .phone-box .phone {
  background-color: var(--white);
  color: var(--theme2);
}
.footer-contact-area .client-area .phone-box .phone i {
  color: var(--theme2) !important;
}
/* Dividers visible on red */
.footer-contact-area {
  border-top-color: rgba(255, 255, 255, 0.35);
}
.footer-contact-area::before {
  border-color: rgba(255, 255, 255, 0.6);
}
.footer-bottom {
  background-color: #D4434D;
}
/* Back-to-top sits over the red footer, so use navy */
.back-to-top {
  background-color: var(--header) !important;
  color: var(--white) !important;
}

/* =====================================================================
 * Buttons: every solid button is brand red, darker red on hover
 * ===================================================================== */
.theme-btn,
.header-1 .header-right .theme-btn,
.offcanvas__contact .theme-btn {
  background-color: var(--theme2);
  color: var(--white);
}
.theme-btn::before,
.header-1 .header-right .theme-btn::before,
.offcanvas__contact .theme-btn::before,
.theme-btn.theme-btn-outline::before {
  background-color: #D4434D;
}
.theme-btn:hover,
.theme-btn:focus-visible {
  color: var(--white);
}
.theme-btn.theme-btn-outline {
  background-color: transparent;
}
.theme-btn.theme-btn-outline:hover {
  border-color: #D4434D;
}
.theme-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}
.service-section-one .ser-text a {
  background-color: var(--theme2);
  color: var(--white);
  padding: 6px 16px;
  transition: background-color 0.3s ease;
}
.service-section-one .ser-text a:hover {
  background-color: #D4434D;
  color: var(--white);
}
.cta-wrapper .cta-circle-btn a {
  background-color: var(--theme2);
  color: var(--white);
}
.cta-wrapper .cta-circle-btn a:hover {
  background-color: #D4434D;
}

/* =====================================================================
 * Text on images: dark gradient behind the text + soft text shadow
 * (about 70% navy where the text sits, fading to about 20%)
 * ===================================================================== */
/* Hero slides: text sits on the left */
.hero-1 .hero-bg::before {
  background: none;
}
.hero-1 .hero-bg::after {
  background: linear-gradient(90deg, rgba(11, 34, 57, 0.8) 0%, rgba(11, 34, 57, 0.7) 50%, rgba(11, 34, 57, 0.2) 100%);
}
@media (max-width: 991px) {
  .hero-1 .hero-bg::after {
    background: linear-gradient(0deg, rgba(11, 34, 57, 0.8) 0%, rgba(11, 34, 57, 0.7) 60%, rgba(11, 34, 57, 0.2) 100%);
  }
}
/* Page banners: text is centred */
.breadcrumb-wrapper::before {
  background: linear-gradient(0deg, rgba(11, 34, 57, 0.8) 0%, rgba(11, 34, 57, 0.7) 55%, rgba(11, 34, 57, 0.2) 100%);
  border-radius: 0;
}
/* Request a Quote band: text sits on the left */
.cta-section::before {
  background: linear-gradient(90deg, rgba(11, 34, 57, 0.82) 0%, rgba(11, 34, 57, 0.7) 55%, rgba(11, 34, 57, 0.2) 100%);
  mix-blend-mode: normal;
  opacity: 1;
}
@media (max-width: 991px) {
  .cta-section::before {
    background: linear-gradient(0deg, rgba(11, 34, 57, 0.82) 0%, rgba(11, 34, 57, 0.7) 60%, rgba(11, 34, 57, 0.25) 100%);
  }
}
/* Product cards: photo appears behind the text on hover */
.service-box-one .bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(0deg, rgba(11, 34, 57, 0.85) 0%, rgba(11, 34, 57, 0.7) 50%, rgba(11, 34, 57, 0.2) 100%);
}
.service-box-one .bg-image img {
  height: 100%;
}
/* Soft shadow on white text over photos */
.hero-1 .hero-content h1,
.hero-1 .hero-content .hero-title,
.hero-1 .hero-content p,
.hero-1 .hero-content .sub-title,
.breadcrumb-wrapper .page-heading h1,
.breadcrumb-wrapper .page-heading .page-subheading,
.breadcrumb-wrapper .page-heading .breadcrumb-list li,
.cta-section h2,
.cta-section .cta-text,
.cta-section .info-item h3,
.cta-section .info-item p,
.cta-section .info-item a,
.service-box-one:hover .content .title a,
.service-box-one:hover .content p,
.machinery-section .section-title h2 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* =====================================================================
 * Manufacturing: machinery section on a parallax mill photo
 * ===================================================================== */
.machinery-section {
  position: relative;
  overflow: hidden;
}
.machinery-section .machinery-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.machinery-section .machinery-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140%;
  object-fit: cover;
}
.machinery-section .machinery-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(11, 34, 57, 0.8);
}
.machinery-section .container {
  position: relative;
  z-index: 1;
}
.section-title .sub-title.sub-title-light {
  color: var(--white);
  border-color: var(--white);
}
.machinery-section .row > div {
  display: flex;
}
.machinery-section .machine-card {
  width: 100%;
  border-color: transparent;
}

/* =====================================================================
 * Contact: equal-height detail cards, icon and text centred
 * ===================================================================== */
.contact-wrapper-3 .contact-area-top .row > div {
  display: flex;
}
.contact-wrapper-3 .contact-area-top .contact-items {
  width: 100%;
  height: 100%;
  align-items: center;
}
.contact-wrapper-3 .contact-area-top .contact-items .icon {
  flex: 0 0 71px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.contact-wrapper-3 .contact-area-top .contact-items .content p {
  margin-bottom: 0;
}

/* Honeypot field: hidden from people, visible to bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#contact-form {
  position: relative;
}

/* =====================================================================
 * Preloader: full logo on white with a thin red bar
 * ===================================================================== */
.preloader {
  display: none !important;
}
.apollo-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.apollo-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.apollo-preloader__inner {
  width: 160px;
  text-align: center;
}
.apollo-preloader__inner img {
  width: 160px;
  height: auto;
  display: block;
}
.apollo-preloader__bar {
  position: relative;
  width: 100%;
  height: 3px;
  margin-top: 18px;
  border-radius: 3px;
  background-color: rgba(232, 84, 94, 0.15);
  overflow: hidden;
}
.apollo-preloader__bar span {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 3px;
  background-color: var(--theme2);
  animation: apollo-loader 1s ease-in-out infinite;
}
@keyframes apollo-loader {
  0% { left: -40%; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .apollo-preloader__bar span {
    animation: none;
    left: 0;
    width: 100%;
  }
}
/* All six machinery cards share one height (grid with equal rows) */
.machinery-section .row.g-4 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  margin: 0;
}
.machinery-section .row.g-4 > * {
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 1199px) {
  .machinery-section .row.g-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .machinery-section .row.g-4 {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }
}

/* =====================================================================
 * Heading font: Righteous (self-hosted). One weight only, so no bold.
 * Body text, menu, buttons and form fields keep the template fonts.
 * ===================================================================== */
@font-face {
  font-family: "Righteous";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/righteous/righteous-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --heading-font: "Righteous", "Hanken Grotesk", sans-serif;
}
h1, h2, h3, h4, h5, h6,
.hero-1 .hero-content .hero-title,
.section-title h2,
.highlight-box .figure,
.leader-card .leader-initials,
.error-wrapper .error h2 {
  font-family: var(--heading-font) !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em;
}
/* Big headings: a little more air between lines */
h1, .hero-1 .hero-content .hero-title {
  line-height: 1.18 !important;
}
h2, .section-title h2 {
  line-height: 1.22;
}
h3, h4 {
  line-height: 1.3;
}
.breadcrumb-wrapper .page-heading h1 {
  line-height: 1.15 !important;
}
/* Contact details shown in h4 tags in the footer stay in the body font */
.footer-contact-area .client-area .phone-box .content h4 {
  font-family: "Hanken Grotesk", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0;
}
/* Mobile: keep long headings inside the screen */
@media (max-width: 575px) {
  h1, h2, h3 {
    overflow-wrap: break-word;
    hyphens: manual;
  }
  .section-title h2,
  h2 {
    font-size: 30px;
  }
  .breadcrumb-wrapper .page-heading h1 {
    font-size: 36px;
  }
  .highlight-box .figure {
    font-size: 52px;
  }
}

/* =====================================================================
 * Hero: text block ~90px higher, tighter gap to the buttons,
 * identical position on every slide
 * ===================================================================== */
.hero-1 .hero-height {
  padding-top: 230px; /* template: 320px, so 90px higher */
  padding-bottom: 110px;
}
@media (max-width: 1199px) {
  .hero-1 .hero-height {
    padding-top: 160px; /* template: 250px, so 90px higher */
  }
}
@media (max-width: 767px) {
  .hero-1 .hero-height {
    padding: 140px 0 110px; /* template: 240px, so 100px higher */
  }
}
.hero-1 .hero-content p {
  margin-top: 18px;
  max-width: 760px;
}
.hero-1 .hero-button {
  margin-top: 36px;
}
@media (max-width: 1199px) {
  .hero-1 .hero-button {
    margin-top: 32px;
  }
}
@media (max-width: 991px) {
  .hero-1 .hero-button {
    margin-top: 28px;
    justify-content: center;
  }
  .hero-1 .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
}
/* Hero button hover: darker red fill, white text (template used white fill) */
.hero-1 .hero-button .theme-btn::before {
  background-color: #D4434D;
}
.hero-1 .hero-button .theme-btn:hover {
  color: var(--white);
}
/* Small phones: tighter hero type so both buttons stay above the fold */
@media (max-width: 575px) {
  .hero-1 .hero-content h1,
  .hero-1 .hero-content .hero-title {
    font-size: 30px;
  }
  .hero-1 .hero-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 14px;
  }
  .hero-1 .hero-content .sub-title {
    margin-bottom: 10px;
  }
  .hero-1 .hero-button {
    margin-top: 20px;
    gap: 12px;
  }
  .hero-1 .hero-button .theme-btn {
    height: 48px;
    line-height: 48px;
  }
  .hero-1 .hero-button .theme-btn.theme-btn-outline {
    line-height: 46px;
  }
}

/* =====================================================================
 * Footer text: crisp, normal weight, no shadows
 * ===================================================================== */
.footer-section,
.footer-section * {
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.footer-widgets-wrapper .footer-widget-items .widget-content p,
.footer-widgets-wrapper .footer-widget-items .widget-content .list-area li a,
.footer-widgets-wrapper .footer-widget-items .widget-content .contact-list p {
  font-weight: 400;
}
.footer-widgets-wrapper .footer-widget-items .widget-content .footer-about {
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 0;
}
.footer-widgets-wrapper .footer-widget-items .widget-content .border-text {
  -webkit-text-stroke: 1.4px var(--white);
}

/* Hero text finishes animating in 1.6s, long before the 7s slide change */
.hero-1 .swiper-slide.swiper-slide-active .hero-content,
.hero-1 .swiper-slide.swiper-slide-active .hero-button {
  transition: all 1600ms ease;
}
