/* Custom CSS for awningsrepair.co.uk */

/* Root Variables for Colours and Fonts */
:root {
    --color-primary: #2E4F4F; /* Forest Green */
    --color-secondary: #F0F0F0; /* Warm Grey */
    --color-accent: #B8860B; /* Muted Gold */
    --color-text-dark: #333333; /* Dark Charcoal */
    --color-text-light: #FFFFFF; /* White */
    --color-button-hover: #D4AF37; /* Slightly brighter gold for hover */
    --color-shadow: rgba(0, 0, 0, 0.1);

    --font-family-primary: 'Inter', sans-serif;
    --border-radius: 8px;
    --spacing-unit: 1rem; /* 16px */
}

/* Basic Reset & Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body and Base Typography */
body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-unit);
    color: var(--color-primary);
}

h1 {
    font-size: 2.5rem; /* Mobile first */
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: var(--spacing-unit);
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* Container for Centering Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 8px var(--color-shadow);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle text shadow */
}

.primary-button {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}

.primary-button:hover {
    background-color: var(--color-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.large-button {
    padding: 1rem 2.5rem;
    font-size: 1.3rem;
}

/* Header */
.site-header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 1rem 0;
    box-shadow: 0 2px 5px var(--color-shadow);
}

.header-content {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: space-between;
    align-items: center;
    gap: 1rem; /* Spacing between elements */
}

.site-branding h1 {
    font-size: 1.5rem; /* Mobile first */
    color: var(--color-text-light);
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    color: var(--color-text-light);
    font-weight: 400;
    transition: color 0.3s ease, transform 0.2s ease;
}

.main-navigation a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.contact-info .phone-number {
    font-size: 1.6rem; /* Large and highly visible */
    font-weight: 700;
    color: var(--color-accent);
    text-decoration: none;
    white-space: nowrap; /* Prevent phone number from breaking */
    transition: color 0.3s ease;
}

.contact-info .phone-number:hover {
    color: var(--color-button-hover);
}

/* Hero Section */
.hero-section {
    background-color: var(--color-secondary);
    padding: 4rem 0;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.hero-content {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    align-items: center;
    gap: 2rem;
}

.hero-text {
    max-width: 600px;
    text-align: center;
}

.hero-text h1 {
    color: var(--color-primary);
    font-size: 2.8rem; /* Adjust for hero */
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px var(--color-shadow);
}

/* Sections General Styling */
section {
    padding: 4rem 0;
    position: relative;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Services Section */
.services-section {
    background-color: var(--color-text-light);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background-color: var(--color-secondary);
    padding: 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--color-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.why-choose-us-section h2 {
    color: var(--color-text-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    padding: 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.benefit-item h3 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--color-text-light);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--color-secondary);
    padding-bottom: 6rem; /* Extra padding for carousel indicators if added */
}

.testimonial-carousel {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-item {
    background-color: var(--color-text-light);
    padding: 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--color-shadow);
    font-style: italic;
    text-align: center;
}

.testimonial-item p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.testimonial-item cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 0.5rem;
}

/* Call to Action Bottom Section */
.cta-bottom-section {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    text-align: center;
    padding: 3rem 0;
}

.cta-bottom-section h2 {
    color: var(--color-text-light);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-bottom-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-branding p {
    margin: 0;
}

.footer-contact p {
    margin: 0.5rem 0;
}

.footer-contact a {
    color: var(--color-accent);
    font-weight: 600;
}

.footer-contact a:hover {
    color: var(--color-button-hover);
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-navigation a {
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: var(--color-accent);
}

/* Media Queries for Responsiveness (Desktop/Tablet) */
@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .site-branding h1 {
        font-size: 2rem;
    }

    .contact-info .phone-number {
        font-size: 2rem;
    }

    .header-content {
        flex-wrap: nowrap; /* Prevent wrapping on larger screens */
    }

    .hero-content {
        flex-direction: row; /* Side-by-side on desktop */
        text-align: left;
    }

    .hero-text {
        text-align: left;
        flex: 1;
    }

    .hero-image {
        flex: 1;
        display: flex;
        justify-content: flex-end; /* Align image to the right */
    }

    .service-grid,
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 2 or 3 columns */
    }

    .testimonial-carousel {
        flex-direction: row; /* Side-by-side on desktop */
        justify-content: center;
    }

    .testimonial-item {
        flex: 1;
        max-width: 380px; /* Max width for individual testimonial */
    }

    .cta-bottom-section h2 {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 4rem;
    }
    .hero-text h1 {
        font-size: 3.5rem;
    }
    .service-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on larger screens */
    }
}

/* Accessibility Enhancements */
/* Focus states for keyboard navigation */
a:focus, button:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--border-radius);
}

/* Ensure sufficient contrast (checked with chosen palette) */
/* The chosen palette aims for WCAG AA contrast ratios */
