        /*

 * style.css

 * Name Carpet Cleaning Perth Landing Page Styles

 */



/* --- 1. Global Resets and Variables --- */

:root {

    --primary-color: #007BFF; /* A bright, clean blue for action */

    --secondary-color: #28a745; /* A vibrant green for success/eco-friendly */

    --accent-color: #ffc107; /* A bright yellow for emphasis */

    --text-color: #343a40; /* Dark gray for readability */

    --light-bg: #f8f9fa; /* Very light gray background */

    --white: #ffffff;

    --font-primary: 'Poppins', sans-serif;

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: var(--font-primary);

    color: var(--text-color);

    line-height: 1.6;

    background-color: var(--white);

}



.container {

    width: 90%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 20px 0;

}



a {

    text-decoration: none;

    color: var(--primary-color);

    transition: color 0.3s;

}



a:hover {

    color: var(--secondary-color);

}



h1, h2, h3, h4 {

    margin-bottom: 0.5em;

    font-weight: 700;

}



h2 {

    font-size: 2.5em;

    text-align: center;

    margin-bottom: 1.5em;

    color: var(--primary-color);

}



h3 {

    font-size: 1.8em;

    text-align: center;

    margin-bottom: 1em;

}



/* --- 2. Buttons (Call to Action Styles) --- */

.btn {

    display: inline-block;

    padding: 12px 30px;

    border-radius: 5px;

    font-weight: 600;

    text-align: center;

    transition: background-color 0.3s, transform 0.2s;

    border: none;

    cursor: pointer;

}



.btn-primary {

    background-color: var(--primary-color);

    color: var(--white);

}



.btn-primary:hover {

    background-color: #0056b3;

    transform: translateY(-2px);

}



.btn-secondary {

    background-color: var(--secondary-color);

    color: var(--white);

}



.btn-secondary:hover {

    background-color: #1e7e34;

    transform: translateY(-2px);

}



.btn-tertiary {

    background-color: transparent;

    color: var(--primary-color);

    border: 2px solid var(--primary-color);

    padding: 8px 15px;

}



.btn-tertiary:hover {

    background-color: var(--primary-color);

    color: var(--white);

}



.btn-large {

    padding: 15px 40px;

    font-size: 1.1em;

    margin-top: 15px;

}





/* --- 3. Header & Navigation --- */

header {

    background-color: var(--white);

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    position: sticky;

    top: 0;

    z-index: 100;

}



header .container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 10px 0;

}



.logo {

    display: flex;

    align-items: center;

}



.logo-img {

    height: 40px; /* Adjust size of your logo image */

    margin-right: 10px;

}



header h1 {

    font-size: 1.5em;

    color: var(--primary-color);

    margin: 0;

}



header nav ul {

    list-style: none;

    display: flex;

    align-items: center;

}



header nav ul li {

    margin-left: 25px;

}



header nav ul li a {

    color: var(--text-color);

    font-weight: 600;

}



header nav ul li a.btn-primary {

    padding: 8px 18px;

    margin-left: 10px;

}





/* --- 4. Hero Section --- */

.hero {

    background-color: var(--light-bg);

    padding: 60px 0;

    text-align: left;

}



.hero .container {

    display: flex;

    align-items: center;

    gap: 40px;

}



.hero-content {

    flex: 1;

}



.hero h2 {

    font-size: 3.5em;

    color: var(--text-color);

    text-align: left;

    margin-bottom: 0.2em;

}



.hero h2 strong {

    color: var(--primary-color);

}



.hero p {

    font-size: 1.2em;

    margin-bottom: 25px;

}



.hero-contact-info a {

    font-weight: 700;

    color: var(--secondary-color);

    font-size: 1.3em;

}



.hero-image-container {

    flex: 1;

}



.hero-main-image {

    width: 100%;

    height: auto;

    border-radius: 10px;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);

}



/* --- 5. Features Section --- */

.features {

    padding: 60px 0;

    text-align: center;

    background-color: var(--white);

}



.feature-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 30px;

    margin-top: 40px;

}



.feature-item {

    padding: 25px;

    border-radius: 8px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

    background-color: var(--light-bg);

    transition: transform 0.3s;

}



.feature-item:hover {

    transform: translateY(-5px);

    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);

}



.feature-item img {

    height: 60px;

    margin-bottom: 15px;

}



.feature-item h4 {

    color: var(--primary-color);

    font-size: 1.3em;

}



/* --- 6. Services Section --- */

.services {

    padding: 80px 0;

    background-color: var(--light-bg);

}



