/**
* Template Name: Medilab
* Template URL: https://bootstrapmade.com/medilab-free-medical-bootstrap-theme/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Poppins",  sans-serif;
  --nav-font: "Raleway",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #545454; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #545454; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #76b43b; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #2c4964;  /* The default color of the main navmenu links */
  --nav-hover-color: #76b43b; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #545454; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #76b43b; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f3f8ed;;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* Pulsating Play Button
------------------------------*/
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(var(--accent-color) 50%, color-mix(in srgb, var(--accent-color), transparent 75%) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  transition: all 0.5s;
  z-index: 997;
  background-color: var(--background-color);
}

.header .topbar {
  background-color: var(--accent-color);
  height: 40px;
  padding: 0;
  font-size: 14px;
  transition: all 0.5s;
}

.header .topbar .contact-info i {
  font-style: normal;
  color: var(--contrast-color);
}

.header .topbar .contact-info i a,
.header .topbar .contact-info i span {
  padding-left: 5px;
  color: var(--contrast-color);
}

@media (max-width: 575px) {

  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 13px;
  }
}

.header .topbar .contact-info i a {
  line-height: 0;
  transition: 0.3s;
}

.header .topbar .contact-info i a:hover {
  color: var(--contrast-color);
  text-decoration: underline;
}

.header .topbar .social-links a {
  color: color-mix(in srgb, var(--contrast-color), transparent 40%);
  line-height: 0;
  transition: 0.3s;
  margin-left: 20px;
}

.header .topbar .social-links a:hover {
  color: var(--contrast-color);
}

.header .branding {
  min-height: 60px;
  padding: 10px 0;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1,
.header .logo .sitename {
  display: block;
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
  font-family: var(--heading-font);
  line-height: 1;
}

.header .cta-btn,
.header .cta-btn:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: 0.3s;
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .cta-btn {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.scrolled .header .topbar {
  height: 0;
  visibility: hidden;
  overflow: hidden;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Desktop Navigation */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu>ul>li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu>ul>li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu>ul>li>a:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--nav-hover-color);
    visibility: hidden;
    width: 0px;
    transition: all 0.3s ease-in-out 0s;
  }

  .navmenu a:hover:before,
  .navmenu li:hover>a:before,
  .navmenu .active:before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  border-top: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

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

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

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

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 8px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

@media (max-width: 767.98px) {
  .scroll-top {
    bottom: calc(90px + env(safe-area-inset-bottom)) !important;
    right: 15px;
  }
}

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

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

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

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.page-title .heading {
  padding: 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--accent-color), transparent 94%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 72px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 60px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 60%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: calc(100vh - 112px);
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .container {
  z-index: 3;
}

.hero .welcome h2,
.hero .welcome h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--heading-font);
  line-height: 1.2;
}

.hero .welcome p {
  font-size: 24px;
  margin: 0;
}

.hero .content {
  margin-top: 40px;
}

.hero .content .why-box {
  color: var(--contrast-color);
  background: var(--accent-color);
  padding: 30px;
  border-radius: 4px;
}

.hero .content .why-box h3 {
  color: var(--contrast-color);
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 30px;
}

.hero .content .why-box p {
  margin-bottom: 30px;
}

.hero .content .why-box .more-btn {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--contrast-color), transparent 80%);
  display: inline-block;
  padding: 6px 30px 8px 30px;
  border-radius: 50px;
  transition: all ease-in-out 0.4s;
}

.hero .content .why-box .more-btn i {
  font-size: 14px;
}

.hero .content .why-box .more-btn:hover {
  background: var(--surface-color);
  color: var(--accent-color);
}

/* =========================================
   Compact form layout inside green why-box
   ========================================= */

.hero .why-box .php-email-form {
  margin-top: 10px;
}

.hero .why-box .php-email-form .row {
  --bs-gutter-y: 0.5rem; /* tighter vertical spacing */
}

.hero .why-box .form-label {
  font-size: 13px;
  margin-bottom: 4px;
  font-weight: 500;
}

.hero .why-box .form-control {
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 8px;
}

.hero .why-box select.form-control {
  padding-right: 36px;
}

/* Submit button: slimmer but confident */
.hero .why-box .php-email-form button[type="submit"] {
  margin-top: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}

/* Small helper text tighter */
.hero .why-box .php-email-form .small {
  font-size: 11px;
  line-height: 1.4;
}


.hero .content .icon-box {
  text-align: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-color), transparent 20%);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  width: 100%;
}

.hero .content .icon-box i {
  font-size: 40px;
  color: var(--accent-color);
}

.hero .content .icon-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0 20px 0;
}

.hero .content .icon-box p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.hero-offer-hook{
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: .6rem;
}

.hero-offer-save{
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: .4rem;
}

.hero-offer-hook{
  color: #fff;
}

/* =========================================
   HOMEPAGE CARDS — balanced layout
   ========================================= */

.icon-box .home-card{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Consistent logo + image block */
.icon-box .home-card .mb-3{
  margin-bottom: 14px !important;
}

/* Logo block height (keeps titles aligned) */
.icon-box .home-card .mb-3 > img{
  display: block;
  max-height: 74px;     /* tweak 64–80 if needed */
  width: auto;
  margin: 0 auto 10px auto;
}

/* Teaser image height consistent */
.icon-box .home-card .mb-3 a img{
  width: 100%;
  height: 250px;        /* tweak 220–280 */
  object-fit: cover;
  border-radius: 6px;
}

/* Headings consistent */
.icon-box .home-card h4{
  margin: 8px 0 10px 0;
  min-height: 56px;     /* keeps titles lined up even if they wrap */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Clamp body text so all cards feel same height */
.icon-box .home-card p{
  margin-bottom: 10px;
}

/* =========================================
   HOMEPAGE CARDS – NO TEXT TRUNCATION
   ========================================= */

.icon-box .home-card{
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Logo size consistency */
.icon-box .home-card .mb-3 > img{
  max-height: 70px;
  margin: 0 auto 12px auto;
}

/* Teaser image consistent */
.icon-box .home-card .mb-3 a img{
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px;
}

/* Title alignment */
.icon-box .home-card h4{
  margin: 10px 0 12px 0;
  text-align: center;
}

/* Body text spacing */
.icon-box .home-card p{
  margin-bottom: 10px;
}

/* Offer box */
.icon-box .home-card .card-offer{
  margin-top: 12px;
}

/* Push CTA to bottom so all buttons align */
.icon-box .home-card .text-center{
  margin-top: auto;
  padding-top: 16px;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h3 {
  font-size: 2rem;
  font-weight: 700;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  display: flex;
  align-items: flex-start;
  margin-top: 40px;
}

.about .content ul i {
  flex-shrink: 0;
  font-size: 48px;
  color: var(--accent-color);
  margin-right: 20px;
}

.about .content ul h5 {
  font-size: 18px;
  font-weight: 700;
}

.about .content ul p {
  font-size: 15px;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .pulsating-play-btn {
  position: absolute;
  left: calc(50% - 47px);
  top: calc(50% - 47px);
}

/*--------------------------------------------------------------
# Stats Section (CLEAN + BALANCED)
--------------------------------------------------------------*/

#stats.stats.section.light-background{
  background-color: #f3f8ed;
}

/* Icon bubble */
#stats .stats-icon{
  color: var(--contrast-color);
  background-color: var(--accent-color);
  box-shadow: 0 2px 25px rgba(0,0,0,0.10);
  width: 54px;
  height: 54px;
  font-size: 24px;
  border-radius: 999px;
  border: 2px solid var(--background-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Make both columns stretch equally */
#stats .row{
  align-items: stretch;
}

#stats .col-lg-6,
#stats .col-md-6{
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The white card */
#stats .stats-item{
  width: 100%;
  max-width: 560px;

  background: var(--surface-color);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);

  margin-top: -27px;            /* icon overlap */
  padding: 46px 28px 34px 28px; /* balanced internal spacing */

  text-align: center;

  /* equal height + centered content */
  flex: 1;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* The big line of text */
#stats .stats-number{
  display: block;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  color: #4a4a4a;
  margin: 0;
}

/* Footnote under the second box */
#stats .stats-footnote{
  margin: 12px auto 0 auto;
  max-width: 440px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.75;
}

/* Mobile refinements */
@media (max-width: 767.98px){
  #stats .stats-item{
    padding: 38px 20px 30px 20px;
    min-height: 210px;
  }

  #stats .stats-number{
    font-size: 30px;
  }

  #stats .stats-footnote{
    font-size: 13px;
    max-width: 320px;
  }
}


