@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* CSS Variables */
:root {
 --primary-color: #0284c7; /* Brand blue */
 --accent-color: #7dd3fc; /* Light blue accent */
 --dark-primary: #0369a1; /* Darker primary for hover */
 --darkest-blue: #0A192F; /* For footer background */

 --text-color: #333;
 --light-text-color: #555;
 --white-text: #fff;

 --bg-light: #f8fafc; /* Light background */
 --bg-white: #ffffff;
 --bg-alt: #f1f5f9; /* Slightly darker light background */

 --border-color: #e2e8f0;
 --shadow-light: rgba(0, 0, 0, 0.08);
 --shadow-medium: rgba(0, 0, 0, 0.15);

 --font-family-sans: 'Roboto', sans-serif;
 --font-size-base: 1rem;
 --line-height-base: 1.6;

 --heading-font-weight: 700;
 --body-font-weight: 400;

 --border-radius-sm: 0.25rem;
 --border-radius-md: 0.5rem;
 --transition-speed: 0.3s;
}

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

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

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

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: color var(--transition-speed), opacity var(--transition-speed);
}

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

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
 margin-bottom: 1em;
}

ul {
 list-style: none; /* remove default list bullets */
}

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

.section-padding {
 padding: 4rem 0; /* Standard section padding */
}

.section-padding-large {
 padding: 6rem 0;
}

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

.bg-light { background-color: var(--bg-light); }
.bg-alt { background-color: var(--bg-alt); }
.bg-white { background-color: var(--bg-white); }
.bg-light-blue {background-color: color-mix(in srgb, var(--primary-color) 5%, var(--bg-white));}
.bg-dark-blue { background-color: var(--darkest-blue); }
.white-text { color: var(--white-text); }
.white-text h1, .white-text h2, .white-text h3, .white-text h4, .white-text p {
 color: var(--white-text);
}

.section-header {
 margin-bottom: 3rem;
 text-align: center;
}

.section-header h2 {
 margin-bottom: 1rem;
 font-size: 2.5rem;
}

.section-description {
 font-size: 1.15rem;
 max-width: 800px;
 margin: 0 auto 2rem;
 color: var(--light-text-color);
}
.white-text .section-description {
 color: color-mix(in srgb, var(--white-text) 80%, var(--darkest-blue));
}

.mt-larger { margin-top: 2.5rem; }
.mb-larger { margin-bottom: 2.5rem; }

/* Buttons */
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 padding: 0.8rem 1.8rem;
 border-radius: var(--border-radius-md);
 font-size: 1rem;
 font-weight: 500;
 cursor: pointer;
 text-align: center;
 transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed), transform var(--transition-speed);
 line-height: inherit; /* Ensure button text doesn't affect surrounding line height */
 white-space: nowrap;
}

.btn-primary {
 background-color: var(--primary-color);
 color: var(--white-text);
 border: 1px solid var(--primary-color);
}

.btn-primary:hover {
 background-color: var(--dark-primary);
 border-color: var(--dark-primary);
 transform: translateY(-2px);
 text-decoration: none;
}

.btn-secondary {
 background-color: var(--white-text);
 color: var(--primary-color);
 border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
 background-color: var(--bg-light);
 color: var(--dark-primary);
 border-color: var(--dark-primary);
 transform: translateY(-2px);
 text-decoration: none;
}

.btn-accent {
 background-color: var(--accent-color);
 color: var(--text-color);
 border: 1px solid var(--accent-color);
}

.btn-accent:hover {
 background-color: color-mix(in srgb, var(--accent-color) 80%, black);
 border-color: color-mix(in srgb, var(--accent-color) 80%, black);
 transform: translateY(-2px);
 text-decoration: none;
}

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

.btn-outline:hover {
 background-color: var(--primary-color);
 color: var(--white-text);
 transform: translateY(-2px);
 text-decoration: none;
}

.btn-text {
 background: none;
 border: none;
 color: var(--primary-color);
 padding: 0;
 font-size: 1rem;
 font-weight: 500;
 display: inline-flex;
 align-items: center;
}
.btn-text:hover {
 text-decoration: underline;
 color: var(--dark-primary);
}
.btn-text .fas {
 margin-left: 0.5rem;
 font-size: 0.8rem;
}

