/*
 * Main stylesheet for Car Repair Shop theme
 * Custom styles go here
 */

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

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
    padding-top: 70px; /* Account for fixed navbar */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Section padding and spacing */
section {
    padding: 100px 0;
    position: relative;
}

section .container {
    padding: 0 50px;
    max-width: 1320px;
    margin: 0 auto;
}

/* Wide container for full-width sections */
.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Section backgrounds and borders */
section:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

section:nth-child(odd) {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Add subtle borders between sections */
section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(52, 73, 94, 0.1), transparent);
}

/* Content area styling */
.content-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    padding: 40px;
    margin: 20px 0;
    border: 1px solid rgba(52, 73, 94, 0.05);
}

/* Section headers with better spacing */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    padding: 0 30px;
}

.section-header h2 {
    margin-bottom: 20px;
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 20px;
    line-height: 1.7;
    font-weight: 300;
}

/* Modern section title styling */
h2.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Prevent all elements from overflowing */
*, *::before, *::after {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Specific text overflow prevention */
p, li, span, div, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Cookie Consent Styles */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: slideInUp 0.5s ease-out;
    border: 2px solid rgba(231, 76, 60, 0.3);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    flex-wrap: wrap;
}

.cookie-icon {
    font-size: 32px;
    color: #f39c12;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #ecf0f1;
}

.cookie-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #bdc3c7;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-actions .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cookie-actions .btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.cookie-actions .btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

.cookie-actions .btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.cookie-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
}

.cookie-actions .btn-outline {
    background: transparent;
    color: #bdc3c7;
    border: 2px solid #7f8c8d;
}

.cookie-actions .btn-outline:hover {
    background: rgba(127, 140, 141, 0.2);
    color: white;
}

/* Cookie Modal */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

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

.cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10002;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.cookie-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.cookie-modal-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.cookie-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.cookie-modal-body {
    padding: 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.cookie-category p {
    margin: 0;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: #e74c3c;
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(30px);
}

.cookie-toggle input:disabled + .cookie-slider {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    background: #f8f9fa;
    padding: 25px;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Cookie Status Badge */
.cookie-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 12px;
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.cookie-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-modal {
        width: 95%;
        margin: 10px;
    }
    
    .cookie-modal-header {
        padding: 20px;
    }
    
    .cookie-modal-body {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        padding: 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
    }
    
    .cookie-actions .btn {
        width: 100%;
    }
}

/* Breadcrumbs Styling */
.breadcrumbs {
    background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
    padding: 15px 0;
    border-bottom: 1px solid rgba(52, 73, 94, 0.1);
    margin-top: 70px; /* Account for fixed header */
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

.breadcrumb-item.current {
    color: #7f8c8d;
    font-weight: 400;
}

.breadcrumb-separator {
    color: #95a5a6;
    font-size: 12px;
    margin: 0 5px;
}

/* SEO Optimizations */
.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;
}

/* Heading hierarchy improvements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

/* Skip links for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: #2c3e50;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 0 0 5px 0;
    z-index: 999999;
}

.skip-link:focus {
    position: absolute;
    left: 6px;
    top: 7px;
    width: auto;
    height: auto;
    overflow: auto;
}

/* Focus indicators for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* Print styles for SEO */
@media print {
    .site-header,
    .cookie-consent,
    .cookie-modal,
    .back-to-top,
    .breadcrumbs {
        display: none !important;
    }
    
    .site-main {
        padding-top: 0 !important;
    }
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* Responsive breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 10px 0;
        margin-top: 60px;
    }
    
    .breadcrumb-list {
        font-size: 13px;
        gap: 6px;
    }
    
    .breadcrumb-separator {
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 12px;
    }
    
    .breadcrumb-item a,
    .breadcrumb-item.current {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Contact Form Messages */
.contact-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    animation: slideInDown 0.5s ease-out;
}

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

.contact-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #27ae60;
    color: #155724;
}

.contact-success i {
    color: #27ae60;
    font-size: 18px;
}

.contact-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #e74c3c;
    color: #721c24;
}

.contact-error i {
    color: #e74c3c;
    font-size: 18px;
}