/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  padding: 80px 20px;
  transition: all ease-in-out 0.3s;
  height: 100%;
}

.services .service-item .icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: var(--accent-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: 0.3s;
  transform-style: preserve-3d;
}

.services .service-item .icon i {
  color: var(--contrast-color);
  font-size: 28px;
  transition: ease-in-out 0.3s;
}

.services .service-item .icon::before {
  position: absolute;
  content: "";
  left: -8px;
  top: -8px;
  height: 100%;
  width: 100%;
  background: color-mix(in srgb, var(--accent-color), transparent 80%);
  border-radius: 5px;
  transition: all 0.3s ease-out 0s;
  transform: translateZ(-1px);
}

.services .service-item h3 {
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.services .service-item:hover .icon {
  background: var(--surface-color);
}

.services .service-item:hover .icon i {
  color: var(--accent-color);
}

.services .service-item:hover .icon::before {
  background: color-mix(in srgb, var(--background-color), transparent 70%);
}

.services .service-item:hover h3,
.services .service-item:hover p {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Appointment Section
--------------------------------------------------------------*/
.appointment .php-email-form {
  width: 100%;
}

.appointment .php-email-form .form-group {
  padding-bottom: 8px;
}

.appointment .php-email-form input,
.appointment .php-email-form textarea,
.appointment .php-email-form select {
  color: var(--default-color);
  background-color: transparent;
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  padding: 10px !important;
}

.appointment .php-email-form input:focus,
.appointment .php-email-form textarea:focus,
.appointment .php-email-form select:focus {
  border-color: var(--accent-color);
}

.appointment .php-email-form input::placeholder,
.appointment .php-email-form textarea::placeholder,
.appointment .php-email-form select::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.appointment .php-email-form input,
.appointment .php-email-form select {
  height: 44px;
}

.appointment .php-email-form textarea {
  padding: 10px 12px;
}

.appointment .php-email-form button[type=submit] {
  background: var(--accent-color);
  border: 0;
  padding: 10px 35px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
}

.appointment .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Departments Section
--------------------------------------------------------------*/
.departments {
  overflow: hidden;
}

.departments .nav-tabs {
  border: 0;
}

.departments .nav-link {
  border: 0;
  padding: 12px 15px 12px 0;
  transition: 0.3s;
  color: var(--default-color);
  border-radius: 0;
  border-right: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
  font-weight: 600;
  font-size: 15px;
}

.departments .nav-link:hover {
  color: var(--accent-color);
}

.departments .nav-link.active {
  color: var(--accent-color);
  border-color: var(--accent-color);
  background-color: var(--background-color);
}

.departments .tab-pane.active {
  animation: fadeIn 0.5s ease-out;
}

.departments .details h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
}

.departments .details p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.departments .details p:last-child {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .departments .nav-link {
    border: 0;
    padding: 15px;
  }

  .departments .nav-link.active {
    color: var(--accent-color);
    background: var(--accent-color);
  }
}

/*--------------------------------------------------------------
# Doctors Section
--------------------------------------------------------------*/
.doctors .team-member {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  border-radius: 5px;
  transition: 0.5s;
  padding: 30px;
  height: 100%;
}

@media (max-width: 468px) {
  .doctors .team-member {
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
  }
}

.doctors .team-member .pic {
  overflow: hidden;
  width: 150px;
  border-radius: 50%;
  flex-shrink: 0;
}

.doctors .team-member .pic img {
  transition: ease-in-out 0.3s;
}

.doctors .team-member:hover {
  transform: translateY(-10px);
}

.doctors .team-member .member-info {
  padding-left: 30px;
}

@media (max-width: 468px) {
  .doctors .team-member .member-info {
    padding: 30px 0 0 0;
    text-align: center;
  }
}

.doctors .team-member h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 20px;
}

.doctors .team-member span {
  display: block;
  font-size: 15px;
  padding-bottom: 10px;
  position: relative;
  font-weight: 500;
}

.doctors .team-member span::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 85%);
  bottom: 0;
  left: 0;
}

@media (max-width: 468px) {
  .doctors .team-member span::after {
    left: calc(50% - 25px);
  }
}

.doctors .team-member p {
  margin: 10px 0 0 0;
  font-size: 14px;
}

.doctors .team-member .social {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
}

@media (max-width: 468px) {
  .doctors .team-member .social {
    justify-content: center;
  }
}

.doctors .team-member .social a {
  background: color-mix(in srgb, var(--default-color), transparent 94%);
  transition: ease-in-out 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  width: 36px;
  height: 36px;
}

.doctors .team-member .social a i {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-size: 16px;
  margin: 0 2px;
}

.doctors .team-member .social a:hover {
  background: var(--accent-color);
}

.doctors .team-member .social a:hover i {
  color: var(--contrast-color);
}

