/* --- CSS Variables & Reset --- */
:root {
    --primary-red: #C70000;
    --dark-red: #9c0000;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --dark-text: #222222;
    --med-text: #555555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--dark-text);
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* --- Typography Utility Classes --- */
h1, h2, h3 {
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--dark-text);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

.text-center { text-align: center; }
.text-red { color: var(--primary-red); }
.text-med { color: var(--med-text); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    font-size: 0.95rem;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    border-color: var(--dark-red);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-text);
    border: 2px solid var(--dark-text);
}

.btn-secondary:hover {
    background-color: var(--dark-text);
    color: var(--white);
}

.btn-large {
    padding: 12px 25px;
    font-size: 1.05rem;
}

/* --- Layout Sections --- */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-gray);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-text);
}

.logo span {
    color: var(--primary-red);
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 25px;
    margin-right: 30px;
}

.nav-links li a {
    padding: 5px 0;
    font-weight: 500;
    position: relative;
    color: var(--dark-text);
    display: block;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-red);
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-red);
    bottom: -5px;
    left: 0;
}

/* Dropdown Menu Styling */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--light-gray);
    min-width: 250px;
    z-index: 100;
    padding: 10px 0;
    border-radius: 0 0 5px 5px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 10px 20px;
    font-weight: 400;
    display: block;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-red);
}

.dropdown > a::after {
    content: none !important;
}

.dropdown > a.active::after {
    content: none !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-text);
}

/* --- Hero Section (Index) --- */
.hero {
    /* Using the provided background image concept */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('office_background.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

/* --- Page Header (Services, Contact, About) --- */
.page-header, .single-service-hero {
    /* Placeholder background for consistency */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('services_header_background.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.page-header h1, .single-service-hero h1 {
    font-size: 3rem;
    color: var(--white);
}

/* --- Services Grid (Homepage) --- */
.services-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 3px solid var(--primary-red);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    color: var(--primary-red);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.3rem;
}

/* --- Why Us/Contact Split Section (General Purpose) --- */
.contact-split {
    display: flex;
    gap: 50px;
    flex-wrap: wrap; 
    align-items: flex-start; /* Ensures items start at the top */
}

.contact-info-box, .contact-form-box {
    flex: 1; 
    min-width: 300px;
}

/* --- Contact Page Specific Styles --- */
.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-icon {
    color: var(--primary-red);
    font-size: 1.8rem;
    margin-right: 20px;
    min-width: 30px;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block; 
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%; 
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* Crucial for full-width forms */
}

.contact-form textarea {
    resize: vertical;
}

/* --- Testimonial / Why Us List --- */
.why-us-list {
    list-style: none;
    padding: 0;
}

.why-us-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.check-icon {
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* --- Service Detail Page Styling --- */
.service-detail-section {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center;
}

.service-detail-section:nth-child(even) {
    flex-direction: row-reverse;
}

.service-detail-img, .service-detail-content {
    flex: 1;
    min-width: 300px;
}

.key-features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.key-features-list li i {
    color: var(--primary-red);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* --- Services Overview Grid --- */
.service-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.overview-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 3px solid var(--primary-red);
}

.overview-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-text);
    color: var(--light-gray);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333333;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--light-gray);
}

.footer-col ul li a:hover {
    color: var(--primary-red);
}

.footer-col ul li i {
    color: var(--primary-red);
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #aaaaaa;
}

/* ====================================
   MOBILE RESPONSIVENESS (Max-width 768px)
   ==================================== */
@media (max-width: 1024px) {
    .header-buttons {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    /* Hide the desktop nav links and buttons by default */
    .nav-links, .header-buttons {
        display: none;
    }

    /* Show hamburger */
    .hamburger {
        display: block;
    }

    /* Mobile Menu Display */
    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        z-index: 900;
        gap: 0;
    }
    
    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        padding: 15px 20px;
        color: var(--dark-text);
        text-align: left;
    }
    
    .nav-links li a::after {
        display: none; /* Hide active line on mobile links */
    }

    /* Dropdown on Mobile */
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background-color: var(--light-gray);
        min-width: unset;
        width: 100%;
        padding: 0;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        padding: 10px 30px; /* Indent sub-items */
        font-size: 0.9rem;
    }
    
    /* Show buttons below the menu */
    .nav-right {
        width: 100%;
    }
    
    .header-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 10px 5%;
        border-top: 1px solid var(--light-gray);
        gap: 10px;
    }

    /* General Layout Adjustments */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-padding { padding: 50px 0; }
    .hero { padding: 100px 0; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    .btn-large { padding: 10px 20px; font-size: 1rem; }

    /* Split Sections (Contact, About, Service Detail) */
    .contact-split, .service-detail-section, .service-detail-section:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }
    
    .service-detail-img img {
        margin-bottom: 20px;
    }

    /* Footer Adjustment */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .hero h1 { font-size: 2.2rem; }
    .navbar { padding: 10px 20px; }
    .logo { font-size: 1.6rem; }
    .btn { font-size: 0.9rem; padding: 8px 15px; }
}
/* =========================================
   ADD THIS TO THE BOTTOM OF YOUR STYLE.CSS
   ========================================= */

