@import url('https://fonts.googleapis.com/css2?family=Alegreya:wght@400;700&family=Source+Sans+Pro:wght@300;400;600&display=swap');

:root {
    --primary-color: #5d4a66; /* Deep Purple */
    --secondary-color: #f7a6a0; /* Muted Rose */
    --accent-color: #b2e4d4; /* Soft Teal */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-light: #fdfdfd;
    --bg-dark: #2a2a2a;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);

    --font-heading: 'Alegreya', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    --header-height: 80px;
    --border-radius-soft: 8px;
}

/* Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-light);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: darken(var(--accent-color), 10%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px var(--shadow-medium);
}

.reveal {
    opacity: 1; /* Start visible */
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    background-color: var(--bg-light);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px var(--shadow-light);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 10px var(--shadow-medium);
    background-color: rgba(255, 255, 255, 0.95);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.menu-toggle {
    display: none; /* Hide the checkbox */
}

.hamburger {
    display: none; /* Hidden by default on desktop */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

.nav {
    flex-grow: 1;
    text-align: center;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-list li a {
    font-weight: 400;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-list li a:hover::after {
    width: 100%;
    left: 0;
}

.cta-header {
    margin-left: 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/hero.webp') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: var(--header-height); /* Offset for fixed header */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Sections General */
section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

section:nth-of-type(even) {
    background-color: #f4f8f7; /* Slightly different background for visual separation */
}

/* Services Section */
.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-item {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.service-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-soft);
    margin-bottom: 1.5rem;
    filter: grayscale(80%);
    transition: filter 0.3s ease;
}

.service-item:hover img {
    filter: grayscale(0%);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Gallery Section */
.gallery {
    background-color: #f4f8f7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

/* About Section */
.about .container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.about-content h2::after {
    margin-left: 0;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 15px var(--shadow-medium);
    max-height: 450px;
    object-fit: cover;
}

/* Process Section */
.process {
    background-color: var(--bg-light);
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.process-steps .step {
    text-align: center;
    max-width: 280px;
    padding: 1.5rem;
    border-radius: var(--border-radius-soft);
    background-color: #fff;
    box-shadow: 0 3px 10px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-steps .step:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.process-steps .step h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.process-image {
    margin-top: 4rem;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 15px var(--shadow-medium);
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 400px;
    object-fit: cover;
}

/* Testimonials Section */
.testimonials {
    background-color: #f4f8f7;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-item {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 15px var(--shadow-light);
    position: relative;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.quote-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-item span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    display: block;
}

/* Contact Section */
.contact {
    background-color: var(--bg-light);
}

.contact .container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.contact h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.contact-info p i {
    color: var(--secondary-color);
    margin-right: 1rem;
    font-size: 1.3rem;
}

.contact-info a {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: var(--border-radius-soft);
    box-shadow: 0 5px 15px var(--shadow-light);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--secondary-color), 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: auto;
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer p {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.1);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .nav-list {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .logo {
        order: 1;
    }

    .cta-header {
        display: none; /* Hide CTA on mobile header */
    }

    .nav {
        order: 3;
        flex-basis: 100%;
        display: none; /* Hidden by default */
        text-align: left;
        margin-top: 1rem;
        background-color: var(--bg-light);
        box-shadow: 0 5px 15px var(--shadow-light);
        border-radius: var(--border-radius-soft);
        padding: 1rem;
    }

    .menu-toggle:checked ~ .header .nav {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .nav-list li a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    section {
        padding: 4rem 0;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about .container,
    .contact .container {
        flex-direction: column;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-content h2::after {
        margin-left: auto;
        margin-right: auto;
    }

    .about-image,
    .process-image {
        max-width: 90%;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .service-item, .gallery-grid img {
        height: 250px;
    }

    .process-steps .step {
        max-width: 100%;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }
}