.doctors .team-member .social a+a {
  margin-left: 8px;
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  border-radius: 5px;
  overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.faq .faq-container .faq-item h3 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-active {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.faq .faq-container .faq-active h3,
.faq .faq-container .faq-active h3:hover {
  color: var(--contrast-color);
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .info h3 {
  font-weight: 700;
  font-size: 32px;
}

.testimonials .swiper {
  box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.05);
  background-color: var(--surface-color);
}

.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item {
  box-sizing: content-box;
  min-height: 200px;
  position: relative;
  margin: 30px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  height: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  margin-right: 10px;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
  margin: 0;
}

.testimonials .testimonial-item .stars {
  margin: 10px 0;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 60%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 15px auto 15px auto;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
  border: none;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

@media (max-width: 767px) {

  .testimonials .testimonials-carousel,
  .testimonials .testimonials-slider {
    overflow: hidden;
  }

  .testimonials .testimonial-item {
    margin: 15px;
  }
}

/*--------------------------------------------------------------
# Gallery Section
--------------------------------------------------------------*/
.gallery .gallery-item {
  overflow: hidden;
  border-right: 3px solid var(--background-color);
  border-bottom: 3px solid var(--background-color);
}

.gallery .gallery-item img {
  transition: all ease-in-out 0.4s;
}

.gallery .gallery-item:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item+.info-item {
  margin-top: 40px;
}

.contact .info-item i {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .php-email-form {
  height: 100%;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 36px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}




/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}



/*--------------------------------------------------------------
# Homepage Icon Boxes
--------------------------------------------------------------*/
.icon-box img{
  position: static !important;
  z-index: auto !important;
}


.more-btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;

  padding: .75rem 1.5rem;
  border-radius: 999px;

  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.4);

  color: #ffffff;
  font-weight: 500;
  text-decoration: none;

  transition: all .3s ease;
}

.more-btn i{
  font-size: 1.2rem;
  transition: transform .3s ease;
}

.more-btn:hover{
  background: rgba(255,255,255,0.35);
  color: #ffffff;
}

.more-btn:hover i{
  transform: translateX(4px);
}


.video-box-cold {
  background: url("/videos/Conservandsave-Too-Cold-Advert-poster.jpg") center center no-repeat;
  background-size: cover;
  min-height: 700px;
}



/* Match CTA button to accent green */
.about-cta .btn {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.about-cta .btn:hover,
.about-cta .btn:focus {
  background-color: color-mix(in srgb, var(--accent-color), #000 10%);
  border-color: color-mix(in srgb, var(--accent-color), #000 10%);
  color: var(--contrast-color);
}




/* Mobile-only sticky phone banner */
@media (max-width: 767.98px) {

  :root {
    --mobile-callbar-height: 44px;   /* green call banner */
    --mobile-header-height: 64px;    /* logo + hamburger */
  }

  /* === CALL BANNER === */
  #header .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-callbar-height);
    z-index: 2000;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    padding: 0 12px;
  }

  /* Hide email + socials */
  #header .topbar .bi-envelope,
  #header .topbar .social-links {
    display: none !important;
  }

  #header .topbar .container,
  #header .topbar .contact-info {
    justify-content: center !important;
    width: 100%;
  }

  #header .topbar .topbar-phone {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    line-height: 1.3;
  }

  /* === MAIN HEADER (LOGO + MENU) === */
  #header.header,
  #header.sticky-top,
  #header.fixed-top {
    position: fixed;
    top: var(--mobile-callbar-height);
    left: 0;
    right: 0;
    z-index: 1500;
    background: #fff;
  }

  /* === PAGE CONTENT OFFSET === */
  body {
    padding-top: calc(var(--mobile-callbar-height) + var(--mobile-header-height));
  }
}


/* =========================================================
   Mobile: sticky call banner ALWAYS visible + no nav clash
   (Overrides Medilab's .scrolled .header .topbar rule)
   ========================================================= */
@media (max-width: 767.98px) {
  :root {
    --mobile-callbar-height: 44px;  /* set to 56px if CTA wraps */
    --mobile-header-height: 64px;   /* adjust if your branding is taller */
  }

  /* 1) Call banner fixed at top and NEVER hidden */
  body.scrolled .header .topbar,
  .scrolled .header .topbar,
  .header .topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;

    height: var(--mobile-callbar-height) !important;
    padding: 0 12px !important;

    display: flex !important;
    align-items: center !important;

    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    transform: none !important;

    background: var(--accent-color) !important;
    z-index: 2000 !important;
  }

  /* 2) Only phone visible on mobile */
  .header .topbar .bi-envelope,
  .header .topbar .social-links {
    display: none !important;
  }

  .header .topbar .container,
  .header .topbar .contact-info {
    width: 100%;
    justify-content: center !important;
  }

  .header .topbar .topbar-phone {
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    white-space: nowrap; /* prevents wrap; remove if you prefer 2 lines */
  }

  /* 3) Push header/nav below the call banner */
  .header {
    position: fixed !important;
    top: var(--mobile-callbar-height) !important;
    left: 0;
    right: 0;
    z-index: 1500 !important;
    background: var(--background-color) !important;
  }

  /* 4) Page content offset so nothing sits under fixed bars */
  body {
    padding-top: calc(var(--mobile-callbar-height) + var(--mobile-header-height)) !important;
  }
}


@media (max-width: 480px) {

  /* Slightly larger, clearer text on very small screens */
  .header .topbar .topbar-phone {
    font-size: 15px;
    letter-spacing: 0.2px;
  }


  /* Very subtle attention pulse (non-spammy) */
  @keyframes callHint {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
  }

  .header .topbar {
    animation: callHint 3.5s ease-in-out infinite;
  }
}


/* =========================================================
   Mobile-only bottom call-to-action button
   ========================================================= */
@media (max-width: 767.98px) {

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0; /* sit as low as possible */
    z-index: 2000;

    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: transparent; /* remove the “raised” panel look */
  }

  .mobile-cta-btn {
    display: block;
    width: 100%;
    text-align: center;

    background: var(--accent-color);
    color: #fff;

    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;

    padding: 14px 16px;
    border-radius: 999px;

    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  }

  /* Keep content clear of the fixed CTA */
  body {
    padding-bottom: 90px;
  }
}

.mobile-cta { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }

/* =========================================
   Hide contact form on mobile
   ========================================= */
@media (max-width: 767.98px) {

  #appointment {
    display: none !important;
  }

}

/* =========================================
   SHOW contact form on contact page (mobile only)
   ========================================= */
@media (max-width: 767.98px) {

  body.page-contact #appointment {
    display: block !important;
  }

}


