@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
 --primary-color: #047857; /* Deep Green */
 --accent-color: #10b981; /* Bright Teal */
 --text-color-dark: #2c3e50;
 --text-color-light: #ecf0f1;
 --background-light: #f8fafc; /* Very light gray */
 --background-white: #ffffff;
 --border-color: #e0e0e0;
 --shadow-color: rgba(0, 0, 0, 0.08);
 --footer-bg-color: #02382a; /* Darker shade of primary */

 --font-heading: 'Montserrat', sans-serif;
 --font-body: 'Open Sans', sans-serif;

 --header-height: 70px;
}

/* Base Reset & Typography */
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

html {
 scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-heading);
 margin-bottom: 0.7em;
 color: var(--primary-color);
 line-height: 1.2;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; color: var(--text-color-dark); } /* Changed to dark for better contrast on light BG */
h3 { font-size: 1.5em; }
p { margin-bottom: 1em; }

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

a:hover {
 color: var(--accent-color);
 text-decoration: underline;
}

ul {
 list-style: none;
}

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

.section {
 padding: 4rem 0;
 text-align: center;
}

.section-description {
 max-width: 800px;
 margin: 0.5rem auto 2.5rem;
 font-size: 1.1em;
 color: #555;
}

.bg-light {
 background-color: var(--background-light);
}

.text-center {
 text-align: center;
}

.mt-4 {
 margin-top: 2rem;
}

/* Buttons */
.btn {
 display: inline-block;
 padding: 0.8rem 1.8rem;
 border-radius: 5px;
 font-weight: 600;
 text-transform: uppercase;
 transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
 border: 2px solid transparent;
 text-decoration: none;
 cursor: pointer;
}

.btn-primary {
 background-color: var(--primary-color);
 color: white;
 border-color: var(--primary-color);
}

.btn-primary:hover {
 background-color: var(--accent-color);
 border-color: var(--accent-color);
 color: white;
 transform: translateY(-2px);
}

.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border-color: var(--primary-color);
}

.btn-secondary:hover {
 background-color: var(--primary-color);
 color: white;
 transform: translateY(-2px);
}

.btn-accent {
 background-color: var(--accent-color);
 color: white;
 border-color: var(--accent-color);
}

.btn-accent:hover {
 background-color: var(--primary-color);
 border-color: var(--primary-color);
 transform: translateY(-2px);
}

.btn-text {
 background: none;
 border: none;
 padding: 0;
 color: var(--primary-color);
 font-weight: 600;
 text-transform: none;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 5px;
}

.btn-text::after {
 content: '→';
 font-size: 1.2em;
 transition: transform 0.3s ease;
}

.btn-text:hover {
 color: var(--accent-color);
 text-decoration: none;
}

.btn-text:hover::after {
 transform: translateX(5px);
}

/* Header & Navigation */
.header {
 background-color: var(--background-white);
 box-shadow: 0 2px 10px var(--shadow-color);
 position: sticky;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 1000;
 transition: background-color 0.3s ease;
}

.navbar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 1rem 1.5rem;
 max-width: 1200px;
 margin: 0 auto;
 height: var(--header-height);
}

.logo {
 font-family: var(--font-heading);
 font-size: 1.6em;
 font-weight: 700;
 color: var(--primary-color);
 text-decoration: none;
 white-space: nowrap;
}

.nav-links {
 display: flex;
 align-items: center;
 list-style: none;
 margin: 0;
 padding: 0;
}

.nav-links li {
 margin-left: 2rem;
}

.nav-links a {
 color: var(--text-color-dark);
 font-weight: 500;
 padding: 0.5rem 0;
 position: relative;
 transition: color 0.3s ease;
}

.nav-links a::after {
 content: '';
 position: absolute;
 left: 0;
 bottom: 0;
 width: 0;
 height: 2px;
 background-color: var(--accent-color);
 transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
 width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
 color: var(--primary-color);
}

