/* ============================================
   Perfect Pattern Minneapolis - Stylesheet
   Design Philosophy: Elegant, Premium, Trustworthy
   Light Mode: Deep Navy (#1A3A52), White (#FFFFFF), 
               Teal Accent (#2E7D8F), Dark Charcoal (#1C1C1C)
   Dark Mode: Bright Teal (#4DB8D0), Dark Background (#0F1F2E),
              Light Text (#E8F0F5), Gold Accent (#FFD700)
   Typography: Playfair Display (Display), Lato (Body)
   ============================================ */

:root {
    /* Light Mode Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --text-primary: #1C1C1C;
    --text-secondary: #333333;
    --text-light: #666666;
    --heading-color: #1A3A52;
    --accent-color: #2E7D8F;
    --accent-hover: #1A3A52;
    --nav-bg: #1A3A52;
    --nav-text: #FFFFFF;
    --nav-accent: #2E7D8F;
    --border-color: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-dark: rgba(0, 0, 0, 0.15);
    --card-bg: #F8F9FA;
    --card-border: 1px solid #E0E0E0;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode Colors */
        --bg-primary: #0F1F2E;
        --bg-secondary: #1A2F42;
        --text-primary: #E8F0F5;
        --text-secondary: #D0D8E0;
        --text-light: #A0A8B0;
        --heading-color: #4DB8D0;
        --accent-color: #FFD700;
        --accent-hover: #FFC700;
        --nav-bg: #0F1F2E;
        --nav-text: #E8F0F5;
        --nav-accent: #4DB8D0;
        --border-color: #2A3F52;
        --shadow-color: rgba(0, 0, 0, 0.3);
        --shadow-color-dark: rgba(0, 0, 0, 0.5);
        --card-bg: #1A2F42;
        --card-border: 1px solid #2A3F52;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

a:hover {
    color: var(--accent-hover);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Navigation Bar */
.navbar {
    background-color: var(--nav-bg);
    box-shadow: white;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    transition: color 0.3s ease;
}

.logo-icon {
    font-size: 1.8rem;
    color: white;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: white;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: var(--nav-bg);
        box-shadow: 0 5px 15px var(--shadow-color-dark);
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.75rem 2rem;
        border-bottom: 1px solid var(--nav-accent);
    }

    .nav-links a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 0.8s ease-out;
}

@keyframes heroZoom {
    from {
        transform: scale(1.05);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.7) 0%, rgba(28, 28, 28, 0.5) 100%);
    z-index: 2;
}

@media (prefers-color-scheme: dark) {
    .hero-overlay {
        background: linear-gradient(135deg, rgba(77, 184, 208, 0.6) 0%, rgba(255, 215, 0, 0.4) 100%);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: White;
    animation: heroFadeIn 0.8s ease-out 0.2s both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
color: white
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    color: white;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.phone-label {
    color: white;
}

.phone-number {
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
    transition: color 0.3s ease;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color-dark);
}

.btn-primary:active {
    transform: translateY(0);
}

@media (prefers-color-scheme: dark) {
    .btn-primary {
        color: var(--bg-primary);
    }
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.about-owner {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.about-owner h3 {
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.about-owner p {
    color: var(--accent-color);
    font-weight: 600;
    margin: 0;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.section-title {
    text-align: center;
    color: var(--heading-color);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    transition: background-color 0.3s ease;
}

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

.service-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-color);
    border: var(--card-border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow-color-dark);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Why Us Section */
.why-us {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

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

.why-us-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: var(--card-border);
}

.why-us-item:hover {
    background-color: var(--bg-primary);
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.check-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.why-us-item h3 {
    color: var(--heading-color);
    font-size: 1.2rem;
}

.why-us-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.85) 0%, rgba(46, 125, 143, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@media (prefers-color-scheme: dark) {
    .gallery-overlay {
        background: linear-gradient(135deg, rgba(77, 184, 208, 0.9) 0%, rgba(255, 215, 0, 0.8) 100%);
    }
}

.gallery-overlay p {
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-info h3 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-label {
    display: block;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.info-item a,
.info-item p {
    color: var(--text-secondary);
    margin: 0;
    transition: color 0.3s ease;
}

.map-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: var(--card-border);
    transition: all 0.3s ease;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    background-color: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 143, 0.1);
}

@media (prefers-color-scheme: dark) {
    .form-group input:focus,
    .form-group textarea:focus {
        box-shadow: 0 0 0 3px rgba(77, 184, 208, 0.2);
    }
}

.form-group textarea {
    resize: vertical;
    font-family: 'Lato', sans-serif;
}

.contact-form .btn {
    margin-top: 1rem;
    width: 100%;
}

.form-success {
    background-color: #E8F5E9;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    animation: slideIn 0.4s ease;
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .form-success {
        background-color: rgba(77, 184, 208, 0.1);
        border-color: #4DB8D0;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-success h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
    margin: 0;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Footer */
.footer {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 3rem 0 1rem;
    transition: all 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--nav-accent);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--nav-accent);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--nav-text);
}

.footer-bottom {
    border-top: 1px solid var(--nav-accent);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .services-grid,
    .why-us-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

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

    .hero {
        height: 300px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-cta {
        gap: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 0 !important;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    body {
        background-color: #FFFFFF;
    }
}