/* PROMINENT OFFER PANEL */
.offer-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 8px 0 6px 0;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.offer-badge {
  display: inline-block;
  background: var(--accent-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.offer-text {
  font-size: 16px;
  font-weight: 800;
  color: #4a4a4a;
  line-height: 1.3;
}

.offer-code {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #6a6a6a;
}


/* =========================================
   Card CTA button (fix white link issue)
   ========================================= */
.card-cta,
.card-cta:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: var(--accent-color);
  color: #ffffff !important;

  padding: 12px 24px;
  margin-top: 10px;

  font-size: 15px;
  font-weight: 700;

  border-radius: 999px;
  text-decoration: none !important;

  opacity: 1 !important;
  filter: none !important;

  transition: background-color 0.25s ease, transform 0.15s ease;
}

.card-cta:hover,
.card-cta:focus {
  background-color: color-mix(in srgb, var(--accent-color), #000 10%);
  color: #ffffff;
  transform: translateY(-1px);
}

/* FORM SUBMIT BUTTON */
.btn-submit {
  background: #6c757d; /* Bootstrap grey */
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 10px 0;
  font-weight: 700;
  font-size: 14px;
  transition: all .3s ease;
}

.btn-submit:hover,
.btn-submit:focus {
  background: #5a6268;
  color: #ffffff;
}


/* PROMINENT CARD OFFER (PRODUCT CARDS) */
.card-offer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px solid rgba(118,180,59,0.3);
  text-align: center;
}

.card-offer-main {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-color); /* green */
  line-height: 1.2;
}

.card-offer-sub {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #555;
  margin-top: 4px;
}

.card-offer-code {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #777;
}

.card-offer {
  background: rgba(118,180,59,0.08);
  border-radius: 10px;
  padding: 14px 10px;
}

.card-offer-code-highlight {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 10px;
  background: #f1f7fc;
  border: 2px solid var(--accent-color);
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--accent-color);
}

/* Slightly larger on small screens */
@media (max-width: 480px) {
  .card-offer-code-highlight {
    font-size: 16px;
  }
}

/* Slightly larger on very small screens */
@media (max-width: 480px) {
  .card-offer-main {
    font-size: 22px;
  }

  .card-offer-sub {
    font-size: 17px;
  }
}

/* =========================================
   Homepage offer card – mobile spacing fix
   ========================================= */
@media (max-width: 767.98px){

  .card-offer{
    padding: 10px 10px;     /* was 14px 10px */
    margin-top: 12px;       /* slightly tighter */
  }

  .card-offer-main{
    font-size: 18px;        /* was 20px */
    line-height: 1.15;
    margin-bottom: 4px;
  }

  .card-offer-sub{
    font-size: 14px;        /* was 16px */
    line-height: 1.25;
    margin-top: 2px;
  }

  .card-offer-code{
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.2;
  }

  .card-offer-code-highlight{
    font-size: 14px;
    padding: 2px 8px;
  }
}


/* Force consistent green CTA inside product cards */
.icon-box .btn-green {
  display: inline-block;
  background-color: var(--accent-color) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
}

.icon-box .btn-green:hover,
.icon-box .btn-green:focus {
  background-color: color-mix(in srgb, var(--accent-color), #000 10%) !important;
  color: #ffffff !important;
}


.review-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.review-label {
  font-weight: 700;
}

.review-stars {
  color: #00b67a; /* trust-style green */
  font-size: 16px;
  letter-spacing: 2px;
}

.review-link {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}

.review-link:hover {
  color: rgba(255,255,255,0.85);
}


/* ===== Conservatory Types Slider ===== */
.solutions-style .solutions-title{
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  color: #e24b3b; /* adjust if you want your brand colour */
  margin-bottom: 10px;
}

.solutions-style .solutions-subtitle{
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: #222;
}

/* Tabs row */
.solutions-tabs-wrap{
  display:flex;
  justify-content:center;
}

.solutions-tabs{
  border: 0;
  gap: 18px;
  justify-content:center;
  flex-wrap: wrap;
}

.solutions-tabs .nav-item{
  border: 0;
}

.solutions-tabs .nav-link{
  border: 0 !important;
  background: transparent !important;
  padding: 0;
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #7a7a7a;
}

.solutions-tab-icon{
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 2px solid #dcdcdc;
  background: #ffffff;
  transition: .25s ease;
}

.solutions-tab-icon img{
  width: 32px;
  height: 32px;
  opacity: .55;
  transition: .25s ease;
}

.solutions-tab-label{
  font-weight: 700;
  font-size: 15px;
  color: #111;
}

.solutions-tabs .nav-link.active .solutions-tab-icon{
  background: var(--accent-color);
  border-color: var(--accent-color);
}

.solutions-tabs .nav-link.active .solutions-tab-icon img{
  filter: brightness(0) invert(1);
  opacity: 1;
}

.solutions-tabs .nav-link:not(.active):hover .solutions-tab-icon{
  border-color: color-mix(in srgb, var(--accent-color), #fff 60%);
}

/* Viewer panel */
.solutions-panel{
  max-width: 1100px;
  margin: 0 auto;
}

.solutions-viewer{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  background: #fff;
}

/* your beforeAfter plugin wrapper */
.solutions-viewer .my-viewer{
  width: 100%;
}

/* Before/After pills */
.solutions-pill{
  position:absolute;
  bottom: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #e24b3b; /* optional */
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.solutions-pill-left{ left: 16px; }
.solutions-pill-right{ right: 16px; }

/* Mobile spacing */
@media (max-width: 576px){
  .solutions-tab-icon{
    width: 64px;
    height: 64px;
  }
  .solutions-tab-label{
    font-size: 14px;
  }
}



.text-white {
  color: #ffffff;
}

.hero-subtext {
  color: rgba(255,255,255,0.9);

}


/* =========================
   INSULATION HERO – STABLE, HIGH CONTRAST (scoped)
   ========================= */

/* HERO: establish stacking context */
body.page-insulation #hero{
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

/* background image */
body.page-insulation #hero > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* dark overlay (this is what your screenshot is missing visually) */
body.page-insulation #hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

/* content above overlay */
body.page-insulation #hero .container{
  position: relative;
  z-index: 2;
}

/* left column: make it sit nicely and not float around */
body.page-insulation .hero-copy-wrap{
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* logo: visible and sized */
body.page-insulation .hero-logo-wrap{ width:100%; display:flex; justify-content:center; }
body.page-insulation .hero-logo{
  max-width: 340px;
  width: 100%;
  height: auto;
  opacity: 1;
}

.hero-logo{
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.5));
}

/* slug + reviews: on separate lines, readable */
body.page-insulation .hero-meta{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 10px;
}

body.page-insulation .hero-eyebrow{
  display:inline-flex;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color:#fff;
  font-weight:800;
  letter-spacing:2px;
  text-transform:uppercase;
  font-size:.85rem;
}

body.page-insulation .review-strip-hero{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:center;
  color:#fff;
  font-weight:600;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

body.page-insulation .review-stars{ color:#84ad46; letter-spacing:2px; }
body.page-insulation .review-link{
  color:#fff !important;
  text-decoration: underline;
  font-weight:700;
}

/* headline: ensure it's WHITE (your screenshot shows it dark) */
body.page-insulation .hero-main{
  color:#fff !important;
  text-shadow: 0 6px 22px rgba(0,0,0,.55);
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1.08;
  margin: 6px 0 4px;
}

/* offer: smaller + cleaner, not overpowering */
body.page-insulation .hero-offer{
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  background: rgba(20,20,20,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 18px 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

body.page-insulation .hero-offer-line{
  display:flex;
  align-items: baseline;
  justify-content:center;
  gap: 14px;
  flex-wrap: wrap;
  white-space: normal;
}

body.page-insulation .hero-offer-save{
  color:#fff;
  font-weight: 900;
  font-size: 2.1rem;
}

body.page-insulation .hero-offer-plus{
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 1.05rem;
}

body.page-insulation .hero-offer-code{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  font-weight:700;
}

body.page-insulation .hero-code-pill{
  background:#fff;
  color:#84ad46;
  font-weight:900;
  letter-spacing:1px;
  padding: 8px 16px;
  border-radius: 999px;
}

/* CTA: FORCE it to be a button (your screenshot shows it as a green link) */
body.page-insulation .hero-cta-wrap{ margin-top: 6px; }
body.page-insulation a.hero-cta-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  background:#78b043 !important;
  color:#fff !important;
  font-weight:800;
  font-size:1.1rem;
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration:none !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.30);
}

/* right form column alignment */
body.page-insulation #hero .why-box{
  height: 100%;
  display:flex;
  flex-direction: column;
  justify-content:center;
}

/* mobile */
@media (max-width: 768px){
  body.page-insulation #hero{ min-height: auto; padding: 24px 0; }
  body.page-insulation .hero-main{ font-size: 1.9rem; }
  body.page-insulation .hero-logo{ max-width: 240px; }
  body.page-insulation .hero-offer-line{ flex-wrap: wrap; white-space: normal; }
  body.page-insulation a.hero-cta-btn{ width:100%; }
}

/* =========================
   HERO VISUAL REFINEMENT
   ========================= */

.page-insulation .hero-copy-wrap{
  padding-top: 60px;       /* push content lower */
  padding-bottom: 40px;
  gap: 22px;               /* more breathing room */
}

/* Logo slightly smaller and cleaner */
.page-insulation .hero-logo{
  max-width: 300px;
  opacity: 0.95;
}

/* Headline breathing room */
.page-insulation .hero-main{
  margin-top: 10px;
  margin-bottom: 22px;
  font-size: 3.2rem;
}

/* Softer, less heavy offer panel */
.page-insulation .hero-offer{
  background: rgba(0,0,0,0.48);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

/* Slightly smaller save text so it doesn’t overpower */
.page-insulation .hero-offer-save{
  font-size: 2rem;
}

/* Create more separation before CTA */
.page-insulation .hero-cta-wrap{
  margin-top: 22px;
}

/* Stop logo “jumping” + keep it centred */
.page-insulation .hero-logo-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 5;
  min-height: 90px; /* match the logo height you set above */
}

.page-insulation .hero-logo{
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
}

.page-insulation .hero-copy-wrap{
  padding-top: 22px;
  gap: 10px;
}

.page-insulation .hero-offer{
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

/* Pull the right column up slightly */
.page-insulation #hero .content{
  align-items: flex-start;   /* instead of stretch */
}

/* Remove extra top spacing inside the form box */
.page-insulation #hero .why-box{
  margin-top: 0;
}

/* Slightly reduce hero vertical padding overall */
.page-insulation #hero{
  padding-top: 60px;
  padding-bottom: 60px;
}

