/* CSS Reset / Normalize */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Color Variables (Based on digitalvertex.com image, adjusted for purple) --- */
:root {
    --primary-color-hsl: 270, 100%, 50%; /* Rich Purple (#8A00FF) */
    --secondary-color-hsl: 0, 0%, 20%; /* Dark Grey (#333) */
    --text-color-hsl: 0, 0%, 33%; /* Medium Grey (#555) */
    --light-text-color-hsl: 0, 0%, 96%; /* Light Grey/Off-white (#f4f4f4) */
    --background-color-hsl: 0, 0%, 100%; /* White (#ffffff) */
    --dark-background-hsl: 0, 0%, 10%; /* Very Dark Grey/Almost Black (#1a1a1a) */
    --header-background-hsl: 0, 0%, 96%; /* Light Grey for main header */
    --accent-color-hsl: 40, 100%, 53%; /* Yellow/Orange accent for subtle highlights */

    /* Convert HSL to standard RGB/hex */
    --primary-color: hsl(var(--primary-color-hsl));
    --secondary-color: hsl(var(--secondary-color-hsl));
    --text-color: hsl(var(--text-color-hsl));
    --light-text-color: hsl(var(--light-text-color-hsl));
    --background-color: hsl(var(--background-color-hsl));
    --dark-background: hsl(var(--dark-background-hsl));
    --header-background: hsl(var(--header-background-hsl));
    --accent-color: hsl(var(--accent-color-hsl));

    /* Define sticky header total height for padding adjustment (approximate) */
    --sticky-header-height-mobile: 90px; /* Estimate total height on mobile */
    --sticky-header-height-desktop: 110px; /* Estimate total height on desktop */
}


/* --- Base Styles & Typography (Mobile First) --- */
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
    word-wrap: break-word;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.6rem; }


p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}


/* --- Container for Centering Content --- */
.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* --- Sticky Header Wrapper (Applies Sticky) --- */
.sticky-header-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* --- Top Bar Styling --- */
.top-bar {
    background: var(--dark-background);
    color: var(--light-text-color);
    padding: 0.4rem 0;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.top-bar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.top-bar-contact-info {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar-contact-info span,
.top-bar-contact-info a {
    color: var(--light-text-color);
    margin: 0 5px;
    text-decoration: none;
    display: inline-block;
}


/* --- Main Header Styling --- */
.main-header {
    background: var(--header-background);
    color: var(--secondary-color);
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

    display: flex;
    align-items: center;
}

.main-header .container {
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
}

/* --- Site Branding (Logo + Text) --- */
.site-branding {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.site-logo {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.site-name {
    font-size: 1.6rem;
    color: var(--secondary-color);
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
}


/* --- Header Right Side (Utility + Main Nav + Toggle) --- */
.header-right {
    display: flex;
    align-items: center;
}

/* --- Utility Navigation (Contact Info & Button) - Mobile first, icons visible --- */
.utility-nav {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.utility-nav .contact-text {
    display: none;
}

.utility-nav .contact-icon {
    display: block;
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin: 0 8px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.utility-nav .contact-icon:hover {
    color: var(--primary-color);
}

.utility-nav .button {
     font-size: 0.9rem;
     padding: 8px 18px;
     margin-left: 10px;
}


/* --- Main Navigation (Hidden on mobile) --- */
.main-nav {
    display: none;
}

/* --- Mobile Menu Toggle (Hamburger) --- */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}


/* --- Button Styling (General .button class - Made Round) --- */
.button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
}

.button:hover {
    background: var(--secondary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.button:active {
    transform: translateY(0);
    box-shadow: none;
}


/* --- Main Content Padding (To account for sticky headers) --- */
main {
    padding-top: var(--sticky-header-height-mobile);
}


main section {
    padding: 50px 0;
}

main section:nth-child(even) {
    background-color: var(--light-text-color);
}

main section h2 {
    text-align: center;
    margin-bottom: 30px;
}

main section .container {
    text-align: left;
}

/* --- Hero Section with Background Image and Overlay --- */
main section#hero {
    background: var(--secondary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 60px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url('Image/bg-hero-phone5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

main section#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

main section#hero .container {
     position: relative;
     z-index: 2;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     text-align: center;
}

main section#hero h2 {
    color: var(--light-text-color);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.1;
}

main section#hero p {
     font-size: 1.1rem;
     margin-bottom: 1.5rem;
     max-width: 800px;
     font-weight: normal;
}

main section#hero ul.hero-features {
    list-style: none;
    padding: 0;
    text-align: center;
    margin-bottom: 2rem;
}

main section#hero ul.hero-features li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: inline-block;
    margin: 0 10px;
}


/* --- About Section Styling --- */
#about p {
    max-width: 800px;
    margin: 0 auto 1rem auto;
    text-align: center;
}


/* --- Services Section Styling --- */
ul.services-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

ul.services-list li {
     background-color: var(--background-color);
     padding: 20px;
     border-radius: 8px;
     box-shadow: 0 4px 8px rgba(0,0,0,0.1);
     text-align: center; /* Center content within the flex item */
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     display: flex;
     flex-direction: column; /* Stack icon and text vertically */
     align-items: center; /* Center content horizontally */
}

ul.services-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px; /* Space below icon */
}

/* Container for service heading and paragraph to manage their layout */
/* This div is used to keep the H3 and P together */
.service-text-content {
    display: flex;
    flex-direction: column; /* Stack heading and paragraph */
    align-items: center; /* Center text content horizontally within this container */
    text-align: center; /* Ensure text is centered */
    flex-grow: 1; /* Allow text content to take available vertical space */
}


ul.services-list li h3 {
     color: var(--secondary-color);
     font-size: 1.4rem;
     margin-bottom: 10px;
     /* text-align: center; Already handled by .service-text-content */
}

ul.services-list li p {
     font-size: 1rem;
     margin-bottom: 0;
     word-wrap: break-word;
     overflow-wrap: break-word;
     hyphens: auto;
     /* text-align: center; Already handled by .service-text-content */
}


/* --- Contact Section Styling --- */
#contact .contact-intro { /* Style for the introductory paragraph */
    text-align: center;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

#contact address {
    font-style: normal;
    text-align: center;
    margin-bottom: 30px;
}