.nav-toggle {
 display: none;
 flex-direction: column;
 justify-content: space-between;
 width: 30px;
 height: 21px;
 background: transparent;
 border: none;
 cursor: pointer;
 padding: 0;
 z-index: 1001;
}

.nav-toggle span {
 display: block;
 width: 100%;
 height: 3px;
 background-color: var(--primary-color);
 border-radius: 3px;
 transition: all 0.3s linear;
 transform-origin: 1px 1px;
}

.nav-toggle.active span:nth-child(1) {
 transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
 opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
 transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
 background: url('https://images.pexels.com/photos/8808340/pexels-photo-8808340.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940') no-repeat center center/cover;
 position: relative;
 color: var(--text-color-light);
 text-align: center;
 padding: 6rem 1.5rem;
 min-height: 600px;
 display: flex;
 align-items: center;
 justify-content: center;
}

.hero::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0, 0, 0, 0.35); /* Uniform overlay */
 z-index: 1;
}

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

.hero h1 {
 font-size: 3.5em;
 margin-bottom: 0.5rem;
 color: white;
 font-weight: 700;
}

.hero p {
 font-size: 1.25em;
 margin-bottom: 2rem;
 max-width: 700px;
 margin-left: auto;
 margin-right: auto;
 color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
 display: flex;
 justify-content: center;
 gap: 1.5rem;
}

.hero-buttons .btn {
 padding: 1rem 2.5rem;
 font-size: 1.1em;
}

/* Why Choose Us Section */
.why-choose-us h2 {
 margin-bottom: 1rem;
}

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

.feature-item {
 background-color: var(--background-white);
 padding: 2.5rem 1.5rem;
 border-radius: 8px;
 box-shadow: 0 4px 20px var(--shadow-color);
 text-align: center;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 border-top: 4px solid transparent;
}

.feature-item:hover {
 transform: translateY(-10px);
 box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
 border-top-color: var(--primary-color);
}

.feature-icon {
 width: 80px;
 height: 80px;
 margin: 0 auto 1.5rem;
 background-color: var(--accent-color);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 overflow: hidden; /* Ensure image fits */
}

.feature-icon img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 border-radius: 50%;
 display: block; /* Remove extra space below image */
}

.feature-item h3 {
 color: var(--primary-color);
 margin-top: 0;
 margin-bottom: 0.8rem;
 font-size: 1.3em;
}

.feature-item p {
 font-size: 0.95em;
 color: #666;
 margin-bottom: 0;
}

/* Our Services Preview */
.our-services-preview h2 {
 margin-bottom: 1rem;
}

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

.service-card {
 background-color: var(--background-white);
 border-radius: 8px;
 overflow: hidden;
 box-shadow: 0 4px 20px var(--shadow-color);
 text-align: left;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
 transform: translateY(-8px);
 box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-card img {
 width: 100%;
 height: 220px;
 object-fit: cover;
 display: block;
}

.service-card h3 {
 margin: 1.5rem 1.5rem 0.5rem;
 color: var(--primary-color);
}

.service-card p {
 margin: 0 1.5rem 1rem;
 color: #555;
 font-size: 0.95em;
}

.service-card .btn-text {
 display: flex;
 justify-content: flex-start;
 margin: 0 1.5rem 1.5rem;
}

/* About Us Preview */
.about-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 3rem;
 align-items: center;
 text-align: left;
}

.about-content h2 {
 margin-top: 0;
 margin-bottom: 1rem;
}

.about-content p {
 font-size: 1.05em;
 color: #444;
}

.about-image img {
 max-width: 100%;
 height: auto;
 border-radius: 8px;
 box-shadow: 0 8px 30px var(--shadow-color);
}

/* Testimonials Section */
.testimonials {
 overflow: hidden; /* Important for slider */
}

.testimonials h2 {
 margin-bottom: 1rem;
}

.testimonial-slider-container {
 position: relative;
 max-width: 900px;
 margin: 3rem auto 0;
 padding: 0 3rem; /* Space for nav buttons */
}