/* =====================================
   INSULATION HERO – REMOVE EXTRA HEIGHT
   ===================================== */

/* Stop hero forcing full viewport height */
.page-insulation #hero{
  min-height: auto !important;
  height: auto !important;
  padding-top: 40px;     /* reduce top spacing */
  padding-bottom: 60px;
  display: flex;
  align-items: flex-start;   /* anchor content to top */
}

/* Remove vertical centering on row */
.page-insulation #hero .content{
  align-items: flex-start !important;
}

/* Remove vertical centering inside left + right columns */
.page-insulation #hero .col-lg-8,
.page-insulation #hero .col-lg-4{
  align-items: flex-start !important;
}

/* Remove any extra top padding inside hero copy */
.page-insulation .hero-copy-wrap{
  padding-top: 0 !important;
}

/* Pull the entire hero up (insulation page only) */
.page-insulation #hero.section{
  padding-top: 18px !important;   /* was likely ~60px */
  padding-bottom: 48px !important;
}

/* Remove any extra top spacing inside the hero container */
.page-insulation #hero .container{
  padding-top: 0 !important;
}

/* Give the logo more breathing space */
.page-insulation .hero-logo-wrap{
  margin-bottom: 18px;   /* was too tight */
}

/* Space between slug/reviews and headline */
.page-insulation .hero-meta{
  margin-bottom: 18px;
}

/* Add breathing room above headline */
.page-insulation .hero-main{
  margin-top: 10px;
  margin-bottom: 22px;
}

/* Separate headline from offer panel */
.page-insulation .hero-offer{
  margin-top: 8px;
  margin-bottom: 24px;
}

/* Keep CTA clearly spaced */
.page-insulation .hero-cta-wrap{
  margin-top: 8px;
}

.page-insulation .hero-main{
  line-height: 1.25;   /* was around 1.15–1.18 */
}

.page-insulation .hero-eyebrow{
  margin-bottom: 18px;
}

/* FAQ Logo Bullet Points */

.about-usps .usp-item{
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.about-usps .usp-icon{
  flex: 0 0 70px;              /* icon column width */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.about-usps .usp-icon img{
  width: 64px;                 /* match old-site badge feel */
  height: 64px;
  object-fit: contain;
  display: block;
}

.about-usps .usp-copy strong{
  display: block;
  font-size: 1.4rem;           /* like the screenshot headings */
  line-height: 1.2;
  margin-bottom: 6px;
}

.about-usps .usp-copy .text-muted{
  font-size: 1.05rem;
  line-height: 1.55;
}

@media (max-width: 768px){
  .about-usps .usp-icon{ flex-basis: 56px; }
  .about-usps .usp-icon img{ width: 52px; height: 52px; }
  .about-usps .usp-copy strong{ font-size: 1.2rem; }
}


.stats.section.light-background {
  background-color: #f3f8ed;
}

.stats-item {
  background: #ffffff;
  border-radius: 12px;
}


/* ==============================
   Insulation Values Table
   ============================== */

.values-table-card{
  background:#ffffff;
  border-radius:20px;
  padding:30px;
  box-shadow:0 12px 30px rgba(0,0,0,0.08);
}

.values-table{
  width:100%;
  border-collapse:collapse;
  font-size:15px;
}

.values-table th,
.values-table td{
  padding:14px 12px;
  border:1px solid rgba(0,0,0,0.08);
}

.values-table th{
  background:#eef2ea;
  text-align:left;
  font-weight:700;
  width:45%;
}

.values-table td{
  text-align:center;
  width:27%;
}

.values-table tr:nth-child(even) th{
  background:#e6ece0;
}

.values-table tr:nth-child(even) td{
  background:#fafafa;
}

/* Mobile polish */
@media (max-width:767px){
  .values-table-card{
    padding:20px;
  }

  .values-table{
    font-size:14px;
  }
}



/* =========================
   FOOTER – GREY WITH WHITE TEXT
   ========================= */

footer,
#footer {
  background: #3a3f44; /* modern dark grey */
  color: #ffffff;
}

/* Main footer text */
footer p,
footer li,
footer span,
footer address,
#footer p,
#footer li,
#footer span,
#footer address {
  color: rgba(255,255,255,0.85);
}