/* 1. Floating Call Button Styles (Default Hidden) */
.mobile-floating-call {
    display: none; /* Hidden on desktop/laptop by default */
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #C70000; /* Vortex Red */
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 60px; /* Vertically centers the icon */
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Ensures it sits on top of everything */
    transition: transform 0.3s ease;
    text-decoration: none;
}

.mobile-floating-call:active {
    transform: scale(0.95); /* Slight click effect */
}

/* 2. Mobile Specific Rules */
@media screen and (max-width: 768px) {
    
    /* Hide the top header buttons (Call & Email) on mobile */
    .header-buttons {
        display: none !important;
    }

    /* Show the floating circular button on mobile */
    .mobile-floating-call {
        display: block;
    }

    /* Optional: Adjust Navbar alignment for mobile if needed */
    .navbar {
        padding: 15px 20px;
    }
}
/* 1. Base style: Hide on all devices by default */
.mobile-whatsapp-float {
  display: none; 
  /* Other necessary fixed positioning styles */
  position: fixed;
  right: 20px; 
  bottom: 90px; /* Adjust this value to position it ABOVE your call button */
  z-index: 1000; 
  width: 60px;
  height: 60px;
  background-color: #25d366; 
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  font-size: 30px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

/* 2. Show and style the button ONLY on mobile screens */
@media (max-width: 768px) {
  .mobile-whatsapp-float {
    display: flex; /* Show the button on screens 768px or smaller */
    bottom: 100px; /* Position above the call button (which is typically around 30px) */
  }
  
  .mobile-whatsapp-float:hover {
    background-color: #1DA851;
    transform: scale(1.05);
  }
}

/* 1. Base style for the WhatsApp button (from previous answer) */
.mobile-whatsapp-float {
  display: none; 
  /* ... other styles remain the same ... */
  position: fixed;
  /* Align to the right edge with the same padding as the call button */
  right: 20px; /* <--- CRITICAL: Make this match the call button */
  bottom: 90px; /* Positions it vertically above the call button */
  z-index: 1000; 
  /* ... other styles remain the same ... */
}

/* 2. Show and adjust on mobile screens */
@media (max-width: 768px) {
  .mobile-whatsapp-float {
    display: flex; 
    right: 15px; /* <--- CRITICAL: Use the same value as the call button's mobile 'right' */
    bottom: 80px; /* Adjusted spacing for mobile view */
    /* ... other mobile-specific styles ... */
  }
}

@media (max-width: 768px) {
  /* Ensures the call button is also correctly positioned on mobile */
  .mobile-floating-call {
    right: 15px; /* <--- Make this value match the WhatsApp button's 'right' (15px) */
    bottom: 10px; /* Standard bottom placement */
  }
}

/* --- Floating Button Styles for Pages (Services, About, Contact) - DESKTOP ONLY --- */
.desktop-page-float {
  display: flex; /* Show by default on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 20px; /* Position on the left side */
  width: 70px;
  height: 70px; 
  border-radius: 50%;
  text-align: center;
  color: var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.3s;
  z-index: 1000;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none; /* Ensure link styling is correct */
}

.desktop-page-float:hover {
  transform: scale(1.1);
}

/* Specific colors and vertical positions on the left */
.float-services-desktop {
  background-color: #007bff; /* Blue */
  bottom: 150px; /* Highest button */
}

.float-about-desktop {
  background-color: #6f42c1; /* Purple */
  bottom: 80px; /* Middle button */
}

.float-contact-desktop {
  background-color: #28a745; /* Green */
  bottom: 10px; /* Lowest button, near the bottom edge */
}

/* Hide on mobile screens */
@media (max-width: 768px) {
  .desktop-page-float {
    display: none; /* Hide the button on mobile screens */
  }
}


/*test*/
/* ===========================================
   CLEAN MOBILE FLOATING BUTTON GROUP
   =========================================== */

@media (max-width: 768px) {
    .floating-buttons {
        position: fixed;
        right: 15px !important;
        bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        z-index: 9999;
    }

    .floating-buttons a {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        color: white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    }

    .call-btn {
        background-color: #008000;
    }

    .whatsapp-btn {
        background-color: #25D366;
    }

    .schedule-btn {
        background-color: #d20000;
    }
}

/* Hide floating button group on desktop */
@media (min-width: 769px) {
    .floating-buttons {
        display: none;
    }
}

/* =========================================================
   DESKTOP FLOATING "BOOK CONSULTATION" BUTTON – RIGHT SIDE
   ========================================================= */

.desktop-consultation-float {
    position: fixed;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #d20000; /* Red */
    color: #fff;
    padding: 14px 10px;
    border-radius: 50px 0 0 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
}

.desktop-consultation-float i {
    font-size: 20px;
}

.desktop-consultation-float:hover {
    background-color: #9c0000;
    transform: translateY(-50%) scale(1.05);
}

/* Hide on mobile */
@media (max-width: 768px) {
    .desktop-consultation-float {
        display: none;
    }
}
