/* ============================================
   LOYALTY HARDWOOD FLOORS - MAIN STYLESHEET
   ============================================ */

/* ============================================
   ROOT VARIABLES - Softer Green Theme
============================================ */
:root {
    --primary-green: #5a8f3e;
    --primary-green-dark: #4a7c32;
    --primary-green-darker: #3d6829;
    --primary-green-light: #6ba34a;
    --dark-navy: #1a1f2e;
    --dark-bg: #0d0d0d;
    --action-bar-bg: #2d2d2d;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #f0f0f0;
    --text-dark: #2d2d2d;
    --text-gray: #6c757d;
    --text-menu: #333333;
    --border-light: #e0e0e0;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* ============================================
   RESET & BASE STYLES
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--off-white);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-green-dark);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

h1 { font-size: 48px; line-height: 1.2; }
h2 { font-size: 36px; line-height: 1.3; }
h3 { font-size: 28px; line-height: 1.4; }
h4 { font-size: 20px; line-height: 1.5; }

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

/* ============================================
   ACTION BAR (Sticky Top Bar)
============================================ */
#Action_bar {
    background-color: var(--action-bar-bg);
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

#Action_bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact_details {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    flex-wrap: wrap;
}

.contact_details li {
    color: var(--white);
    font-size: 13px;
}

.contact_details li.slogan {
    font-style: italic;
    opacity: 0.9;
    font-family: 'Lora', serif;
}

.contact_details li a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact_details li a:hover {
    color: var(--primary-green-light);
}

.social-menu {
    display: flex;
    gap: 10px;
    list-style: none;
}

.social-menu a {
    color: var(--white);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 14px;
}

.social-menu a:hover {
    color: var(--primary-green-light);
    transform: scale(1.15);
}

/* ============================================
   HEADER & NAVIGATION
============================================ */
#Top_bar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

#Top_bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
    padding: 8px 0;
    height: 55px;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Navigation Menu */
.menu-main {
    display: flex;
    list-style: none;
    gap: 5px;
}

.menu-main > li > a {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-menu);
    padding: 18px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    transition: var(--transition);
}

.menu-main > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.menu-main > li:hover > a::after,
.menu-main > li.active > a::after {
    width: 70%;
}

.menu-main > li:hover > a,
.menu-main > li.active > a {
    color: var(--primary-green);
}

.menu-main > li > a i {
    font-size: 12px;
}

/* Dropdown Menu */
.menu-main li {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    list-style: none;
    box-shadow: var(--shadow);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    padding: 8px 0;
}

.menu-main li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-gray);
    font-size: 14px;
    transition: var(--transition);
}

.sub-menu li a:hover {
    color: var(--primary-green);
    background: var(--off-white);
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
}

/* Mobile Menu (when active) */
.menu-main.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px;
}

.menu-main.active > li > a {
    padding: 12px;
    border-bottom: 1px solid var(--border-light);
}

.menu-main.active .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 20px;
}

/* ============================================
   PAGE HEADER (Inner Pages)
============================================ */
.page-header {
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.9), rgba(26, 31, 46, 0.7)),
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 60px 0 40px;
    text-align: center;
    margin-top: 95px;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.breadcrumb a,
.breadcrumb span {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--primary-green-light);
}

/* ============================================
   SECTIONS STYLING
============================================ */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    font-family: 'Lora', serif;
    font-size: 16px;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    margin: 15px auto;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-block;
    padding: 14px 35px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(90, 143, 62, 0.4);
}

.btn-primary:hover {
    background: var(--primary-green-dark) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 143, 62, 0.5);
}

.btn-white {
    background: var(--white);
    color: var(--primary-green-dark) !important;
    font-weight: 600;
}

.btn-white:hover {
    background: var(--dark-navy) !important;
    color: var(--white) !important;
}

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

.btn-outline-white:hover {
    background: var(--white) !important;
    color: var(--primary-green-dark) !important;
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* ============================================
   SERVICES SECTION
============================================ */
#Services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--off-white);
    border-radius: 10px;
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary-green);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.service-icon i {
    font-size: 28px;
    color: var(--white);
}

.service-card h4 {
    font-size: 17px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Additional Services List */
.additional-services {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 35px;
}

.additional-services h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: var(--white);
    border-radius: 8px;
    transition: var(--transition);
}

.service-item:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateX(5px);
}

.service-item i {
    color: var(--primary-green);
    font-size: 16px;
}

.service-item:hover i {
    color: var(--white);
}

.service-item span {
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   ABOUT SECTION
============================================ */
#About {
    background: linear-gradient(rgba(26, 31, 46, 0.95), rgba(26, 31, 46, 0.95)),
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
}

.experience-badge {
    background: var(--primary-green);
    border-radius: 50%;
    width: 130px;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
    padding: 10px;
}

.experience-badge .years {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.experience-badge .text {
    font-size: 10px;
    color: var(--white);
    text-transform: uppercase;
    line-height: 1.2;
    margin-top: 5px;
}

.about-content .section-subtitle {
    text-align: left;
    color: var(--primary-green-light);
}

.about-content h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 18px;
    line-height: 1.8;
    opacity: 0.9;
}

.about-features {
    margin: 30px 0;
}

.feature {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.feature i {
    font-size: 35px;
    color: var(--primary-green-light);
}

.feature h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 5px;
}

.feature p {
    font-size: 13px;
    margin: 0;
    opacity: 0.7;
}

.about-cta {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* ============================================
   CTA SECTION
============================================ */
#CTA,
.cta-section {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    padding: 70px 0;
    text-align: center;
}

#CTA h2,
.cta-section h2 {
    color: var(--white);
    margin-bottom: 15px;
}

#CTA p,
.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTACT SECTION
============================================ */
#Contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-card .icon {
    width: 55px;
    height: 55px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.contact-card .icon i {
    font-size: 22px;
    color: var(--white);
}

.contact-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.contact-card a {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-green);
}

.contact-card p {
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 5px;
}

.contact-card address {
    font-style: normal;
    font-size: 15px;
    color: var(--text-dark);
}

.map-wrapper {
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-form h3 {
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--off-white);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(90, 143, 62, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   FOOTER
============================================ */
#Footer {
    background-color: var(--dark-bg);
    color: #aaa;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 35px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about img {
    max-height: 50px;
    margin-bottom: 15px;
}

.footer-about p {
    line-height: 1.8;
    margin-bottom: 18px;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: var(--transition);
}

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

#Footer h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}

#Footer ul {
    list-style: none;
}

#Footer ul li {
    margin-bottom: 10px;
}

#Footer ul li a {
    color: #bbb;
    transition: var(--transition);
    font-size: 14px;
}

#Footer ul li a:hover {
    color: var(--primary-green-light);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact ul li i {
    color: var(--primary-green);
    margin-top: 4px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
}

/* ============================================
   FLOATING ELEMENTS
============================================ */
.floating-call {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 55px;
    height: 55px;
    background: rgba(90, 143, 62, 0.3);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    z-index: 999;
    transition: var(--transition);
}

.floating-call:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 42px;
    height: 42px;
    background: var(--dark-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-green);
    color: var(--white);
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    h1 { font-size: 36px; }
    h2 { font-size: 30px; }
    
    .menu-main {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #Action_bar .container {
        flex-direction: column;
        gap: 8px;
    }

    .contact_details {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-call {
        display: flex;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .contact_details li.slogan {
        display: none;
    }
}