/* Headings in footer */
footer h3,
footer h4,
footer h5,
#footer h3,
#footer h4,
#footer h5 {
  color: #ffffff;
}

/* Footer links */
footer a,
#footer a {
  color: #ffffff;
  text-decoration: none;
  transition: 0.3s ease;
}

footer a:hover,
#footer a:hover {
  color: #84ad46; /* your brand green */
}

/* Small legal text */
footer .copyright,
footer small,
#footer .copyright,
#footer small {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}

/* Useful links list bullets */
footer ul li::marker {
  color: #84ad46;
}

/* Add spacing + structure */
footer .container,
#footer .container {
  padding-top: 60px;
  padding-bottom: 40px;
}



/* =========================================================
   INSULATION/ABOUT PAGE ONLY — Stats image cards
   (Prevents affecting homepage counters)
   ========================================================= */

body.page-insulation #stats.stats.section.light-background {
  background-color: #f3f8ed;
}

/* Only affect stats cards inside #stats on the insulation/about page */
body.page-insulation #stats .stats-item {
  background: #ffffff;
  border-radius: 12px;
}

/* If you're using a wrapper class like .stats-image-card, scope that too */
body.page-insulation #stats .stats-image-card{
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

/* IMPORTANT: no forced height/aspect ratio = no cropping */
body.page-insulation #stats .stats-img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

/* Optional: keep both cards visually similar height WITHOUT cropping */
body.page-insulation #stats .stats-image-card{
  min-height: 520px;           /* tweak if needed */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px){
  body.page-insulation #stats .stats-img{
    padding: 14px;
  }
  body.page-insulation #stats .stats-image-card{
    min-height: 0;             /* let it flow naturally on mobile */
  }
}


body.page-insulation #stats .stats-headline{
  display: inline-block;
  margin: 0 0 22px 0;
  padding: 10px 22px;
  border-radius: 999px;

  background: color-mix(in srgb, var(--accent-color), #ffffff 70%); /* green tint */
  color: #2f4a1e;
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.15;

  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}


/* ==============================
   INSULATION STATS INTRO REFINED
   ============================== */

body.page-insulation #stats .stats-headline{
  margin-bottom: 12px;   /* reduced gap */
}

body.page-insulation #stats .stats-subtext{
  max-width: 820px;
  margin: 8px auto 36px auto;   /* tighter to headline */

  font-size: 18px;
  line-height: 1.8;             /* softer editorial rhythm */
  color: rgba(0,0,0,0.72);      /* subtle reduction in opacity */
  font-weight: 400;             /* less heavy */
  letter-spacing: 0.2px;        /* very subtle refinement */
}

/* Slightly softer on larger screens */
@media (min-width: 1200px){
  body.page-insulation #stats .stats-subtext{
    font-size: 19px;
  }
}

/* Mobile */
@media (max-width: 768px){
  body.page-insulation #stats .stats-subtext{
    font-size: 16px;
    line-height: 1.7;
    padding: 0 14px;
  }
}

/* ==============================
   About Page – Section Headings
   ============================== */

body.page-insulation .about h4,
body.page-insulation .about h5,
body.page-insulation .about .about-subheading {
  color: var(--accent-color);   /* brand green */
  font-weight: 600;             /* slightly bolder, not heavy */
  letter-spacing: 0.3px;        /* subtle refinement */
  margin-bottom: 10px;
}

/* If they are plain <strong> headings instead of h4 */
body.page-insulation .about strong.section-heading {
  color: var(--accent-color);
  font-weight: 600;
}

/* Section overall rhythm */
.about-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(0,0,0,0.78);
  margin-bottom: 18px;
}

/* Lead statement (make it stand out) */
.about-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 600;
  color: #2e2e2e;
  margin-bottom: 26px;
}

/* Green subheadings refinement */
.about-subheading,
.about-section h4 {
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Main headline refinement */
.about-section h2 {
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

/* Reduce heaviness of long body paragraphs */
.about-section p:not(.about-lead) {
  font-weight: 400;
}

/* =========================================================
   ABOUT (about-insulation only) – Eco badge + GWP layout
   ========================================================= */

/* Ensure right column / USP content is left-aligned (scoped) */
.about-insulation .content,
.about-insulation .about-usps{
  text-align: left;
}

/* Global Warming Potential: badge + text layout */
.about-insulation .gwp-row{
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 10px;
}

.about-insulation .gwp-badge{
  flex: 0 0 140px;
}

.about-insulation .gwp-badge img{
  width: 140px;
  height: auto;
  display: block;
}

.about-insulation .gwp-text{
  flex: 1;
}

.about-insulation .gwp-text p{
  margin-bottom: 18px;
  line-height: 1.75;
}

/* Mobile: stack badge above text */
@media (max-width: 768px){
  .about-insulation .gwp-row{
    flex-direction: column;
    gap: 14px;
  }

  .about-insulation .gwp-badge{
    flex-basis: auto;
  }
}

/* =========================================================
   ABOUT (about-insulation) – Balance + spacing pass
   ========================================================= */

/* Give the whole section a cleaner vertical rhythm */
.about-insulation .row.gy-4.gx-5{
  --bs-gutter-x: 3.5rem;  /* a touch more breathing space between columns */
  --bs-gutter-y: 2rem;
}

/* Left column: headline + lead spacing */
.about-insulation h2{
  line-height: 1.12;
  margin-bottom: 14px;
}

.about-insulation .about-lead{
  font-size: 1.1rem;
  line-height: 1.55;
  font-weight: 700;
  color: #2f2f2f;
  margin-bottom: 18px;
}

/* Image + caption spacing */
.about-insulation .img-fluid{
  border-radius: 10px;
  margin-top: 6px;
}

.about-insulation .col-lg-6.position-relative p:last-of-type{
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(0,0,0,0.70);
  max-width: 60ch;
}

/* Right column: reduce “cramped” feeling with consistent widths */
.about-insulation .about-usps{
  margin-top: 6px !important;   /* reduce the mt-4 effect */
  max-width: 62ch;              /* keeps paragraphs editorial */
}

/* Headings: consistent spacing + hierarchy */
.about-insulation .about-subheading{
  margin-top: 18px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.15;
}

/* Body paragraphs: softer + more readable */
.about-insulation .about-usps p{
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(0,0,0,0.78);
  margin-bottom: 16px;
}

/* GWP row: align badge with first line of copy + better proportions */
.about-insulation .gwp-row{
  align-items: flex-start;
  gap: 20px;
  margin-top: 10px;
}

.about-insulation .gwp-badge{
  flex: 0 0 120px;              /* slightly smaller column = more room for text */
  margin-top: 2px;              /* optically aligns with first text line */
}

.about-insulation .gwp-badge img{
  width: 120px;                 /* slightly smaller badge looks more premium */
}

/* CTA card: tighten and align to the text column */
.about-insulation .about-cta{
  margin-top: 18px;
  padding: 18px !important;
  border-radius: 12px !important;
}

.about-insulation .about-cta .btn{
  padding: 14px 22px;
  border-radius: 12px;
}

/* Mobile tweaks */
@media (max-width: 992px){
  .about-insulation .about-usps{
    max-width: 100%;
  }
}

@media (max-width: 768px){
  .about-insulation .gwp-row{
    gap: 14px;
  }

  .about-insulation .gwp-badge{
    flex-basis: auto;
  }

  .about-insulation .gwp-badge img{
    width: 110px;
  }
}



/* =========================================================
   EN-CAP HERO — match INSULATION hero left formatting exactly
   Scope: body.page-en-cap-tiled-roof
   ========================================================= */

/* If you DIDN'T change `.hero img` to `.hero > img`, keep this safeguard: */
body.page-en-cap-tiled-roof #hero .container img{
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  max-width: 100%;
}

/* Hero stacking + overlay (same visual system as insulation) */
body.page-en-cap-tiled-roof #hero{
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 112px);
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-en-cap-tiled-roof #hero > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: none !important;
  opacity: 1 !important;
}

