/*
Theme Name: youhealit
Description: WordPress Website Theme for the Wellness Center of the Triangle NC
Version: 1.93
Author: Evil Genius Creative
Author URI: https://www.evilgeniuscreative.com
Tags: wellness, health, medical, triangle, north-carolina, business, concussion, pain management, pain relief
Text Domain: wellness-triangle-nc
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Network: false
License: Proprietary business license at https://www.youhealit.com/theme-license-text.txt
License URI: https://www.youhealit.com/theme-license-text.txt
*/

/* =============================================================================
   RESET AND BASE STYLES
   ============================================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* =============================================================================
   GOOGLE FONTS
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

.roboto-light {
  font-family: 'Roboto', sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  font-variation-settings: 'wdth' 100;
}

.roboto-light-italic {
  font-family: 'Roboto', sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: italic;
  font-variation-settings: 'wdth' 100;
}

.roboto-regular {
  font-family: 'Roboto', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: 'wdth' 100;
}

.roboto-regular-italic {
  font-family: 'Roboto', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: 'wdth' 100;
}

.roboto-medium {
  font-family: 'Roboto', sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: 'wdth' 100;
}

.roboto-medium-italic {
  font-family: 'Roboto', sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: italic;
  font-variation-settings: 'wdth' 100;
}

.roboto-bold {
  font-family: 'Roboto', sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: 'wdth' 100;
}

.roboto-bold-italic {
  font-family: 'Roboto', sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: italic;
  font-variation-settings: 'wdth' 100;
}

.playfair-display-regular {
  font-family: 'Playfair Display', serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

.playfair-display-medium {
  font-family: 'Playfair Display', serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.playfair-display-bold {
  font-family: 'Playfair Display', serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

.ubuntu-light {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
  font-style: normal;
}

.ubuntu-regular {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-style: normal;
}

.ubuntu-medium {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-style: normal;
}

.ubuntu-bold {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-style: normal;
}

.ubuntu-light-italic {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 300;
  font-style: italic;
}

.ubuntu-regular-italic {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-style: italic;
}

.ubuntu-medium-italic {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-style: italic;
}

.ubuntu-bold-italic {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  font-style: italic;
}

/* =============================================================================
   CSS VARIABLES - COLOR PALETTE
   ============================================================================= */

:root {
  --primary-green: #8bc34a;
  --secondary-green: #689f38;
  --tertiary-green: #a8cf4e;
  --dark-green: #558b2f;
  --red-accent: #f44336;
  --orange-accent: #ff9800;
  --text-dark: #333333;
  --text-light: #666666;
  --background-light: #f8f9fa;
  --border-color: #e9ecef;
  --white: #ffffff;
  --mwidth: 1200px;
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* =============================================================================
   LAYOUT CONTAINERS
   ============================================================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  padding: 0;
  width: 100%;
}

/* =============================================================================
   HEADER STRUCTURE - FIXED POSITIONING SYSTEM
   ============================================================================= */

.main-header {
  position: relative;
  float: left;
  min-width: 100%;
  width: 100%;
  z-index: 99;
}

.main-head-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
}

.header-spacer {
  height: 156px !important;
}

.header-all {
  background-color: black;
}
/* =============================================================================
   TOP ALERT BAR
   ============================================================================= */

.top-header {
  background: var(--red-accent);
  color: var(--text-dark);
  text-align: center;
  font-weight: 700;
  padding: 8px 20px;
  font-size: 18px;
  min-height: 40px;
  vertical-align: middle;
}

.top-header p {
  margin: 0;
  color: var(--text-dark);
}

.top-header a {
  color: #fff !important;
  text-decoration: underline;
}

.top-header a:hover {
  color: #ffeb3b;
}

/* =============================================================================
   UPPER HEADER INFO ROW
   ============================================================================= */

#regular-header {
  background: var(--text-dark);
  color: #fff;
  padding: 8px 0;
  display: none; /* Hidden by default, can be shown via media queries */
}

.dm-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.dm-flex div {
  animation-fill-mode: initial !important;
}

.dm-third {
  flex: 1;
  text-align: center;
  padding: 8px 15px;
}

.dm-third:first-child {
  text-align: left;
}

.dm-third:last-child {
  text-align: right;
}

/* Phone Header */

.phone-home {
  font-weight: 300;
  font-size: 18px;
}
.phone-header p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.phone-header i {
  margin-right: 8px;
  color: #2c5aa0;
}

.phone-header a {
  color: #333;
  text-decoration: none;
}

.phone-header a:hover {
  color: #2c5aa0;
}

/* Address Header */
.address-header p {
  margin: 0;
  font-size: 14px;
}

.address-header i {
  margin-right: 8px;
  color: #dc3545;
}

