/*
Theme Name: HFH
Author: Josh Yager
Author URI: https://thedevq.com/
Description: Custom Theme build by The Dev Q
Version: 1.0.0
*/

/* -----------------------------------------------------------------------------
 * CSS Variables
 * -------------------------------------------------------------------------- */
:root {
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 30px;
  --spacing-xl: 60px;

  /* Z-index layers */
  --z-index-dropdown: 3;

  /* Transitions */
  --transition-fast: all 0.1s ease-in-out;
  --transition-default: all 0.3s ease-in-out;

  /* Other */
  --video-aspect-ratio: 56.25%;
  /* 16:9 */
}

/* -----------------------------------------------------------------------------
 * Base Elements
 * -------------------------------------------------------------------------- */
/* max-width overflow 100%  fix */
body, html {
  overflow-x: hidden;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  position: relative;
  font-family: var(--font2);
  font-weight: 400;
  color: #333131;
  line-height: 1.5;
}

p, ul, li {
  font-family: var(--font2);
  font-weight: 400;
  color: #333131;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

/* -----------------------------------------------------------------------------
 * Typography
 * -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font1);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

.bigger-title {
  font-size: 4rem;
}

.sub-title {
  font-size: 24px;
}

.cs-topper {
  font-family: var(--font2);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  margin-top: 0;
  color: var(--secondary);
  letter-spacing: 3px;
}

.cs-title {
  font-size: 34px;
  margin: 0;
  line-height: 1;
  font-weight: 800;
  max-width: 530px;
  color: var(--primary);
}

/* -----------------------------------------------------------------------------
 * Layout
 * -------------------------------------------------------------------------- */
.container-fluid {
  max-width: 2400px;
  margin: auto;
}

.videoWrapper {
  position: relative;
  padding-bottom: var(--video-aspect-ratio);
  height: 0;
}

.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* -----------------------------------------------------------------------------
 * Buttons
 * -------------------------------------------------------------------------- */
.btn {
  text-decoration: none;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: 300px;
  padding: var(--button-padding, 15px);
  font-weight: 600;
  text-align: center;
  transition: var(--transition-default);
  border: 2px solid var(--primary);
  border-radius: var(--button-radius, 4px);
  max-width: 100%;
}

.btn i {
  margin-right: var(--spacing-sm);
  font-size: 14px;
}

.btn:hover {
  background: var(--tertiary) !important;
  color: black;
  border: 2px solid var(--tertiary);
}

/* Button Variants */
.btn.btn-secondary {
  background: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn.btn-secondary:hover {
  background: var(--primary);
  color: black;
}

.btn.btn-tertiary {
  background: var(--tertiary);
  border: 2px solid var(--tertiary);
}

.btn.btn-white {
  background: white;
  color: var(--primary);
}

.btn.white:hover {
  background: var(--primary);
  color: white;
}

.btn.btn-secondary.border {
  background: transparent;
  color: white;
  border: 2px solid var(--secondary);
}

.btn.btn-secondary.border:hover {
  background: var(--secondary);
  border: 2px solid var(--secondary);
  color: black;
}

/* -----------------------------------------------------------------------------
 * Header & Navigation
 * -------------------------------------------------------------------------- */

/* Utility Bar */
.utility-bar {
  background-color: var(--primary);
  color: white;
  padding: 10px 0;
}

.utility-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-section {
  flex: 0 0 33.333%;
  display: flex;
  align-items: center;
}

.utility-left {
  justify-content: flex-start;
}

.utility-middle {
  justify-content: center;
  gap: 10px;
}

.utility-right {
  justify-content: flex-end;
  gap: 10px;
}

.utility-bar a,
.utility-bar span {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.utility-bar a:hover {
  text-decoration: underline;
}

.utility-bar i {
  margin-right: 5px;
}

.utility-divider {
  margin: 0 10px;
}

.utility-phone,
.utility-contact {
  display: flex;
  align-items: center;
}

/* Main Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.devq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: var(--spacing-md) 0;
  transition: all 0.3s ease;
}

.logosection {
  width: 200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: all 0.3s ease;
}

.mainLogo {
  padding: 0;
  display: block;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  margin: 0;
  position: relative;
  transition: all 0.3s ease;
  object-fit: contain;
}

.main-header.scrolled .logosection {
  width: 40px;
  height: 40px;
}

/* Header Buttons Container */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Header Phone */
.header-phone-link {
  display: flex;
  align-items: center;
  background: var(--primary, #2c5366);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary, #2c5366);
  white-space: nowrap;
}

.header-phone-link:hover {
  background: var(--secondary, #1d4254);
  border-color: var(--secondary, #1d4254);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: white;
}

.header-phone-link i {
  margin-right: 8px;
  font-size: 14px;
}

/* Header CTA Button */
.header-cta-link {
  display: flex;
  align-items: center;
  background: var(--secondary, #1d4254);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary, #1d4254);
  white-space: nowrap;
}

.header-cta-link:hover {
  background: var(--primary, #2c5366);
  border-color: var(--primary, #2c5366);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: white;
}

.header-cta-link i {
  margin-right: 8px;
  font-size: 14px;
}

/* Scrolled State */
.main-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 25px rgba(0, 0, 0, 0.15);
}

.main-header.scrolled .devq-header {
  padding: 10px 0;
}

.main-header.scrolled .mainLogo {
  max-width: 40px;
}

.main-header.scrolled .header-phone-link,
.main-header.scrolled .header-cta-link {
  padding: 8px 16px;
  font-size: 14px;
}

.main-header.scrolled .header-phone-link i,
.main-header.scrolled .header-cta-link i {
  font-size: 12px;
}

/* Body padding to prevent content hiding under fixed header */
body {
  padding-top: 90px;
}

@media (max-width: 767px) {
  .header-buttons {
    gap: 10px;
  }

  .header-phone-link,
  .header-cta-link {
    font-size: 14px;
    padding: 10px 15px;
  }

  .main-header.scrolled .header-phone-link,
  .main-header.scrolled .header-cta-link {
    padding: 6px 12px;
    font-size: 12px;
  }

  body {
    padding-top: 70px;
  }
}

/* Main Menu */
.menutop ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 35px;
}

.menutop ul li a {
  text-decoration: none;
  font-weight: 500;
  color: initial;
  font-size: 16px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
}

.menutop ul li a:hover {
  color: var(--secondary);
}

.header_btn a {
  background: var(--secondary);
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 30px;
  color: white !important;
  transition: all .3s ease-in-out;
}

.header_btn a:hover {
  background: var(--primary);
  color: white !important;
}

.mobilemenuonly {
  display: none;
}

@media (max-width:1199px) {
  .mobilemenuonly {
    display: block;
  }

  .utility-bar {
    display: none;
  }
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  transform-origin: top left;
  min-width: 220px;
  left: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

ul.dropdown-menu {
  display: none;
  padding: 0;
  margin: 0;
}

.dropdown:hover ul.dropdown-menu {
  display: block;
  position: absolute;
  opacity: 1;
  z-index: var(--z-index-dropdown);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ECF5FA;
}

.dropdown-menu a {
  margin: 0 !important;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  background: #fff;
  padding: 12px 20px;
  color: var(--primary) !important;
  font-weight: 500;
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  font-size: 14px;
}

.dropdown-menu li:first-child a {
  border-radius: 8px 8px 0 0;
}

.dropdown-menu li:last-child a {
  border-bottom: 0;
  border-radius: 0 0 8px 8px;
}

.dropdown-menu li a:hover {
  background: var(--primary);
  color: white !important;
  padding-left: 25px;
}

a.dropdown-toggle {
  position: relative;
  padding-right: 15px;
}

a.dropdown-toggle i {
  padding-left: 5px;
  font-size: 12px;
}

.menu-depth-1,
.menu-item-has-children {
  position: relative;
}

/* Mobile Menu */
nav#menu:not(.mm-menu) {
  display: none;
}

.mm-menu {
  --mm-color-background: #fff;
}

.mm-listitem__text, .mm-navbar__title>span {
  font-weight: 600;
  color: var(--primary);
}

/* Hamburger Menu */
.mburger {
  color: #fff;
}

.mburger:hover,
.mburger:focus,
.mburger:active {
  color: #fff;
}

.mburger strong {
  display: block;
  position: absolute;
  left: calc(var(--mb-button-size)*((1 - var(--mb-bar-width))/2));
  width: calc(var(--mb-button-size)*var(--mb-bar-width));
  height: var(--mb-bar-height);
  background: black;
  color: inherit;
  opacity: 1;
  border-radius: 0;
}

.mburger strong:nth-of-type(1) {
  bottom: calc(45% + var(--mb-bar-spacing));
}

.mburger strong:nth-of-type(3) {
  top: calc(45% + var(--mb-bar-spacing));
}

.mburger span {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

@media (max-width:1440px) {
  .menutop ul li a {
    font-size: 13px;
  }

  .header_btn a {
    width: 160px;
    height: 40px;
  }

  .menutop ul {
    gap: 20px;
  }
}

/* Mobile Header */
.flextophead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

img.mobilelogo {
  width: 230px;
  margin: 0 var(--spacing-md);
}

.mobilemen {
  margin: -10px 10px 0 0;
  display: none;
}

img.mobileLogo {
  padding: 30px;
}

/* -----------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */

/* Holy Family Hospice Footer */
.hfh-footer {
  background: linear-gradient(135deg, #2c5366 0%, #1d4254 100%);
  padding: 50px 0;
  color: white;
  text-align: center;
}

.hfh-footer-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Footer Logo */
.hfh-footer-logo {
  margin-bottom: 20px;
}

.hfh-favicon {
  max-width: 140px;
  height: auto;
  /* border-radius: 10px; */
  /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
  background: white;
  padding: 10px;
  border-radius: 15px;
}

/* Footer Text */
.hfh-footer-text {
  line-height: 1.8;
}

.hfh-company-info {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin-bottom: 15px;
  margin-top: 0;
}

.hfh-certification {
  font-size: 16px;
  color: #b8d4e0;
  margin-bottom: 25px;
  margin-top: 0;
  font-style: italic;
}

.hfh-phone {
  margin: 0;
}

.hfh-phone a {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  margin-top: 10px;
}

.hfh-phone a:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hfh-phone a i {
  margin-right: 8px;
  font-size: 16px;
  color: var(--secondary, #1d4254);
}

/* Responsive Footer */
@media (max-width: 767px) {
  .hfh-footer {
    padding: 40px 0;
  }

  .hfh-company-info {
    font-size: 18px;
  }

  .hfh-certification {
    font-size: 14px;
  }

  .hfh-phone a {
    font-size: 16px;
    padding: 12px 25px;
  }

  .hfh-favicon {
    max-width: 80px;
  }

  .header-cta {
    display: none;
  }
}

/* -----------------------------------------------------------------------------
 * Utility Classes
 * -------------------------------------------------------------------------- */
.mobileonly,
.mobileOnly {
  display: none;
}

/* -----------------------------------------------------------------------------
 * Browser Customization
 * -------------------------------------------------------------------------- */
::selection {
  background: var(--tertiary);
  color: var(--secondary);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: #f5f5f5;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: var(--secondary);
}

/* -----------------------------------------------------------------------------
 * Content Styles
 * -------------------------------------------------------------------------- */
.maincopy ul li {
  list-style: none;
  position: relative;
  margin-bottom: var(--spacing-md);
}

/* -----------------------------------------------------------------------------
 * Media Queries
 * -------------------------------------------------------------------------- */
@media (max-width: 1199px) {

  /* Header & Navigation */
  /* Utility Bar */
  .utility-bar-content {
    flex-wrap: wrap;
  }

  .utility-section {
    padding: 5px 0;
  }

  .utility-middle {
    order: 3;
    flex: 0 0 100%;
    justify-content: flex-start;
  }

  .utility-left {
    flex: 0 0 50%;
  }

  .utility-right {
    flex: 0 0 50%;
  }

  .mainLogo {
    margin: 0 auto;
    width: 130px;
    height: auto;
  }

  .menutop {
    display: none;
  }

  .mobilemen {
    display: inherit;
  }

  /* Utility Classes */
  .mobileonly,
  .mobileOnly {
    display: initial;
  }

  .desktopOnly {
    display: none;
  }

  /* Footer */
  .footerfluidcolor {
    padding: 70px 0 40px;
  }

  .footerfluid2 p {
    text-align: center;
  }
}

@media (max-width: 991px) {

  /* Header & Navigation */
  /* Utility Bar */
  .utility-bar-content {
    flex-direction: column;
    gap: 10px;
  }

  .utility-section {
    flex: 0 0 100%;
    justify-content: center;
    padding: 5px 0;
  }

  .utility-left,
  .utility-right {
    flex-direction: column;
    gap: 5px;
  }

  .utility-divider {
    display: none;
  }

  /* Typography */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.75rem;
  }

  h5 {
    font-size: 1.5rem;
  }

  .bigger-title {
    font-size: 3rem;
  }

  .sub-title {
    font-size: 20px;
  }
}