/* Header */
header {
 background-color: var(--bg-white);
 border-bottom: 1px solid var(--border-color);
 padding: 1rem 0;
 position: sticky;
 top: 0;
 z-index: 1000;
 box-shadow: 0 2px 10px var(--shadow-light);
}

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

.logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--primary-color);
 text-transform: uppercase;
 letter-spacing: 1px;
 text-decoration: none;
}

.nav-links {
 display: flex;
 gap: 2.5rem;
}

.nav-links li a {
 color: var(--text-color);
 font-weight: 500;
 padding: 0.5rem 0;
 position: relative;
 transition: color var(--transition-speed);
}
.nav-links li a::after {
 content: '';
 position: absolute;
 left: 0;
 bottom: 0;
 width: 0;
 height: 2px;
 background-color: var(--primary-color);
 transition: width var(--transition-speed) ease-out;
}

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

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

.nav-toggle {
 display: none; /* Hidden by default for desktop */
 background: none;
 border: none;
 cursor: pointer;
 padding: 0.5rem;
 z-index: 1001;
}

.nav-toggle span {
 display: block;
 width: 25px;
 height: 3px;
 background-color: var(--text-color);
 margin: 5px 0;
 transition: all var(--transition-speed) ease-in-out;
}

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

.hero-overlay {
 position: absolute;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background-color: rgba(0, 0, 0, 0.35); /* Consistent overlay */
 z-index: 1;
}

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

.hero-content h1 {
 font-size: 3.8rem;
 margin-bottom: 1.5rem;
}

.hero-content p {
 font-size: 1.3rem;
 margin-bottom: 2.5rem;
 opacity: 0.9;
}

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

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

.feature-item {
 background-color: var(--bg-white);
 padding: 2.5rem 1.5rem;
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 20px var(--shadow-light);
 text-align: center;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-item:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 30px var(--shadow-medium);
}

.feature-icon {
 font-size: 3rem;
 color: var(--primary-color);
 margin-bottom: 1.5rem;
 display: inline-flex;
 justify-content: center;
 align-items: center;
 width: 80px;
 height: 80px;
 background-color: var(--accent-color);
 border-radius: 50%;
 margin-left: auto;
 margin-right: auto;
}

.feature-item h3 {
 margin-bottom: 1rem;
 font-size: 1.5rem;
}

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

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

.service-card, .blog-card {
 background-color: var(--bg-white);
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 20px var(--shadow-light);
 overflow: hidden;
 display: flex;
 flex-direction: column;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover, .blog-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 30px var(--shadow-medium);
}

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

.service-card h3, .blog-card h3 {
 padding: 1.5rem 1.5rem 0.5rem;
 font-size: 1.4rem;
 line-height: 1.3;
}

.service-card p, .blog-card p {
 padding: 0 1.5rem 1rem;
 color: var(--light-text-color);
 flex-grow: 1; /* Ensures cards with different content heights align */
}

.service-card .btn-text, .blog-card .btn-text {
 padding: 0 1.5rem 1.5rem;
 align-self: flex-start;
}
.blog-card .blog-meta {
 font-size: 0.9rem;
 color: #888;
 padding: 0 1.5rem 1rem;
}
.blog-card .blog-meta span {
 margin-right: 1rem;
}

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

.about-content {
 flex: 1;
}

.about-content h2 {
 font-size: 2.5rem;
 margin-bottom: 1.2rem;
}

.about-content p {
 font-size: 1.1rem;
 color: var(--light-text-color);
 margin-bottom: 1.5rem;
}

.about-image {
 flex: 1;
 display: flex;
 justify-content: center;
 align-items: center;
}

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

/* Testimonials Section */
.testimonials-carousel {
 display: flex;
 overflow-x: auto; /* Allows horizontal scrolling if items exceed container */
 scroll-snap-type: x mandatory;
 -webkit-overflow-scrolling: touch;
 gap: 2rem;
 padding-bottom: 1rem; /* For scrollbar space */
 margin-top: 3rem;
}
.testimonials-carousel::-webkit-scrollbar {
 height: 8px;
}

.testimonials-carousel::-webkit-scrollbar-thumb {
 background-color: var(--primary-color);
 border-radius: 4px;
}
.testimonials-carousel::-webkit-scrollbar-track {
 background-color: var(--bg-alt);
}

