/*------------------------------------------------------------------
[Master Stylesheet]

Project:    Hibertia Group Pest Control
Version:    8.0 (FINAL - All Breakpoints Rebuilt)
-------------------------------------------------------------------*/

/*------------------------------------------------------------------
1. Global Styles
-------------------------------------------------------------------*/
:root { --eerie-black: #201F1F; --flash-white: #F5F5F7; --slate-blue: #6564DB; --palatinate-blue: #232ED1; --lime: #C7FF00; --text-color: #333; --background-color: #FFFFFF; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Helvetica Neue', 'Helvetica LT Pro', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/*------------------------------------------------------------------
2. Typography
-------------------------------------------------------------------*/
h1, h2, h3, h4 { font-family: 'Helvetica LT Pro', 'Helvetica Neue', Arial, sans-serif; font-weight: bold; color: var(--eerie-black); margin-bottom: 1rem; }
h1 { font-size: 3rem; line-height: 1.2; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }
p { margin-bottom: 1rem; font-size: 1.1rem; }
a { text-decoration: none; color: var(--palatinate-blue); }

/*------------------------------------------------------------------
3. Header, Navigation & Ticker
-------------------------------------------------------------------*/
.fixed-top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header {
    background: var(--background-color);
    padding: 0.75rem 0;
    position: relative; 
    z-index: 1001; 
}
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo img { width: 160px; height: auto; vertical-align: middle; }
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 25px; }
.nav-links a { color: var(--eerie-black); font-weight: bold; padding: 0.5rem 1rem; transition: color 0.3s ease; font-size: 1rem; }
.nav-links a:hover, .nav-links a.active { color: var(--palatinate-blue); }
.btn-nav { padding: 0.6rem 1.5rem; margin-left: 20px; border-radius: 8px; }
.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 10px; z-index: 1002; }
.hamburger-line { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--eerie-black); transition: all 0.3s ease; }
.hamburger.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.ticker-wrap { display: flex; overflow: hidden; background-color: var(--lime); color: var(--eerie-black); padding: 0.8rem 0; white-space: nowrap; }
.ticker-content { flex-shrink: 0; min-width: 100%; animation: ticker 40s linear infinite; }
.ticker-content span { display: inline-block; padding: 0 1.5rem; font-size: 0.9rem; font-weight: bold; text-transform: uppercase; }
.ticker-content span i { color: var(--eerie-black); margin-right: 8px; }
@keyframes ticker { from { transform: translateX(0%); } to { transform: translateX(-100%); } }

/*------------------------------------------------------------------
4. Hero Section
-------------------------------------------------------------------*/
.hero { position: relative; height: 100vh; color: var(--flash-white); overflow: hidden; }
.hero-slide { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover; background-position: center; 
    opacity: 0; transition: opacity 1.5s ease-in-out; 
    display: flex; justify-content: center; align-items: center; text-align: center; 
    padding-top: 135px; box-sizing: border-box;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; color: var(--flash-white); text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.5rem; margin-bottom: 2rem; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }
.btn { display: inline-block; padding: 1rem 2rem; background: var(--lime); color: var(--eerie-black); border: none; border-radius: 5px; font-size: 1.1rem; font-weight: bold; text-transform: uppercase; cursor: pointer; transition: background-color 0.3s ease; }
.btn:hover { background-color: #b3e600; }

/*------------------------------------------------------------------
5. Services Section
-------------------------------------------------------------------*/
.services-redesigned { padding-top: 4rem; padding-bottom: 4rem; }
.services-header { text-align: center; margin-bottom: 3rem; }
.services-header .section-blurb { margin: -1rem auto 0 auto; max-width: 650px; }
.service-hero-card {
    display: flex; justify-content: flex-end; align-items: center;
    min-height: 400px; border-radius: 15px; overflow: hidden; position: relative;
    padding: 2rem; margin-bottom: 2rem; color: var(--flash-white);
    background: url('Images/Services/Hibertia-Group-Website-Service-Banner.png') no-repeat center center/cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-hero-image-mobile { display: none; }
.service-hero-card:hover { transform: translateY(-10px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); }
.service-hero-content { background: rgba(32, 31, 31, 0.8); backdrop-filter: blur(5px); border-radius: 10px; padding: 2rem; width: 45%;}
.service-hero-content h3, .service-hero-content p { color: var(--flash-white); }
.service-hero-content .includes-list { text-align: left; display: inline-block; padding: 0; margin: 1rem 0; list-style: none; }
.service-hero-content .includes-list li { margin-bottom: 0.5rem; }
.service-hero-content .includes-list li i { color: var(--lime); margin-right: 10px; }
.service-hero-content .add-on { color: var(--lime); font-weight: bold; display: block; margin-top: 1rem; }

/* FIXED: Default is now a strict 4-column grid */
.secondary-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.service-card { background: var(--flash-white); border-radius: 10px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; text-align: center; overflow: hidden; padding: 0; position: relative; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); }
.price-tag { position: absolute; background: var(--lime); color: var(--eerie-black); font-weight: bold; font-size: 1.1rem; box-shadow: 0 2px 4px rgba(0,0,0,0.2); z-index: 2; width: 200px; top: 25px; right: -60px; text-align: center; padding: 8px 0; transform: rotate(45deg); }
.service-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.service-card-content { padding: 1.5rem; }
.service-card-content p { margin-bottom: 1rem; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.special-note { display: block; margin-top: 1rem; font-style: italic; font-weight: bold; color: var(--palatinate-blue); }

/*------------------------------------------------------------------
6. Why Choose Us Section
-------------------------------------------------------------------*/
.why-choose-us { padding: 5rem 0; color: var(--flash-white); background-color: var(--eerie-black); }
.why-choose-us h2 { color: var(--flash-white); margin-bottom: 3rem; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.feature { background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 2rem; text-align: center; transition: background-color 0.3s ease, transform 0.3s ease; }
.feature:hover { background-color: rgba(0, 0, 0, 0.4); transform: translateY(-5px); }
.feature i { font-size: 3rem; color: var(--lime); margin-bottom: 1.5rem; }
.feature h3 { color: var(--flash-white); font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature p { font-size: 1rem; color: rgba(245, 245, 247, 0.8); }

/*------------------------------------------------------------------
7. Testimonials Section
-------------------------------------------------------------------*/
.testimonials { padding: 4rem 0; }
.testimonial-slider { position: relative; max-width: 800px; margin: 0 auto; overflow: hidden; }
.testimonial { display: none; text-align: center; }
.testimonial.active { display: block; }
.star-rating { color: #FFD700; font-size: 1.2rem; margin-bottom: 1rem; }
.testimonial blockquote { font-size: 1.2rem; font-style: italic; margin-bottom: 1rem; }
.testimonial .author { font-weight: bold; color: var(--palatinate-blue); }

/*------------------------------------------------------------------
8. Call to Action (CTA) Section
-------------------------------------------------------------------*/
.cta { padding: 4rem 0; background: var(--palatinate-blue); text-align: center; }
.cta h2 { color: var(--flash-white); }
.cta p { font-size: 1.2rem; margin-bottom: 2rem; color: var(--flash-white); }
.cta .btn { background-color: var(--lime); color: var(--eerie-black); }
.cta .btn:hover { background-color: #b3e600; }

/*------------------------------------------------------------------
9. Footer
-------------------------------------------------------------------*/
.footer { background: var(--eerie-black); color: var(--flash-white); padding: 2rem 0; text-align: center; }
.footer-logo { width: 120px; margin-bottom: 1.5rem; }
.footer .social-links a { color: var(--flash-white); margin: 0 10px; font-size: 1.5rem; transition: color 0.3s ease; }
.footer .social-links a:hover { color: var(--lime); }
.footer p { margin-top: 1rem; font-size: 0.9rem; }

/*------------------------------------------------------------------
10. Contact Page Styles
-------------------------------------------------------------------*/
.contact-header {
    background: var(--palatinate-blue); color: var(--flash-white);
    padding-top: calc(135px + 3rem); padding-bottom: 3rem; text-align: center;
}
.contact-header h1 { color: var(--flash-white); }
.contact-header p { margin-bottom: 0; }
.contact-section { padding: 4rem 0; }
.contact-container { display: flex; gap: 3rem; }
.contact-info, .contact-form { flex: 1; }
.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 1.5rem; }
.contact-info i { color: var(--palatinate-blue); margin-right: 10px; width: 20px; text-align: center; }
.social-links-contact { display: flex; }
.social-links-contact a { color: var(--eerie-black); font-size: 1.8rem; margin-right: 15px; transition: color 0.3s ease; }
.social-links-contact a:hover { color: var(--palatinate-blue); }
.form-row { display: flex; gap: 1.5rem; }
.form-group { flex: 1; margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.form-group label .required { color: #e74c3c; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; background-color: #fff; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--palatinate-blue); box-shadow: 0 0 5px rgba(35, 46, 209, 0.3); outline: none; }
.form-group textarea { resize: vertical; min-height: 150px; }

/*------------------------------------------------------------------
11. Animations
-------------------------------------------------------------------*/
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/*------------------------------------------------------------------
12. MOBILE / RESPONSIVE DESIGN
-------------------------------------------------------------------*/

/* This breakpoint is for LARGE TABLETS (iPad Pro Landscape) */
@media (max-width: 1200px) {
    .container { padding-left: 30px; padding-right: 30px; }
    .service-hero-content { width: 55%; }
    .secondary-services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* This breakpoint is for STANDARD TABLETS and PHONES */
@media (max-width: 992px) {
    body { padding-top: 115px; }
    .hamburger { display: block; }
    .logo img { width: 160px; }
    .nav-links {
        position: absolute; background: var(--background-color); top: 100%; left: 0; width: 100%;
        flex-direction: column; align-items: center; padding: 2rem 0; box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease;
    }
    .nav-links.mobile-active { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links li { margin: 1rem 0; }
    .btn-nav {
        margin-left: 0; text-align: center; background-color: var(--lime);
        color: var(--eerie-black); white-space: nowrap; width: auto; 
    }
    .services-header { text-align: center; }
    .services-header h2, .services-header .section-blurb { text-align: center; }
    .contact-header {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }
}

/* This breakpoint is for PHONES ONLY */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .container { padding: 0 15px; }
    .hero { height: 70vh; }
    .hero-slide { padding-top: 115px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1.1rem; }
    .services-redesigned { padding-top: 4rem; }
    .service-hero-card { 
        display: block; padding: 0; background-image: none; 
    }
    .service-hero-image-mobile {
        display: block; background-image: url('Images/Services/GeneralPestControl.png');
        background-position: center; background-size: cover; height: 200px; 
        border-radius: 15px 15px 0 0; 
    }
    .service-hero-content {
        width: 100%; border-radius: 0 0 15px 15px; 
        background: #201F1F; padding: 1.5rem; text-align: center;
    }
    .service-hero-content h3 { font-size: 1.5rem; }
    .service-hero-content .includes-list {
        display: flex; flex-wrap: wrap; justify-content: center;
        gap: 1rem; padding-left: 0; margin: 1rem auto;
    }
    .service-hero-content .includes-list li { margin-bottom: 0; }
    .service-hero-card .price-tag { top: 15px; right: -55px; transform: scale(0.9) rotate(45deg); }
    .features-grid { grid-template-columns: 1fr; }
    .secondary-services-grid { grid-template-columns: 1fr; }
    .testimonials { padding-top: 4rem; padding-bottom: 4rem; }
    .contact-section { padding-top: 3rem; }
    .contact-container { flex-direction: column; gap: 3rem; }
    .contact-form, .contact-info { text-align: center; padding: 0 10px; }
    .form-group { text-align: left; } 
    .form-row { flex-direction: column; gap: 0; }
    .contact-form .btn { width: 100%; font-size: 1.1rem; }
    .social-links-contact { 
        justify-content: center; margin-top: 1rem; margin-bottom: 3rem;
    }
}