#contact address br {
    display: none;
}

#contact address span,
#contact address a {
    display: inline-block;
    margin: 0 10px;
    color: var(--text-color);
    text-decoration: none;
}

#contact address a:hover {
     color: var(--primary-color);
     text-decoration: underline;
}

#contact .contact-button-container {
    text-align: center;
    margin-top: 20px;
}


/* --- Footer Styling --- */
footer {
    background: var(--dark-background);
    color: var(--light-text-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}


/* --- Media Queries (Desktop / Larger Screens) --- */
@media (min-width: 992px) { /* Adjust breakpoint if needed */
    /* Adjustments for larger screens */
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }

    .container {
        width: 90%;
        padding: 0 20px;
    }

    /* Adjust main content padding for desktop header height */
     main {
        padding-top: var(--sticky-header-height-desktop);
     }

    /* Top Bar Desktop Layout */
    .top-bar {
        padding: 0.3rem 0;
        justify-content: space-between;
    }

    .top-bar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .top-bar-contact-info {
         margin-bottom: 0;
         display: flex;
         align-items: center;
    }

    .top-bar-contact-info span,
    .top-bar-contact-info a {
         display: inline-block;
         margin: 0 10px;
    }


    /* Main Header Desktop Layout */
    .main-header {
        padding: 0.8rem 0;
    }

    .main-header .container {
        flex-wrap: nowrap;
    }

    /* Site Branding Desktop */
    .site-logo {
        height: 70px;
        margin-right: 15px;
    }

    .site-name {
        font-size: 2rem;
    }

    /* Header Right Side Desktop Layout */
    .header-right {
        flex-direction: row;
        align-items: center;
        width: auto;
        flex-grow: 1;
        justify-content: flex-end;
    }

    /* Utility Navigation Desktop Layout */
    .utility-nav {
        font-size: 0.9rem;
        margin-right: 30px;
        display: flex;
        align-items: center;
    }

    /* Show text contact info on desktop */
    .utility-nav .contact-text {
        display: inline-block;
        margin: 0 10px;
    }

    /* Hide contact icons on desktop */
    .utility-nav .contact-icon {
        display: none;
    }

    /* Style Book a Call button on desktop */
    .utility-nav .button {
        font-size: 1rem;
        padding: 10px 20px;
        margin-left: 15px;
    }


    /* Main Navigation Desktop */
    .main-nav {
        display: block;
    }

    .main-nav ul {
        text-align: right;
        display: flex;
        align-items: center;
    }

    .main-nav ul li {
        display: inline-block;
        margin: 0 15px;
    }

    .main-nav ul li:first-child {
        margin-left: 0;
    }

     .main-nav ul li a {
        padding: 0;
        font-size: 1rem;
     }

    /* Mobile Menu Toggle Desktop */
    .mobile-menu-toggle {
        display: none;
    }


    /* Hero Section Desktop Adjustments */
     #hero {
        padding-top: 80px;
        min-height: 500px;
     }

    main section#hero h2 {
        font-size: 3.5rem;
    }

    main section#hero p {
        font-size: 1.2rem;
    }

     main section#hero ul.hero-features li {
        margin: 0 20px;
        font-size: 1.2rem;
     }


    /* Main Sections Desktop Padding */
    main section {
        padding: 60px 0;
    }

     main section h2 {
        margin-bottom: 40px;
     }


    /* Services List Desktop Grid Adjustment and Flex Layout */
    ul.services-list {
        gap: 30px;
    }

    ul.services-list li {
         flex-direction: column; /* Keep stacking on desktop */
         align-items: center; /* Center content */
         text-align: center; /* Ensure text is centered */
         padding: 20px;
    }

    .service-icon {
        margin-bottom: 15px; /* Maintain space below icon */
        margin-right: 0; /* Remove desktop margin */
        flex-shrink: 0;
    }

    .service-text-content {
         flex-direction: column; /* Stack heading and paragraph */
         align-items: center; /* Center text content */
         text-align: center; /* Ensure text is centered */
         flex-grow: 1;
         padding-right: 0; /* Remove desktop padding */
    }

    ul.services-list li h3 {
         margin-top: 0; /* Remove top margin */
         margin-bottom: 10px; /* Space below heading */
    }

    ul.services-list li p {
         word-wrap: break-word;
         overflow-wrap: break-word;
         hyphens: auto;
         /* text-align: center; Already handled by .service-text-content */
    }


    /* Contact Section Desktop */
    #contact .contact-intro {
         text-align: center;
         max-width: 700px;
         margin: 0 auto 20px auto;
    }

    #contact address span,
    #contact address a {
        display: inline-block;
        margin: 0 10px;
    }

     #contact .contact-button-container {
         text-align: center;
         margin-top: 30px;
     }
}