/* --- 1. GLOBAL RESET AND STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9; /* Very light gray for the body background */
    color: #333;
}

/* Color Palette */
:root {
    --primary-blue: #007bff; /* Bright action blue */
    --dark-blue: #2b2b6b; /* Dark navy for text and background */
    --light-gray: #e9ecef;
    --text-dark: #333;
    --text-light: #fff;
}

/* --- 2. NAVIGATION BAR (The dark bar on top) --- */
.navbar-container {
    background-color:  var(--dark-blue);
    padding: 15px 0;
}

.navbar {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content:   center;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s;
}

.nav-link:visited {
    /* Sets the color for links the user has already visited */
    color: #aaaaaa; /* Example: A slightly lighter gray to show it's been clicked */
}

 
}
.nav-link:hover {
    color: var(--primary-blue);
}

/* --- 3. HERO SECTION (The main visual block) --- */
.hero-container {
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('plumbing-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 10px 0;
    text-align: center;
}

.hero-content {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* Flex is used for desktop layout */
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
}

.hero-right {
    flex: 2;
    text-align: center;
    padding-left: 50px;
}

.hero-headline {
    font-size: 2.5em;
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-weight: 800;
}

.hero-subtext {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555;
}

/* Buttons */
 
.hero-buttons {
    display: flex;
    justify-content: center; 
} 


.btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, opacity 0.3s;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
    border: 2px solid var(--primary-blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary:hover {
    background-color: var(--light-gray);
}


/* --- 4. HIGHLIGHTS SECTION (3-column layout) --- */
.highlights-container {
    padding: 30px 0;
    background-color: var(--text-light);
    border-top: 1px solid var(--light-gray);
}

.highlights-grid {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* Flex is used for desktop 3-column layout */
    gap: 30px;
    justify-content: space-between;
}

.highlight-card {
    flex: 1;
    padding: 30px;
    text-align: center;
    background-color:  #eCeCfC;;
	
	 /* NEW: Add a border to each card */
    border: 1px solid #CCCCCC; 
    border-radius: 5px; /* Optional: adds rounded corners */
}

.icon-circle {
    font-size: 2em;
    color: var(--primary-blue);
    padding: 15px;
    border-radius: 50%;

    margin-bottom: 20px;
}

.card-title {
    font-size: 1.4em;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.highlight-card p, .highlight-card ul {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
    text-align: left;
    padding-left: 0;
}

.highlight-card ul {
    list-style-type: none;
    margin-left: 20px;
}

.highlight-card ul li {
    margin-bottom: 8px;
    position: relative;
}

.highlight-card ul li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-blue);
    margin-right: 10px;
}

.card-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.text-blue {
    color: var(--primary-blue);
    font-weight: bold;
}

/* Testimonial specific styling */
.testimonial-box {
    background-color: var(--light-gray);
    padding:  1px;
    text-align: left;
    margin-top: 2px;
}
.testimonial-box .quote {
    font-style: italic;
    margin-bottom: 5px;
}
.testimonial-box .author {
    font-weight: bold;
    font-size: 0.9em;
    color: var(--dark-blue);
    text-align: right;
}

/* KEYFRAMES FOR ANIMATION */
@keyframes logoLoadIn {
    0% {
        opacity: 0;
        transform: scale(0.95); /* Start slightly smaller */
    }
    100% {
        opacity: 1;
        transform: scale(1); /* End at normal size */
    }
	
}

/* APPLYING THE ANIMATION TO THE LOGO */
@keyframes logoDramaticLoad {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-30deg);
        filter: blur(5px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: blur(0);
    }
}

.hero-logo {
    /* Dramatic Animation Properties */
    animation-name: logoDramaticLoad;
    animation-duration: 1.2s;
    animation-delay: 0.2s;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-fill-mode: forwards; 
    
    /* Crucial: Sets the initial state before the animation begins */
    opacity: 0; 
    transform: scale(0.5) rotate(-30deg);
}

/* --- 5. FOOTER --- */
.footer {
    background-color:  var(--dark-blue);
    color: var(--light-gray);
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
}

.footer a {
    color: var(--dark-blue);
    text-decoration: none;
}

/* --- New Star Rating Styles --- */

.star-rating {
    margin: 10px 0;
    color: var(--primary-blue); /* Sets the stars to your primary blue color */
    font-size: 1.1em;
}

.testimonial-box .star-rating {
    text-align: center; /* Center the stars above the quote */
    margin-bottom: 15px;
	color: #FFD700; /* Sets the stars to a standard gold color */
    /* Alternatively, you could use 'gold' or '#DAA520' (Goldenrod) */
    
    font-size: 1.1em;
}


/* ==================================== */
/* 6. MOBILE RESPONSIVENESS (MEDIA QUERIES) */
/* ==================================== */

/* Tablet & Smaller Screens (Max Width 992px) */
@media (max-width: 992px) {
    .navbar {
        width: 90%;
        justify-content: center; /* Center the navigation links */
        gap: 20px;
    }

    /* Adjust the Hero content layout for smaller screens */
    .hero-content {
        width: 90%;
        padding: 40px 20px;
        /* Stack logo and text vertically */
        flex-direction: column;
        text-align: center;
    }

    .hero-left, .hero-right {
        padding-left: 0; /* Remove left padding */
        text-align: center;
    }

    .hero-logo {
        width: 200px;
        height: 200px;
        margin-bottom: 30px; /* Space between logo and text */
    }

    .hero-headline {
        font-size: 2em; /* Slightly smaller headline */
    }

    /* Stack buttons vertically if they can't fit well side-by-side */
    .hero-buttons {
        justify-content: center;
    }

    /* Change Highlights to 2 columns on tablets */
    .highlights-grid {
        width: 90%;
        flex-wrap: wrap; /* Allow wrapping */
    }

    .highlight-card {
        flex: 1 1 calc(50% - 20px); /* Two cards per row with gap */
    }
}

/* Mobile Phone Screens (Max Width 600px) */
@media (max-width: 600px) {
    .navbar {
        flex-wrap: wrap; /* Wrap links onto a new line if necessary */
        gap: 10px 15px;
        padding: 10px 0;
    }

    .nav-link {
        font-size: 0.9em;
    }

    .hero-container {
        padding: 50px 0;
    }

    .hero-headline {
        font-size: 1.6em; /* Smaller headline for phones */
    }

    .hero-subtext {
        font-size: 1em;
    }

    /* Stack buttons vertically on phones */
    .hero-buttons {
       justify-content: center; /* Ensures the button is centered on mobile */
        gap: 10px;
        width: 100%;
        max-width: 300px; /* Constrain button width */
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    /* Change Highlights to 1 column on phones */
    .highlights-grid {
        flex-direction: column;
        gap: 20px;
    }

    .highlight-card {
        flex: 1 1 100%; /* Full width for each card */
    }
}

