/* Base styles */
:root {
    --color-orange-500: #f97316;
    --color-orange-600: #ea580c;
    --color-orange-700: #c2410c;
    --color-dark-700: #334155;
    --color-dark-800: #1e293b;
    --color-dark-900: #0f172a;
    --color-dark-950: #020617;
    --color-gray-100: #f3f4f6;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
}

body {
    font-family: 'Inter var', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-dark-950);
    color: var(--color-gray-100);
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(5, 9, 17, 0.95);
    backdrop-filter: blur(8px);
    
    z-index: 50;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 6rem;
    position: relative;
}

.logo img {
    height: 64px;
}


/* Mobile-specific adjustments */
@media (max-width: 767px) {
    .nav-content {
        justify-content: center; /* Center child elements */
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    

    /* Optional: Add padding to prevent logo/menu button overlap */
    .logo img {
        max-width: 360px; /* Adjust based on your logo size */
    }
}

.logo {
    display: flex;
    align-items: center;
   
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-gray-100);
}

.logo svg {
    width: 24px;
    height: 24px;
    color: var(--color-orange-500);
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-links a {
    color: var(--color-gray-300);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-orange-500);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: var(--color-orange-600);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-orange-700);
}

.btn-secondary {
    background-color: var(--color-dark-800);
    color: var(--color-gray-300);
    border: 1px solid var(--color-dark-700);
}

.btn-secondary:hover {
    background-color: var(--color-dark-700);
}

/* Hero Section */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background-size: cover;
    background-position: center;
}

.hero-content {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--color-gray-400);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}


/* Services Section */
.services {
    padding: 6rem 0;
    background: url(../assets/laptop.avif);
    background-size: cover;
    background-position: center;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-heading p {
    font-size: 1.25rem;
    color: var(--color-gray-400);
    max-width: 36rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-5px);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(249, 115, 22, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon {
    width: 24px;
    height: 24px;
    color: var(--color-orange-500);
}

/* Why Choose Us Section */
.why-us {
    padding: 6rem 0;
    background: url(../assets/flow1.avif);
    background-size: cover;
    background-position: center;
}

.reasons-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .reasons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reason-card {
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.reason-card:hover {
    background: rgba(30, 41, 59, 0.75);
    transform: translateY(-5px);
}

/* Reviews Section */
.reviews {
    padding: 6rem 0;
    background: rgba(30, 41, 59, 0.7);
    background-size: cover;
    background-position: center;
}

.reviews-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.review-card:hover {
    background: rgba(30, 41, 59, 0.85);
    transform: translateY(-5px);
}

.review-header {
    margin-bottom: 1rem;
}

.review-stars svg {
    display: flex;
    gap: 0.25rem;
    color: var(--color-orange-500);
}

.review-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.review-date {
    color: var(--color-gray-400);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--color-gray-300);
    line-height: 1.5;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background-color: var(--color-dark-950);
}

.contact-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h2 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.25rem;
    color: var(--color-gray-400);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-gray-400);
    flex-wrap: nowrap; /* Prevent wrapping */
    white-space: nowrap; /* Prevent text from wrapping */
}

.contact-item  {
    width: 32px;
    height: 32px;
    color: var(--color-orange-500);
}

.map-container {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: var(--color-dark-800);
    padding: 1rem;
}

.map-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--color-gray-100);
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--color-dark-950);
    border-top: 1px solid var(--color-dark-800);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(3, 1fr);
    align-items: start; /* Aligns all columns at the top for consistency */
    max-width: 1024px; /* Matches container width for consistency */
    margin: 0 auto; /* Centers the grid within the container */
    padding: 0 2rem; /* Matches container padding for full-width alignment */
}

.footer-info, .footer-links, .footer-hours {
    padding-top: 0;
    margin-top: 0;
}

.footer-info span {
    display: inline; /* Keeps "CHEADLE PC REPAIRS" on a single line */
    white-space: nowrap; /* Prevents text wrapping */
    font-size: 1.25rem; /* Slightly larger for emphasis, can adjust */
    font-weight: 600; /* Bolds the text for prominence */
    color: var(--color-gray-100); /* Ensures white text for visibility */
    margin-bottom: 0.75rem; /* Reduced spacing for tighter layout */
}

.footer-info .text-orange-500 {
    color: var(--color-orange-500); /* Maintains orange "PC" styling */
}

.footer-info p {
    color: var(--color-gray-400); /* Matches other footer text color */
    font-size: 0.875rem; /* Smaller for tagline, can adjust */
    margin-top: 0.5rem; /* Adds slight spacing above tagline */
    line-height: 1.5; /* Improves readability */
}

.footer h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-gray-100); /* White for headers, matching design */
}

.footer-links ul,
.footer-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 0;
}

.footer-links li,
.footer-hours li {
    margin-bottom: 0.75rem; /* Slightly increased for better spacing */
    color: var(--color-gray-400); /* Consistent gray for list items */
}

.footer-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease; /* Smooth hover effect */
}

.footer-links a:hover {
    color: var(--color-orange-500); /* Orange on hover for consistency */
    text-decoration: underline; /* Underline for visual feedback */
}

.footer-hours li {
    color: var(--color-gray-400); /* Matches list item color */
    font-size: 0.875rem; /* Slightly smaller for readability */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-dark-800);
    color: var(--color-gray-400);
    font-size: 0.875rem; /* Consistent smaller text for copyright */
}

.footer-link {
    color: var(--color-orange-500);
    text-decoration: none;
    margin-top: 0.5rem; /* Reduced spacing for tighter layout */
    display: inline-block;
    transition: color 0.2s ease, text-decoration 0.2s ease; /* Smooth hover */
}

.footer-link:hover {
    text-decoration: underline; /* Underline on hover for consistency */
}

/* Mobile Adjustments (below 768px) */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stacks into a single column on mobile */
        padding: 0 1rem; /* Reduced padding for mobile */
    }

    .footer-info span {
        font-size: 1.1rem; /* Slightly smaller on mobile to prevent overflow */
        white-space: normal; /* Allows wrapping if needed on very narrow screens */
    }

    .footer-info p {
        font-size: 0.8rem; /* Smaller tagline on mobile */
    }

    .footer h3 {
        font-size: 1rem; /* Smaller headers on mobile */
    }

    .footer-links li,
    .footer-hours li {
        font-size: 0.8rem; /* Smaller list items on mobile */
        margin-bottom: 0.5rem; /* Reduced spacing on mobile */
    }
}

/* Bob Ross Page */
.bob-ross-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background-color: var(--color-dark-900);
}

.paintings-grid {
    padding: 6rem 0;
    background-color: var(--color-dark-950);
}

.paintings {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .paintings {
        grid-template-columns: repeat(3, 1fr);
    }
}

.painting-card {
    background-color: var(--color-dark-800);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--color-dark-700);
    transition: transform 0.2s;
}

.painting-card:hover {
    transform: translateY(-5px);
}

.painting-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.painting-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem;
}

.painting-card p {
    color: var(--color-gray-400);
    margin: 0.5rem 1rem 1rem;
}

/* Utilities */
.hidden {
    display: none;
}

/* Animation classes */
.animate-fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.animate-fade-in.visible {
    opacity: 1;
}

.animate-slide-up {
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.animate-slide-up.visible {
    transform: translateY(0);
    opacity: 1;
}

.animate-scale {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.animate-scale.visible {
    transform: scale(1);
    opacity: 1;
}