/* Reset and Base Styles */
:root {
    --primary-color: #0D47A1; /* Deep Blue */
    --secondary-color: #29B6F6; /* Bright Sky Blue */
    --accent-color: #00BCD4; /* Vibrant Cyan/Turquoise */
    --light-bg: #E3F2FD; /* Very Light Blue */
    --dark-text: #212121; /* Dark Grey for text */
    --light-text: #ffffff;
    --neutral-grey: #B0BEC5; /* Blue Grey for borders/dividers */
    --font-primary: 'Roboto', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
    --transition-speed: 0.4s;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--light-bg);
    overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #424242; 
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
    overflow: hidden; 
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #616161; 
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97); 
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: padding var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

.main-header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img { 
    height: 4rem;
    width: auto;    
    display: block; 
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    padding: 5px 0;
    position: relative;
}
.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}
.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none; 
    font-size: 1.8rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
}


/* Hero Section */
#hero {
    background-image: linear-gradient(rgba(13, 71, 161, 0.75), rgba(13, 71, 161, 0.9)), url('/images/Plastering-Contractor-1080x675.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: var(--light-text);
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px; 
}


.hero-content {
    max-width: 800px;
    animation: fadeIn HeroContentAnimation 1s ease-out forwards;
}

@keyframes HeroContentAnimation {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    line-height: 1.2;
}
#hero h1 span { 
    background: linear-gradient(45deg, #80DEEA, #26C6DA, #00ACC1, #00BCD4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 5s infinite linear;
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(227, 242, 253, 0.9); 
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-text); 
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, color var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: #0097A7; 
    color: var(--light-text); 
    transform: translateY(-3px) scale(1.05);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-text);
    font-size: 2rem;
    animation: bounce 2s infinite;
}


/* About Us Section */
#about {
    background-color: #ffffff; 
}
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.about-text {
    flex: 1;
}
.about-image {
    flex: 1;
    position: relative;
}
.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%; 
    height: 450px; 
    object-fit: cover; 
}
.about-image:hover img {
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg) scale(1.02);
}
.about-text ul {
    list-style: none;
    padding-left: 0;
}
.about-text ul li {
    padding-left: 1.5em;
    position: relative;
    margin-bottom: 0.5em;
}
.about-text ul li::before {
    content: '✓'; 
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Services Section */
#services {
    background-color: var(--light-bg); 
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.service-card {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    position: relative;
    overflow: hidden; 
    border-top: 4px solid var(--secondary-color); 
}

.service-card::before { 
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s ease-in-out;
}
.service-card:hover::before {
    left: 150%;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(13, 71, 161, 0.15); 
}
.service-icon svg { 
    width: 48px;
    height: 48px;
    color: var(--accent-color); 
    margin-bottom: 1.5rem;
    display: inline-block; 
    transition: transform var(--transition-speed) ease;
}
.service-card:hover .service-icon svg {
    transform: rotateY(360deg) scale(1.1);
}
.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Showcase/Portfolio Section */
#showcase {
    background-color: #ffffff;
}
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.showcase-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    background-color: var(--neutral-grey); 
}

.showcase-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}
.showcase-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.6) saturate(1.2); 
}
.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 71, 161, 0.75); 
    color: var(--light-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 1rem;
    text-align: center;
}
.showcase-item:hover .showcase-overlay {
    opacity: 1;
}
.showcase-overlay h4 {
    color: var(--light-text);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.showcase-overlay p {
    font-size: 0.9rem;
    color: rgba(227, 242, 253, 0.9);
    margin-bottom: 0;
}

/* Testimonials Section */
#testimonials {
    background: linear-gradient(rgba(41, 182, 246, 0.05), rgba(41, 182, 246, 0.08)), var(--light-bg); 
    position: relative;
    padding-bottom: 120px; 
}
.testimonial-slider { 
    display: flex; 
    justify-content: center;
    align-items: center;
}
.testimonial-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 700px;
    text-align: center;
    position: relative;
    border-left: 5px solid var(--accent-color); 
}
.testimonial-card::before { 
    content: '“'; 
    font-family: 'Georgia', serif;
    font-size: 6rem;
    color: var(--secondary-color);
    opacity: 0.1;
    position: absolute;
    top: -10px;
    left: 10px;
    line-height: 1;
}
.testimonial-text {
    font-style: italic;
    font-size: 1.15rem;
    color: #424242;
    margin-bottom: 1.5rem;
}
.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.testimonial-author span {
    display: block;
    font-size: 0.9rem;
    color: #757575;
    font-weight: 400;
}