body.page-en-cap-tiled-roof #hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

body.page-en-cap-tiled-roof #hero .container{
  position: relative;
  z-index: 2;
}

/* Row alignment (top aligned like insulation) */
body.page-en-cap-tiled-roof #hero .content{
  margin-top: 40px;                 /* matches template */
  align-items: flex-start !important;
}

/* LEFT COLUMN WRAP — same centering/width rhythm as insulation */
body.page-en-cap-tiled-roof .hero-copy-wrap{
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 24px 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Logo */
body.page-en-cap-tiled-roof .hero-logo-wrap{
  width: 100%;
  display: flex;
  justify-content: center;
}

body.page-en-cap-tiled-roof .hero-logo{
  max-width: 340px;
  width: 100%;
  height: auto;
  display: block;

  filter: drop-shadow(0 8px 18px rgba(0,0,0,.45));
  opacity: 1;
}

/* Eyebrow + reviews */
body.page-en-cap-tiled-roof .hero-meta{
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 10px;
}

body.page-en-cap-tiled-roof .hero-eyebrow{
  display:inline-flex;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color:#fff;
  font-weight:800;
  letter-spacing:2px;
  text-transform:uppercase;
  font-size:.85rem;
}

body.page-en-cap-tiled-roof .review-strip-hero{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content:center;
  color:#fff;
  font-weight:600;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

body.page-en-cap-tiled-roof .review-stars{
  color:#84ad46;
  letter-spacing:2px;
}

body.page-en-cap-tiled-roof .review-link{
  color:#fff !important;
  text-decoration: underline;
  font-weight:700;
}

/* Headline */
body.page-en-cap-tiled-roof .hero-main{
  color:#fff !important;
  text-shadow: 0 6px 22px rgba(0,0,0,.55);
  font-size: 3.1rem;
  font-weight: 700;
  line-height: 1.08;
  margin: 6px 0 4px;
}

/* Offer card */
body.page-en-cap-tiled-roof .hero-offer{
  width: 100%;
  max-width: 560px;

  border-radius: 16px;
  background: rgba(20,20,20,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 18px 20px;

  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

body.page-en-cap-tiled-roof .hero-offer-line{
  display:flex;
  align-items: baseline;
  justify-content:center;
  gap: 14px;
  flex-wrap: wrap;
  white-space: normal;
}

body.page-en-cap-tiled-roof .hero-offer-save{
  color:#fff;
  font-weight: 900;
  font-size: 2.1rem;
}

body.page-en-cap-tiled-roof .hero-offer-plus{
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 1.05rem;
}

body.page-en-cap-tiled-roof .hero-offer-code{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  color: rgba(255,255,255,0.92);
  font-weight:700;
}

body.page-en-cap-tiled-roof .hero-code-pill{
  background:#fff;
  color:#84ad46;
  font-weight:900;
  letter-spacing:1px;
  padding: 8px 16px;
  border-radius: 999px;
}

/* CTA button */
body.page-en-cap-tiled-roof .hero-cta-wrap{
  margin-top: 6px;
}

body.page-en-cap-tiled-roof a.hero-cta-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;

  background:#78b043 !important;
  color:#fff !important;
  font-weight:800;
  font-size:1.1rem;

  padding: 16px 36px;
  border-radius: 999px;

  text-decoration:none !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.30);
}

/* Right form stays correct */
body.page-en-cap-tiled-roof #hero .why-box{
  position: relative;
  z-index: 3;
  height: 100%;
  display:flex;
  flex-direction: column;
  justify-content:center;
}

/* Mobile */
@media (max-width: 768px){
  body.page-en-cap-tiled-roof #hero{
    min-height: auto;
    padding: 24px 0;
  }

  body.page-en-cap-tiled-roof .hero-main{
    font-size: 1.9rem;
  }

  body.page-en-cap-tiled-roof .hero-logo{
    max-width: 240px;
  }

  body.page-en-cap-tiled-roof .hero-offer-line{
  flex-wrap: wrap;
  white-space: normal;
  }

  body.page-en-cap-tiled-roof a.hero-cta-btn{
    width:100%;
  }
}


/* Trustpilot widget: force LEFT alignment (button templates often center themselves) */

/* Row: keep both badges on one line */
.review-badges-row{
  display: flex;
  align-items: flex-end;   /* bottom-align */
  gap: 30px;
}

/* Kill any default spacing from wrappers */
.review-badges-row p{
  margin: 0 !important;
}

/* Google image */
.review-badges-row img{
  display: block;
}

/* ✅ THIS is the key: move the whole Trustpilot block down */
.review-badges-row .trustpilot-wrap{
  position: relative;
  top: 18px;              /* increase to 18px if still high */
}

/* Make Trustpilot a bit bigger */
.review-badges-row .trustpilot-wrap iframe{
  transform: scale(1.1);
  transform-origin: left bottom;
}


/* Testimonials Page */


.testimonial-video{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px; /* optional */
}

/* Installation Page */