.testimonial-slider {
 display: flex;
 flex-wrap: nowrap;
 overflow: hidden;
 scroll-behavior: smooth;
 -webkit-overflow-scrolling: touch;
 width: 100%;
}

.testimonial-item {
 flex: 0 0 100%; /* Each item takes full width */
 min-width: 100%; /* Ensures proper scrolling */
 background-color: var(--background-white);
 padding: 2.5rem;
 border-radius: 10px;
 box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
}

.testimonial-img {
 width: 90px;
 height: 90px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 1.5rem;
 border: 3px solid var(--accent-color);
}

.testimonial-text {
 font-style: italic;
 font-size: 1.1em;
 color: #444;
 margin-bottom: 1.5rem;
 max-width: 700px;
}

.testimonial-author {
 font-weight: 600;
 color: var(--primary-color);
 font-size: 1em;
 margin-top: auto; /* Push to bottom if content varies */
}

.slider-nav {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 width: 100%;
 display: flex;
 justify-content: space-between;
 padding: 0 1rem;
 pointer-events: none; /* Allows clicks to pass through to items if not button area */
}

.slider-nav button {
 background-color: var(--primary-color);
 color: white;
 border: none;
 border-radius: 50%;
 width: 40px;
 height: 40px;
 font-size: 1.5em;
 line-height: 1;
 display: flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 transition: background-color 0.3s ease;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
 pointer-events: all; /* Make buttons clickable */
}

.slider-nav button:hover {
 background-color: var(--accent-color);
}

.slider-dots {
 display: flex;
 justify-content: center;
 margin-top: 1.5rem;
 gap: 0.6rem;
}

.slider-dots .dot {
 width: 10px;
 height: 10px;
 background-color: #ccc;
 border-radius: 50%;
 cursor: pointer;
 transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
 background-color: var(--primary-color);
 transform: scale(1.2);
}

/* Blog Preview */
.blog-cards-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 2.5rem;
 margin-top: 3rem;
}