/* Call to Action Section */
#cta-section {
    background-color: var(--primary-color);
    color: var(--light-text);
    text-align: center;
    padding: 60px 0;
}
#cta-section h2 {
    color: var(--light-text);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
#cta-section p {
    color: rgba(227, 242, 253, 0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Contact Section */
#contact {
    background-color: #ffffff;
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}
.contact-info {
    flex: 1;
}

.accreditation-panel {
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--neutral-grey);
}
.accreditation-panel h3 {
    margin-top: 0;
    text-align: center;
}
.accreditation-panel p {
    text-align: center;
    margin-bottom: 2rem;
}
.accreditation-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.accreditation-logos img {
    max-height: 100px;
    width: auto;
}



/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: rgba(227, 242, 253, 0.85);
    padding: 40px 0;
    text-align: center;
}
.main-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: rgba(227, 242, 253, 0.85);
}
.footer-social-links a {
    color: rgba(227, 242, 253, 0.85);
    margin: 0 10px;
    font-size: 1.5rem; 
    transition: color var(--transition-speed) ease;
}
.footer-social-links a:hover {
    color: var(--accent-color); 
}

/* Scroll-triggered Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

@keyframes shine { 
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes HeroContentAnimation {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}



/* Responsive Design */

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text ul {
        display: inline-block;
        text-align: left;
        max-width: 400px;
    }
    .about-image { margin-top: 2rem; }
    .about-image img { height: 350px; } 
}

@media (max-width: 768px) {
    .main-nav {
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem 0;
    }
    .main-nav.active {
        display: flex; 
    }
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }
    .main-nav ul li {
        margin: 0;
        text-align: center;
    }
    .main-nav ul li a {
        display: block;
        padding: 12px 15px;
        border-bottom: 1px solid var(--light-bg);
    }
    .main-nav ul li a::after { display: none; }
    .main-nav ul li:last-child a { border-bottom: none; }

    .mobile-nav-toggle {
        display: block; 
    }

    .section-title { font-size: 2.2rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2.5rem; }
    #hero h1 { font-size: 2.5rem; }
    #hero p { font-size: 1rem; }
    .cta-button { padding: 12px 25px; font-size: 1rem; }
    .services-grid { grid-template-columns: 1fr; } 
    .showcase-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
     .about-image img { height: 300px; }
}

@media (max-width: 480px) {
    .container { width: 95%; }
    #hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .logo img { height: 2rem; } 
    .about-image img { height: 250px; }
}




.contact-info h3 {
    text-align: center; /* This is the correct new line to add */
}

.contact-info > p {
    text-align: left; /* Change this back to 'left' */
    margin-bottom: 2rem;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-action-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.contact-action-btn i svg {
    color: var(--accent-color);
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-action-btn span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-action-btn .phone-numbers {
    display: flex;
    flex-direction: column;
}

.contact-action-btn .phone-numbers a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary-color);
    padding: 0.1rem 0;
}
.contact-action-btn .phone-numbers a:hover {
    color: var(--accent-color);
}

/* Panels for Address and Hours */
.contact-panel {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    margin-bottom: 1rem;
    padding: 1.25rem 1.5rem;
}

.address-panel {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--dark-text);
    font-weight: 500;
}
.address-panel i svg {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Business Hours Panel - Desktop */
.hours-toggle {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0;
    margin: 0 0 1rem 0;
    cursor: default; /* Not a button on desktop */
}
.hours-toggle strong {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-family: var(--font-headings);
}
.hours-toggle .toggle-icon {
    display: none; /* Hide '+' on desktop */
}

/* This ensures the hours are visible on desktop */
.hours-content {
   padding-top: 0;
}

.hours-content p {
    margin-bottom: 0;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--light-bg);
    font-size: 0.95rem;
}
.hours-content p:last-child {
    border-bottom: none;
}
.hours-content p span {
    font-weight: 500;
    color: var(--dark-text);
}


/* --- Mobile Styles (992px and smaller) --- */
@media (max-width: 992px) {
    /* Stack the main contact columns */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .accreditation-panel {
        margin-top: 1rem;
    }

    .contact-info > p {
        text-align: center;
    }

    /* Stack the contact action buttons */
    .contact-actions {
        grid-template-columns: 1fr;
    }

    /* Make hours collapsible on mobile */
    .hours-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer; /* Clickable on mobile */
        margin-bottom: 0;
    }
    .hours-toggle .toggle-icon {
        display: block; /* Show '+' on mobile */
        font-size: 1.8rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }
    .hours-panel.active .toggle-icon {
        transform: rotate(45deg);
    }
    .hours-content {
        max-height: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    }
    .hours-panel.active .hours-content {
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }
}