/*
Theme Name: Midnight Line Painting
Theme URI: 
Author: Cole Hoodicoff
Author URI: midnightlinepainting.ca
Description: A custom theme for my website.
Version: 1.0
*/
/* Global Styles - Dark Mode */
		:root {
    		--dark-blue: #08182b;   /* Darker navy blue for elements */
    		--black: #0d0d0d;       /* Even deeper black for background */
    		--white: #e0e0e0;       /* Slightly off-white for softer contrast */
    		--safety-yellow: #f7d417;  /* Keep this for accents if it works */
    		--light-gray: #a0a0a0;   /* Medium gray for secondary text */
    		--medium-gray: #4d4d4d;  /* Darker gray for borders and UI elements */
		}
        
        /* Success/Error Messages */
        .form-message {
            padding: 1rem;
            margin: 1.5rem 0;
            border-radius: 4px;
            font-weight: 500;
            animation: slideIn 0.3s ease-out;
            border: 1px solid transparent;
        }
        
        .form-message.success {
            background-color: rgba(45, 138, 77, 0.15);
            color: var(--success-green);
            border-color: var(--success-green);
        }
        
        .form-message.error {
            background-color: rgba(196, 66, 74, 0.15);
            color: var(--error-red);
            border-color: var(--error-red);
        }
        
        /* Submit Button States */
        .btn[type="submit"] {
            width: 100%;
            padding: 1rem;
            background-color: var(--safety-yellow);
            color: var(--black);
            position: relative;
        }
        
        .btn[type="submit"]:hover {
            background-color: var(--dark-blue);
            color: var(--white);
        }
        
        .btn[type="submit"]:disabled {
            background-color: var(--medium-gray);
            cursor: not-allowed;
            opacity: 0.7;
        }
        
        /* Spinner Animation for Submission */
        .btn .spinner {
            border-top-color: var(--black);
        }
        
        .btn[type="submit"]:hover .spinner {
            border-top-color: var(--white);
        }
        
        /* Honeypot Field Reinforcement */
        input[name="mlp_contact_time"] {
            display: none !important;
            visibility: hidden;
            opacity: 0;
            position: absolute;
            left: -9999px;
        }
        
        /* Animations */
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Roboto', 'Open Sans', sans-serif;
        }
        
        body {
            color: var(--black);
            line-height: 1.6;
        }
        
        h1, h2, h3, h4 {
            font-weight: 700;
        }
        
        a {
            text-decoration: none;
            color: var(--white);
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 24px;
            background-color: var(--safety-yellow);
            color: var(--black);
            font-weight: 700;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .btn:hover {
            background-color: var(--dark-blue);
            color: var(--white);
        }
        
        section {
            padding: 60px 0;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 40px;
            font-size: 32px;
            color: var(--white);
        }
        
        /* Header Styles */
        header {
            background-color: var(--black);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
        }
        
        .logo {
            font-size: 24px;
            font-weight: 900;
            color: var(--white);
            display: flex;
            align-items: center;
        }
        
        .logo span {
            color: var(--safety-yellow);
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin-left: 30px;
        }
        
        nav ul li a {
            font-weight: 600;
            transition: color 0.3s ease;
        }
        
        nav ul li a:hover {
            color: var(--safety-yellow);
        }
        
        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(10, 34, 64, 0.9), rgba(10, 34, 64, 0.8)), url('assets/images/home.png') center/cover no-repeat;
            color: var(--white);
            text-align: center;
            padding: 100px 0;
        }
        
        .hero h1 {
            font-size: 48px;
            margin-bottom: 20px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .hero p {
            font-size: 20px;
            margin-bottom: 30px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }
        
        /* Services Section */
		.services {
            background-color: var(--dark-blue);
            padding: 50px 0; 
        }
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }
        
        .service-card {
            background-color: var(--white);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        
        .service-card:hover {
            transform: translateY(-10px);
        }
        
        .service-image {
            height: 200px;
            overflow: hidden;
        }
        
        .service-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .service-card:hover .service-image img {
            transform: scale(1.05);
        }
        
        .service-content {
            padding: 20px;
        }
        
        .service-title {
            font-size: 20px;
            margin-bottom: 10px;
            color: var(--dark-blue);
        }
        /* Spinner Animation */
		.spinner {
		    display: inline-block;
		    width: 1.25rem;
		    height: 1.25rem;
		    border: 2px solid rgba(255,255,255,0.3);
		    border-radius: 50%;
		    border-top-color: #fff;
		    animation: spin 1s ease-in-out infinite;
		    margin-right: 0.5rem;
		    vertical-align: middle;
		}

		@keyframes spin {
		    to { transform: rotate(360deg); }
		}
        /* Why Choose Us Section */
        .why-us {
            background-color: var(--dark-blue);
			color: var(--white);
			padding: 60px 0;
        }
        
        .why-us-list {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .why-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 20px;
        }
        
        .why-icon {
            color: var(--safety-yellow);
            font-size: 24px;
            margin-right: 15px;
            min-width: 24px;
        }
        
        /* Testimonials Section */
		.testimonials {
			background-color: #102340;
			padding: 60px 0; /* Add if missing */
            position: relative; /* For z-index control */
            z-index: 1;
		}
        .testimonials-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        
        .testimonial-card {
            background-color: var(--white);
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .testimonial-text {
            font-style: italic;
            margin-bottom: 20px;
        }
        
        .testimonial-author {
            font-weight: 700;
            color: var(--dark-blue);
        }
        
        /* Gallery Section */
        .gallery-section {
            background-color: #102340;
        }
        
        .gallery-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
        }
        
        .gallery-item {
            position: relative;
            height: 250px;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
        
        .gallery-item:hover img {
            transform: scale(1.05);
        }
        
        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.7));
            padding: 15px;
            color: var(--white);
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }
        
        /* Contact Section */
        .contact {
            background-color: var(--dark-blue);
            color: var(--white);
        }
        
        .contact .section-title {
            color: var(--white);
        }
        
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: start;
            padding: 2rem 0;
        }
        
        /* Keep TOP version of contact-form */
        .contact-form {
            background-color: #102340;
            
            padding: 2rem;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        
        /* Keep TOP version of form-group */
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-group label {
            color: var(--white);
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }
        
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 0.8rem;
            background-color: rgba(--white);
            border: 1px solid var(--medium-gray);
            border-radius: 4px;
            color: var(--white);
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--safety-yellow);
            box-shadow: 0 0 0 3px rgba(247, 212, 23, 0.15);
        }
        
        .form-group textarea {
            height: 120px;
            resize: vertical;
        }
        
        /* Keep BOTTOM version of contact-info */
        .contact-info {
            background-color: #102340;
            color: var(--white);
            padding: 2rem;
            border-radius: 8px;
            position: relative;
            height: 100%;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        .contact-info h3 {
            font-size: 24px;
            margin-bottom: 20px;
            color: var(--safety-yellow);
        }
        
        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            padding: 0.5rem;
            background: rgba(0,0,0,0.15);
            border-radius: 4px;
        }
        
        .contact-icon {
            margin-right: 10px;
            font-size: 20px;
        }
        
        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .contact-container {
                display: flex !important; /* Override grid */
                flex-direction: column;
                gap: 2rem;
                overflow-x: hidden;
            }
        
            .contact-info,
            .contact-form {
                width: 100% !important;
                max-width: 100% !important;
            }
        
            /* Force stacking order */
            .contact-info {
                order: -1;
                margin-bottom: 2rem;
            }
            
            /* Remove grid specific properties */
            .contact-container {
                grid-template-columns: unset !important;
            }
        }
        
        /* Footer */
        footer {
            background-color: var(--black);
            color: var(--white);
            padding: 40px 0;
        }
        
        .footer-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
        }
        
        .footer-logo {
            font-size: 24px;
            font-weight: 900;
            margin-bottom: 20px;
        }
        
        .footer-logo span {
            color: var(--safety-yellow);
        }
        
        .footer-links h4 {
            margin-bottom: 20px;
            font-size: 18px;
        }
        
        .footer-links ul {
            list-style: none;
        }
        
        .footer-links ul li {
            margin-bottom: 10px;
        }
        
        .footer-links ul li a {
            color: var(--medium-gray);
            transition: color 0.3s ease;
        }
        
        .footer-links ul li a:hover {
            color: var(--safety-yellow);
        }
        
        .copyright {
            text-align: center;
            padding-top: 40px;
            color: var(--medium-gray);
        }
        
        /* Responsive Styles */
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
            }
            
            nav ul {
                margin-top: 20px;
            }
            
            nav ul li {
                margin-left: 15px;
                margin-right: 15px;
            }
            
            .hero h1 {
                font-size: 36px;
            }
            
            .hero p {
                font-size: 18px;
            }
            
            .section-title {
                font-size: 28px;
            }
            
            .gallery-container {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
        }
        .screen-reader-text,
        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        
        [aria-hidden="true"] {
            display: none !important;
        }