/* CSS Variables for Color Palette */
:root {
    --primary-color: #5c172c;
    --accent-color: linear-gradient(135deg, #F5D184 0%, #C2912E 100%);
    --accent-solid: #C2912E;
    --background-color: #F8F3F0;
    --neutral-color: #EEE8E5;
    --text-color: #333;
    --white: #FFFFFF;
    --error-color: #dc3545;
    --success-color: #28a745;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

h4 {
    font-size: 2rem;
    color: var(--neutral-color);
    margin-bottom: 1rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    /* tightened visual height and crop internal SVG whitespace */
    height: 64px;
    width: auto;
    display: block;
    max-width: none;
    /* cover will scale the SVG to fill the box and crop the empty top/bottom */
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
    opacity: 0.95;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 400;
    color: var(--white);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-solid);
}

.lang-toggle button {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.lang-toggle button:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-image: url('../images/1st-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Parallax sections - optimized for reliability */
.parallax-section {
    position: relative;
    min-height: 50vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    /* Fallback color to prevent white flash on load */
    background-color: #8B3A4C;
}

#parallax-2, #parallax-3, #parallax-4 {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 60vh;
}

#parallax-2 {
    background-image: url('../images/2nd-background.jpg');
}

#parallax-3 {
    background-image: url('../images/3rd-background.jpg');
}

#parallax-4 {
    background-image: url('../images/4th-background.png');
}

#parallax-2::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(91, 15, 40, 0.2) 0%, rgba(248, 243, 240, 0.6) 100%);
}

#parallax-3 {
    background-image: url('../images/3rd-background.jpg');
}

#parallax-3::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(91, 15, 40, 0.2) 0%, rgba(248, 243, 240, 0.6) 100%);
}

#parallax-4 {
    background-image: url('../images/4th-background.png');
}

#parallax-4::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(91, 15, 40, 0.2) 0%, rgba(248, 243, 240, 0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(248, 243, 240, 0.4);
    border-radius: 10px;
}

.hero-content h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(194, 145, 46, 0.4);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(91, 15, 40, 0.2) 0%, rgba(248, 243, 240, 0.6) 100%);
}

/* About Section */
.about-section {
    padding: 0rem 0;
    background-color: var(--white);
}

.about-section .container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    background-color: var(--primary-color);
}

.about-text {
    flex: 1;
    padding: 5rem;
    text-align: justify;
    background-color: var(--primary-color);
    color: var(--white);
}

.about-text h2 {
    color: var(--white);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 0.75;
    object-fit: cover;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: var(--background-color);
}

.services-additional {
    margin-top: 3rem;
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.services-text ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.services-text li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.services-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--background-color);
}

.services-carousel .carousel-slide img {
    border-radius: 8px;
}

.carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    justify-content: center;
}

.carousel-slide.active {
    display: flex;
    justify-content: right;
    opacity: 1;
}

.carousel-slide img {
    width: 68%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

/* Service Areas Section */
.service-areas-section {
    padding: 3rem 0;
    background-color: var(--primary-color);
    color: var(--white);
}

/* ensure headings and links inside this section are white */
.service-areas-section h2,
.service-areas-section h3,
.service-areas-section h4,
.service-areas-section p,
.service-areas-section a {
    color: var(--white);
}

.service-areas-section h2 {
    margin-bottom: 2rem;
}

.service-areas-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-areas-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--background-color);
    padding: 0;
}

.areas-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.areas-slide.active {
    display: flex;
    justify-content: center;
    opacity: 1;
    background-color: var(--primary-color);
}

.areas-slide img {
    width: 68%;
    height: auto;
    max-height: 640px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.service-areas-text {
    padding: 2rem;
}

.service-areas-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--white);
}