.service-grid {

    display: grid;

       grid-template-columns: repeat(auto-fit, minmax(549px, 1fr));
    gap: 58px;

}



.service-card {

    background-color: var(--white);

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    text-align: center;

}



.service-card img {

    width: 100%;

    height: 200px;

    object-fit: cover;

}



.service-card h4 {

    color: var(--secondary-color);

    margin: 15px 0 5px;

    font-size: 1.4em;

    padding: 0 15px;

}



.service-card p {

    padding: 0 15px 15px;

}



.service-card .btn-tertiary {

    margin-bottom: 20px;

}



/* --- 7. Gallery Section --- */

.gallery {

    padding: 60px 0;

    text-align: center;

}



.gallery-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 15px;

    margin-bottom: 20px;

}



.gallery-grid img {

    width: 100%;

    height: 250px;

    object-fit: cover;

    border-radius: 6px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    transition: transform 0.3s;

}



.gallery-grid img:hover {

    transform: scale(1.03);

}



.gallery-caption {

    font-style: italic;

    color: var(--primary-color);

    font-weight: 600;

}



/* --- 8. CTA Banner --- */

.cta-banner {

    background-color: var(--primary-color);

    color: var(--white);

    padding: 50px 0;

    text-align: center;

}



.cta-banner h2 {

    color: var(--white);

    font-size: 2.2em;

    margin-bottom: 0.5em;

}



.cta-banner p {

    font-size: 1.1em;

    margin-bottom: 20px;

}



/* --- 9. Contact/Form Section --- */

.contact {

    padding: 80px 0;

    background-color: var(--white);

}



.contact-content {

    display: flex;

    gap: 40px;

    align-items: flex-start;

    margin-top: 40px;

}



.contact-form {

    flex: 2;

    background-color: var(--light-bg);

    padding: 30px;

    border-radius: 8px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

}



.form-group {

    margin-bottom: 18px;

}



.form-group label {

    display: block;

    font-weight: 600;

    margin-bottom: 5px;

}



.form-group input[type="text"],

.form-group input[type="tel"],

.form-group input[type="email"],

.form-group select,

.form-group textarea {

    width: 100%;

    padding: 10px;

    border: 1px solid #ccc;

    border-radius: 4px;

    font-family: inherit;

}



.form-group textarea {

    resize: vertical;

}



.contact-info {

    flex: 1;

    text-align: center;

    padding: 20px;

    border: 2px dashed var(--secondary-color);

    border-radius: 8px;

}



.contact-info p {

    margin-bottom: 10px;

}



.contact-info .phone-number a {

    font-size: 1.8em;

    font-weight: 700;

    color: var(--secondary-color);

}



.contact-image {

    width: 100%;

    height: auto;

    max-height: 200px;

    object-fit: cover;

    border-radius: 6px;

    margin-top: 20px;

}



/* --- 10. Footer --- */

footer {

    background-color: var(--text-color);

    color: var(--white);

    padding: 20px 0;

    font-size: 0.9em;

}



footer .container {

    justify-content: space-between;

    align-items: center;

}



.social-links a {

    margin-left: 15px;

}



.social-links img {

    height: 24px;

    opacity: 0.8;

    transition: opacity 0.3s;

}



.social-links img:hover {

    opacity: 1;

}



/* --- 11. Media Queries for Responsiveness (Mobile First) --- */



/* Tablet and smaller screens */

@media (max-width: 992px) {

    .hero .container {

        flex-direction: column;

        text-align: center;

    }

    .hero-content {

        order: 2; /* Put text below image on mobile */

    }

    .hero-image-container {

        order: 1;

        margin-bottom: 30px;

    }

    .hero h2 {

        font-size: 2.5em;

        text-align: center;

    }

    .contact-content {

        flex-direction: column;

    }

    .contact-form, .contact-info {

        width: 100%;

    }

}



/* Mobile screens */

@media (max-width: 768px) {

    header .container {

        flex-direction: column;

        padding: 15px 0;

    }

    header nav ul {

        flex-direction: column;

        align-items: stretch;

        width: 100%;

        margin-top: 10px;

    }

    header nav ul li {

        margin: 5px 0;

        text-align: center;

    }

    header nav ul li a.btn-primary {

        display: block;

    }

    h2 {

        font-size: 2em;

    }

    .feature-grid, .service-grid, .gallery-grid {

        grid-template-columns: 1fr;

    }

    footer .container {

        flex-direction: column;

        text-align: center;

    }

    footer p {

        margin-bottom: 10px;

    }

    .social-links a {

        margin: 0 10px;

    }
