/* Colour palette variables for the premium DLC Painting theme */
:root {
    /* Primary colour palette for the site. The primary navy anchors the brand, the accent
       gold provides subtle highlights, and the secondary/off‑white surfaces bring
       contrast against the warm background. A softer light background lifts the page
       away from stark white while keeping everything clean and airy. */
    --primary: #031e40;      /* Deep navy */
    --accent: #c8a64a;       /* Warm gold for highlights */
    --secondary: #ffffff;    /* Card background – clean off‑white */
    --light-bg: #f5f4ed;     /* Very light warm grey for page background */
    --text-color: #2d2f33;   /* Dark neutral for body text */
    --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.05); /* Softer shadow for cards */
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-bg);
    scroll-behavior: smooth;
    /* Prevent horizontal scrolling caused by negative margins on rows */
    overflow-x: hidden;
}

/* Utility class to ensure images scale down responsively. Without this, images
   in the gallery and about sections can overflow their containers on small
   screens, causing horizontal scrolling. */
.img-fluid {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

/* Container with custom max width */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Simple grid system to replace Bootstrap columns */
.row {
    display: flex;
    flex-wrap: wrap;
    /* Remove negative margins so rows do not overflow horizontally */
    margin-left: 0;
    margin-right: 0;
}
.row > div {
    /* Leave horizontal padding undefined so that specific padding utilities like ps-lg-5 can take effect */
}
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}
@media (min-width: 576px) {
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
    .col-lg-5 {
        flex: 0 0 41.6667%;
        max-width: 41.6667%;
    }
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .col-lg-7 {
        flex: 0 0 58.3333%;
        max-width: 58.3333%;
    }
}

/* Row columns for service areas grid */
.row-cols-2 > * {
    flex: 0 0 50%;
    max-width: 50%;
}
@media (min-width: 768px) {
    .row-cols-md-3 > * {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

/* Gap utilities */
.g-4 {
    gap: 1.5rem;
}
.g-2 {
    gap: 0.5rem;
}

/* Flex utilities */
.d-flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* Text alignment utilities */
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }
@media (min-width: 992px) {
    .text-lg-start { text-align: left; }
    .text-lg-center { text-align: center; }
}

/* Font weight utilities */
.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }

/* Border radius utilities */
.rounded { border-radius: 0.25rem; }
.rounded-3 { border-radius: 0.75rem; }