.testimonial-item {
 flex: 0 0 100%; /* Take full width on small screens */
 scroll-snap-align: start;
 background-color: var(--bg-white);
 padding: 2.5rem;
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 20px var(--shadow-light);
 text-align: center;
 max-width: 800px;
 margin: 0 auto; /* Center individual items */
}

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

.testimonial-quote {
 font-size: 1.25rem;
 font-style: italic;
 margin-bottom: 1.5rem;
 color: var(--text-color);
 line-height: 1.5;
}

.testimonial-author {
 font-weight: 500;
 color: var(--primary-color);
 font-size: 1.1rem;
}

/* FAQ Section */
.faq-accordion {
 max-width: 800px;
 margin: 3rem auto 0;
 border: 1px solid var(--border-color);
 border-radius: var(--border-radius-md);
 overflow: hidden;
}

.accordion-item {
 border-bottom: 1px solid var(--border-color);
}
.accordion-item:last-child {
 border-bottom: none;
}

.accordion-header {
 width: 100%;
 background-color: var(--bg-white);
 padding: 1.2rem 1.5rem;
 text-align: left;
 font-size: 1.15rem;
 font-weight: 500;
 color: var(--text-color);
 border: none;
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
 transition: background-color var(--transition-speed), color var(--transition-speed);
}

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

.accordion-header .fas {
 transform: rotate(0deg);
 transition: transform var(--transition-speed) ease-in-out;
}

.accordion-header.active .fas {
 transform: rotate(180deg);
}

.accordion-content {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out;
 background-color: var(--bg-light);
}

.accordion-content p {
 padding: 1rem 1.5rem 1.2rem;
 font-size: 1rem;
 color: var(--light-text-color);
 margin-bottom: 0;
}

/* CTA Section */
.cta-section {
 background-color: var(--primary-color);
 background-image: linear-gradient(45deg, var(--primary-color), var(--dark-primary));
 color: var(--white-text);
 padding: 4rem 0;
 text-align: center;
}

.cta-section h2 {
 font-size: 2.8rem;
 margin-bottom: 1.5rem;
 color: var(--white-text);
}

.cta-section p {
 font-size: 1.2rem;
 margin-bottom: 2.5rem;
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
 color: color-mix(in srgb, var(--white-text) 90%, var(--primary-color));
}

.cta-section .btn-accent {
 background-color: var(--accent-color);
 color: var(--text-color); /* Ensure dark text on light accent */
 border-color: var(--accent-color);
}

.cta-section .btn-accent:hover {
 background-color: color-mix(in srgb, var(--accent-color) 80%, black);
 border-color: color-mix(in srgb, var(--accent-color) 80%, black);
}

/* Footer Section */
footer {
 background-color: var(--darkest-blue);
 color: var(--white-text);
 padding: 3.5rem 0 1.5rem;
 font-size: 0.95rem;
}

footer a {
 color: color-mix(in srgb, var(--white-text) 80%, var(--darkest-blue));
 text-decoration: none;
 transition: color var(--transition-speed);
}

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

.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 2rem;
 padding-bottom: 2rem;
 border-bottom: 1px solid color-mix(in srgb, var(--darkest-blue) 40%, var(--white-text));
}

.footer-col h3 {
 font-size: 1.3rem;
 margin-bottom: 1.5rem;
 color: var(--white-text);
}

.footer-col p {
 margin-bottom: 0.8rem;
 line-height: var(--line-height-base);
 color: color-mix(in srgb, var(--white-text) 90%, var(--darkest-blue));
}
.footer-col ul {
 margin-bottom: 0;
}
.footer-col ul li {
 margin-bottom: 0.7rem;
}
.footer-col ul li:last-child {
 margin-bottom: 0;
}

.footer-col .fas {
 margin-right: 0.8rem;
 color: var(--primary-color);
 width: 20px; /* Align icons */
}

.footer-bottom {
 text-align: center;
 padding-top: 1.5rem;
 font-size: 0.85rem;
 color: color-mix(in srgb, var(--white-text) 70%, var(--darkest-blue));
}