.blog-card {
 background-color: var(--background-white);
 border-radius: 8px;
 overflow: hidden;
 box-shadow: 0 4px 20px var(--shadow-color);
 text-align: left;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
 transform: translateY(-8px);
 box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-card img {
 width: 100%;
 height: 200px;
 object-fit: cover;
 display: block;
}

.blog-card h3 {
 margin: 1.5rem 1.5rem 0.5rem;
 color: var(--primary-color);
 font-size: 1.25em;
}

.blog-card h3 a {
 color: var(--primary-color);
 text-decoration: none;
}

.blog-card h3 a:hover {
 color: var(--accent-color);
}

.blog-card p {
 margin: 0 1.5rem 1rem;
 color: #555;
 font-size: 0.9em;
}

.blog-card .btn-text {
 display: flex;
 justify-content: flex-start;
 margin: 0 1.5rem 1.5rem;
}

/* FAQ Preview */
.faq-accordion {
 max-width: 800px;
 margin: 3rem auto 0;
 text-align: left;
}

.accordion-item {
 background-color: var(--background-white);
 border-bottom: 1px solid var(--border-color);
 margin-bottom: 0.5rem;
 border-radius: 5px; /* Added for visual separation */
 box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.accordion-header {
 width: 100%;
 background-color: transparent;
 border: none;
 padding: 1.2rem 1.5rem;
 text-align: left;
 font-size: 1.1em;
 font-weight: 600;
 color: var(--primary-color);
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
 transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-header:hover {
 background-color: var(--background-light);
 color: var(--accent-color);
}

.accordion-header::after {
 content: '+';
 font-size: 1.5em;
 transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"]::after {
 content: '-';
 transform: rotate(0deg); /* No rotate for simple minus */
}

.accordion-content {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out, padding 0.4s ease-out;
 padding: 0 1.5rem;
}

.accordion-content.active {
 max-height: 200px; /* Adjust as needed */
 padding: 1rem 1.5rem 1.5rem;
}

.accordion-content p {
 margin-bottom: 0;
 color: #666;
 line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
 background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
 color: white;
 padding: 4rem 1.5rem;
 text-align: center;
}

.cta-banner .container {
 display: flex;
 flex-direction: column;
 align-items: center;
}

.cta-title {
 color: white;
 font-size: 2.2em;
 margin-bottom: 1rem;
}

.cta-description {
 font-size: 1.1em;
 max-width: 700px;
 margin-bottom: 2rem;
 color: rgba(255, 255, 255, 0.9);
}

.cta-banner .btn-accent {
 background-color: white;
 color: var(--primary-color);
 border-color: white;
}

.cta-banner .btn-accent:hover {
 background-color: var(--background-light);
 color: var(--accent-color);
 border-color: var(--background-light);
}

/* Footer */
.footer {
 background-color: var(--footer-bg-color);
 color: var(--text-color-light);
 padding-top: 3rem;
 font-size: 0.95em;
}

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

.footer-col h3 {
 color: white;
 margin-bottom: 1.2rem;
 font-size: 1.1em;
 font-weight: 600;
}

.footer-col p,
.footer-col ul li {
 margin-bottom: 0.7rem;
 color: rgba(255, 255, 255, 0.8);
}

.footer-col a {
 color: rgba(255, 255, 255, 0.8);
 transition: color 0.3s ease;
}

.footer-col a:hover {
 color: var(--accent-color);
 text-decoration: underline;
}

.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding: 1.5rem 0;
 text-align: center;
 color: rgba(255, 255, 255, 0.7);
 font-size: 0.9em;
}

/* Specific to other pages */
.page-hero {
 background-color: var(--primary-color);
 color: white;
 padding: 4rem 1.5rem;
 text-align: center;
}

.page-hero h1 {
 color: white;
 font-size: 3em;
 margin-bottom: 0.5rem;
}

.page-hero p {
 font-size: 1.1em;
 max-width: 800px;
 margin: 0 auto;
}

/* Contact Page Styles */
.contact-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 3rem;
 text-align: left;
 margin-top: 3rem;
}

.contact-form label {
 display: block;
 margin-bottom: 0.5rem;
 font-weight: 600;
 color: var(--text-color-dark);
}

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

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

.contact-form textarea {
 min-height: 120px;
 resize: vertical;
}

.contact-info {
 padding: 1.5rem;
 background-color: var(--background-light);
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info h3 {
 color: var(--primary-color);
 margin-bottom: 1rem;
}

.contact-info div {
 margin-bottom: 1.5rem;
}

.contact-info div:last-child {
 margin-bottom: 0;
}

.contact-info p {
 margin-bottom: 0.3em;
 color: #444;
}

.contact-info p strong {
 color: var(--text-color-dark);
}

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

.contact-info a:hover {
 color: var(--accent-color);
 text-decoration: underline;
}

.gmaps-iframe {
 width: 100%;
 height: 400px;
 border-radius: 8px;
 overflow: hidden;
 margin-top: 2rem;
 box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Services Page */
.service-details {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 3rem;
 margin-bottom: 4rem;
 align-items: center;
 text-align: left;
}

.service-details:nth-of-type(even) {
 direction: rtl; /* Flip order for even sections */
}

.service-details:nth-of-type(even) > div {
 direction: ltr; /* Reset text direction */
}

.service-details img {
 max-width: 100%;
 height: auto;
 border-radius: 8px;
 box-shadow: 0 8px 30px var(--shadow-color);
}

.service-details h3 {
 margin-top: 0;
 font-size: 1.7em;
}

.service-details p {
 font-size: 1.05em;
 color: #444;
}

.services-process {
 background-color: var(--background-light);
 padding: 4rem 0;
}

.services-process h2 {
 margin-bottom: 2.5rem;
}

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

.process-step {
 background-color: var(--background-white);
 padding: 2rem;
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0,0,0,0.05);
 text-align: center;
 border-top: 3px solid var(--primary-color);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
 transform: translateY(-5px);
 box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.process-step .step-number {
 display: inline-block;
 width: 50px;
 height: 50px;
 line-height: 50px;
 border-radius: 50%;
 background-color: var(--accent-color);
 color: white;
 font-size: 1.5em;
 font-weight: 700;
 margin-bottom: 1rem;
}

.process-step h4 {
 color: var(--primary-color);
 font-size: 1.3em;
 margin-bottom: 0.8rem;
}

.process-step p {
 font-size: 0.95em;
 color: #666;
 margin-bottom: 0;
}

/* About Page */
.mission-values-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 3rem;
 text-align: left;
 margin-top: 3rem;
}

.mission-values-grid h3 {
 font-size: 1.7em;
 color: var(--primary-color);
}

.our-values ul {
 list-style: disc;
 padding-left: 20px;
}

.our-values ul li {
 margin-bottom: 0.8em;
 color: #444;
}

.team-section {
 background-color: var(--background-light);
}

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

.team-member-card {
 background-color: var(--background-white);
 border-radius: 8px;
 overflow: hidden;
 box-shadow: 0 4px 15px rgba(0,0,0,0.05);
 text-align: center;
 padding: 1.5rem;
 transition: transform 0.3s ease;
 border-bottom: 3px solid var(--primary-color);
}

.team-member-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.team-member-card img {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 1rem;
 border: 3px solid var(--accent-color);
}

.team-member-card h4 {
 color: var(--primary-color);
 margin-bottom: 0.5rem;
 font-size: 1.2em;
}

.team-member-card p {
 font-size: 0.9em;
 color: #666;
 margin-bottom: 0;
}

/* Blog Post Page */
.blog-post-content {
 max-width: 800px;
 margin: 0 auto;
 padding: 2rem 0;
 text-align: left;
}

.blog-post-content h1 {
 font-size: 2.8em;
 color: var(--text-color-dark);
 margin-bottom: 0.5rem;
}

.blog-meta {
 font-size: 0.9em;
 color: #777;
 margin-bottom: 2rem;
 display: flex;
 justify-content: space-between;
 align-items: center;
 border-bottom: 1px solid var(--border-color);
 padding-bottom: 1rem;
}

.blog-meta .author-info {
 display: flex;
 align-items: center;
}

.blog-meta .author-info img {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 object-fit: cover;
 margin-right: 0.8rem;
}

.blog-post-content img {
 max-width: 100%;
 height: auto;
 border-radius: 8px;
 margin: 2rem 0;
 box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.blog-post-content p {
 font-size: 1.1em;
 line-height: 1.8;
 margin-bottom: 1.5rem;
}

.blog-post-content ul, .blog-post-content ol {
 margin-bottom: 1.5rem;
 padding-left: 20px;
 color: #444;
}

.blog-post-content ul li {
 list-style: disc;
 margin-bottom: 0.5em;
}

.blog-post-content ol li {
 list-style: decimal;
 margin-bottom: 0.5em;
}

.blog-post-content strong {
 color: var(--primary-color);
}

.related-posts {
 margin-top: 4rem;
 border-top: 1px solid var(--border-color);
 padding-top: 3rem;
}

.related-posts h2 {
 text-align: center;
 margin-bottom: 2.5rem;
}

.related-posts .blog-cards-grid {
 margin-top: 0; /* Override default margin */
}

/* Gallery page */
.gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 1rem;
 margin-top: 3rem;
}

.gallery-item {
 overflow: hidden;
 border-radius: 8px;
 box-shadow: 0 4px 10px rgba(0,0,0,0.1);
 position: relative;
 cursor: zoom-in;
}

.gallery-item img {
 width: 100%;
 height: 250px;
 object-fit: cover;
 display: block;
 transition: transform 0.3s ease;
}

.gallery-item:hover img {
 transform: scale(1.05);
}

/* Lightbox styles */
.lightbox {
 display: none;
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.85);
 z-index: 2000;
 justify-content: center;
 align-items: center;
 overflow: hidden;
}

.lightbox-content {
 max-width: 90%;
 max-height: 90%;
 position: relative;
}

.lightbox-content img {
 width: auto;
 height: auto;
 max-width: 100%;
 max-height: 100%;
 display: block;
 border-radius: 8px;
 box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
 position: absolute;
 top: 20px;
 right: 30px;
 color: white;
 font-size: 2.5em;
 cursor: pointer;
 z-index: 2001;
 transition: color 0.3s ease;
}

.lightbox-close:hover {
 color: var(--accent-color);
}

/* Legal pages */
.legal-content {
 max-width: 800px;
 margin: 0 auto;
 padding: 2rem 0;
 text-align: left;
}

.legal-content h2 {
 font-size: 2em;
 color: var(--text-color-dark);
 margin-bottom: 1.5rem;
}

.legal-content h3 {
 font-size: 1.5em;
 color: var(--primary-color);
 margin-top: 2rem;
 margin-bottom: 0.8rem;
}

.legal-content p {
 margin-bottom: 1.2rem;
 line-height: 1.7;
 color: #444;
}

.legal-content ul {
 list-style: disc;
 padding-left: 20px;
 margin-bottom: 1.5rem;
 color: #444;
}

.legal-content ol {
 list-style: decimal;
 padding-left: 20px;
 margin-bottom: 1.5rem;
 color: #444;
}

.legal-content li {
 margin-bottom: 0.5em;
}

/* Thank you page */
.thanks-container {
 padding: 6rem 1.5rem;
 text-align: center;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 min-height: calc(100vh - var(--header-height) - 150px); /* Adjust based on footer height */
}

.thanks-container h1 {
 font-size: 3em;
 color: var(--primary-color);
 margin-bottom: 1rem;
}

.thanks-container p {
 font-size: 1.2em;
 max-width: 600px;
 margin-bottom: 2rem;
 color: #555;
}

/* 404 page */
.error-container {
 padding: 6rem 1.5rem;
 text-align: center;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 min-height: calc(100vh - var(--header-height) - 150px); /* Adjust based on footer height */
}

.error-container h1 {
 font-size: 5em;
 color: var(--accent-color);
 margin-bottom: 0.5rem;
}

.error-container h2 {
 font-size: 2.5em;
 color: var(--text-color-dark);
 margin-bottom: 1rem;
}

.error-container p {
 font-size: 1.2em;
 max-width: 600px;
 margin-bottom: 2rem;
 color: #555;
}

/* Scroll Reveal Animations */
.reveal {
 opacity: 0;
 transform: translateY(20px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
 opacity: 1;
 transform: translateY(0);
}

.reveal.fade-bottom {
 transform: translateY(20px);
}

.reveal.fade-left {
 transform: translateX(-20px);
}

.reveal.fade-right {
 transform: translateX(20px);
}

.reveal.delay-2 {
 transition-delay: 0.1s;
}
.reveal.delay-4 {
 transition-delay: 0.2s;
}
.reveal.delay-6 {
 transition-delay: 0.3s;
}

/* Media Queries */
@media (max-width: 1024px) {
 .container {
 padding: 0 1rem;
 }

 .nav-links li {
 margin-left: 1.5rem;
 }

 .hero h1 {
 font-size: 2.8em;
 }
 .hero p {
 font-size: 1.1em;
 }

 .about-grid {
 grid-template-columns: 1fr;
 }
 .about-image {
 order: -1; /* Image first on mobile */
 margin-bottom: 2rem;
 }

 .service-details {
 grid-template-columns: 1fr;
 direction: ltr !important; /* Reset for mobile */
 }
 .service-details img {
 margin-bottom: 1.5rem;
 }

 .contact-grid {
 grid-template-columns: 1fr;
 }
 .contact-info {
 margin-top: 2rem;
 }

 .mission-values-grid {
 grid-template-columns: 1fr;
 }
}

@media (max-width: 768px) {
 .navbar {
 padding: 1rem;
 }

 .hero {
 min-height: 450px;
 padding: 4rem 1rem;
 }

 .hero h1 {
 font-size: 2.2em;
 }

 .hero p {
 font-size: 1em;
 }

 .hero-buttons {
 flex-direction: column;
 gap: 1rem;
 }

 .nav-toggle {
 display: flex;
 }

 .nav-links {
 position: fixed;
 right: -100%;
 top: var(--header-height);
 width: 70%;
 height: calc(100vh - var(--header-height));
 background-color: var(--footer-bg-color); /* Dark background for mobile menu */
 flex-direction: column;
 align-items: center;
 justify-content: flex-start;
 transition: right 0.4s ease-in-out;
 padding: 2rem 0;
 box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
 }

 .nav-links.active {
 right: 0;
 }

 .nav-links li {
 margin: 1rem 0;
 width: 100%;
 text-align: center;
 }

 .nav-links a {
 color: white;
 font-size: 1.2em;
 width: 100%;
 display: block;
 padding: 0.8rem 0;
 }

 .nav-links a::after {
 background-color: var(--accent-color);
 height: 1px;
 }

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

 .section {
 padding: 3rem 0;
 }

 h1 { font-size: 2.2em; }
 h2 { font-size: 1.8em; }
 h3 { font-size: 1.3em; }

 .features-grid,
 .services-row,
 .blog-cards-grid,
 .team-grid,
 .process-steps {
 grid-template-columns: 1fr;
 }

 .testimonial-slider-container {
 padding: 0 1rem; /* Reduce padding for smaller screens */
 }
 .slider-nav {
 display: none; /* Hide nav buttons on small screens, rely on swipe */
 }

 .cta-banner {
 padding: 3rem 1rem;
 }
 .cta-title {
 font-size: 1.8em;
 }

 .footer-container {
 grid-template-columns: 1fr;
 text-align: center;
 }
 .footer-col ul {
 padding: 0;
 }
 .footer-bottom {
 padding: 1rem 0;
 }

 .blog-post-content h1 {
 font-size: 2em;
 }

 .legal-content h2 {
 font-size: 1.8em;
 }
 .legal-content h3 {
 font-size: 1.3em;
 }

 .error-container h1 {
 font-size: 4em;
 }
 .error-container h2 {
 font-size: 2em;
 }
}

@media (max-width: 480px) {
 .logo {
 font-size: 1.4em;
 }
 .nav-links {
 width: 85%; /* Make mobile menu slightly wider */
 }

 .hero h1 {
 font-size: 1.8em;
 line-height: 1.3;
 }
 .hero p {
 font-size: 0.9em;
 }
 .hero-buttons .btn {
 padding: 0.8rem 1.5rem;
 font-size: 1em;
 }

 .section {
 padding: 2.5rem 0;
 }
 .section-description {
 font-size: 0.95em;
 }

 h2 {
 font-size: 1.6em;
 }
 h3 {
 font-size: 1.2em;
 }

 .feature-item, .service-card, .blog-card, .team-member-card, .process-step {
 padding: 1.5rem 1rem;
 }

 .testimonial-item {
 padding: 2rem 1rem;
 }
 .testimonial-text {
 font-size: 1em;
 }

 .cta-title {
 font-size: 1.6em;
 }
 .cta-description {
 font-size: 1em;
 }

 .accordion-header {
 font-size: 1em;
 padding: 1rem;
 }
 .accordion-content {
 padding: 0.5rem 1rem 1rem;
 }

 .blog-post-content h1 {
 font-size: 1.8em;
 }
 .blog-post-content p {
 font-size: 1em;
 }

 .legal-content h2 {
 font-size: 1.6em;
 }
 .legal-content h3 {
 font-size: 1.2em;
 }
 .legal-content p {
 font-size: 0.95em;
 }

 .error-container h1 {
 font-size: 3em;
 }
 .error-container h2 {
 font-size: 1.8em;
 }
 .error-container p {
 font-size: 1em;
 }
}