/* style.css */

/* Custom properties for colours */
:root {
    --primary-color: #2C3E50; /* Dark Charcoal */
    --accent-color: #E6B325; /* Warm Gold */
    --light-grey: #ECF0F1;
    --dark-text: #34495E;
    --white: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Base styles for responsiveness and accessibility */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: 'Inter', sans-serif; /* Using Inter font */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-grey);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem; /* Responsive padding */
}

/* Headings */
/* Removed general color rule to allow specific colors for each heading level */
h1, h2, h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem; /* Larger for hero */
    text-align: center;
    color: var(--accent-color); /* Warm Gold */
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--primary-color); /* Dark Charcoal */
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: #556B7F; /* Dark Slate Grey - a new distinct color */
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 8px; /* Rounded corners */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.btn:hover {
    background-color: #D4A720; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Header */
.header {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.logo img {
    max-height: 50px;
    width: auto;
    border-radius: 5px; /* Rounded corners for logo */
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.nav-list a {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-list a:hover::after {
    width: 100%;
}

.contact-header .phone-number {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-header .phone-number:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh; /* Responsive height */
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 20px; /* Unique design element */
    border-bottom-right-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections General Styling */
section {
    padding: 4rem 0;
    margin-bottom: 2rem;
}

section:nth-of-type(even) {
    background-color: var(--white);
}

/* Services Section */
.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid var(--accent-color); /* Accent border */
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

/* About Section */
.about {
    background-color: var(--light-grey);
}

.about-content {
    display: flex;
    flex-direction: column; /* Stack on mobile */
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
    text-align: center;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0;
    border-top-left-radius: 20px; /* Unique design element */
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.testimonials h2 {
    color: #d4a720;
}

.testimonials h2::after {
    background-color: var(--accent-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-item {
    background-color: var(--white);
    color: var(--dark-text);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-style: italic;
    position: relative;
    border-bottom: 5px solid var(--accent-color); /* Accent border */
}

.testimonial-item p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-item cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* Contact Section */
.contact {
    background-color: var(--light-grey);
    text-align: center;
}

.contact-details {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-details strong {
    color: var(--primary-color);
}

.contact-details a {
    color: var(--accent-color);
    font-weight: bold;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 179, 37, 0.2); /* Light accent glow */
    outline: none;
}

.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    border-top-left-radius: 20px; /* Unique design element */
    border-top-right-radius: 20px;
    margin-top: 2rem;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .header .container {
        flex-wrap: nowrap; /* Prevent wrapping on larger screens */
    }

    .nav {
        flex-grow: 1; /* Allow nav to take available space */
        text-align: center;
    }

    .nav-list {
        justify-content: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .about-content {
        flex-direction: row; /* Side-by-side on larger screens */
        text-align: left;
    }

    .about-text {
        padding-right: 2rem;
    }

    .about-image {
        padding-left: 2rem;
    }
}

@media (max-width: 767px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
    }

    .contact-header {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 3rem 0;
        min-height: 50vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .service-item, .testimonial-item {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Accessibility Enhancements */
:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 5px;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
}
