/*
Theme Name: Bug Masters Murray Theme
Author: Rae Stilwell (Modernized by Claude)
Author URI: http://raestilwell.com
Description: A Custom Theme for Bug Masters, LLC of Murray KY. 
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bugmasters
*/

/**
 * Table of Contents:
 * 1. Global Settings
 * 2. Primary Layout
 * 3. Secondary Layout
 * 4. Tertiary Layout
 * 5. Text Styles
 * 6. Components
 * 7. Utilities
 * 8. Responsive Styles
**/

/* === 1. GLOBAL SETTINGS === */
:root {
  --primary: #9b0000;
  --primary-transparent: rgba(155, 0, 0, 0.9);
  --secondary: #ffea00;
  --secondary-dark: #dfcd00;
  --tertiary: #5f5d42;
  --dark: #000;
  --light: #fff;
  --teal: #1c6369;
  --transition-speed: 0.3s;
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* === 2. PRIMARY LAYOUT === */
html {
  min-height: 100%;
  background: var(--teal) url("../images/bg2.jpg") repeat-x fixed bottom;
  scroll-behavior: smooth;
}

body {
  background-color: transparent;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* === 3. SECONDARY LAYOUT === */
/* Header */
header {
  margin-top: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-radius: 6rem 6rem 0 0;
  background-color: var(--secondary);
  box-shadow: var(--shadow);
}

.header-info {
  color: var(--tertiary);
}

.header-info p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.header-container {
  height: 200px;
  background-image: url("../images/truck2.jpg");
  background-size: cover;
  background-position: center;
  margin-top: -20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.header-red-banner {
  background: var(--primary-transparent);
  color: var(--light);
  padding: 1rem 2rem;
  display: inline-block;
  margin: 0;
  box-shadow: var(--shadow);
}

/* Navigation */
.nav-bg-custom {
  background-color: var(--light) !important;
  box-shadow: var(--shadow);
}

.nav-bg-custom .nav-link {
  transition: all ease var(--transition-speed);
  font-weight: 500;
  padding: 0.75rem 1rem;
}

.nav-bg-custom .nav-link:hover {
  color: var(--primary) !important;
}

.nav-bg-custom .nav-link i {
  opacity: 0.8;
}

/* Footer */
.footer {
  background-color: var(--secondary);
  padding: 2rem 0;
  box-shadow: 0 -0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.footer h3 {
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: var(--dark);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 0.2rem;
  background-color: var(--primary);
}

.footer-divide {
  background-color: var(--tertiary);
  width: 100%;
  margin-left: 0;
  height: 5px;
}

.footer-social {
  width: 100%;
  margin-left: 0;
  background: url("../images/footerpat.png");
  background-color: var(--dark);
  min-height: 50px;
  display: flex;
  align-items: center;
}

.footer .contact-col p, 
.footer .contact-col i {
  color: var(--tertiary);
}

.footer-contact-info {
  display: inline-block;
}

.footer-social p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.footer-social i, 
.footer-social a {
  color: rgba(255, 255, 255, 0.8);
  transition: all ease var(--transition-speed);
}

.footer-social i:hover, 
.footer-social a:hover {
  color: var(--light);
  text-decoration: none;
}

/* Footer Navigation */
.footer-nav ul {
  list-style-type: none;
  padding-left: 0;
}

.footer-nav ul li {
  border-bottom: 1px var(--tertiary) solid;
  padding: 0.5rem 0;
}

.footer-nav ul li:first-child {
  border-top: 1px var(--tertiary) solid;
}

.footer-nav ul a {
  display: block;
  width: 100%;
  color: var(--tertiary);
  padding: 0.25rem 0.5rem;
  border-left: 5px transparent solid;
  transition: all ease var(--transition-speed);
}

.footer-nav ul a:hover {
  text-decoration: none;
  color: var(--primary);
  border-left: 5px var(--primary) solid;
}

/* === 4. TERTIARY LAYOUT === */
.home-main {
  background-color: var(--light);
  margin-left: 0px;
  width: 100%;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.home-main h1 {
  margin-bottom: 1.5rem;
}

/* Contact Page */
.contact-main a {
  color: var(--primary);
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.contact-main a:before {
  position: absolute;
  margin: 0 auto;
  top: 100%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  content: '';
  opacity: .3;
  transform: scaleX(0.9);
  transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.contact-main a:hover:before {
  opacity: 1;
  transform: scaleX(1);
}

/* Services Page */
.services-cont h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.services-cont .card {
  transition: transform var(--transition-speed);
}

.services-cont .card:hover {
  transform: translateY(-5px);
}

.services-cont .card-title i {
  opacity: 0.8;
}

/* Pest Library */
.lib-thumb {
  overflow: hidden;
  position: relative;
  border-radius: 0.25rem;
  box-shadow: var(--shadow);
}

.title-slide {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1;
  top: 185px;
  transition: var(--transition-speed);
  background: var(--primary-transparent);
  color: var(--light);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lib-thumb:hover .title-slide {
  top: 0;
}

.bugs-container .col {
  cursor: pointer;
  padding: 0;
  margin: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 3px var(--primary) solid;
  transition: all ease var(--transition-speed);
}

.bugs-container .col:hover {
  box-shadow: var(--shadow-lg);
}

.bugs-container .col img {
  vertical-align: bottom;
  height: 100%;
  width: 100%;
}

.no-border {
  border: 1px solid transparent !important;
  border-top: 3px solid transparent !important;
}

.lib-info-col {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 3px var(--primary) solid;
  margin-left: 10px;
  padding-top: 20px;
}

.library-big-img {
  background-image: url("../images/library/mosquito.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 200px;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  border-radius: 0.25rem;
}

/* === 5. TEXT STYLES === */
.red-text {
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* === 6. COMPONENTS === */
/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #7a0000;
  border-color: #7a0000;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

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

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

.btn-danger:hover {
  background-color: #7a0000;
  border-color: #7a0000;
}

.btn-outline-danger {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-danger:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Cards */
.card {
  border-radius: 0.25rem;
  overflow: hidden;
}

.card-footer {
  background-color: rgba(0, 0, 0, 0.03);
}

/* Swiper Slider */
.swiper {
  width: 100%;
  height: 300px;
  margin-top: -16px;
  border-radius: 0 0 0.25rem 0.25rem;
  overflow: hidden;
}

.swiper-pagination-bullet {
  background: var(--primary);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary);
}

.sl-white-banner {
  float: left;
  position: relative;
  left: 80px;
  top: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  max-width: 70%;
  box-shadow: var(--shadow);
}

.sl-red-banner {
  float: left;
  clear: left;
  background: var(--primary-transparent);
  color: var(--light);
  position: relative;
  left: 80px;
  top: 20px;
  padding: 10px;
  max-width: 70%;
  box-shadow: var(--shadow);
}

.sl-one {
  background: url("../images/truck.jpg");
  background-size: cover;
  background-position: center;
}

.sl-two {
  background: url("../images/hole-banner.jpg");
  background-size: cover;
  background-position: center;
}

.sl-three {
  background: url("../images/termites-banner.jpg");
  background-size: cover;
  background-position: center;
}

.banner-btn {
  background-color: var(--secondary);
  color: var(--dark);
  float: left;
  clear: left;
  position: relative;
  left: 80px;
  top: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all ease var(--transition-speed);
  border: none;
}

.banner-btn:hover {
  background-color: var(--secondary-dark);
}

/* === 7. UTILITIES === */
.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

/* === 8. RESPONSIVE STYLES === */
/* Medium devices (tablets) */
@media (max-width: 991.98px) {
  header {
    margin-top: 1rem;
    border-radius: 3rem 3rem 0 0;
  }
  
  .swiper {
    height: 250px;
  }
  
  .d-lg-none {
    display: block !important;
  }
  
  .d-none.d-lg-block {
    display: none !important;
  }
}

/* Small devices (landscape phones) */
@media (max-width: 767.98px) {
  header {
    text-align: center;
    margin-top: 0.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
  }
  
  .swiper {
    height: 200px;
  }
  
  .logo-head {
    margin: 0 auto;
    max-width: 200px;
  }
  
  .sl-red-banner, 
  .sl-white-banner, 
  .banner-btn {
    font-size: 0.9rem;
    left: 20px;
    max-width: 80%;
  }
  
  .title-slide p {
    font-size: 0.8rem;
  }
  
  .footer-social {
    font-size: 0.8rem;
  }
  
  .footer-social i {
    font-size: 1.5rem;
  }
  
  .d-md-none {
    display: block !important;
  }
  
  .d-none.d-md-block {
    display: none !important;
  }
}

/* Extra small devices (portrait phones) */
@media (max-width: 575.98px) {
  .swiper {
    height: 180px;
  }
  
  .sl-red-banner, 
  .sl-white-banner, 
  .banner-btn {
    font-size: 0.8rem;
    left: 10px;
    padding: 8px;
    max-width: 90%;
  }
  
  .banner-btn {
    white-space: normal;
    line-height: 1.2;
  }
  
  .header-container {
    height: 150px;
  }
  
  .home-main {
    padding: 1.5rem 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}