/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Luxury Craftsman Palette - Premium Elite */
    --primary-color: #0d0b09;      /* Rich black coffee */
    --secondary-color: #c5a572;    /* Venetian gold */
    --accent-color: #e8d5b7;       /* Champagne */
    --metal-gray: #545557;         /* Brushed steel */
    --dark-gray: #2a2a2c;          /* Midnight */
    --light-gray: #f7f4f1;         /* French linen */
    --text-dark: #191715;          /* Espresso */
    --text-light: #807a74;         /* Cashmere */
    --bg-light: #fffefb;           /* Cream silk */
    --bg-white: #ffffff;
    --success: #516951;            /* Forest velvet */
    --warning: #d4a574;            /* Honey amber */
    --danger: #8c4646;             /* Mahogany */
    --shadow-sm: 0 3px 8px -1px rgba(13, 11, 9, 0.08);
    --shadow: 0 6px 16px -2px rgba(13, 11, 9, 0.14);
    --shadow-lg: 0 20px 40px -4px rgba(13, 11, 9, 0.18);
    --shadow-xl: 0 28px 56px -6px rgba(13, 11, 9, 0.22);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --glow: 0 0 20px rgba(197, 165, 114, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #1a1614 100%);
    --gradient-gold: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    --gradient-subtle: linear-gradient(180deg, var(--bg-white) 0%, var(--light-gray) 100%);
}

/* Typography - Added Playfair for elegance */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto:wght@400;500;700;900&family=Playfair+Display:wght@700&display=swap');

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { 
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }

@media (min-width: 768px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
    h3 { font-size: 2.25rem; }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation - Subtle refinements */
header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .nav-header {
        display: contents;
    }
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.logo:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Mobile logo sizing */
@media (max-width: 767px) {
    .logo img {
        height: 40px;
    }
}

/* Footer logo responsive */
footer img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    footer img {
        height: 50px !important;
    }
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--bg-white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-menu a:hover:after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--metal-gray);
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero Section - Enhanced */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gray) 100%);
    color: white;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: -25%;
    right: -50%;
    width: 100%;
    height: 150%;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(139, 105, 56, 0.05) 10px,
        rgba(139, 105, 56, 0.05) 20px
    );
    transform: skewX(-20deg);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 300;
    letter-spacing: 0.1em;
    font-style: italic;
}

/* Hero content layout */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .hero-logo img {
        height: 150px !important;
    }
}

/* Mobile centering for hero section */
@media (max-width: 1023px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-logo {
        margin-bottom: 0;
    }
    
    .hero-logo img {
        height: 100px !important;
    }
    
    .hero .btn {
        display: inline-block;
        margin: 0.5rem 0.5rem !important;
    }
}

/* Admin Dashboard Mobile Centering */
@media (min-width: 768px) {
    .admin-header-content {
        width: auto !important;
        text-align: left !important;
    }
    
    .admin-header-date {
        width: auto !important;
        text-align: right !important;
        margin-top: 0 !important;
    }
}

/* Industrial Card Design - Refined */
.card {
    background-color: var(--bg-white);
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border-left: 4px solid var(--secondary-color);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

@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-color: var(--bg-white);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border-top: 4px solid var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
}

.service-card li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.95rem;
}

.service-card li:last-child {
    border-bottom: none;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Forms - More polished */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--light-gray);
    background-color: var(--bg-white);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(139, 105, 56, 0.1);
}

/* Industrial Buttons - Refined */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    background-color: #a37d40;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Fix button alignment on mobile */
@media (max-width: 767px) {
    .hero .btn {
        display: inline-block;
        margin: 0.5rem !important;
    }
}

.btn-secondary {
    background-color: var(--metal-gray);
}

.btn-secondary:hover {
    background-color: var(--dark-gray);
}

/* Gallery - Enhanced */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.gallery-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--secondary-color), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover:before {
    opacity: 0.3;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Testimonials - Enhanced */
.testimonial-card {
    background-color: var(--bg-white);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    position: relative;
    border-radius: 4px;
}

.testimonial-card:before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 1rem;
    font-family: Georgia, serif;
}

.rating {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.rating .star {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* Footer - More professional */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 0;
    border-top: 4px solid var(--secondary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

/* Center align footer sections on mobile */
@media (max-width: 767px) {
    .footer-section {
        text-align: center;
    }
    
    .footer-section img {
        margin-left: auto;
        margin-right: auto;
    }
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    display: inline-block;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-color);
    transform: translateX(3px);
}

/* Footer logo specific styling */
footer .footer-section img {
    height: 50px;
    margin-bottom: 1.5rem;
    display: block;
    filter: brightness(1.1);
}

@media (min-width: 768px) {
    footer .footer-section img {
        height: 60px;
    }
}

/* Footer bottom section */
.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: white;
    opacity: 0.8;
}

.footer-bottom a:hover {
    opacity: 1;
}

/* Contact info styling */
.footer-section strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    font-weight: 500;
    border-radius: 4px;
}

.alert-success {
    background-color: #f0fff4;
    color: #22543d;
    border-color: var(--success);
}

.alert-error {
    background-color: #fff5f5;
    color: #742a2a;
    border-color: var(--danger);
}

/* Industrial Elements */
.section-divider {
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--secondary-color),
        var(--secondary-color) 10px,
        var(--accent-color) 10px,
        var(--accent-color) 20px
    );
    margin: 3rem 0;
}

/* Tool Icon Decorations */
.tool-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1rem;
    box-shadow: var(--shadow-sm);
}

/* Pricing Tables */
.pricing-card {
    background-color: var(--bg-white);
    border: 2px solid var(--light-gray);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    border-radius: 4px;
}

.pricing-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.pricing-card.featured:before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: white;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 4px;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--light-gray);
    border-radius: 50%;
    border-top: 3px solid var(--secondary-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--metal-gray);
    transition: var(--transition);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Tool Belt Section */
.tool-belt {
    background-color: var(--primary-color);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.tool-belt:before {
    content: '🔧 🔨 🪛 🪚 🔩 📐 🪜 🧰';
    position: absolute;
    white-space: nowrap;
    font-size: 2rem;
    opacity: 0.1;
    animation: scroll-tools 20s linear infinite;
}

@keyframes scroll-tools {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Diagonal Stripes Background */
.striped-bg {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(139, 105, 56, 0.03) 10px,
        rgba(139, 105, 56, 0.03) 20px
    );
}

/* Subtle improvements for professional look */
body {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Better focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Preventative Maintenance Section */
.maintenance-section {
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

.section-accent {
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    margin-bottom: 2rem;
}

.section-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 3rem;
    max-width: 800px;
}

.maintenance-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-white);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.feature-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-left-color: var(--secondary-color);
}

.feature-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-content strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.feature-content span {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Subscription Section */
.subscription-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.subscription-header {
    margin-bottom: 2rem;
}

.subscription-header h2 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.header-underline {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 0 auto 2rem;
}

.subscription-intro {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    text-align: center;
}

.subscription-features {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.subscription-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.subscription-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.subscription-item:first-child {
    padding-top: 0;
}

.item-marker {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
    color: var(--text-dark);
}

.subscription-note {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

.subscription-cta {
    text-align: center;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-header h2,
    .subscription-header h2 {
        font-size: 2rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 1.25rem;
    }
    
    .subscription-features {
        padding: 1.5rem;
    }
    
    .item-marker {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}