/* Custom CSS for Awning Repair UK */

/* Google Fonts - Inter for clean typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Variables for consistent colours */
:root {
    --primary-dark: #2C3E50; /* Dark Charcoal */
    --secondary-light: #F8F8F8; /* Off-white / Cream */
    --accent-green: #27AE60; /* Professional Green */
    --text-color: #34495E; /* Dark Grey */
    --light-grey-bg: #ECF0F1; /* Light grey for sections */
    --button-hover-dark: #219d52; /* Darker green for hover */
    --focus-outline: #3498DB; /* Blue for accessibility focus */
}

/* Base Styles & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container for consistent content width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Padding for mobile and smaller screens */
}

/* Header Styles */
.header {
    background-color: var(--primary-dark);
    color: var(--secondary-light);
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-light);
    text-decoration: none;
    padding: 5px 0;
    display: block;
}

.contact-number {
    text-align: right;
}

.phone-link {
    font-size: 28px; /* Large font size for visibility */
    font-weight: 700;
    color: var(--accent-green);
    text-decoration: none;
    padding: 8px 15px;
    border: 2px solid var(--accent-green);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block; /* Ensures padding and border work */
}

.phone-link:hover,
.phone-link:focus {
    background-color: var(--accent-green);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    outline: none; /* Remove default focus outline */
}

/* Hero Section */
.hero-section {
    background-color: var(--light-grey-bg);
    padding: 80px 0;
    text-align: center;
    border-bottom: 5px solid var(--accent-green); /* Subtle accent line */
}

.hero-title {
    font-size: 38px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* General Button Styles */
.button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
}

.primary-button {
    background-color: var(--accent-green);
    color: var(--secondary-light);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.primary-button:hover,
.primary-button:focus {
    background-color: var(--button-hover-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
    outline: none;
}

.large-button {
    padding: 20px 40px;
    font-size: 22px;
}

/* Image Section */
.image-section {
    padding: 50px 0;
    background-color: var(--secondary-light);
    text-align: center;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Section Common Styles */
.services-section,
.why-choose-us-section,
.testimonials-section,
.contact-cta-section {
    padding: 60px 0;
    text-align: center;
}

.services-section, .testimonials-section {
    background-color: var(--light-grey-bg);
}

.why-choose-us-section, .contact-cta-section {
    background-color: var(--secondary-light);
}

.section-title {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-description {
    font-size: 17px;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-color);
}

/* Services List */
.service-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.service-list li {
    background-color: var(--secondary-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-list li h3 {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.service-list li p {
    font-size: 16px;
    color: var(--text-color);
}

.important-note {
    margin-top: 40px;
    font-size: 16px;
    color: #E74C3C; /* Red for emphasis */
    font-weight: 600;
}

/* Why Choose Us Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: var(--light-grey-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-item h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    font-size: 16px;
    color: var(--text-color);
}

/* Testimonials Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: var(--secondary-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: 17px;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 20px;
}

.testimonial-author {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: right;
}

/* Footer Styles */
.footer {
    background-color: var(--primary-dark);
    color: var(--secondary-light);
    padding: 30px 0;
    text-align: center;
    font-size: 15px;
}

.footer-nav {
    margin-top: 15px;
}

.footer-nav a {
    color: var(--secondary-light);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--accent-green);
    outline: none;
}

/* Accessibility (WCAG AA) */
a:focus,
button:focus {
    outline: 3px solid var(--focus-outline);
    outline-offset: 2px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 15px;
    }

    .phone-link {
        font-size: 24px;
        padding: 10px 20px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .button {
        font-size: 16px;
        padding: 12px 25px;
    }

    .large-button {
        padding: 15px 30px;
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 16px;
    }

    .service-list,
    .features-grid,
    .testimonial-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }

    .service-list li,
    .feature-item,
    .testimonial-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .phone-link {
        font-size: 22px;
        padding: 8px 15px;
    }

    .section-title {
        font-size: 24px;
    }

    .footer-nav a {
        display: block;
        margin: 10px 0;
    }
}
