/* 
 * CSS Styling for Peek's Neighborhood Services
 * Theme: Concept 1 - Modern & Pristine Light Theme 
 */

:root {
    /* Color Palette */
    --color-primary: #0b2e59;
    /* Deep Professional Blue */
    --color-accent: #007aff;
    /* Vibrant Blue for CTAs */
    --color-dark: #1a1a2e;
    /* Deep Charcoal/Black */
    --color-text: #333333;
    /* Main dark text */
    --color-text-light: #666666;
    /* Subtitles */
    --color-bg: #f8f9fa;
    /* Off-white background */
    --color-white: #ffffff;

    /* Variables */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    --font-primary: 'Inter', sans-serif;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-bg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    background-color: #0062cc;
    border-color: #0062cc;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-dark);
    font-weight: 800;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Header & Nav */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-nav.scrolled {
    box-shadow: var(--glass-shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 140px;
}

.logo img {
    width: 300px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a:not(.btn) {
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.desktop-nav a:not(.btn):hover {
    color: var(--color-accent);
}

.desktop-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-accent);
    transition: width var(--transition-normal);
}

.desktop-nav a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1005;
    /* Ensure button always stays on top */
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 3px;
    transition: var(--transition-fast);
    pointer-events: none;
    /* Prevents spans from swallowing click events on touch devices */
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Placeholder background color if no image */
    background-color: var(--color-dark);
    background-image: url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding-top: 80px;
    /* Offset for nav */
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(11, 46, 89, 0.7), rgba(26, 26, 46, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.7);
}

.highlight {
    color: var(--color-accent);
}

.hero-content .subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.trust-indicators {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rating {
    color: #ffd700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.rating span {
    color: var(--color-white);
    font-weight: 600;
    margin-left: 10px;
}

/* Features Grid (Why Us) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    margin: 20px 0 15px;
    font-size: 1.5rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--color-accent);
}

.feature-card p {
    color: var(--color-text-light);
}

/* Footer */
footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-logo-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-contact-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 4px 0 0 0;
        /* Matches exact vertical padding of the child links */
        /* Removed horizontal padding to allow button to touch edges */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 1000;
    }

    .desktop-nav.active {
        display: flex;
    }

    .desktop-nav a {
        padding: 4px 20px;
        /* Reduced vertical padding by 50% */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--color-dark);
        font-weight: 600;
        text-align: center;
        font-size: 1.1rem;
        /* Increased font-size (~+2px from 0.95rem base) */
    }

    .desktop-nav a:last-child {
        border-bottom: none;
        margin-top: 5px;
        width: 100%;
        /* Stretch completely */
        border-radius: 0;
        /* Make it a flat bar */
        padding: 15px 0;
        /* Thicker bar height */
        color: var(--color-white);
        /* White text */
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-logo-col {
        align-items: flex-start;
        text-align: left;
    }

    .footer-contact-col {
        align-items: flex-start;
        text-align: left;
        width: 100%;
        /* Ensure it spans the grid to allow centering the child button */
    }

    .footer-contact-col .btn {
        align-self: center;
        /* Center horizontally within the flex column */
        margin-top: 25px !important;
        width: 100%;
        /* Make button full width on mobile for better UX */
        max-width: 300px;
    }
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.testimonial {
    margin-top: 40px;
    padding: 30px;
    background: var(--color-bg);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
}

.testimonial .quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.testimonial .author {
    font-weight: 600;
    color: var(--color-dark);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.services-grid.two-col {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.service-card.featured {
    border: 2px solid var(--color-accent);
    transform: scale(1.02);
}

.service-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.service-desc {
    color: var(--color-text-light);
    margin-bottom: 25px;
    flex-grow: 1;
    /* Pushes list down if descriptions vary in length */
}

.service-list {
    list-style: none;
    margin-bottom: 30px;
}

.service-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.icon-check {
    color: var(--color-accent);
    font-weight: 800;
    font-style: normal;
}

.btn-block {
    display: block;
    width: 100%;
}

.subsection-title {
    text-align: center;
    margin: 60px 0 30px;
    font-size: 2rem;
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: #fcfcfc;
}

.faq-question .icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform var(--transition-fast);
}

.faq-question.active .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--color-text-light);
}