/* Other Pages Specific Styles */
/* Contact Page */
.contact-grid {
 display: grid;
 grid-template-columns: 1fr 1.2fr;
 gap: 3rem;
}
.contact-info {
 padding: 2rem;
 background-color: var(--bg-white);
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 20px var(--shadow-light);
}
.contact-info h3 {
 color: var(--primary-color);
 margin-bottom: 1.5rem;
}
.contact-detail {
 display: flex;
 align-items: flex-start;
 margin-bottom: 1rem;
 font-size: 1.1rem;
}
.contact-detail .fas {
 color: var(--primary-color);
 margin-right: 1rem;
 font-size: 1.3rem;
 flex-shrink: 0;
 width: 25px;
}
.contact-detail p {
 margin-bottom: 0;
}
.contact-detail a {
 color: var(--text-color);
}
.contact-detail a:hover {
 color: var(--primary-color);
}
.google-map {
 margin-top: 3rem;
 border-radius: var(--border-radius-md);
 overflow: hidden;
 box-shadow: 0 4px 20px var(--shadow-light);
}
.google-map iframe {
 width: 100%;
 height: 450px;
 border: 0;
}

/* Forms */
.contact-form {
 background-color: var(--bg-white);
 padding: 2rem;
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 20px var(--shadow-light);
}

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
 width: 100%;
 padding: 0.8rem 1rem;
 margin-bottom: 1.5rem;
 border: 1px solid var(--border-color);
 border-radius: var(--border-radius-sm);
 font-family: var(--font-family-sans);
 font-size: 1rem;
 color: var(--text-color);
 background-color: var(--bg-light);
 transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 30%, transparent);
 outline: none;
}

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

.contact-form button.btn-primary {
 width: auto;
 padding: 0.9rem 2.2rem;
}
.form-message {
 margin-top: 1rem;
 padding: 0.8rem 1rem;
 border-radius: var(--border-radius-sm);
 font-weight: 500;
}

.form-message.success {
 background-color: #d4edda;
 color: #155724;
 border: 1px solid #c3e6cb;
}

.form-message.error {
 background-color: #f8d7da;
 color: #721c24;
 border: 1px solid #f5c6cb;
}
.required-field::after {
 content: " *";
 color: var(--primary-color);
 font-weight: normal;
}
/* Services Page */
.service-item-row {
 display: flex;
 align-items: center;
 gap: 3rem;
 margin-bottom: 4rem;
}
.service-item-row:last-child {
 margin-bottom: 0;
}
.service-item-row.reverse-on-mobile {
 flex-direction: row;
}

.service-item-row:nth-child(even) {
 flex-direction: row-reverse;
}
.service-item-row:nth-child(even) .service-item-row-content {
 text-align: right;
}
.service-item-row:nth-child(even) .service-item-row-content .btn-text {
 align-self: flex-end;
}

.service-item-row-image {
 flex: 1;
 min-width: 300px;
}
.service-item-row-image img {
 width: 100%;
 height: 350px;
 object-fit: cover;
 border-radius: var(--border-radius-md);
 box-shadow: 0 8px 30px var(--shadow-medium);
}
.service-item-row-content {
 flex: 1.2;
 padding: 1.5rem 0;
 display: flex;
 flex-direction: column;
}
.service-item-row-content h3 {
 font-size: 2rem;
 margin-bottom: 1rem;
 color: var(--primary-color);
}
.service-item-row-content p {
 font-size: 1.1rem;
 color: var(--light-text-color);
 margin-bottom: 1.5rem;
}

.process-steps {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 2rem;
 margin-top: 3rem;
}
.process-step {
 text-align: center;
 padding: 2rem 1.5rem;
 background-color: var(--bg-white);
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 15px var(--shadow-light);
 border-top: 5px solid var(--primary-color);
 transition: transform var(--transition-speed);
}
.process-step:hover {
 transform: translateY(-5px);
}
.process-step .fas {
 font-size: 2.5rem;
 color: var(--accent-color);
 margin-bottom: 1rem;
}
.process-step h4 {
 font-size: 1.3rem;
 color: var(--primary-color);
 margin-bottom: 0.8rem;
}
.process-step p {
 color: var(--light-text-color);
 font-size: 0.95rem;
 margin-bottom: 0;
}

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

.blog-list-grid .blog-card {
 box-shadow: 0 4px 20px var(--shadow-light);
}

