/* --- Modern Design for Lone Star Luxe Cleaning --- */

/* --- 1. Variables & Global Styles --- */
:root {
    --primary-color: #00C9B8; /* Vibrant, modern turquoise */
    --primary-darker: #00a192;
    --secondary-color: #1D2939; /* Deep charcoal/navy */
    --bg-light: #F8F9FA; /* Off-white for clean sections */
    --text-dark: #344054; /* Softer, modern dark gray for text */
    --text-light: #F8F9FA;
    --border-light: #E4E7EC; /* Subtle border color */
    --shadow-light: 0 8px 16px rgba(147, 157, 176, 0.12);
    --shadow-medium: 0 10px 30px rgba(147, 157, 176, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 5vw, 2.75rem); /* Responsive font size */
    text-align: center;
    margin-bottom: 60px; /* Increased bottom margin for better section title separation */
}

p {
    margin-bottom: 1rem; /* Standardized paragraph bottom margin */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--primary-darker); }

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

section {
    padding: 100px 0;
}

/* --- 2. Animations & Helpers --- */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}
.slide-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 3. Hero Section --- */
#hero {
    position: relative;
    height: 100vh;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    background: url('https://images.unsplash.com/photo-1564078516393-cf04bd966897?q=80&w=1974&auto=format&fit=crop') no-repeat center center/cover;
}

#hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(29, 41, 57, 0.85) 0%, rgba(29, 41, 57, 0.1) 100%);
}

#hero .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

#hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1.5rem; /* Adjusted for better balance with paragraph */
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 600px;
    margin-bottom: 2.5rem; /* Increased space before CTA button */
    font-weight: 400;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
    background-color: var(--primary-darker);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 201, 184, 0.3);
    color: #fff;
}
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -15px); } 60% { transform: translate(-50%, -5px); } }


/* --- 4. Content Sections --- */
/* UPDATED: Added more padding to make the section feel less tight */
#about { 
    text-align: center; 
    max-width: 800px; 
    padding-top: 120px; /* More space above */
    padding-bottom: 120px; /* More space below */
}
#about h2 { 
    margin-bottom: 30px; /* More space between title and paragraph */
}
#about p {
    font-size: 1.125rem; 
    line-height: 1.8;
}

#services { background-color: var(--bg-light); }
.services-grid {
    display: grid;
    /* UPDATED: Changed to a 4-column layout to force one row */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.service-card {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    text-align: left;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column; 
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.card-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 1.75rem;
    margin-bottom: 20px;
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p {
    flex-grow: 1; 
    margin-bottom: 20px;
}
.service-card span {
    display: block;
    margin-top: auto;
    font-weight: bold;
    color: var(--secondary-color);
}

#why-us {
    padding-top: 100px;
    padding-bottom: 80px; 
}
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; 
    text-align: center;
}
.why-us-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px; 
}
.why-us-item h3 { font-size: 1.25rem; margin-bottom: 10px; }


/* --- 5. Contact Section --- */
#contact { background-color: var(--secondary-color); color: var(--text-light); }
#contact h2 { color: var(--text-light); }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: #2a3b52;
    padding: 60px;
    border-radius: 12px;
}
.contact-info h3 { font-size: 1.75rem; margin-bottom: 1.5rem; color: #fff;}
.contact-info a { color: var(--primary-color); font-weight: 500;}
.contact-info a:hover { text-decoration: underline; }
.info-group { margin-top: 30px; }
.info-group p { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.1rem; }

#contact-form .form-row { display: flex; gap: 20px; }
#contact-form input, #contact-form select, #contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #4a5c77;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: #1D2939;
    color: var(--text-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#contact-form textarea {
    margin-bottom: 30px; 
}
#contact-form input::placeholder, #contact-form textarea::placeholder { color: #98A2B3; }
#contact-form input:focus, #contact-form select:focus, #contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 201, 184, 0.3);
}
#contact-form button { width: 100%; }


/* --- 6. Footer & Back to Top --- */
footer {
    background-color: #0c1522;
    color: #98A2B3;
    padding: 50px 0;
    text-align: center;
}
footer p { margin-top: 25px; margin-bottom: 0; font-size: 0.9rem; }

#back-to-top-btn {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    visibility: hidden; opacity: 0;
    transition: all 0.4s ease;
}
#back-to-top-btn.visible { visibility: visible; opacity: 1; }
#back-to-top-btn:hover { background-color: var(--primary-darker); transform: scale(1.1); }


/* --- 7. Responsive Design --- */
@media(max-width: 1200px) {
    /* Make services grid 2x2 on medium screens */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media(max-width: 768px) {
    section { padding: 80px 0; }
    h2 { margin-bottom: 40px; }
    #hero { text-align: center; }
    #hero .hero-overlay { background: rgba(29, 41, 57, 0.7); }
    #hero .hero-content { max-width: 100%; }
    #contact-form .form-row { flex-direction: column; gap: 0; }
    .scroll-down { display: none; }
    /* Make services grid 1 column on small screens */
    .services-grid {
        grid-template-columns: 1fr;
    }
}
