/**
 * Modern CSS Enhancements
 * Adds contemporary styling while preserving existing design
 */

/* Location Section - Remove spacing between map and photo */
.section.white.nopadbot {
    padding-top: 30px; /* Reduced top padding */
}

.section.white.nopadbot .general-title {
    margin-top: 0;
    margin-bottom: 20px; /* Reduced bottom margin */
    padding-top: 0;
}

.section.white.nopadbot .row {
    margin-left: 0;
    margin-right: 0;
}

.section.white.nopadbot .row .col-md-6 {
    padding-left: 0;
    padding-right: 0;
}

.section.white.nopadbot .row .col-md-6:first-child {
    padding-right: 0;
}

.section.white.nopadbot .row .col-md-6:last-child {
    padding-left: 0;
}

.section.white.nopadbot iframe {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.section.white.nopadbot .row .col-md-6 img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

/* Modern Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* Enhanced Navigation */
.navbar-default .navbar-nav > li > a {
    transition: color 0.3s ease, background-color 0.3s ease;
    font-weight: 500;
}

.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li > a:hover {
    color: #ffeb3b;
    background-color: transparent;
}

/* Modern Cards */
.service-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Modern Buttons */
.btn-modern {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

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

/* Manufacturer Grid */
.manufacturer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.manufacturer-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.manufacturer-item:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.manufacturer-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.manufacturer-item:hover img {
    filter: grayscale(0%);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 20px;
    }
    
    .manufacturer-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .topbar p {
        font-size: 12px;
    }
}

/* Modern Section Spacing */
.section-modern {
    padding: 60px 0;
}

.section-modern h2,
.section-modern h3 {
    margin-bottom: 30px;
    font-weight: 700;
}

/* Enhanced Forms */
.form-modern input[type="text"],
.form-modern input[type="email"],
.form-modern input[type="tel"],
.form-modern textarea {
    border-radius: 5px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
    width: 100%;
}

.form-modern input:focus,
.form-modern textarea:focus {
    outline: none;
    border-color: #ffeb3b;
}

/* Modern Hero Section */
.hero-modern {
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-modern .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* Loading Animation */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility Improvements */
a:focus,
button:focus {
    outline: 2px solid #ffeb3b;
    outline-offset: 2px;
}

/* Hero Carousel Styles - Full Width */
body {
    padding: 0 !important;
    margin: 0 !important;
}

#wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

.slider-section {
    margin-bottom: 30px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative;
    left: 0;
    right: 0;
}

#heroCarousel {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
}

#heroCarousel .carousel-inner {
    position: relative;
    width: 100% !important;
}

#heroCarousel .carousel-inner img {
    width: 100% !important;
    height: 552px;
    display: block;
    object-fit: cover;
}

#heroCarousel .carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: auto;
    max-width: 90%;
}

#heroCarousel .carousel-control {
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#heroCarousel .carousel-control:hover {
    opacity: 1;
}

#heroCarousel .carousel-indicators {
    bottom: 10px;
}

#heroCarousel .carousel-indicators li {
    background-color: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
}

#heroCarousel .carousel-indicators .active {
    background-color: #ffeb3b;
    border-color: #ffeb3b;
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .slider-section {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    #heroCarousel .carousel-inner img {
        height: 395px;
    }
    
    #heroCarousel .carousel-caption h2 {
        font-size: 20px;
    }
    
    #heroCarousel .carousel-control {
        width: 40px;
        height: 40px;
    }
}

/* Event Announcement - Compact */
.event-announcement-compact {
    background-color: transparent;
    padding: 12px 20px;
    border: 3px solid #ffeb3b;
    border-radius: 8px;
    margin: 20px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.event-content {
    text-align: center;
}

.event-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.2;
}

.event-details {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.event-details p {
    margin: 3px 0;
}

.event-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 10px 0 12px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.event-register {
    margin-top: 12px;
}

.event-register-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ffeb3b;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.event-register-btn:hover {
    background: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .event-announcement-compact {
        padding: 15px;
        margin: 20px 15px;
    }
    
    .event-title {
        font-size: 20px;
    }
    
    .event-details {
        font-size: 14px;
    }
    
    .event-details p {
        display: block;
        margin: 8px 0;
    }
    
    .event-description {
        font-size: 14px;
    }
    
    .event-register-btn {
        padding: 10px 25px;
        font-size: 15px;
    }
}

/* Services Gallery Section - Princess Anne Style */
.services-gallery-section {
    padding: 25px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.services-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.service-gallery-item {
    display: flex;
    flex-direction: column;
}

.service-gallery-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.service-gallery-image-wrapper a {
    display: block;
    width: 100%;
}

.service-gallery-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-gallery-image-wrapper:hover .service-gallery-image {
    transform: scale(1.05);
}

.service-gallery-content {
    text-align: left;
}

.service-gallery-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.3;
}

.service-gallery-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-gallery-title a:hover {
    color: #ffeb3b;
}

.service-gallery-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .services-gallery-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .service-gallery-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .services-gallery-section {
        padding: 40px 0;
    }
    
    .services-gallery-grid {
        gap: 30px;
        padding: 0 15px;
    }
    
    .service-gallery-image {
        height: 220px;
    }
    
    .service-gallery-title {
        font-size: 20px;
    }
    
    .service-gallery-description {
        font-size: 15px;
    }
}

