/* Custom Properties */
:root {
 --primary-color: #1e3a5f;
 --accent-color: #4a90d9;
 --light-bg-color: #f8fafc;
 --white-color: #ffffff;
 --text-color: #333333;
 --light-text-color: #666666;
 --border-color: #e0e0e0;
 --dark-footer-bg: #112a42; /* A darker shade of primary for footer */
}

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

html {
 scroll-behavior: smooth;
}

body {
 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 line-height: 1.6;
 color: var(--text-color);
 background-color: var(--white-color);
 overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

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

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

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

ul {
 list-style: none;
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
 color: var(--primary-color);
 margin-bottom: 0.8em;
 font-weight: 700;
}

h1 {
 font-size: 2.8em;
 line-height: 1.2;
}

h2 {
 font-size: 2.2em;
 text-align: center;
 margin-bottom: 1em;
}

h3 {
 font-size: 1.6em;
}

.section-subtitle {
 text-align: center;
 max-width: 700px;
 margin: -0.5em auto 2.5em;
 font-size: 1.1em;
 color: var(--light-text-color);
}

.section-padding {
 padding: 80px 0;
}

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

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

/* Buttons */
.btn {
 display: inline-block;
 padding: 12px 28px;
 border-radius: 5px;
 font-size: 1em;
 font-weight: 600;
 text-align: center;
 cursor: pointer;
 transition: all 0.3s ease;
 border: 2px solid transparent;
 white-space: nowrap; /* Prevent button text from wrapping */
}

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

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

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

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

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

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

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

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

/* Header */
header {
 background-color: var(--white-color);
 padding: 15px 0;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
 position: sticky;
 top: 0;
 z-index: 1000;
 transition: background-color 0.3s ease, padding 0.3s ease;
}

header.scrolled {
 padding: 10px 0;
 background-color: rgba(255, 255, 255, 0.95);
 box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

nav {
 display: flex;
 justify-content: space-between;
 align-items: center;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 15px;
}

.logo {
 font-size: 1.8em;
 font-weight: 700;
 color: var(--primary-color);
 text-transform: uppercase;
}

.nav-links {
 display: flex;
 gap: 30px;
}

.nav-links a {
 color: var(--primary-color);
 font-weight: 500;
 font-size: 1.05em;
 padding: 5px 0;
 position: relative;
}

.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;
}

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

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 padding: 0;
 width: 30px;
 height: 22px;
 position: relative;
}

