/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #004B51;
    --primary-gradient: linear-gradient(135deg, #004B51 0%, #003940 100%);
    --accent-color: #009B72;
    --accent-hover: #009B72;
    --text-light: #004B51; /* Changed text-light to primary color for header text */
    --text-dark: #FFFFFF;
    --light-gray: #F5F5F5;
    --hero-bg: var(--primary-color);
    --hero-accent: #009B72;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(255, 255, 255, 0.15);
    --text-secondary: rgba(255, 255, 255, 0.9);
    --icon-bg: rgba(64, 224, 208, 0.2);
    --section-padding: 6rem;
    --card-padding: 2rem;
    --border-radius: 12px;
    --transition: 0.3s ease;
    --shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    --border-light: 1px solid rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Changed body text color to text-dark (white) */
    background: var(--primary-gradient);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54 28h-6v6h6v-6zm-18 0h-6v6h6v-6zm-18 0h-6v6h6v-6zm36-18h-6v6h6v-6zm-18 0h-6v6h6v-6zm-18 0h-6v6h6v-6zm36 36h-6v6h6v-6zm-18 0h-6v6h6v-6zm-18 0h-6v6h6v-6z' fill='%23009B72' fill-opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NEW STYLES --- */
.text-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem; /* Keep bottom margin on text-column */
}

.content-box {
    background-color: var(--card-bg);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    border: var(--border-light);
    box-shadow: var(--shadow);
    margin-bottom: 16px;  /* Increased margin between content-boxes */
    width: 100%;
    text-align: left;
}
/* --- END NEW STYLES --- */

/* Typography */
h1, h2, h3 {
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
}
h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center; /* Center homepage hero paragraph and services hero paragraph and contact hero paragraph */
}

/* Link Styles */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all var(--transition);
}

a:hover {
    color: var(--text-light);
}

/* Header Styles */
.main-header {
    background-color: #FFFFFF; /* Changed header to white */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    border-bottom: var(--border-light);
    border: none; /* Removed border-light from header bottom */
}

.header-container {
    display: flex;
    justify-content: space-between; /* Changed to space-between to push logo and nav to edges */
    align-items: center;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center; /* Vertically align logo and text */
    gap: 0.5rem;
}

.logo-image {
    width: 200px; /* Increased logo size */
    height: auto; /* Maintain aspect ratio */
}

.logo {
    display: none; /* Hide text logo, using SVG logo now */
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}


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

.main-nav a {
    color: var(--text-light); /* Changed nav link color to text-light (primary color) */
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-hover);
    transform: translateY(-2px);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-hover);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero {
    background-color: var(--hero-bg);
    color: var(--text-dark); /* Changed hero text color to text-dark (white) */
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
    text-align: center; /* Center align hero content */
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-banner {
    width: 100%; /* Banner takes full container width */
    max-width: 1200px; /* Adjust max width as needed */
    margin-bottom: 2rem; /* Space below banner */
}

.hero-banner svg {
    display: block; /* Ensure SVG is block to control margin */
    width: 100%; /* Make SVG responsive */
    height: auto; /* Keep aspect ratio */
}


.hero h2 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.hero p {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}
/*Adding margin to the hero button*/
.hero .cta-button{
    margin-top: 1rem;
}

/* Card Styles */
.feature-card,
.about-card,
.service-category,
.review-card,
.feature-overview-card,
.why-choose-card {
    background-color: var(--card-bg);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    transition: all var(--transition);
    border: var(--border-light);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.feature-card:hover,
.about-card:hover,
.service-category:hover,
.review-card:hover,
.feature-overview-card:hover,
.why-choose-card:hover
 {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    background-color: var(--card-hover-bg);
}

/* Icon Styles */
.feature-icon,
.about-card-icon,
.service-icon,
.feature-overview-icon,
.why-choose-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--icon-bg);
    border-radius: 50%;
}

.feature-icon svg,
.about-card-icon svg,
.service-icon svg,
.feature-overview-icon svg,
.why-choose-icon svg {
    stroke: var(--accent-color);
}