.address-header a {
  color: #333;
  text-decoration: none;
}

.address-header strong {
  font-weight: 700;
}

/* Social Header */
.social-icons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.header-facebook {
  background: #3b5998;
}
.header-google {
  background: #dd4b39;
}
.header-twitter {
  background: #1da1f2;
}
.header-youtube {
  background: #ff0000;
}
.header-yelp {
  background: #af0606;
}
.header-pinterest-p {
  background: #bd081c;
}

/* =============================================================================
   MAIN HEADER - DEFAULT (NON-HOMEPAGE)
   ============================================================================= */

#header {
  position: relative;
  min-width: 100%;
  width: 100%;
  float: left;
  margin: 0;
  padding: 10px 8px;
  background: #fff; /* White background for all pages except homepage */
  transition: all 0.3s ease;
}

#secondary-navigation {
  float: none;
  display: flex;
  align-items: center;
}

.secondary-navigation {
  display: block;
  float: right;
}

/* =============================================================================
   HOMEPAGE HEADER OVERRIDES - TRANSPARENT BACKGROUND
   ============================================================================= */

.home .main-head-wrap {
  background: transparent;
}

.home #header {
  background: transparent; /* !important; */
  padding: 10px 8px;
}

.home .main-header {
  background: transparent;
}

/* =============================================================================
   LOGO SECTION
   ============================================================================= */

.logo-wrap {
  margin: 0;
  float: none;
  overflow: visible;
  flex-shrink: 0;
}

#logo {
  margin: 0;
  font-size: 0;
  line-height: 1;
  position: relative;
  margin-bottom: 0;
  float: left;
}

#logo img {
  height: 100px;
  width: auto;
}

/* Logo color adjustments for homepage */
.home #logo img {
  filter: brightness(0) invert(1); /* Makes logo white on homepage */
}

/* =============================================================================
   RIGHT SIDE HEADER CONTENT
   ============================================================================= */

.right-side-header {
  flex-grow: 1;
  text-align: right;
}

.right-side-header > div:first-child {
  margin-bottom: 15px;
}