/* Detailed Services Section */
.detailed-services-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.detailed-services-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.sidebar {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tabs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab {
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    background-color: var(--neutral-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-color);
    border-left: 4px solid transparent;
}

.tab:hover {
    background-color: var(--white);
    transform: translateX(5px);
}

.tab.active {
    background-color: var(--white);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.content-area {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: justify;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

.tab-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

.tab-content h4 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
}

.tab-content h5 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.tab-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.tab-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.tab-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 3rem 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.testimonials-section h2 {
    color: var(--white);
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: var(--background-color);
}

/* Qualifications Section */
.qualifications-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.qualifications-list {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.qualification-item {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qualification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.qualification-item p {
    margin: 0;
    font-weight: 500;
    color: var(--text-color);
}

.faq-list {
    margin-top: 3rem;
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background-color: var(--neutral-color);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-item.active {
    border-left: 4px solid var(--accent-solid);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--neutral-color);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1rem 2rem;
}

.faq-answer p {
    margin: 0;
    padding: 1.5rem 2rem;
    color: var(--text-color);
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    /* keep a stable height to prevent layout jumps */
    transition: height 200ms ease;
    will-change: height;
    min-height: 8rem;
}

.testimonial-card {
    display: none;
    background-color: transparent;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: none;
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    color: var(--white);
}

.testimonial-card.active {
    display: block;
    opacity: 1;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.testimonial-content cite {
    font-weight: 700;
    color: var(--white);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--white);
}

/* Contact Section */
.contact-section {
    padding: 2rem 0;
    background-color: var(--white);
}

.contact-section h2 {
    margin-bottom: 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-details {
    margin-bottom: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-details p {
    margin: 0.25rem 0;
    font-weight: 500;
}

.contact-details a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-details svg {
    display: inline-block;
    vertical-align: middle;
    color: var(--primary-color);
}

.social-links {
    justify-content: center;
}

.services-summary {
    text-align: center;
}

.services-summary p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.contact-form {
    background-color: var(--background-color);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact box layout: centered primary box with two inner boxes */
.contact-box {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0;
}

 .contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-top: 1rem;
}

.contact-left, .contact-right {
    width: 100%;
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-info-title,
.form-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}



.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--neutral-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

/* Services checkboxes styled as form boxes */
.services-checkboxes {
    display: grid;
    gap: 0.5rem;
}

.services-checkboxes .checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0; /* label holds padding and background */
    border-radius: 6px;
}

.services-checkboxes .checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 0.5rem 0 0.5rem;
}

.services-checkboxes .checkbox-item label {
    display: block;
    width: 100%;
    padding: 0.6rem;
    background-color: var(--neutral-color);
    border: 2px solid var(--neutral-color);
    border-radius: 6px;
    margin: 0;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

/* Hover turns to white */
.services-checkboxes .checkbox-item:hover label,
.services-checkboxes .checkbox-item label:hover {
    background-color: var(--white);
    border-color: var(--white);
    transform: translateX(4px);
}

/* When the checkbox is checked, the label stays white */
.services-checkboxes .checkbox-item input[type="checkbox"]:checked + label {
    background-color: var(--white);
    border-color: var(--white);
}

/* Accessibility: focus on checkbox moves outline to label */
.services-checkboxes .checkbox-item input[type="checkbox"]:focus + label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-button {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(194, 145, 46, 0.4);
}

.form-status {
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.form-status.visible {
    opacity: 1;
}

.form-status.error {
    color: var(--error-color);
}

.form-status.success {
    color: var(--success-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    color: var(--white);
}

.social-links a svg,
.social-links a img {
    width: 24px;
    height: 24px;
}

.social-links a:hover {
    background-color: #C2912E;
}

.social-links a:hover img {
    transform: scale(1.1);
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    transition: transform 0.3s ease;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    border-top: 3px solid;
    border-image: var(--accent-color) 1;
}

footer p {
    margin: 0;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Focus States for Accessibility */
.nav-links a:focus,
.lang-toggle button:focus,
.cta-button:focus,
.submit-button:focus,
.faq-question:focus,
.indicator:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hamburger menu display */
    .hamburger {
        display: flex;
    }

    /* Navigation mobile styles */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        position: relative;
    }

    .logo img {
        height: 50px;
    }

    .lang-toggle {
        display: none;
    }

    /* Mobile nav menu */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    /* Show lang toggle in mobile menu */
    .nav-links + .lang-toggle {
        display: block;
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Font sizes */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Hero section */
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 6rem 1rem 3rem;
    }

    .hero-content {
        padding: 1rem;
    }

    /* About section */
    .about-section {
        padding: 0;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        padding: 2rem 1.5rem;
        text-align: left;
    }

    .about-image {
        order: -1;
        padding: 1.5rem;
    }

    .about-image img {
        max-width: 200px;
    }

    /* Services section */
    .services-section {
        padding: 3rem 0;
    }

    .services-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-text ul {
        padding-left: 1.25rem;
    }

    .services-text li {
        font-size: 1rem;
    }

    /* Service areas section */
    .service-areas-section {
        padding: 2rem 0;
    }

    .service-areas-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-areas-text p {
        font-size: 1rem;
    }

    /* Detailed services section */
    .detailed-services-section {
        padding: 2rem 0;
    }

    .detailed-services-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sidebar {
        order: 1;
    }

    .tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab {
        flex: 1 1 calc(50% - 0.25rem);
        text-align: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .tab:hover {
        transform: none;
    }

    .tab.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }

    .content-area {
        order: 2;
        padding: 1.5rem;
        min-height: auto;
    }

    .tab-content h3 {
        font-size: 1.25rem;
    }

    .tab-content h4 {
        font-size: 1.1rem;
    }

    /* Testimonials section */
    .testimonials-section {
        padding: 2rem 0;
    }

    .testimonial-content p {
        font-size: 1rem;
    }

    /* Contact section */
    .contact-section {
        padding: 2rem 0;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-left,
    .contact-right {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .submit-button {
        padding: 0.875rem 1.5rem;
    }

    /* Social links */
    .social-links {
        gap: 0.75rem;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }

    /* Footer */
    footer {
        padding: 1.5rem 1rem;
    }

    /* Scroll to top button */
    .scroll-to-top {
        right: 12px;
        bottom: 12px;
        width: 44px;
        height: 44px;
    }

    /* Parallax fix for mobile performance */
    #parallax-2, 
    #parallax-3, 
    #parallax-4 {
        background-attachment: scroll;
        min-height: 50vh;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .about-text {
        padding: 1.5rem 1rem;
    }

    .tab {
        flex: 1 1 100%;
    }

    .content-area {
        padding: 1rem;
    }

    .contact-left,
    .contact-right {
        padding: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .services-checkboxes {
        gap: 0.25rem;
    }

    .services-checkboxes .checkbox-item label {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}





/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

/* Intersection Observer for Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to top floating widget */
.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    border: none;
    cursor: pointer;
    z-index: 1200;
    transition: transform 0.18s ease, opacity 0.18s ease;
    opacity: 0;
    pointer-events: none;
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
    display: block;
    color: var(--white);
}

.scroll-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:focus {
    outline: 3px solid rgba(92, 23, 44, 0.2);
    outline-offset: 3px;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
}

/* Additional small tweaks */
.contact-details a.contact-location span {
    color: var(--primary-color);
}

/* Captcha spacing */
.g-recaptcha {
    margin-bottom: 1rem;
}