/* Button Styles */
.cta-button,
.submit-button,
.store-cta,
.view-reviews-btn {
    display: inline-flex; /* Changed to inline-flex to allow text-align: center on parent */
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-hover);
    color: var(--text-dark); /* Changed button text color to text-dark (white) */
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    border: var(--border-light);
    box-shadow: var(--shadow);
    text-align: center;
    margin: 0 auto; /* Center buttons horizontally */
    display: block; /* Make buttons block level to take full width and center with margin auto */
    width: fit-content; /* Adjust width to fit content */
}
.store-cta svg {
    margin-left: 0.5rem;
}
.cta-button:hover,
.submit-button:hover,
.store-cta:hover,
.view-reviews-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background-color: var(--accent-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    color: var(--text-light);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--card-hover-bg);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: left;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
    background-color: var(--primary-color);
    padding: 4rem 0;
}

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

.testimonial-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 0;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.footer-info h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--accent-color);
}

.social-links a:hover {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .main-nav ul {
        display: none; /* Hide main nav on mobile */
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        text-align: center; /* Center nav links in mobile menu */
    }
    .main-nav.active ul {
        display: flex; /* Show nav when hamburger is active */
    }
    .main-nav li {
        width: 100%; /* Full width for nav items in mobile */
    }


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

    .hero h2,
    .about-hero h2,
    .services-hero h2,
    .contact-hero h2 {
        font-size: 2rem;
    }
    .text-column {
        align-items: stretch;
    }

    .why-choose-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust columns for smaller screens */
    }
    .comprehensive-services .services-grid {
        grid-template-columns: 1fr; /* Stack service columns on smaller screens */
    }
    .service-column h3 {
        text-align: center; /* Center service column titles on mobile */
    }
    .service-list li {
        text-align: center; /* Center service list items on mobile */
    }
    .reviews-grid {
        grid-template-columns: 1fr; /* Stack reviews on mobile */
    }

}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    :root {
        --section-padding: 4rem;
        --card-padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* features-grid styles */

.features-grid, .features-cards, .why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
    justify-items: center;
}
/*Added a 1.5rem of margin between feature cards and the store button*/
.store-section > .features-grid{
    margin-bottom: 1.5rem;
}

.features-grid .feature-card,
.features-cards .feature-overview-card,
.why-choose-us .why-choose-card{
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.features-grid .feature-card p,
.features-cards .feature-overview-card p,
.why-choose-us .why-choose-card p
{
  text-align: center;
}

/* services grid */
.comprehensive-services .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

.service-column h3 {
    margin-bottom: 1.5rem;
    text-align: left; /* Reverted to left align for larger screens */
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    text-align: left; /* Reverted to left align for larger screens */
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.reviews-grid {
  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
    justify-items: center;

}
.reviews-grid .review-card{
  width: 100%;
  max-width: 350px;
}
.reviews-grid p,
.reviews-grid span {
  text-align: left;
}
/*Adding some space between the reviews and the view all google reviews button*/
.google-reviews .view-reviews-btn{
    margin-top: 2rem;
}
/*Adding margin to the sections, and some space between the container and the section element*/
.store-section, .features-overview, .why-choose-us, .comprehensive-services, .google-reviews {
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.store-section .container, .features-overview .container, .why-choose-us .container, .comprehensive-services .container, .google-reviews .container{
  margin-bottom: 1rem;
}

/* --- Hamburger Menu Styles --- */
.hamburger-menu {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 10px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex; /* Show hamburger menu on mobile */
    }
    .header-container {
        justify-content: space-between; /* Distribute logo and hamburger */
    }
}

/* --- About Page Grid Spacing --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; /* Added gap to create space between about-cards */
}

/* --- Animation Styles --- */

/* Fade-in Animation for Scroll Observer */
@keyframes fadeinUp {
    from {
        opacity: 0;
        transform: translateY(40px); /* Increased initial translateY for more noticeable effect */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0; /* Initially hidden */
    transform: translateY(40px); /* Start position for fade-in-up */
    animation: fadeinUp 0.8s ease-out forwards; /* Slightly longer duration and ease-out timing */
}

/* Ripple Effect for Buttons */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4); /* Semi-transparent white ripple */
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out; /* Ripple animation duration */
    pointer-events: none; /* Make sure ripple doesn't interfere with clicks */
}

@keyframes rippleAnimation {
    to {
        transform: scale(4); /* Adjust scale for ripple size */
        opacity: 0;
    }
}

/* --- Services Page Specific Styles --- */
.services-cta .cta-buttons {
    text-align: center; /* Center the buttons' text */
}

/* --- Hero Banner Styles --- */
.hero-banner-text {
    fill: #009b72;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-banner-bg {
    fill: #fff;
}