.contact-disabled {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.contact-disabled i {
    color: #f39c12;
    margin-right: 8px;
}

/* Enhanced Contact Form Styling */
.contact-form-fields {
    position: relative;
}

.contact-form-fields.form-loading {
    pointer-events: none;
    opacity: 0.7;
}

.contact-form-fields.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #e74c3c;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-group {
    position: relative;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group.has-success input,
.form-group.has-success textarea,
.form-group.has-success select {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-error-message i {
    font-size: 12px;
}

/* Required field indicators */
.form-group label[for] {
    position: relative;
}

.form-group label[for]:after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}

.form-group label[for="phone"]:after,
.form-group label[for="service"]:after {
    content: "";
}

/* Form submission button states */
.btn[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.btn[type="submit"]:active {
    transform: translateY(0);
}

.btn[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Character counter for textarea */
.char-counter {
    font-size: 12px;
    color: #7f8c8d;
    text-align: right;
    margin-top: 5px;
}

.char-counter.over-limit {
    color: #e74c3c;
    font-weight: bold;
}

/* Form field focus improvements */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

/* Honeypot field (hidden spam protection) */
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Mobile form improvements */
@media (max-width: 768px) {
    .contact-message {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .contact-form-fields {
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .btn[type="submit"] {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
}

/* Print styles for contact form */
@media print {
    .contact-form,
    .contact-message {
        display: none !important;
    }
}

/* Long text and links */
a, button {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Header Styles - Navigation Only */
.site-header {
    position: relative;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Navigation Styles - Fixed Sticky */
.main-navigation {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    padding: 15px 0;
    cursor: pointer;
    align-items: center;
    gap: 10px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: white;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    transform-origin: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

/* Desktop Navigation Styles */
@media (min-width: 769px) {
    .menu-close {
        display: none;
    }
    
    .menu-overlay {
        display: none !important;
    }
    
    .primary-menu {
        display: flex !important;
        position: static;
        width: auto;
        height: auto;
        max-width: none;
        background: transparent;
        box-shadow: none;
        z-index: auto;
        transition: none;
        padding-top: 0;
        overflow-y: visible;
        flex-direction: row;
        right: auto;
        top: auto;
        left: auto;
    }
    
    .primary-menu li {
        margin: 0;
        border-bottom: none;
        list-style: none;
    }
    
    .primary-menu a {
        display: block;
        padding: 20px 30px;
        margin: 0 5px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.4s ease;
        position: relative;
        background: transparent;
        color: white;
        text-decoration: none;
    }
    
    .primary-menu a::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg, #e74c3c, #c0392b);
        transition: all 0.4s ease;
        transform: translateX(-50%);
        border-radius: 2px;
    }
    
    .primary-menu a:hover::before,
    .primary-menu a.active::before {
        width: 80%;
    }
    
    .primary-menu a:hover,
    .primary-menu a.active {
        color: #e74c3c;
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 20px 30px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.4s ease;
    position: relative;
    border-radius: 8px;
    margin: 0 5px;
}

.primary-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu a.active {
    color: #e74c3c;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.primary-menu a:hover::before,
.primary-menu .current-menu-item > a::before,
.primary-menu a.active::before {
    width: 80%;
}

/* Hero Banner Styles */
.hero-banner {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 0;
}

.hero-banner .container {
    padding: 0 50px;
    max-width: 1320px;
    z-index: 2;
    position: relative;
    margin: 0 auto;
}

.hero-background {
    position: relative;
    width: 100%;
    /* Default gradient background */
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    /* Hero background image - now active! */
    background-image: url('../images/hero/hero-bg.jpg') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Multiple fallback methods for hero image */
    background-image: 
        url('../images/hero/hero-bg.jpg'),
        url('./assets/images/hero/hero-bg.jpg'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 500"><defs><pattern id="automotive" width="120" height="120" patternUnits="userSpaceOnUse"><g fill="none" stroke="%23ffffff" stroke-width="2" opacity="0.08"><circle cx="60" cy="60" r="25"/><path d="M35 35 L85 85 M85 35 L35 85"/><rect x="45" y="45" width="30" height="30" rx="5"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23automotive)"/><g fill="%23ffffff" opacity="0.06"><circle cx="200" cy="150" r="60"/><path d="M160 150 h80 M200 110 v80"/><circle cx="1000" cy="350" r="80"/><path d="M940 350 h120 M1000 290 v120"/></g></svg>');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.8);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 80px 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-feature i {
    font-size: 32px;
    color: #e74c3c;
}

.hero-feature span {
    font-weight: 500;
    font-size: 16px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
}

/* Mobile Overflow Prevention */
.site {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

section, div, header, footer, main {
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevent hover effects from causing overflow */
.about-content,
.workshop-image-container,
.about-image {
    overflow: hidden;
}

.service-card,
.testimonial-card {
    overflow: hidden;
    transform: translateZ(0);
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}



/* Fix specific potential overflow elements */
.hero-background {
    width: 100%;
    max-width: 100vw;
}

.services-grid,
.testimonials-grid,
.contact-content,
.about-content {
    width: 100%;
    max-width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Ensure no horizontal scrolling on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .container {
        padding: 0 25px !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    
    section .container {
        padding: 0 25px !important;
    }
    
    .hero-banner .container,
    .services-section .container,
    .about-section .container,
    .testimonials-section .container,
    .contact-section .container {
        padding: 0 25px !important;
    }
    
    /* Reduce section padding on mobile */
    section {
        padding: 70px 0 !important;
    }
    
    /* Mobile typography adjustments */
    .section-header h2,
    h2.section-title {
        font-size: 32px !important;
    }
    
    .section-header p {
        font-size: 18px !important;
    }
    
    .service-card,
    .testimonial-card {
        padding: 30px 25px !important;
    }
    

    
    .menu-toggle {
        display: flex;
        z-index: 1000000;
        position: relative;
    }
    
    /* Mobile Menu Slide-in from Right - Simplified */
    .primary-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100vw;
        width: 100vw;
        max-width: 320px;
        height: 100vh;
        background: #2c3e50;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 999999;
        transition: right 0.3s ease-in-out;
        padding-top: 70px;
        overflow-y: auto;
    }
    
    .primary-menu.toggled {
        display: flex;
        right: 0;
    }
    
    /* Mobile Menu Overlay - Simplified */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999998;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Mobile Menu Items - Simplified */
    .primary-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        list-style: none;
    }
    
    .primary-menu a {
        display: block;
        padding: 20px 30px;
        color: white;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 0;
        margin: 0;
    }
    
    .primary-menu a:hover,
    .primary-menu a.active {
        background: #e74c3c;
        color: white;
    }
    
    /* Close button for mobile menu - Simplified */
    .menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #e74c3c;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000000;
    }
    
    .menu-close:hover {
        background: #c0392b;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    

    
    /* Homepage Mobile Styles */
    .section-title {
        font-size: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
    }
    
    .service-features li {
        font-size: 14px;
        line-height: 1.4;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-image {
        order: 2;
        margin-top: 30px;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 40px;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .contact-info {
        order: 1;
        width: 100% !important;
    }
    
    .contact-form {
        order: 2;
        width: 100% !important;
        margin-top: 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Footer Mobile Styles - Enhanced & Responsive */
    .footer-main {
        padding: 60px 0 40px !important;
    }
    
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 40px;
        text-align: center;
        max-width: 100%;
    }
    
    .footer-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        padding: 25px 0;
        max-width: 100%;
        width: 100% !important;
    }
    
    /* Company info mobile */
    .company-info {
        max-width: 100% !important;
        text-align: center;
    }
    
    .footer-site-title {
        font-size: 28px !important;
        margin-bottom: 15px !important;
        text-align: center;
    }
    
    .footer-description {
        font-size: 16px !important;
        line-height: 1.6 !important;
        text-align: center !important;
        margin-bottom: 25px !important;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .company-certifications {
        justify-content: center;
        align-items: center;
        gap: 15px !important;
    }
    
    .cert-item {
        justify-content: center;
        font-size: 15px !important;
    }
    
    /* Footer titles mobile */
    .footer-title {
        font-size: 20px !important;
        margin-bottom: 20px !important;
        text-align: center;
    }
    
    /* Contact items mobile */
    .footer-contact-item {
        justify-content: center;
        text-align: center;
        margin-bottom: 15px !important;
        font-size: 16px !important;
    }
    
    .footer-contact-item i {
        width: 22px !important;
        font-size: 18px !important;
    }
    
    /* Opening hours mobile */
    .opening-hours {
        margin-top: 20px !important;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hours-row {
        font-size: 16px !important;
        padding: 8px 0 !important;
        margin-bottom: 5px !important;
    }
    
    /* Quick actions mobile */
    .quick-actions {
        gap: 20px !important;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-cta-btn {
        padding: 18px 30px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
        width: 100%;
    }
    

    
    /* Footer bottom compact */
    .footer-bottom {
        padding: 15px 0 !important;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .footer-bottom p,
    .footer-bottom a {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }
    
    .footer-bottom-links {
        margin-top: 8px;
    }
    
    .footer-bottom-links a {
        margin: 0 8px !important;
        padding: 0 !important;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* Map Mobile Styles */
    .map-overlay {
        position: static;
        margin-top: 20px;
        max-width: none;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    /* Tablet About Section Fix */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .about-image {
        justify-self: center;
        max-width: 500px;
        width: 100%;
    }
    
    /* Tablet Contact Section Fix */
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 30px;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .contact-info {
        order: 1;
    }
    
    .contact-form {
        order: 2;
        margin-top: 20px;
    }
}

/* Enhanced Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #e74c3c;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #e74c3c;
}

/* Header Scroll Effect */
.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s ease;
}

/* Image Loading Animation */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* Homepage Sections */
.site-main {
    padding-top: 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #e74c3c;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    overflow-x: hidden;
    contain: layout style;
}

.services-section .container {
    padding: 0 50px;
    max-width: 1320px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(52, 73, 94, 0.08);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    contain: layout style paint;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Service-specific background patterns */
.service-card:nth-child(1)::before { /* Oil change */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="oil" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="3" fill="%23e74c3c" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23oil)"/></svg>');
    z-index: 0;
}

.service-card:nth-child(2)::before { /* Engine work */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="engine" width="50" height="50" patternUnits="userSpaceOnUse"><rect x="20" y="20" width="10" height="10" fill="%23e74c3c" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23engine)"/></svg>');
    z-index: 0;
}

.service-card:nth-child(3)::before { /* Brake service */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="brake" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="15" fill="none" stroke="%23e74c3c" stroke-width="2" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23brake)"/></svg>');
    z-index: 0;
}

.service-card:nth-child(4)::before { /* Electrical */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="electric" width="45" height="45" patternUnits="userSpaceOnUse"><path d="M15 10 L30 25 L22 25 L30 35 L15 20 L23 20 Z" fill="%23e74c3c" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23electric)"/></svg>');
    z-index: 0;
}

.service-card:nth-child(5)::before { /* AC service */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="ac" width="55" height="55" patternUnits="userSpaceOnUse"><path d="M15 20 Q30 15 45 20 Q30 25 15 20" fill="%23e74c3c" opacity="0.05"/><path d="M15 35 Q30 30 45 35 Q30 40 15 35" fill="%23e74c3c" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23ac)"/></svg>');
    z-index: 0;
}

.service-card:nth-child(6)::before { /* Inspection */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="inspect" width="35" height="35" patternUnits="userSpaceOnUse"><path d="M10 10 L25 10 L25 25 L10 25 Z M12 12 L23 12 M12 16 L23 16 M12 20 L18 20" fill="none" stroke="%23e74c3c" stroke-width="1" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23inspect)"/></svg>');
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border-color: rgba(231, 76, 60, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f1f2f6 100%);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: scale(0.9);
}

.service-card:hover .service-icon::before {
    opacity: 0.3;
    transform: scale(1);
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

.service-icon i {
    font-size: 28px;
    color: white;
    position: relative;
    display: block;
    line-height: 1;
    overflow: hidden;
}

.service-icon.pulse {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-features li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

/* About Section */
.about-section {
    background: white;
}

.about-section .container {
    padding: 0 50px;
    max-width: 1320px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .about-content {
        gap: 100px;
    }
}

.about-image {
    overflow: hidden;
    position: relative;
}

.about-intro {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.highlight-item {
    text-align: center;
}

.highlight-number {
    font-size: 36px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 10px;
}

.highlight-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.about-certifications {
    margin-top: 30px;
}

.about-certifications h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.about-certifications ul {
    list-style: none;
    padding: 0;
}

.about-certifications li {
    padding: 8px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-certifications i {
    color: #e74c3c;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 2px dashed #ddd;
    position: relative;
    overflow: hidden;
    
    /* Uncomment and replace with your actual workshop image */
    /* background-image: url('../images/about/workshop.jpg'); */
    background-size: cover;
    background-position: center;
}

.about-img-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #e74c3c;
}

.about-img-placeholder p {
    font-size: 16px;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Workshop image styling - Enhanced */
.about-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.workshop-image-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block !important;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

.workshop-image-container:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

.about-image img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
    transition: opacity 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
    display: block !important;
    border: 2px solid rgba(255,255,255,0.8) !important;
    max-width: 100% !important;
    transform-origin: center center;
}

.about-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.16);
}

/* Hide placeholder when real image is used */
.about-image img + .about-img-placeholder {
    display: none;
}

/* Force display of about image section */
.about-content {
    display: grid !important;
}

/* Additional debugging styles */
.about-image * {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Testimonials Section */
.testimonials-section {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.testimonials-section .container {
    padding: 0 50px;
    max-width: 1320px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .testimonials-grid {
        gap: 50px;
    }
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(52, 73, 94, 0.08);
    position: relative;
    backdrop-filter: blur(10px);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f1f2f6 100%);
}

.stars {
    margin-bottom: 20px;
}

.stars i {
    color: #ffc107;
    margin-right: 3px;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #666;
    font-size: 14px;
}

/* Contact Section */
.contact-section {
    background: white;
}

.contact-section .container {
    padding: 0 50px;
    max-width: 1320px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1400px) {
    .contact-content {
        gap: 100px;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #e74c3c;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 20px;
}

.contact-details h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-details p {
    margin: 0;
    color: #555;
}

.contact-details a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-details small {
    color: #666;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.opening-hours {
    margin-top: 10px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.hours-row:last-child {
    border-bottom: none;
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(52, 73, 94, 0.08);
}

.contact-form h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
}

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

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

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

/* Map Section */
.map-section {
    text-align: center;
}

.map-section h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 24px;
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 950px;
    margin: 0 auto;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    max-width: 300px;
}

.map-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-info h4 i {
    color: #e74c3c;
}

.map-info p {
    color: #666;
    margin: 10px 0 15px;
    font-size: 14px;
}

.map-info .btn {
    font-size: 14px;
    padding: 10px 20px;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #1e2a38 0%, #2c3e50 50%, #34495e 100%);
    color: #ecf0f1;
    margin-top: 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

/* Main Footer */
.footer-main {
    padding: 80px 0 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
}

.footer-content {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr 1fr 1fr;
    gap: 50px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* Force mobile layout override */
@media (max-width: 768px) {
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        align-items: center !important;
    }
    
    .footer-section {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* Company Info Section Enhanced */
.company-info {
    max-width: 400px;
}

.footer-site-title {
    font-size: 32px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: 16px;
    line-height: 1.7;
    color: #d5dbdb;
    margin-bottom: 25px;
    text-align: justify;
}

/* Company Certifications */
.company-certifications {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bdc3c7;
    font-size: 14px;
}

.cert-item i {
    color: #e74c3c;
    font-size: 16px;
    width: 20px;
}

/* Company Info Section */
.company-info .footer-logo img {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-site-title {
    margin: 0 0 20px;
    font-size: 24px;
}

.footer-site-title a {
    color: white;
    text-decoration: none;
}

.footer-description {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
}

.footer-certifications {
    margin-bottom: 30px;
}

.certification-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.certification-item i {
    color: #e74c3c;
    font-size: 14px;
}

.footer-social h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-social .social-links {
    display: flex;
    gap: 12px;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social .social-link:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

/* Footer Titles */
.footer-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #e74c3c;
}

/* Footer Menus */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
}

.footer-menu a:hover {
    color: #e74c3c;
    padding-left: 5px;
}

/* Contact Info in Footer - Enhanced */
.footer-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 15px;
}

.footer-contact-item i {
    color: #e74c3c;
    font-size: 18px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contact-item a,
.footer-contact-item span {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.5;
}

.footer-contact-item a:hover {
    color: #e74c3c;
}

/* Opening Hours Enhanced */
.opening-hours {
    margin-top: 5px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin-bottom: 8px;
    color: #bdc3c7;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row span:first-child {
    font-weight: 600;
    color: #000000;
}

.hours-row span:last-child {
    color: #e74c3c;
    font-weight: 500;
}

/* Quick Actions Enhanced */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-cta-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.4s ease;
    text-align: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.footer-cta-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 50%, #922b21 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.5);
    border-color: rgba(255,255,255,0.2);
}

.footer-cta-btn i {
    font-size: 18px;
}

/* Newsletter Section */
.newsletter-form {
    margin-top: 20px;
}

.newsletter-form p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.newsletter-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.newsletter-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #333;
    color: white;
    font-size: 14px;
}

.newsletter-input input:focus {
    outline: none;
    border-color: #e74c3c;
}

.newsletter-input input::placeholder {
    color: #999;
}

.newsletter-input button {
    padding: 12px 15px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-input button:hover {
    background: #c0392b;
}

.newsletter-terms {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
}

.newsletter-terms a {
    color: #e74c3c;
    text-decoration: none;
}

.newsletter-terms a:hover {
    text-decoration: underline;
}

/* Emergency Banner */
.footer-emergency {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 25px 0;
    margin: 0;
}

.emergency-content {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.emergency-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.emergency-icon i {
    font-size: 24px;
    animation: pulse-emergency 2s infinite;
}

@keyframes pulse-emergency {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.emergency-text {
    flex: 1;
}

.emergency-text strong {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.emergency-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.emergency-action {
    flex-shrink: 0;
}

.emergency-call-btn {
    background: white;
    color: #e74c3c;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.emergency-call-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Footer Bottom */
.footer-bottom {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.copyright p {
    margin: 0;
    color: #999;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e74c3c;
}

.footer-credits p {
    margin: 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-credits .heart {
    color: #e74c3c;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.back-to-top:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* Footer Animation */
.footer-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.footer-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section .container {
        padding: 0 15px !important;
    }
    
    .hero-banner .container,
    .services-section .container,
    .about-section .container,
    .testimonials-section .container,
    .contact-section .container {
        padding: 0 15px !important;
    }
    
    /* Extra small section padding */
    section {
        padding: 40px 0 !important;
    }
    
    .content-wrapper {
        padding: 20px !important;
        margin: 10px 0 !important;
    }
    
    .hero-content {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    

    
    /* About section mobile fixes */
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .about-text {
        width: 100% !important;
        text-align: left !important;
    }
    
    .about-image {
        width: 100% !important;
        margin-top: 20px !important;
        order: 2 !important;
    }
    
    .workshop-image-container {
        height: 250px !important;
        margin: 0 auto;
    }
    
    .about-highlights {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    
    /* Extra responsive footer for very small screens */
    .footer-main {
        padding: 40px 0 30px !important;
    }
    
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 30px !important;
    }
    
    .footer-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 20px 0 !important;
        width: 100% !important;
    }
    
    /* Company info extra small */
    .footer-site-title {
        font-size: 24px !important;
        margin-bottom: 12px !important;
    }
    
    .footer-description {
        font-size: 15px !important;
        line-height: 1.5 !important;
        max-width: 300px !important;
        margin-bottom: 20px !important;
    }
    
    .cert-item {
        font-size: 14px !important;
    }
    
    /* Footer titles extra small */
    .footer-title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    /* Contact items extra small */
    .footer-contact-item {
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }
    
    .footer-contact-item i {
        font-size: 16px !important;
        width: 20px !important;
    }
    
    /* Opening hours extra small */
    .opening-hours {
        max-width: 250px !important;
    }
    
    .hours-row {
        font-size: 15px !important;
        padding: 6px 0 !important;
    }
    
    /* Quick actions extra small */
    .quick-actions {
        max-width: 280px !important;
        gap: 15px !important;
    }
    
    .footer-cta-btn {
        padding: 15px 25px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
    }
    
    .footer-bottom {
        padding: 12px 0 !important;
    }
    
    .footer-bottom p,
    .footer-bottom a {
        font-size: 12px !important;
    }
    
    /* Contact section mobile fixes */
    .contact-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .contact-info {
        order: 1 !important;
        width: 100% !important;
    }
    
    .contact-form {
        order: 2 !important;
        width: 100% !important;
        margin-top: 20px !important;
        padding: 20px !important;
        max-width: 100% !important;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .contact-form h3 {
        text-align: center !important;
    }
    
    /* Fix form elements overflow */
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Fix map container on mobile */
    .map-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }
    
    .map-container iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
} 
/* Contact Form 7 Styling to Match Your Theme */
.wpcf7 {
    margin: 0;
}

.wpcf7 .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.wpcf7 .form-group {
    margin-bottom: 20px;
}

.wpcf7 .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 16px;
}

.wpcf7 .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7 .form-control:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.wpcf7 .btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wpcf7 .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.wpcf7 .btn-primary:before {
    content: "\f1d8";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Success and Error Messages */
.wpcf7 .wpcf7-response-output {
    border: none !important;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
}

.wpcf7 .wpcf7-mail-sent-ok {
    background: #2ecc71;
    color: white;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-mail-sent-ng {
    background: #e74c3c;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wpcf7 .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}