/*
Theme Name: Kristo Remodeling
Theme URI: https://kristoremodeling.com
Author: Kristo Remodeling LLC
Author URI: https://kristoremodeling.com
Description: Custom theme for Kristo Remodeling - A family-owned remodeling company in St. Louis, MO. Features a modern single-page design with hero section, services, projects gallery, and contact form.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kristo-remodeling
Tags: one-column, custom-menu, featured-images, theme-options, construction, contractor
*/

/* ========================================
   CSS Variables / Brand Colors
   ======================================== */
:root {
    --primary-navy: #003366;
    --primary-navy-dark: #002244;
    --accent-red: #E83A4A;
    --accent-red-light: #F04D5D;
    --accent-red-bg: rgba(232, 58, 74, 0.1);
    --warm-gray: #4A4A4A;
    --warm-gray-light: #D9D9D9;
    --background: #FFFFFF;
    --background-alt: #F7F7F5;
    --text-primary: #1A1A1A;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px -10px rgba(0, 51, 102, 0.3);
    --radius: 0.5rem;
    --transition: all 0.3s ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
    background-color: var(--background-alt);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-logo img {
    height: 64px;
    width: auto;
}

.site-logo-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-navy);
    font-family: 'Montserrat', sans-serif;
    margin-top: -0.75rem;
}

.site-tagline {
    font-size: 0.875rem;
    color: var(--warm-gray);
    text-align: center;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
    line-height: 1.3;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--warm-gray);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary-navy);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--warm-gray);
}

.header-phone svg {
    width: 16px;
    height: 16px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-red-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-hero {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-navy-dark));
    color: white;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.5), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 5rem 0;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-stars {
    display: flex;
    gap: 0.25rem;
}

.hero-stars svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-red);
    color: var(--accent-red);
}

.hero-rating span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 650px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 450px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-red);
    font-family: 'Montserrat', sans-serif;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--background-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   About Section
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-features {
    background: linear-gradient(135deg, rgba(232, 58, 74, 0.05), rgba(232, 58, 74, 0.1));
    padding: 2rem;
    border-radius: var(--radius);
}

.about-features h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-features ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.about-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    flex-shrink: 0;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-red);
    margin: 0 auto 1.5rem;
}

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

.service-card > p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--accent-red);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   Projects Section
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
}

.project-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background-color: #E5E5E5;
}

.project-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.project-carousel-slide {
    min-width: 100%;
    height: 100%;
}

.project-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    opacity: 0.9;
}

.project-carousel-btn:hover {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-carousel-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-primary);
}

.project-carousel-btn.prev {
    left: 12px;
}

.project-carousel-btn.next {
    right: 12px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
    pointer-events: none;
}

.project-content {
    padding: 1.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.project-meta svg {
    width: 14px;
    height: 14px;
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-card > .project-content > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background-color: var(--accent-red-bg);
    color: var(--accent-red);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 500;
    border: 1px solid rgba(232, 58, 74, 0.2);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: white;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

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

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-red);
}

.form-checkbox label {
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-red-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-red);
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-card p,
.contact-card a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-card a:hover {
    color: var(--accent-red);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background-color: var(--background-alt);
    color: var(--warm-gray);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0;
}

.footer-brand {
    padding-right: 2rem;
    border-right: 1px solid var(--border-color);
}

.footer-brand p {
    color: var(--warm-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-services {
    padding: 0 2rem;
    border-right: 1px solid var(--border-color);
}

.footer-contact {
    padding-left: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-red);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-services h4,
.footer-contact h4 {
    font-size: 1.125rem;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
}

.footer-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 3rem;
}

.footer-services-grid > div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-services a {
    color: var(--warm-gray);
    font-size: 1rem;
    transition: var(--transition);
    display: block;
}

.footer-services a:hover {
    color: var(--accent-red);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--warm-gray);
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-red);
    flex-shrink: 0;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    padding: 2rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--warm-gray);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--warm-gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-red);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        border-right: none;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .footer-services {
        padding: 0;
        padding-right: 2rem;
    }

    .footer-contact {
        padding-left: 2rem;
        border-left: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .main-navigation,
    .header-phone,
    .header-actions .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .site-tagline {
        display: none;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-services,
    .footer-contact {
        padding: 0;
        border: none;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .footer-contact {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .footer-services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   Mobile Menu (Slide-out)
   ======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-menu nav {
    margin-top: 3rem;
}

.mobile-menu nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    color: var(--warm-gray);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu nav a:hover {
    color: var(--primary-navy);
}

.mobile-menu .btn {
    width: 100%;
    margin-top: 2rem;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Utilities
   ======================================== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