/* Blog Post Page */
.blog-post-header {
 text-align: center;
 margin-bottom: 3rem;
}
.blog-post-header h1 {
 font-size: 3rem;
 margin-bottom: 1rem;
}
.blog-meta {
 font-size: 0.95rem;
 color: var(--light-text-color);
 margin-bottom: 2rem;
}
.blog-meta span {
 margin: 0 0.5rem;
}
.blog-meta .author {
 font-weight: 500;
 color: var(--primary-color);
}
.blog-post-image {
 width: 100%;
 height: 400px;
 object-fit: cover;
 border-radius: var(--border-radius-md);
 margin-bottom: 3rem;
 box-shadow: 0 8px 30px var(--shadow-medium);
}
.blog-post-content {
 max-width: 800px;
 margin: 0 auto;
 font-size: 1.1rem;
 line-height: 1.8;
}
.blog-post-content h2,
.blog-post-content h3 {
 margin-top: 2rem;
 margin-bottom: 1rem;
 color: var(--dark-primary);
}
.blog-post-content p {
 margin-bottom: 1.5rem;
}
.blog-post-content ol,
.blog-post-content ul {
 margin: 1.5rem 0;
 padding-left: 20px;
 list-style-type: decimal;
}
.blog-post-content ul {
 list-style-type: disc;
}
.blog-post-content li {
 margin-bottom: 0.8rem;
}
.blog-post-content a {
 text-decoration: underline;
}
.author-box {
 display: flex;
 align-items: center;
 background-color: var(--bg-alt);
 padding: 1.5rem;
 border-radius: var(--border-radius-md);
 margin-top: 3rem;
 gap: 1.5rem;
}
.author-box img {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 border: 2px solid var(--primary-color);
}
.author-info h4 {
 margin-bottom: 0.3rem;
 color: var(--primary-color);
 font-size: 1.2rem;
}
.author-info p {
 margin-bottom: 0;
 font-size: 0.95rem;
 color: var(--light-text-color);
}

/* Legal Pages */
.legal-content {
 max-width: 900px;
 margin: 0 auto;
 line-height: 1.7;
 font-size: 1.05rem;
 color: var(--light-text-color);
}
.legal-content h1 {
 color: var(--primary-color);
 margin-bottom: 2rem;
 text-align: center;
}
.legal-content h2, .legal-content h3 {
 color: var(--dark-primary);
 margin-top: 2rem;
 margin-bottom: 1rem;
}
.legal-content p {
 margin-bottom: 1.2rem;
}
.legal-content ul, .legal-content ol {
 margin-left: 20px;
 margin-bottom: 1.2rem;
}
.legal-content li {
 margin-bottom: 0.5rem;
}

/* Thanks Page */
.thanks-container {
 padding: 5rem 0;
 text-align: center;
}
.thanks-container h1 {
 color: var(--primary-color);
 margin-bottom: 1.5rem;
 font-size: 3rem;
}
.thanks-container p {
 font-size: 1.2rem;
 margin-bottom: 2rem;
 color: var(--light-text-color);
}
.thanks-container .fas {
 font-size: 4rem;
 color: var(--accent-color);
 margin-bottom: 2rem;
}

/* 404 Page */
.error-page {
 height: 80vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 text-align: center;
}
.error-page h1 {
 font-size: 6rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
}
.error-page h2 {
 font-size: 2.5rem;
 margin-bottom: 1.5rem;
 color: var(--text-color);
}
.error-page p {
 font-size: 1.2rem;
 margin-bottom: 2rem;
 color: var(--light-text-color);
}
.error-page .btn {
 margin-top: 1rem;
}

/* Gallery Page */
.gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 1.5rem;
 margin-top: 3rem;
}
.gallery-item {
 position: relative;
 overflow: hidden;
 border-radius: var(--border-radius-md);
 box-shadow: 0 4px 15px var(--shadow-light);
 cursor: pointer;
}
.gallery-item img {
 width: 100%;
 height: 250px;
 object-fit: cover;
 display: block;
 transition: transform var(--transition-speed) ease-in-out;
}
.gallery-item img:hover {
 transform: scale(1.05);
}
.gallery-caption {
 position: absolute;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: rgba(0, 0, 0, 0.7);
 color: var(--white-text);
 padding: 1rem;
 font-size: 0.95rem;
 transform: translateY(100%);
 transition: transform var(--transition-speed) ease-in-out;
}
.gallery-item:hover .gallery-caption {
 transform: translateY(0);
}
/* Lightbox styles can be added here or in script.js to dynamically create/style */