/* Shadow utilities */
.shadow-sm { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

/* Margin utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.ms-2 { margin-left: 0.5rem; }
.mb-0 { margin-bottom: 0; }

/* Padding utilities */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }
.pt-3 { padding-top: 1rem; }
.pb-3 { padding-bottom: 1rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.gap-2 { gap: 0.5rem; }

/* Margin & spacing utilities used in HTML */
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.fs-5 { font-size: 1.125rem; }
.fs-2 { font-size: 1.5rem; }
.ps-lg-5 { padding-left: 0; }
@media (min-width: 992px) {
    .ps-lg-5 { padding-left: 3rem; }
}

/* Colour utility classes (partial Bootstrap equivalents) */
.bg-primary {
    background-color: var(--primary);
    color: var(--secondary);
}
.bg-light {
    background-color: var(--light-bg);
}
.text-white { color: var(--secondary); }
.text-white-50 { color: rgba(255,255,255,0.5); }
.text-muted { color: #6c757d; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

/* Navbar */
/* Header */
.site-header {
    background-color: var(--primary);
    color: var(--secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Ensure header content is stacked vertically and centred */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.site-brand {
    font-size: 1.75rem;
    color: var(--secondary);
    letter-spacing: 0.05rem;
    margin-bottom: 0.5rem;
}
.site-header .nav-link {
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: var(--accent);
}

/* Ensure navigation list displays horizontally and wraps gracefully */
.site-header ul.nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

/* Add spacing between the brand and navigation */
.site-header nav {
    margin-top: 0.5rem;
}

/* Hero section */
.hero-section {
    position: relative;
    background-image: url('../images/hero.png');
    background-position: center;
    background-size: cover;
    padding: 140px 0 100px;
    text-align: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 30, 64, 0.8);
    z-index: 0;
}
.hero-section > .container-custom {
    position: relative;
    z-index: 1;
}
.hero-section h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--secondary);
}
.hero-section .lead {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Hero service chips */
.hero-chips .chip {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--accent);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.hero-chips .chip:hover {
    background-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Hero CTA buttons */
.btn-primary-cta,
.btn-secondary-cta {
    /* Base styles for all primary and secondary call‑to‑action buttons */
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 40px;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.btn-primary-cta {
    background-color: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}
.btn-primary-cta:hover {
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.btn-secondary-cta {
    background-color: var(--secondary);
    color: var(--primary);
    border-color: var(--accent);
}
.btn-secondary-cta:hover {
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.hero-cta {
    margin-bottom: 0;
}
.btn {
    border-radius: 0.25rem;
    font-weight: 500;
}
.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
    border: 2px solid var(--accent);
    transition: all 0.3s;
}
.btn-accent:hover {
    background-color: var(--primary);
    color: var(--accent);
}
.btn-outline-accent {
    border: 2px solid var(--accent);
    color: var(--accent);
    background-color: transparent;
    transition: all 0.3s;
}
.btn-outline-accent:hover {
    background-color: var(--accent);
    color: var(--primary);
}
.badge-item {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}
.badge-item i {
    color: var(--accent);
}

/* Section generic styles */
.section {
    padding: 80px 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.02em;
}

/* Card wrapper for sections */
.section-card {
    background-color: var(--secondary);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* Services section band background */
.services-section {
    /* Use a slightly different light grey to separate this band from the page background */
    background-color: #f2f1eb;
}

/* Why section band: similar light grey band but distinct from the services grid */
.why-section {
    background-color: #f2f1eb;
}

/* Style adjustments for why section stats and content */
.why-stats .stat-number {
    font-size: 2rem;
    color: var(--accent);
}
.why-stats .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Service cards */
.service-card {
    background-color: var(--secondary);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.service-icon i {
    /* Colour icons gold to stand out */
    color: var(--accent);
}

/* Enhance service icons: display inside a soft circular background for better visibility */
.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: var(--light-bg);
    border: 1px solid #e8e8e8;
}
.service-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.service-card p {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Why choose items */
/* Remove old why-item card styling since the new layout uses a simple list */
.why-item {
    display: none;
}

/* Why Choose section */
.why-card {
    background-color: var(--secondary);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* The stat number and label colours are defined earlier within the Why section band */

.why-list li {
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}
.why-list li i {
    color: var(--accent);
    margin-right: 0.5rem;
}
.why-list li:not(:last-child) {
    margin-bottom: 0.75rem;
}

/* About section */
img.shadow {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Gallery section */
/* Gallery section */
/* Gallery card uses a fixed max width on large screens and becomes fluid on smaller screens */
.gallery-card {
    background-color: var(--secondary);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 992px) {
    .gallery-card {
        max-width: 100%;
    }
}
.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    border-bottom-right-radius: 8px;
}
.gallery-label.before {
    background-color: var(--primary);
}
.gallery-label.after {
    background-color: var(--accent);
    color: var(--primary);
}

/* Tweak the gallery section: remove the surrounding card container so only the
   gallery card remains. This centres the carousel within the warm page background. */
#gallery .section-card {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}
#gallery .gallery-card {
    margin-left: auto;
    margin-right: auto;
}

/* Testimonials */
/* Testimonials */
.testimonial-card {
    background-color: var(--secondary);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    color: var(--text-color);
    text-align: center;
    padding: 2rem;
}
.testimonial-card .stars {
    margin-bottom: 0.75rem;
}
.testimonial-card .stars i {
    color: var(--accent);
    margin-right: 0.2rem;
    font-size: 1.1rem;
}

/* Tweak the testimonials section: remove the surrounding card so that the background
   appears as the warm page colour, leaving just the central testimonial card. */
#testimonials .section-card {
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}
#testimonials .testimonial-card {
    margin-left: auto;
    margin-right: auto;
}
/* Navigation buttons for carousels (testimonials and gallery) */
.testimonial-nav .btn-nav,
.gallery-nav .btn-nav {
    /* Larger circular buttons for easier clicking and a premium feel */
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background-color: var(--secondary);
    color: var(--primary);
    transition: all 0.3s;
    font-size: 1.3rem;
}
.testimonial-nav .btn-nav i,
.gallery-nav .btn-nav i {
    /* Explicitly colour the arrow icons so they remain visible inside the circular buttons */
    color: var(--primary);
    font-size: 1rem;
    line-height: 1;
}
.testimonial-nav .btn-nav:hover,
.gallery-nav .btn-nav:hover {
    background-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}


/* Simple carousel implementation */
.carousel-item {
    display: none;
    transition: opacity 0.6s ease;
}
.carousel-item.active {
    display: block;
}

/* Form */
.quote-form label {
    font-weight: 500;
    color: var(--primary);
}
.quote-form .form-control,
.quote-form .form-select {
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: var(--secondary);
}
.quote-form .form-control:focus,
.quote-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: none;
}

/* Quote form background: use the secondary off‑white for subtle contrast on the warm page background */
.quote-form {
    background-color: var(--secondary);
    border: 1px solid #e8e8e8;
}
/* Remove margin top for CTA button in quote form since we handle spacing */
.quote-form .btn-accent {
    margin-top: 0;
}

/* Generic form control styling (when using form-control/form-select outside of quote-form) */
.form-control,
.form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    color: var(--text-color);
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--secondary);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    outline: none;
}
.form-label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: var(--primary);
}

/* Footer */
/* New footer styles */
.site-footer {
    background-color: var(--primary);
    color: var(--secondary);
}
.site-footer a {
    color: var(--secondary);
    transition: color 0.3s;
}
.site-footer a:hover {
    color: var(--accent);
    text-decoration: none;
}
.footer-brand {
    font-size: 1.5rem;
    color: var(--secondary);
}
.footer-heading {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}
.footer-links li,
.footer-contact li {
    font-size: 0.95rem;
}

.footer-links a,
.footer-contact a {
    display: inline-block;
    padding: 0.1rem 0;
}
.footer-divider {
    border: none;
    border-top: 1px solid rgba(200, 166, 74, 0.3);
}

/* Footer icons colour */
.site-footer i {
    color: var(--accent);
    margin-right: 0.4rem;
}

/* Ensure all images scale responsively */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Abbreviated service icons displayed as letters inside the circular badge */
.service-abbr {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

/* Generic inline icons (check marks, location bullets, contact emojis) */
.check-icon,
.location-icon,
.contact-icon {
    font-size: 1.2rem;
    color: var(--accent);
    line-height: 1;
}

/* Large map pin emoji for the service areas icon */
.map-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Contact badges: small circular initials to represent phone, email, Facebook and area */
.contact-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    text-transform: uppercase;
}

/* Override the arrow icon size for carousel navigation buttons. Placing this at
   the end of the stylesheet ensures it has higher specificity and takes
   precedence over previous declarations. */
.testimonial-nav .btn-nav i,
.gallery-nav .btn-nav i {
    font-size: 1.3rem;
}

/* Responsive adjustments */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    /* Custom layout for the About section. Two columns share the space evenly while
       accounting for the gap. Without this calculation the combined width of
       two 50% columns plus the gap would exceed 100% and cause wrapping. */
    .about-row {
        gap: 1.5rem;
    }
    .about-row > div {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

/* Mobile-first adjustments */
@media (max-width: 576px) {
    /* Reduce hero padding and typography for small screens */
    .hero-section {
        padding: 100px 0 70px;
    }
    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.25;
    }
    .hero-section .lead {
        font-size: 0.95rem;
    }
    /* Stack hero CTAs vertically on very small screens */
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-cta a {
        width: 100%;
        text-align: center;
    }
    .btn-primary-cta,
    .btn-secondary-cta {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    /* Reduce section spacing */
    .section {
        padding: 60px 0;
    }
    .section-card {
        padding: 2rem;
    }

    /* Reduce section title size on small screens */
    .section-title {
        font-size: 1.6rem;
    }
    /* Why stats: stack vertically on mobile */
    .why-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    .why-stats .flex-fill {
        margin-bottom: 0;
    }
    /* Service cards text alignment on mobile */
    .service-card {
        text-align: center;
    }
    /* Footer layout: stack columns */
    .footer-main {
        flex-direction: column;
    }
    .footer-main .col-12 {
        max-width: 100% !important;
    }

    /* Adjust service icons size on small screens */
    .service-icon {
        width: 48px;
        height: 48px;
    }
    .service-icon i {
        font-size: 1.25rem;
    }

    /* Reduce carousel navigation button sizes for testimonials and gallery on mobile */
    .testimonial-nav .btn-nav,
    .gallery-nav .btn-nav {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}