.nav-toggle span {
 display: block;
 width: 100%;
 height: 3px;
 background-color: var(--primary-color);
 border-radius: 2px;
 position: absolute;
 left: 0;
 transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-toggle.active span:nth-child(1) {
 transform: rotate(45deg);
 top: 9px;
}
.nav-toggle.active span:nth-child(2) {
 opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
 transform: rotate(-45deg);
 top: 9px;
}

/* Hero Section */
.hero {
 position: relative;
 height: 80vh;
 min-height: 500px;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--white-color);
 background-image: url('https://images.pexels.com/photos/4458206/pexels-photo-4458206.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
 background-size: cover;
 background-position: center;
}

.hero-overlay {
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background: rgba(0, 0, 0, 0.35); /* Uniform semi-transparent overlay */
}

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

.hero h1 {
 color: var(--white-color);
 font-size: 3.5em;
 margin-bottom: 0.5em;
 text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

.hero p {
 font-size: 1.3em;
 margin-bottom: 2em;
 text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.hero-buttons {
 display: flex;
 justify-content: center;
 gap: 20px;
 flex-wrap: wrap;
}

/* Features Grid (Why Choose Us) */
.features-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 30px;
 margin-top: 40px;
}

.feature-item {
 background-color: var(--white-color);
 padding: 30px;
 border-radius: 10px;
 box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
 text-align: center;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
 transform: translateY(-10px);
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

.feature-icon img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 border-radius: 50%;
}

.feature-item h3 {
 font-size: 1.4em;
 margin-bottom: 10px;
 color: var(--primary-color);
}

.feature-item p {
 color: var(--light-text-color);
}

/* Service Blocks (alternating left-right) */
.service-block {
 display: flex;
 align-items: center;
 gap: 60px;
 margin-bottom: 60px;
 opacity: 0; /* For scroll animation */
 transform: translateY(50px); /* For scroll animation */
 transition: all 0.7s ease-out;
}

.service-block.animate {
 opacity: 1;
 transform: translateY(0);
}

.service-block:last-child {
 margin-bottom: 0;
}

.service-block .service-image {
 flex: 1;
 min-width: 400px;
 border-radius: 10px;
 overflow: hidden;
 box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-block .service-image img {
 width: 100%;
 height: 400px;
 object-fit: cover;
 display: block;
 transition: transform 0.3s ease;
}

.service-block .service-image img:hover {
 transform: scale(1.05);
}

.service-block .service-content {
 flex: 1;
 padding-right: 20px;
}

.service-block.reverse .service-content {
 padding-left: 20px;
 padding-right: 0;
}

.service-block h3 {
 font-size: 2em;
 margin-bottom: 15px;
 color: var(--primary-color);
}

.service-block p {
 margin-bottom: 20px;
 color: var(--light-text-color);
}

.service-block ul {
 list-style: none;
 margin-bottom: 25px;
}

.service-block ul li {
 padding-left: 30px;
 position: relative;
 margin-bottom: 10px;
 font-size: 1.05em;
 color: var(--text-color);
}

.service-block ul li::before {
 content: ''; /* Checkmark icon */
 color: var(--accent-color);
 font-weight: bold;
 position: absolute;
 left: 0;
 top: 0;
}

/* About Us Preview */
.about-content-preview {
 display: flex;
 align-items: center;
 gap: 40px;
 margin-top: 40px;
}

.about-image {
 flex: 1;
 min-width: 300px;
 border-radius: 10px;
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
 height: 350px;
 object-fit: cover;
}

.about-text {
 flex: 2;
}

.about-text p {
 margin-bottom: 20px;
 color: var(--light-text-color);
}

/* Testimonials Slider */
.testimonials-slider {
 display: flex;
 overflow-x: auto; /* Enable horizontal scrolling */
 scroll-snap-type: x mandatory;
 gap: 30px;
 padding-bottom: 20px; /* Space for scrollbar */
 -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.testimonials-slider::-webkit-scrollbar {
 height: 8px;
}
.testimonials-slider::-webkit-scrollbar-thumb {
 background-color: var(--primary-color);
 border-radius: 10px;
}
.testimonials-slider::-webkit-scrollbar-track {
 background-color: var(--border-color);
 border-radius: 10px;
}

.testimonial-item {
 flex: 0 0 450px; /* Fixed width for items */
 scroll-snap-align: start;
 background-color: var(--white-color);
 padding: 30px;
 border-radius: 10px;
 box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
 text-align: center;
 min-height: 280px;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.client-photo {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 15px;
 border: 3px solid var(--accent-color);
}

.quote {
 font-style: italic;
 font-size: 1.1em;
 margin-bottom: 15px;
 color: var(--text-color);
}

.client-name {
 font-weight: 600;
 color: var(--primary-color);
}

/* Blog Preview */
.blog-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
 margin-top: 40px;
 margin-bottom: 50px;
}

.blog-card {
 background-color: var(--white-color);
 border-radius: 10px;
 box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
 overflow: hidden;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card img {
 width: 100%;
 height: 220px;
 object-fit: cover;
 border-bottom: 1px solid var(--border-color);
}

.blog-card h3 {
 font-size: 1.4em;
 padding: 20px 20px 0;
 margin-bottom: 10px;
}

.blog-card h3 a {
 color: var(--primary-color);
 transition: color 0.3s ease;
}

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

.blog-card p {
 padding: 0 20px 20px;
 color: var(--light-text-color);
}

.blog-card .read-more {
 display: block;
 padding: 0 20px 20px;
 font-weight: 600;
 color: var(--accent-color);
}

.blog-card .read-more:hover {
 text-decoration: underline;
}

/* FAQ Accordion */
.accordion-container {
 max-width: 800px;
 margin: 40px auto;
}

.accordion-item {
 border: 1px solid var(--border-color);
 border-radius: 8px;
 margin-bottom: 15px;
 overflow: hidden;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.accordion-header {
 width: 100%;
 padding: 20px 25px;
 background-color: var(--white-color);
 color: var(--primary-color);
 font-size: 1.15em;
 font-weight: 600;
 text-align: left;
 border: none;
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
 transition: background-color 0.3s ease;
}

.accordion-header:hover,
.accordion-header.active {
 background-color: var(--light-bg-color);
}

.accordion-icon {
 display: block;
 width: 20px;
 height: 20px;
 position: relative;
 transform: rotate(0deg);
 transition: transform 0.3s ease;
}

.accordion-icon::before,
.accordion-icon::after {
 content: '';
 position: absolute;
 background-color: var(--primary-color);
 transition: transform 0.3s ease, background-color 0.3s ease;
}

.accordion-icon::before {
 width: 100%;
 height: 2px;
 top: 9px;
 left: 0;
}

.accordion-icon::after {
 width: 2px;
 height: 100%;
 top: 0;
 left: 9px;
}

.accordion-header.active .accordion-icon::after {
 transform: scaleY(0);
}

.accordion-content {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out, padding 0.4s ease-out;
 padding: 0 25px;
 background-color: var(--white-color);
}

.accordion-content.active {
 max-height: 200px; /* Sufficient height for most answers, adjust as needed */
 padding: 15px 25px 25px;
}

.accordion-content p {
 color: var(--light-text-color);
 font-size: 1em;
}

/* Call to Action Section */
.cta-section {
 background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
 color: var(--white-color);
 text-align: center;
 padding: 80px 0;
}

.cta-section h2 {
 color: var(--white-color);
 font-size: 2.5em;
 margin-bottom: 0.5em;
}

.cta-section p {
 font-size: 1.2em;
 margin-bottom: 30px;
 max-width: 700px;
 margin-left: auto;
 margin-right: auto;
 text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Footer
 */
footer {
 background-color: var(--dark-footer-bg);
 color: var(--white-color);
 padding: 60px 0 20px;
 font-size: 0.95em;
}

.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 30px;
 margin-bottom: 40px;
}

.footer-col h3 {
 color: var(--accent-color);
 margin-bottom: 20px;
 font-size: 1.3em;
}

.footer-col p {
 margin-bottom: 10px;
 color: #cccccc;
}

.footer-col ul {
 padding: 0;
}

.footer-col ul li {
 margin-bottom: 10px;
}

.footer-col ul li a {
 color: #cccccc;
 transition: color 0.3s ease;
}

.footer-col ul li a:hover {
 color: var(--accent-color);
}

.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding-top: 20px;
 text-align: center;
 color: #cccccc;
}

/* Blog Post Page Specifics */
.blog-post-header {
 background-color: var(--primary-color);
 color: var(--white-color);
 padding: 60px 0 40px;
 text-align: center;
}

.blog-post-header h1 {
 color: var(--white-color);
 font-size: 2.5em;
 margin-bottom: 15px;
}

.blog-meta {
 font-size: 0.9em;
 color: rgba(255, 255, 255, 0.7);
 margin-bottom: 20px;
}

.blog-content {
 padding: 40px 0;
 max-width: 900px;
 margin: 0 auto;
}

.blog-content p,
.blog-content ul,
.blog-content ol {
 margin-bottom: 1em;
 line-height: 1.7;
 font-size: 1.1em;
 color: var(--text-color);
}

.blog-content h2,
.blog-content h3 {
 margin-top: 1.5em;
 margin-bottom: 0.8em;
 color: var(--primary-color);
}

.blog-content ul,
.blog-content ol {
 padding-left: 25px;
}

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

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

.author-info {
 display: flex;
 align-items: center;
 margin-top: 50px;
 padding: 20px;
 background-color: var(--light-bg-color);
 border-radius: 8px;
 border: 1px solid var(--border-color);
}

.author-info img {
 width: 70px;
 height: 70px;
 border-radius: 50%;
 object-fit: cover;
 margin-right: 20px;
 border: 2px solid var(--accent-color);
}

.author-info h4 {
 margin-bottom: 5px;
 color: var(--primary-color);
}

/* Services Page Card Grid */
.services-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 30px;
 margin-top: 40px;
}

.service-card {
 background-color: var(--white-color);
 padding: 30px;
 border-radius: 10px;
 box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
 text-align: center;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 border-top: 5px solid var(--primary-color);
}

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

.service-card .card-icon {
 width: 60px;
 height: 60px;
 margin: 0 auto 20px;
 background-color: var(--accent-color);
 border-radius: 50%;
 display: flex;
 justify-content: center;
 align-items: center;
 font-size: 2em;
 color: var(--white-color);
}

.service-card h3 {
 font-size: 1.5em;
 margin-bottom: 15px;
}

.service-card p {
 color: var(--light-text-color);
 margin-bottom: 20px;
}

/* Service Process Section */
.process-steps {
 display: flex;
 justify-content: space-between;
 gap: 30px;
 margin-top: 60px;
 flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.process-step {
 flex: 1;
 min-width: 250px;
 text-align: center;
 position: relative;
 padding: 20px;
}

.process-step::after {
 content: '→';
 position: absolute;
 right: -30px;
 top: 50px;
 font-size: 2em;
 color: var(--border-color);
 z-index: -1;
}

.process-steps .process-step:last-child::after {
 content: none;
}

.step-number {
 display: inline-block;
 width: 60px;
 height: 60px;
 line-height: 60px;
 border-radius: 50%;
 background-color: var(--primary-color);
 color: var(--white-color);
 font-size: 1.8em;
 font-weight: bold;
 margin-bottom: 20px;
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.process-step p {
 color: var(--light-text-color);
}

/* Contact Page Form */
.contact-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 50px;
 margin-top: 40px;
}

.contact-form {
 background-color: var(--white-color);
 padding: 40px;
 border-radius: 10px;
 box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
 margin-bottom: 20px;
}

.form-group label {
 display: block;
 margin-bottom: 8px;
 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: 100%;
 padding: 12px;
 border: 1px solid var(--border-color);
 border-radius: 5px;
 font-size: 1em;
 color: var(--text-color);
 transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.2); /* Accent color with transparency */
 outline: none;
}

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

.contact-info-block {
 padding: 40px 0;
}

.contact-info-block h3 {
 margin-bottom: 20px;
}

.contact-detail {
 display: flex;
 align-items: flex-start;
 margin-bottom: 25px;
}

.contact-detail i {
 font-size: 1.8em;
 color: var(--accent-color);
 margin-right: 15px;
 min-width: 30px;
}

.contact-detail span, .contact-detail a {
 color: var(--light-text-color);
 font-size: 1.1em;
}

.contact-detail a {
 word-break: break-all; /* For long emails/addresses */
}

.map-container {
 margin-top: 40px;
 border-radius: 10px;
 overflow: hidden;
 box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
 width: 100%;
 height: 450px;
 border: 0;
}

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

.gallery-item {
 border-radius: 8px;
 overflow: hidden;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 cursor: pointer;
 transition: transform 0.3s ease;
}

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

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

/* Lightbox styles (simplified for this example, usually more complex JS) */
.lightbox {
 display: none; /* Hidden by default */
 position: fixed;
 z-index: 1001; /* Higher than header */
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 overflow: auto;
 background-color: rgba(0, 0, 0, 0.8);
 align-items: center;
 justify-content: center;
}

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

.lightbox-close {
 position: absolute;
 top: 20px;
 right: 35px;
 color: white;
 font-size: 40px;
 font-weight: bold;
 transition: 0.3s;
 cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
 color: #bbb;
 text-decoration: none;
 cursor: pointer;
}

/* Legal Pages */
.legal-content {
 max-width: 900px;
 margin: 0 auto;
 padding: 40px 0;
}

.legal-content h1 {
 font-size: 2.2em;
 margin-bottom: 30px;
 text-align: center;
}

.legal-content h2 {
 font-size: 1.8em;
 margin-top: 1.5em;
 margin-bottom: 0.8em;
 text-align: left;
}

.legal-content h3 {
 font-size: 1.4em;
 margin-top: 1em;
 margin-bottom: 0.5em;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
 margin-bottom: 1em;
 line-height: 1.7;
 color: var(--light-text-color);
}

.legal-content ul,
.legal-content ol {
 padding-left: 20px;
}

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

.legal-content a {
 font-weight: 600;
}

/* Thank You Page */
.thanks-container {
 text-align: center;
 padding: 100px 20px;
 min-height: 60vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

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

.thanks-container p {
 font-size: 1.3em;
 color: var(--text-color);
 margin-bottom: 40px;
 max-width: 600px;
}

/* 404 Page */
.error-container {
 text-align: center;
 padding: 100px 20px;
 min-height: 60vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.error-container h1 {
 font-size: 6em;
 color: var(--accent-color);
 margin-bottom: 10px;
 text-shadow: 3px 3px 6px rgba(0,0,0,0.1);
}

.error-container h2 {
 font-size: 2.5em;
 color: var(--primary-color);
 margin-bottom: 20px;
}

.error-container p {
 font-size: 1.2em;
 color: var(--text-color);
 margin-bottom: 40px;
 max-width: 600px;
}

/* Responsive Design */
@media (max-width: 1024px) {
 .nav-links {
 gap: 20px;
 }

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

 h1 {
 font-size: 2.5em;
 }

 h2 {
 font-size: 2em;
 }

 .service-block .service-image img {
 height: 300px;
 }
}

@media (max-width: 768px) {
 /* Header & Nav */
 .nav-links {
 display: none;
 flex-direction: column;
 position: absolute;
 top: 70px; /* Adjust based on header height */
 left: 0;
 width: 100%;
 background-color: var(--white-color);
 box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
 padding: 20px 0;
 border-top: 1px solid var(--border-color);
 animation: slideDown 0.3s ease-out forwards;
 }

 .nav-links.active {
 display: flex;
 }

 .nav-links li {
 text-align: center;
 margin: 10px 0;
 }

 .nav-links a {
 padding: 10px 0;
 display: block;
 font-size: 1.2em;
 color: var(--primary-color);
 }
 .nav-links a::after {
 display: none; /* Hide underline on mobile */
 }
 .nav-links a:hover {
 background-color: var(--light-bg-color);
 }

 .nav-toggle {
 display: block;
 }

 @keyframes slideDown {
 from { transform: translateY(-100%); opacity: 0; }
 to { transform: translateY(0); opacity: 1; }
 }

 /* Hero Section */
 .hero {
 height: 60vh;
 min-height: 400px;
 }
 .hero h1 {
 font-size: 2.2em;
 }
 .hero p {
 font-size: 1em;
 }
 .hero-buttons {
 flex-direction: column;
 gap: 15px;
 }

 .btn {
 padding: 10px 20px;
 }

 /* Sections */
 .section-padding {
 padding: 60px 0;
 }

 h1 {
 font-size: 2em;
 }

 h2 {
 font-size: 1.8em;
 }

 /* Why Choose Us */
 .features-grid {
 grid-template-columns: 1fr;
 }

 /* Service Blocks */
 .service-block {
 flex-direction: column;
 text-align: center;
 gap: 30px;
 }
 .service-block.reverse {
 flex-direction: column; /* Reset order for small screens */
 }

 .service-block .service-image {
 min-width: 100%;
 }
 .service-block .service-image.left,
 .service-block .service-image.right {
 order: -1; /* Image always on top */
 }
 .service-block .service-content {
 padding: 0; /* Remove padding for alternating content */
 }
 .service-block.reverse .service-content {
 padding: 0;
 }
 .service-block ul {
 text-align: left; /* Keep list aligned left */
 margin-left: auto;
 margin-right: auto;
 max-width: 400px;
 }

 /* About Us Preview */
 .about-content-preview {
 flex-direction: column;
 text-align: center;
 }
 .about-image {
 min-width: 80%;
 height: 250px;
 }

 /* Testimonials Slider */
 .testimonial-item {
 flex: 0 0 85%; /* Make items take more width */
 }

 /* Blog Grid */
 .blog-grid {
 grid-template-columns: 1fr;
 }

 /* FAQ Accordion */
 .accordion-header {
 font-size: 1em;
 padding: 15px 20px;
 }
 .accordion-content.active {
 padding: 10px 20px 20px;
 }

 /* CTA Section */
 .cta-section h2 {
 font-size: 2em;
 }
 .cta-section p {
 font-size: 1em;
 }

 /* Footer */
 .footer-grid {
 grid-template-columns: 1fr;
 text-align: center;
 }
 .footer-col ul {
 display: inline-block; /* For centering list items */
 text-align: left;
 }

 /* Contact Page */
 .contact-grid {
 grid-template-columns: 1fr;
 }
 .contact-info-block {
 padding-top: 0;
 }
 .contact-detail {
 justify-content: center;
 text-align: left;
 }

 /* Gallery page */
 .gallery-grid {
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 }
 .gallery-item img {
 height: 200px;
 }

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

 .process-step {
 width: 100%;
 padding-bottom: 40px; /* Space for arrow */
 }

 .process-step::after {
 content: '↓'; /* Arrow points down */
 left: 50%;
 top: auto;
 bottom: 0;
 transform: translateX(-50%);
 }

 .process-steps .process-step:last-child::after {
 content: none;
 }

 .testimonial-item {
 flex: 0 0 95%; /* Adjust width for better single-item view */
 }
}

@media (max-width: 480px) {
 .container {
 padding: 0 10px;
 }

 h1 {
 font-size: 1.8em;
 }
 h2 {
 font-size: 1.6em;
 }
 h3 {
 font-size: 1.4em;
 }

 .hero h1 {
 font-size: 1.8em;
 }
 .hero p {
 font-size: 0.9em;
 }

 .btn {
 width: 100%;
 max-width: 250px;
 }

 .testimonial-item {
 flex: 0 0 100%; /* Full width for very small screens */
 }

 .logo {
 font-size: 1.5em;
 }
 header.scrolled .logo {
 font-size: 1.4em;
 }
}