/* Responsive Design */
@media (max-width: 1024px) {
 .container {
 padding: 0 1rem;
 }
 h1 { font-size: 2.5rem; }
 h2 { font-size: 2rem; }
 h3 { font-size: 1.6rem; }

 .nav-links {
 gap: 1.5rem;
 }
 .hero-content h1 {
 font-size: 3rem;
 }
 .hero-buttons {
 gap: 1rem;
 }
 .testimonial-item {
 max-width: 600px;
 padding: 2rem;
 }
}

@media (max-width: 768px) {
 /* Header & Mobile Nav */
 .nav-links {
 position: fixed;
 right: -100%; /* Hidden off-screen */
 top: 0;
 height: 100%;
 width: 70%;
 max-width: 300px;
 background-color: var(--darkest-blue);
 flex-direction: column;
 padding-top: 6rem;
 box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
 transition: right var(--transition-speed) ease-in-out;
 z-index: 999;
 }

 .nav-links.active {
 right: 0; /* Slide in */
 }

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

 .nav-links li a {
 color: var(--white-text);
 font-size: 1.2rem;
 padding: 1rem 0;
 display: block;
 }
 .nav-links li a:hover, .nav-links li a.active {
 color: var(--accent-color);
 }
 .nav-links li a::after {
 background-color: var(--accent-color);
 }

 .nav-toggle {
 display: block; /* Show hamburger */
 }

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

 /* Hero */
 .hero-section {
 height: 70vh;
 }
 .hero-content h1 {
 font-size: 2.5rem;
 margin-bottom: 1rem;
 }
 .hero-content p {
 font-size: 1.1rem;
 margin-bottom: 2rem;
 }
 .hero-buttons {
 flex-direction: column;
 gap: 1rem;
 }
 .btn {
 width: 100%; /* Full width buttons in hero on mobile */
 max-width: 300px;
 }

 /* General sections */
 .section-padding {
 padding: 3rem 0;
 }
 .section-header h2 {
 font-size: 2rem;
 }
 .section-description {
 font-size: 1rem;
 }

 .features-grid, .service-cards-grid, .blog-cards-grid, .faq-accordion {
 margin-top: 2rem;
 }
 .feature-item, .service-card, .blog-card {
 padding: 2rem 1rem;
 }

 /* About Preview */
 .about-preview .container {
 flex-direction: column;
 gap: 2rem;
 }
 .about-content, .about-image {
 flex: auto; /* Reset flex */
 width: 100%;
 }
 .about-content h2 {
 font-size: 2rem;
 text-align: center;
 }
 .about-content p {
 text-align: center;
 }
 .about-content .btn-secondary {
 display: block;
 width: fit-content;
 margin: 1.5rem auto 0;
 }

 /* Testimonials */
 .testimonials-carousel {
 flex-wrap: nowrap; /* Keep it as a carousel */
 gap: 1rem;
 }
 .testimonial-item {
 padding: 1.5rem;
 font-size: 1.1rem;
 }

 /* Blog Post */
 .blog-post-header {
 margin-bottom: 2rem;
 }
 .blog-post-header h1 {
 font-size: 2rem;
 }
 .blog-post-image {
 height: 250px;
 margin-bottom: 2rem;
 }
 .blog-post-content {
 font-size: 1rem;
 }
 .author-box {
 flex-direction: column;
 text-align: center;
 }

 /* Contact Page */
 .contact-grid {
 grid-template-columns: 1fr; /* Stack columns */
 gap: 2rem;
 }
 .contact-info {
 padding: 1.5rem;
 }
 .contact-info .contact-detail {
 font-size: 1rem;
 }
 .contact-form {
 padding: 1.5rem;
 }
 .google-map {
 margin-top: 2rem;
 }

 /* Services Page */
 .service-item-row {
 flex-direction: column !important; /* Stack regardless of :nth-child */
 text-align: center;
 }
 .service-item-row .service-item-row-content {
 text-align: center !important;
 padding-top: 1rem;
 }
 .service-item-row .service-item-row-content .btn-text {
 align-self: center !important;
 }
 .service-item-row-image {
 width: 100%;
 min-width: unset;
 }
 .process-steps {
 grid-template-columns: 1fr;
 }
 .process-step {
 padding: 1.5rem;
 }

 /* Legal Pages */
 .legal-content {
 font-size: 0.95rem;
 }
 .legal-content h1 {
 font-size: 2rem;
 }
 .legal-content h2 {
 font-size: 1.6rem;
 }

 /* 404 Page */
 .error-page h1 {
 font-size: 4rem;
 }
 .error-page h2 {
 font-size: 1.8rem;
 }
 .error-page p {
 font-size: 1rem;
 }

 /* Footer */
 footer {
 padding-top: 2.5rem;
 }
 .footer-grid {
 grid-template-columns: 1fr;
 text-align: center;
 gap: 1.5rem;
 }
 .footer-col ul {
 display: none; /* Hide for space until specific mobile styling */
 }
 .footer-col.about-col {
 order: -1; /* Move about to top on mobile */
 }
 .footer-col h3 {
 margin-bottom: 0.8rem;
 }
 .footer-col p {
 max-width: 300px;
 margin-left: auto;
 margin-right: auto;
 }
 .footer-bottom {
 padding-top: 1rem;
 }

 .accordion-header {
 font-size: 1rem;
 padding: 1rem;
 }
 .accordion-content p {
 padding: 0.8rem 1rem 1rem;
 }
}

