/*
Theme Name: Landmark
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
 * -------------------------------------------------------------------------- */
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: 600;
  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);
}

.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 Menu */
.utility-menu-container {
  background-color: var(--secondary);
  padding: 8px 0;
}

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

.utility-menu-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.utility-phone {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

a.utility-phone i {
  font-size: 15px;
}

.utility-phone:hover {
  color: var(--tertiary);
}

.utility-cta {
  color: white;
  text-decoration: none;
  font-weight: 600;
  background-color: var(--primary);
  padding: 5px 15px;
  border-radius: var(--button-radius, 4px);
  transition: var(--transition-fast);
}

.utility-cta:hover {
  background-color: var(--tertiary);
}

/* Main Header */
.main-header-container {
  position: relative;
  background-color: white;
}

.header-container {
  width: 100%;
  transition: var(--transition-default);
}

/* Sticky Header */
.header-container.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  /* Below WP admin bar (z-index: 99999) */
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  /* Smooth transition for any position changes */
}

/* WordPress Admin Bar Compatibility */
.admin-bar .header-container.sticky {
  /* Default positioning handled by JavaScript for responsiveness */
}

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

/* Compact Header */
.header-container.sticky .devq-header {
  padding: 8px 0;
}

.mainLogo {
  padding: 0;
  display: block;
  width: 200px;
  height: auto;
  margin: 0;
  position: relative;
  transition: var(--transition-default);
}

.favicon-logo {
  display: none;
  width: 40px;
  height: auto;
  transition: var(--transition-default);
}

.header-container.sticky .mainLogo {
  display: none;
}

.header-container.sticky .favicon-logo {
  display: block;
}

/* Compact Header Elements */
.compact-header-elements {
  display: none;
  align-items: center;
  gap: 30px;
}

.header-container.sticky .compact-header-elements {
  display: flex;
}

.header-container.sticky .menutop {
  display: none;
}

/* Hide the regular mobile menu button on desktop when sticky */
.header-container.sticky .mobilemen:not(.compact-mobilemen) {
  display: none;
}

/* Show the compact mobile menu button only in sticky state */
.compact-mobilemen {
  display: none;
}

.header-container.sticky .compact-mobilemen {
  display: block;
}

.compact-phone {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.compact-phone:hover {
  color: var(--secondary);
}

.compact-cta {
  min-height: 35px !important;
  width: auto !important;
  padding: 5px 15px !important;
  font-size: 14px;
}

.btn-sm {
  min-height: 35px;
  width: auto;
  padding: 5px 15px;
  font-size: 14px;
}

/* Main Menu */
.menutop ul {
  display: flex;
  list-style: none;
}

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

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

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  transform-origin: center top 0;
  transition: var(--transition-fast);
  min-width: 270px;
  left: -10px;
  overflow: hidden;
  padding-top: var(--spacing-sm);
}

ul.dropdown-menu {
  display: none;
}

.dropdown:hover ul.dropdown-menu {
  display: block;
  position: absolute;
  color: white;
  padding-top: var(--spacing-sm);
  z-index: var(--z-index-dropdown);
}

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

.dropdown-menu li a {
  background: var(--primary);
  padding: var(--spacing-sm) var(--spacing-md);
  color: white !important;
  display: block;
  border-bottom: 1px solid white;
  transition: var(--transition-fast);
}

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

.dropdown-menu li a:hover {
  background: var(--secondary);
  color: white !important;
}

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

.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 - Simple Version */
.mburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  background-color: transparent;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
}

.mburger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.mburger strong {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Active state animations */
.mm-wrapper_opened .mburger strong {
  background-color: var(--secondary);
}

/* Top line animation */
.mm-wrapper_opened .mburger strong:nth-of-type(1) {
  transform: translateY(7px) rotate(45deg);
}

/* Middle line animation */
.mm-wrapper_opened .mburger strong:nth-of-type(2) {
  opacity: 0;
}

/* Bottom line animation */
.mm-wrapper_opened .mburger strong:nth-of-type(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Compact header hamburger styling */
.compact-mobilemen .mburger {
  width: 35px;
  height: 35px;
  padding: 8px;
}

.compact-mobilemen .mburger strong {
  width: 20px;
}

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

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

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

img.mobileLogo {
  padding: 30px;
}

/* -----------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */
.footerfluid2 {
  padding: var(--spacing-md) 0;
  background: var(--secondary);
}

.footerfluid2 p {
  color: white;
  margin: 0;
  padding: var(--spacing-sm) 0;
  font-size: 16px;
}

/* -----------------------------------------------------------------------------
 * 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(--tertiary);
}

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

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

  /* Utility Menu */
  .utility-menu-container {
    display: none;
  }

  /* Header & Navigation */
  .main-header-container {
    position: relative;
  }

  .header-container {
    position: relative !important;
    box-shadow: none !important;
  }

  .header-container.sticky {
    position: relative !important;
  }

  .mainLogo {
    margin: 0 auto;
    width: 300px;
    height: auto;
    display: block !important;
  }

  .favicon-logo {
    display: none !important;
  }

  .menutop {
    display: none;
  }

  .mobilemen {
    display: block;
  }

  .compact-header-elements {
    display: none !important;
  }

  .compact-mobilemen {
    display: none !important;
  }

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

  .desktopOnly {
    display: none;
  }

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

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

@media (max-width: 991px) {

  /* 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;
  }
}