/* =========================================================================
STYLE.CSS - Duke's Cleaning Service
Theme: Premium Light Mode
   ========================================================================= */

/* --- Base Resets & Variables --- */
:root {
    /* Color Palette */
    --color-bg: #F8FAFC;          /* Slate 50 - Squeaky clean light bg */
    --color-surface: #FFFFFF;     /* White */
    --color-text: #0F172A;        /* Slate 900 - Dark readable text */
    --color-text-muted: #475569;  /* Slate 600 - Secondary text */
    
    --color-primary: #1E3A8A;     /* Blue 900 - Trustworthy Navy */
    --color-primary-light: #3B82F6;/* Blue 500 - Highlight */
    --color-accent: #06B6D4;      /* Cyan 500 - Squeaky clean vibrant cyan */
    --color-accent-hover: #0891B2;/* Cyan 600 */
    
    --color-border: #E2E8F0;      /* Slate 200 */

    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    
    /* Spacing & Sizes */
    --max-width: 1200px;
    --section-pad: 3.5rem 2rem;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

section {
    padding: var(--section-pad);
}

/* --- Typography Helpers --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* --- Navbar (Interacts with main.js) --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--color-accent);
}

#navbar.scrolled .nav-links a:not(.btn) {
    color: var(--color-text);
}
#navbar.scrolled .nav-links a:not(.btn):hover {
    color: var(--color-accent);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Embedded image in service card */
.service-img {
    margin: -2rem -2rem 1.5rem -2rem;
    border-bottom: 1px solid var(--color-border);
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

/* --- Why Us Section --- */
.why-us {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.why-item-icon {
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.why-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.why-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #152963 100%);
    color: white;
}

.contact-section .contact-item {
    color: white;
}

.contact-section .contact-item svg {
    stroke: white;
}

.contact-section .contact-info p {
    color: rgba(255, 255, 255, 0.85);
}

.contact-section h2, .contact-section .section-subtitle {
    color: white;
}

.contact-section .section-subtitle {
    opacity: 0.8;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 0;
}

.contact-info h3 {
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
}


.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.contact-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.contact-item span {
    font-size: 1rem;
    font-weight: 500;
}

.contact-item:hover {
    color: var(--color-accent);
}

.contact-item:hover svg {
    stroke: var(--color-accent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* --- Footer --- */
footer {
    background-color: var(--color-text);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* --- Animations (main.js Integration) --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide for simple mobile, would add hamburger button ideally */
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (min-width: 768px) {
    .contact-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .contact-info {
        max-width: 400px;
    }
}