@media (max-width: 480px) {
 /* General adjustments for very small screens */
 h1 { font-size: 2rem; }
 h2 { font-size: 1.7rem; }
 h3 { font-size: 1.4rem; }
 .hero-section {
 height: 60vh;
 }
 .hero-content h1 {
 font-size: 1.8rem;
 }
 .hero-content p {
 font-size: 1rem;
 }
 .btn {
 font-size: 0.9rem;
 padding: 0.7rem 1.2rem;
 }
 .feature-icon {
 font-size: 2.5rem;
 width: 70px;
 height: 70px;
 }
 .service-card h3, .blog-card h3 {
 font-size: 1.2rem;
 padding-top: 1rem;
 }
 .service-card p, .blog-card p {
 padding-bottom: 0.5rem;
 }
 .about-image img {
 box-shadow: none; /* Reduce heavy shadows on small screens */
 }

 .cta-section h2 {
 font-size: 2rem;
 }
 .cta-section p {
 font-size: 1rem;
 }
 .testimonial-quote {
 font-size: 1rem;
 }
 .testimonial-avatar {
 width: 70px;
 height: 70px;
 }
 .contact-form button.btn-primary {
 width: 100%;
 }
 .blog-post-header h1 {
 font-size: 1.7rem;
 }
 .blog-post-image {
 height: 200px;
 }
 .gallery-grid {
 grid-template-columns: 1fr;
 }
}

@media (min-width: 769px) {
 .nav-links.active { /* Prevent active class from overriding desktop styles */
 right: auto;
 top: auto;
 height: auto;
 width: auto;
 background-color: transparent;
 flex-direction: row;
 padding-top: 0;
 box-shadow: none;
 }
 .nav-toggle {
 display: none;
 }
}
/* No-JS fallback for accordion (not strictly necessary with JS but good practice) */
.accordion-item input[type='checkbox'] {
 position: absolute;
 opacity: 0;
 pointer-events: none;
}
/* If JS fails, this can act as a fallback */
/*
.accordion-item input[type='checkbox']:checked ~ .accordion-content {
 max-height: 500px;
}
.accordion-item input[type='checkbox']:checked ~ .accordion-header .fas {
 transform: rotate(180deg);
}
*/
/* Ensure custom font icons are loaded */
.fas {
 font-family: "Font Awesome 5 Free", serif;
 font-weight: 900;
}
/* Specific icon styles if needed */
.feature-icon .fas {
 font-weight: 900; /* Ensure solid icons appear correctly */
}
.footer-col .fas {
 font-weight: 900;
}
.contact-detail .fas {
 font-weight: 900;
}
.process-step .fas {
 font-weight: 900;
}
.accordion-header .fas {
 font-weight: 900;
}
/* Lightbox styles (minimal for now, can be expanded with JS) */
.lightbox {
 display: none; /* Hidden by default */
 position: fixed;
 z-index: 10000;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 overflow: auto;
 background-color: rgba(0, 0, 0, 0.9);
 justify-content: center;
 align-items: center;
 animation: fadeIn 0.3s forwards;
}