.installation-caption{
  font-size: 14px;
  line-height: 1.5;
  margin-top: 10px;
  color: #555;
}

.installation-caption .step-number{
  font-weight: 700;
  color: var(--accent-color);
  margin-right: 4px;
}

/* =========================
   Installation Step Badges
   ========================= */

.installation-caption{
  font-size: 14px;
  line-height: 1.5;
  margin-top: 12px;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.step-badge{
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-color);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


/* =========================
   Installation Gallery Hover
   ========================= */

.installation-item a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.installation-item a:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

/* Optional: slight smoothness on image itself */
.installation-item img {
  transition: transform 0.4s ease;
}

.installation-item a:hover img {
  transform: scale(1.02);
}


/* =========================
   Installation Video Hero
   ========================= */

.video-hero-wrap{
  position: relative;
  height: 520px;
  overflow: hidden;
}

.video-hero-bg{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.video-hero-content{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 20px;
  z-index: 2;
}

.video-hero-title{
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 30px;
}

.video-hero-sub{
  margin-top: 25px;
  font-size: 18px;
  opacity: 0.9;
}

/* =========================
   Play Button – Subtle Pulse
   ========================= */

.video-play-btn{
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 15px 35px rgba(0,0,0,.3);
  transition: transform .3s ease;
  display: inline-block;
}

/* Hover lift */
.video-play-btn:hover{
  transform: scale(1.06);
}

/* Play triangle */
.video-play-btn:before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-40%,-50%);
  border-top:14px solid transparent;
  border-bottom:14px solid transparent;
  border-left:22px solid #fff;
  z-index: 2;
}

/* Pulse ring */
.video-play-btn:after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,0.45);
  animation: pulseRing 2.5s ease-out infinite;
}

/* Animation */
@keyframes pulseRing{
  0%{
    transform: scale(0.9);
    opacity: 0;
  }
  30%{
    opacity: 0.5;
  }
  100%{
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Mobile */
@media (max-width:768px){
  .video-hero-wrap{
    height: 420px;
  }

  .video-hero-title{
    font-size: 28px;
  }
}


/* =========================
   Installation Header Tuning
   ========================= */

.installation-header{
  max-width: 820px;
  margin: 0 auto 20px auto; /* reduces gap above video */
}

.installation-header h2{
  font-size: 34px;
}

.installation-intro{
  font-size: 17px;
  line-height: 1.6;
  color: #555;
}

/* Reduce gap before video section */
#installation-video{
  margin-top: 10px;
  padding-top: 0;
}

/* =========================
   Installation Strong Highlight
   ========================= */

.installation-highlight{
  max-width: 900px;
  margin: 50px auto 40px auto;
}

.installation-highlight h3{
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--heading-color);
}

.highlight-day{
  font-weight: 800;
  color: var(--accent-color);
}


/* =========================
   Bottom Installation CTA
   ========================= */

.installation-bottom-cta{
  padding: 80px 0;
  background: #ffffff;
}

.installation-bottom-cta .cta-heading{
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 15px;
}

.installation-bottom-cta .cta-subheading{
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  color: #666;
}

.installation-bottom-cta .btn-primary{
  padding: 14px 28px;
  border-radius: 50px;
}

.installation-bottom-cta .btn-outline-dark{
  padding: 14px 28px;
  border-radius: 50px;
}

/* Hide by default, show after scroll */
.mobile-cta.is-hidden{
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.mobile-cta.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Optional: make sure cookie banner can sit above if needed */
#acceptrics-banner, .acceptrics-banner, .cookie-banner{
  z-index: 99999 !important;
}
.mobile-cta{
  z-index: 9999;
}


/* =========================
   Green CTA (Match Homepage)
   ========================= */

.btn-green{
  background-color: #7DBA3C;
  border: none;
  color: #ffffff;
  padding: 16px 40px;
  border-radius: 60px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.btn-green:hover{
  background-color: #6aa932; /* slightly darker green */
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  color: #ffffff;
}

/* =========================
   Terms Page Refinement
   ========================= */

/* Match homepage vertical rhythm */
.section.light-background{
  padding-top: 140px;   /* slightly more breathing room under fixed header */
  padding-bottom: 80px;
}

/* Refined section title spacing */
.legal-title{
  margin-bottom: 60px;
  position: relative;
}

/* Subtle divider under heading */
.legal-title::after{
  content:"";
  display:block;
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  margin: 18px auto 0 auto;
  border-radius: 50px;
}

/* Subheading more prominent */
.terms-subheading{
  font-size: 18px;
  font-weight: 600;
  color: #444;
  margin-top: 12px;
}

/* Card refinement to match site tone */
.card{
  border-radius: 16px;
}

.card-body{
  padding: 40px 50px;
}

/* Legal text polish */
.card-body p{
  font-size: 16px;
  line-height: 1.85;
  color: #555;
}

/* Mobile adjustment */
@media (max-width: 768px){
  .card-body{
    padding: 25px;
  }

  .section.light-background{
    padding-top: 120px;
    padding-bottom: 60px;
  }
}

.legal-content h3{
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-top: 26px;
  margin-bottom: 6px;
  color: var(--heading-color);
}


/* Page Header */

.page-title {
  font-size: 2.6rem;
  font-weight: 600;
  color: #444;
  margin-bottom: .35rem;
}

.title-divider {
  width: 160px;
  height: 2px;
  background: #ddd;
  margin: .75rem auto 1rem;
  position: relative;
}

.title-divider span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -1px;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Intro Card */

.page-intro-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.page-intro {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(0,0,0,.72);
  text-align: center;
}

.hero-page-title{
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.hero-h1{
  margin: 1rem 0 .5rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}

.hero-title-divider{
  width: 120px;
  height: 3px;
  margin: .75rem auto 1rem;
  background: var(--accent-color);
}

.hero-h1-sub{
  margin: 0 auto;
  max-width: 800px;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
}



/* Installation CTA (secondary action) */
.installation-cta {
  background: #f8f9fa;
}

.installation-cta-title {
  font-size: 0.85rem;
  font-weight: 400 !important;   /* force override */
  letter-spacing: 0.2px;
  color: #555;
  margin-bottom: 0.4rem;
}

/* Installation CTA (secondary action) */
.installation-cta-btn {
  background: #8c959e;        /* 25% lighter grey */
  border-color: #8c959e;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all .25s ease;
}

.installation-cta-btn:hover {
  background: #7d868f;        /* slightly darker on hover */
  border-color: #7d868f;

}


#hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/homepage/conservandsave-home-teaser.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Optional dark overlay */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

/* Keep content above background */
#hero .container {
  position: relative;
  z-index: 2;
}

.header .logo h1,
.header .logo .sitename {
  display: block;
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
  font-family: var(--heading-font);
  line-height: 1;
}

.hero .welcome h2,
.hero .welcome .hero-title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--heading-font);
  line-height: 1.2;
}