/* Call to Action Section - Compact */
.callout-section.dark-yellow {
    padding: 25px 0 !important;
}

.callout-section .callout {
    margin: 0;
    align-items: center;
}

.callout-section h3 {
    margin: 0 0 8px 0 !important;
    font-size: 24px;
}

.callout-section .lead {
    margin: 0 !important;
    font-size: 16px;
    line-height: 1.5;
}

.callout-section .btn {
    margin: 0;
    padding: 10px 20px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .callout-section.dark-yellow {
        padding: 20px 0 !important;
    }
    
    .callout-section h3 {
        font-size: 20px;
        margin-bottom: 10px !important;
    }
    
    .callout-section .lead {
        font-size: 15px;
        margin-bottom: 15px !important;
    }
    
    .callout-section .btn {
        width: 100%;
    }
}

/* Footer - Compact Styling */
.footer.dark {
    padding: 30px 0 !important;
}

.footer .module-wrapper {
    margin-bottom: 0 !important;
}

.footer .widget {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.footer .widget img {
    max-height: 100px;
    width: auto;
    margin: 0 auto 15px;
    display: block;
}

.footer .widget p {
    margin-bottom: 12px;
    font-size: 14px;
    text-align: center;
}

.footer .widget-title {
    margin-bottom: 12px !important;
}

.footer .widget-title h4 {
    font-size: 18px;
    margin-bottom: 0;
}

.footer .widget ul {
    margin-bottom: 0;
    padding-left: 0;
}

.footer .widget ul li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.footer .social {
    margin-top: 10px;
}

.footer .social a {
    margin: 0 8px;
}

.copyright {
    padding: 15px 0 !important;
    margin-top: 0 !important;
}

.copyright p {
    margin: 0;
    font-size: 13px;
}

.copyright .list-inline {
    margin: 0;
}

.copyright .list-inline li {
    margin: 0 10px 0 0;
    font-size: 13px;
}

@media (max-width: 768px) {
    .footer.dark {
        padding: 25px 0 !important;
    }
    
    .footer .widget {
        margin-bottom: 20px !important;
    }
    
    .footer .widget img {
        max-height: 50px;
    }
}

/* Manufacturers Section - Reduce spacing above */
.section.white.section-modern + .section.darkgrey {
    padding-top: 10px; /* Reduced top padding */
    margin-top: 0;
}

.section.darkgrey {
    padding-top: 15px; /* Reduced top padding */
}

.section.darkgrey .general-title {
    margin-top: 0;
    margin-bottom: 10px; /* Reduced bottom margin */
    padding-top: 0;
}

.section.darkgrey .general-title h4 {
    margin-bottom: 5px;
}

.section.darkgrey .general-title hr {
    margin: 10px auto 0 auto;
    border-color: #ff1d2c !important;
    border-width: 3px;
    width: 45px;
    display: block;
}

.section.darkgrey .general-title .lead {
    margin-top: 5px;
    margin-bottom: 0;
}

/* Specials Gallery */
.specials-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.special-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.special-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.special-item:hover img {
    transform: scale(1.05);
}

.special-item-content {
    padding: 20px;
    background: #fff;
}

.special-item-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.special-item-description {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .specials-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .special-item-content {
        padding: 15px;
    }
    
    .special-item-title {
        font-size: 18px;
    }
    
    .special-item-description {
        font-size: 13px;
    }
}

/* What's New Posts - Two Column Layout */
.whatsnew-posts {
    margin-top: 30px;
}

.whatsnew-post-col {
    margin-bottom: 30px;
}

.whatsnew-post-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.whatsnew-post-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.whatsnew-post-item h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.whatsnew-post-item .lead {
    margin-bottom: 15px;
    color: #666;
    font-size: 16px;
}

.whatsnew-post-item .fb-post-wrapper,
.whatsnew-post-item .content-embed-wrapper {
    margin: 20px 0;
    flex-grow: 1;
    min-height: 200px;
}

.whatsnew-post-item .fb-post-wrapper iframe,
.whatsnew-post-item .content-embed-wrapper iframe {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 8px;
}

.whatsnew-post-item .text-muted {
    margin-top: 10px;
    font-size: 12px;
}

/* Responsive: Stack on mobile */
@media (max-width: 991px) {
    .whatsnew-post-col {
        margin-bottom: 25px;
    }
}

@media (max-width: 767px) {
    .whatsnew-post-col {
        margin-bottom: 20px;
    }
    
    .whatsnew-post-item {
        padding: 15px;
    }
    
    .whatsnew-post-item h3 {
        font-size: 18px;
    }
}

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