.lightbox-content {
 margin: auto;
 display: block;
 max-width: 90%;
 max-height: 90%;
 object-fit: contain;
}

.lightbox-caption {
 margin-top: 0.5rem;
 color: #ccc;
 font-size: 1rem;
 text-align: center;
}

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

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

@keyframes fadeIn {
 from {opacity: 0;}
 to {opacity: 1;}
}

/* Spinner for forms etc. */
.spinner {
 border: 4px solid rgba(255, 255, 255, 0.3);
 border-top: 4px solid var(--white-text);
 border-radius: 50%;
 width: 20px;
 height: 20px;
 animation: spin 1s linear infinite;
 margin-left: 0.8rem;
 display: none; /* Hidden by default */
}

@keyframes spin {
 0% { transform: rotate(0deg); }
 100% { transform: rotate(360deg); }
}

/* Adjustments for legal and other text-heavy pages */
.generic-page h1 {
 font-size: 2.8rem;
 color: var(--primary-color);
 text-align: center;
 margin-bottom: 2rem;
}
.generic-page .content-wrapper {
 max-width: 900px;
 margin: 0 auto;
 padding: 2rem 0;
 line-height: 1.7;
 font-size: 1.05rem;
 color: var(--light-text-color);
}
.generic-page .content-wrapper h2 {
 font-size: 2.2rem;
 color: var(--dark-primary);
 margin-top: 2.5rem;
 margin-bottom: 1rem;
}
.generic-page .content-wrapper h3 {
 font-size: 1.8rem;
 color: var(--dark-primary);
 margin-top: 2rem;
 margin-bottom: 0.8rem;
}
.generic-page .content-wrapper p {
 margin-bottom: 1.2rem;
}
.generic-page .content-wrapper ul,
.generic-page .content-wrapper ol {
 margin-left: 25px;
 margin-bottom: 1.5rem;
 list-style-type: disc;
}
.generic-page .content-wrapper ol {
 list-style-type: decimal;
}
.generic-page .content-wrapper li {
 margin-bottom: 0.7rem;
}
.generic-page .content-wrapper strong {
 color: var(--text-color);
}
.generic-page .content-wrapper a {
 text-decoration: underline;
}

/* For pages like About that use the generic .container .reverse-on-mobile pattern */
@media (max-width: 768px) {
 .container.reverse-on-mobile {
 flex-direction: column !important; /* Forces stack for both regular and reversed rows */
 }
 .container.reverse-on-mobile > * {
 margin-bottom: 1rem; /* Add some spacing between stacked elements */
 }
}
/* Ensure the lightbox is centered */
.lightbox {
 display: flex; /* Override initial display:none in JS to allow flexbox centering */
}
/* Hide the lightbox by default in CSS if JS handles visibility */
.lightbox:not(.active) {
 display: none;
}
/* Ensure `transform: translateY(-2px);` on btn hover doesn't jump the layout */
.btn-primary, .btn-secondary, .btn-accent, .btn-outline {
 will-change: transform;
}
/* Ensure image alt text is always visible, useful for debugging/accessibility */
img:not([alt]):not([role="presentation"]) {
 border: 2px dotted red;
 content: "Missing ALT text!";
 display: block;
 padding: 5px;
 background-color: yellow;
}
/* Lightbox Navigation (minimal, can be enhanced in JS) */
.lightbox-prev, .lightbox-next {
 cursor: pointer;
 position: absolute;
 top: 50%;
 width: auto;
 padding: 16px;
 margin-top: -50px;
 color: white;
 font-weight: bold;
 font-size: 20px;
 transition: 0.6s ease;
 border-radius: 0 3px 3px 0;
 user-select: none;
 -webkit-user-select: none;
 background-color: rgba(0,0,0,0.5);
}

.lightbox-next {
 right: 0;
 border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover, .lightbox-next:hover {
 background-color: rgba(0,0,0,0.8);
}