.right-side-header p {
  display: inline-block;
  margin: 0 20px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.right-side-header a {
  color: #333;
  text-decoration: none;
}

/* Homepage text color overrides */
.home .right-side-header p {
  color: white;
}

.home .right-side-header a {
  color: white;
}

/* =============================================================================
   HEADER BUTTONS
   ============================================================================= */

.btn {
  background-color: var(--red-accent);
  display: inline-block;
  padding: 10px 20px;
  margin: 0 5px;
  color: white !important;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #1e3f73;
  color: white !important;
  transform: translateY(-2px);
}

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

.btn-red:hover {
  background: #d32f2f;
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

.btn-shop {
  background: var(--orange-accent);
  color: white;
}

.btn-shop:hover {
  background: #f57c00;
  transform: translateY(-1px);
  color: white;
}

/* =============================================================================
   NAVIGATION MENU
   ============================================================================= */

.navigation {
  margin-top: 10px;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.menu-item {
  font-family: 'Roboto', sans-serif;
  position: relative;
  margin: 0 5px;
  text-transform: uppercase;
}

.menu-item > a {
  display: block;
  padding: 12px 15px;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.not-home-page .menu-item > a {
  color: var(--primary-text);
}

.menu-item:hover > a,
.menu-item.current > a,
.current-menu-item > a,
.current_page_item > a {
  background: var(--primary-green);
}

/* Homepage navigation text colors */
.home .menu-item > a {
  color: white;
}

.home .menu-item:hover > a,
.home .menu-item.current > a,
.home .current-menu-item > a,
.home .current_page_item > a {
  background: var(--primary-green);
  color: white;
}

/* =============================================================================
   DROPDOWN MENUS
   ============================================================================= */

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  color: #333;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.menu-item:hover .sub-menu {
  color: #333;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Long Services Menu */
.wda-long-menu {
  min-width: 250px;
  max-height: 400px;
  overflow-y: auto;
}

.sub-menu .menu-item {
  margin: 0;
  border-bottom: 1px solid #ddd;
  text-transform: none;
}

.sub-menu .menu-item:last-child {
  border-bottom: none;
}

.sub-menu a {
  text-align: left;
  padding: 10px 15px;
  font-weight: 500;
  font-size: 14px;
  color: #333 !important;
  border-radius: 0;
}

.sub-menu a:hover {
  background-color: var(--primary-green);
  color: white;
}

/* Homepage dropdown overrides */
.home .sub-menu {
  background: rgba(255, 255, 255, 0.95);
}

.home .sub-menu a {
  color: #333;
}

.home .sub-menu a:hover {
  background-color: var(--primary-green);
  color: white;
}

/* Toggle Caret for Dropdown Indicators */
.toggle-caret {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  transition: transform 0.3s ease;
}

.menu-item:hover .toggle-caret {
  transform: translateY(-50%) rotate(45deg);
}

/* Arrow indicator for items with dropdowns */
.menu-item-has-children > a::after {
  content: ' ▼';
  font-size: 10px;
  margin-left: 5px;
}

/* =============================================================================
   HOMEPAGE VIDEO HEADER
   ============================================================================= */

.video-header {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#header-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: 1;
}

/* =============================================================================
   HOMEPAGE CAROUSEL
   ============================================================================= */

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 85%;
  margin: 0 auto;
  z-index: 2;
  padding: 175px 5% 0 5%;
}

.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.no-carousel-item {
  flex: 1;
  border: 2px solid var(--text-dark);
}
.no-carousel-item img {
  width: 100%;
}

.carousel-item {
  min-width: 320px;
  max-width: 320px;
  min-height: 375px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.carousel-item:hover {
  transform: translateY(-8px);
}

.carousel-item img,
.no-carousel-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.carousel-item .content {
  padding: 20px;
}

.carousel-item h3 {
  color: var(--primary-green);
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.carousel-item p {
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.btn-cta {
  background: var(--red-accent);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-cta:hover {
  background: #d32f2f;
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-green);
  border: none;
  padding: 12px 16px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 3;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

/* =============================================================================
   SINGLE.PHP
   ============================================================================= */

.green-title {
  background: var(--tertiary-green);
  padding: 20px;
  margin-bottom: 15px 0px;
}
h1.page-title {
  color: var(--white);
  text-align: center;
  margin-bottom: 0;
}
.post-meta,
.post-content {
  width: 75%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

/* =============================================================================
   MAIN CONTENT SECTIONS
   ============================================================================= */

main {
  min-height: 180px;
}

.main-content {
  margin-top: 0;
  padding: 0;
  margin: 180px auto 40px;
}

.bottom-map {
  width: 75%;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 0 0 80px;
}

.bottom-map > div {
  display: inline-block;
  vertical-align: top;
}

.bottom-map > div:first-child {
  width: 30%;
}

.bottom-map > div:last-child {
  width: 65%;
}

.bottom-map iframe {
  width: 100%;
}

#directions-form {
}

#directions-form input {
  font-size: 16px;
  margin-bottom: 10px;
  padding: 10px;
  width: 80% !important;
}

#directions-form button {
  font-size: 16px;
  margin-bottom: 10px;
  padding: 10px;
}

#reset-map-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: none;
}

#reset-map-btn:hover {
  background-color: #5a6268;
}

/* Welcome Section */
.welcome-section {
  padding: 80px 20px;
  background: white;
}

.split-section {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: center;
}

.content-left h2 {
  font-size: 2.8rem;
  color: var(--primary-green);
  line-height: 1.2;
  font-weight: 700;
}

.content-right h3 {
  font-size: 1.6rem;
  color: var(--red-accent);
  margin-bottom: 25px;
  font-weight: 600;
}

.content-right p {
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--red-accent), #e57373);
  color: white;
  padding: 0;
  margin: 0;
}

.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-content {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-content h2 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: white;
  font-weight: 700;
}

.cta-content p {
  margin-bottom: 35px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
}

/* Services Section */
.services-section {
  padding: 80px 20px;
  background: var(--background-light);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.services-section h2 {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 20px;
  font-weight: 700;
}

.service-more-link {
  display: inline-block;
  margin-left: 10px;
  text-align: right;
  width: auto;
}

.services-section h2 a {
  color: var(--primary-green);
  text-decoration: none;
}

.services-section h2 a:hover {
  color: var(--primary-green);
  text-decoration: none;
}

.services-section > p {
  max-width: var(--mwidth);
  margin: 0 auto 50px auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}

.service-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  background: white;
  min-height: 300px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 40px 25px 25px;
}

.overlay h3 {
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
  color: white;
}

/* =============================================================================
   SERVICES PAGE STYLES
   ============================================================================= */

/* .services-page-container {
    padding: 40px;
} */

.services-toc {
  background: var(--background-light);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 3px 8px;
  list-style: none;
}

.services-toc li {
  background-color: transparent;
  color: var(--text-dark);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.services-toc li:hover {
  transform: scale(1.1);
}

.services-toc li a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
}

.services-divider {
  margin: 24px 0;
}

.service-block {
  padding-top: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

/* =============================================================================
   CITIES LIST SECTION
   ============================================================================= */

.cities-list-section {
  background: var(--background-light);
  padding: 80px 20px;
}

.cities-list-section h2 {
  color: var(--primary-green);
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  font-weight: 700;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  width: 75%;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}

.cities-grid a {
  color: var(--primary-green);
  text-decoration: none;
  padding: 15px 20px;
  background: white;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary-green);
  font-size: 0.9rem;
  line-height: 1.3;
}

.cities-grid a:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(139, 195, 74, 0.2);
}

/* =============================================================================
   STANDARD PAGE LAYOUT
   ============================================================================= */

.page-content {
  max-width: var(--mwidth);
  margin: 0 auto;
  padding: 40px 20px;
}

.page-content h1 {
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 30px;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer {
  background: var(--text-dark);
  color: white;
  padding: 40px 0 20px;
  text-align: center;
}

.footer-services {
  margin-bottom: 20px;
  border: 1px solid rgb(255, 255, 255);
  border-radius: 8px;
  padding: 10px;
}

.footer-services-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-services ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 40px;
}

.footer-services ul li a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-inner p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.footer-links a,
.footer-links {
  color: var(--primary-green);
}

.sitemap-link a {
  color: var(--primary-green);
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

.city-navigation {
  background: #f8f9fa;
  padding: 20px;
  margin: 30px 0;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.city-navigation a {
  text-decoration: none;
  color: #0073aa;
}

.city-navigation .btn {
  background: #0073aa;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}

/* =============================================================================
   MOBILE MENU
   ============================================================================= */

.toggle-mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

.home .toggle-mobile-menu {
  color: white;
}

#mobile-menu-overlay {
  display: none;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 1024px) {
  .dm-flex {
    flex-direction: column;
    gap: 10px;
  }

  .dm-third {
    text-align: center;
  }

  .secondary-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .right-side-header {
    text-align: center;
  }

  .menu {
    justify-content: center;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .content-left h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .header-spacer {
    height: auto !important;
    min-height: 120px;
  }

  .main-header {
    position: relative;
  }

  .toggle-mobile-menu {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
  }

  .home .menu {
    background: rgba(255, 255, 255, 0.95);
  }

  .menu.active {
    display: flex;
  }

  .menu-item {
    margin: 0;
    border-bottom: 1px solid #f8f9fa;
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: #f8f9fa;
  }

  .menu-item.active .sub-menu {
    display: block;
  }

  .social-icons {
    justify-content: center;
    margin-top: 10px;
  }

  .video-header {
    height: 50vh;
  }

  .carousel-wrapper {
    padding: 0 60px;
    margin-top: 180px;
  }

  .cta-split {
    grid-template-columns: 1fr;
  }

  .carousel-item {
    min-width: 280px;
    max-width: 280px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cities-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }

  .carousel-nav {
    width: 45px;
    height: 45px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .carousel-prev {
    left: 15px;
  }

  .carousel-next {
    right: 15px;
  }
}

@media (max-width: 480px) {
  .content-left h2 {
    font-size: 1.8rem;
  }

  .services-section h2 {
    font-size: 2rem;
  }

  .carousel-item {
    min-width: 260px;
    max-width: 260px;
  }

  .carousel-wrapper {
    padding: 0 50px;
  }

  .cta-content {
    padding: 40px 20px;
  }

  .cities-grid {
    grid-template-columns: 1fr;
  }

  .menu {
    gap: 10px;
  }

  .menu-item > a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .btn-red,
  .btn-shop {
    padding: 8px 15px;
    font-size: 12px;
  }

  .right-side-header p {
    font-size: 14px;
  }
}

/* =============================================================================
   ACCESSIBILITY & FOCUS STATES
   ============================================================================= */

.menu-item a:focus,
.btn:focus {
  outline: 2px solid #2c5aa0;
  outline-offset: 2px;
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
  .main-header {
    position: static;
    box-shadow: none;
  }

  .header-spacer {
    display: none;
  }

  .top-header,
  .social-icons,
  .btn {
    display: none;
  }
}

/* FORCE HOMEPAGE HEADER TRANSPARENCY */
body.home .main-head-wrap,
body.home #header,
body.home div#header,
html body.home .main-head-wrap,
html body.home #header {
  background: transparent; /* !important; */
  background-color: transparent; /* !important; */
}

/* Force homepage navigation text to be white */
body.home .menu-item > a,
body.home .secondary-navigation a,
body.home .right-side-header p,
body.home .right-side-header a {
  color: white;
}

/* Make logo white on homepage */
body.home #logo img {
  filter: brightness(0) invert(1) !important;
}

/* Red alert bar should stay red */
body.home .top-header {
  background: var(--red-accent) !important;
}

#header.header-scrolled {
  background: black !important;
  transition: all 0.3s ease;
}

#header.not-home-page {
  background-color: white !important;
}
