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

/* CSS Variables */
:root {
 /* Colors */
 --primary-color: #ea580c; /* 30% — buttons, links, nav active, icons, form focus, card borders, section accents */
 --accent-color: #fb923c; /* 10% — CTAs, badges, footer social/links hover, newsletter button, highlights */
 --text-color: #333;
 --light-text-color: #fff;
 --background-color: #f8fafc; /* 60% white/light neutral */
 --light-background: #ffffff;
 --dark-background: #1f2937; /* Very dark shade for footer */
 --border-color: #e2e8f0;
 --form-border-color: #cbd5e1;

 /* Typography */
 --font-primary: 'Montserrat', sans-serif;
 --font-secondary: 'Open Sans', sans-serif;
 --heading-font-weight: 700;
 --body-font-weight: 400;

 /* Spacing */
 --spacing-xs: 0.5rem;
 --spacing-sm: 1rem;
 --spacing-md: 1.5rem;
 --spacing-lg: 2rem;
 --spacing-xl: 3rem;
 --spacing-xxl: 4rem;

 /* Border Radius */
 --border-radius: 0.5rem;

 /* Box Shadow */
 --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
 --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
 --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);

 /* Transitions */
 --transition-speed: 0.3s ease;
}

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

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

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
 margin-bottom: var(--spacing-sm);
}

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

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

ul {
 list-style: none;
}

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

/* Utility Classes */
.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 var(--spacing-md);
}

.section-padded {
 padding: var(--spacing-xxl) 0;
}

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

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

/* Buttons */
.button {
 display: inline-block;
 padding: var(--spacing-sm) var(--spacing-lg);
 border-radius: var(--border-radius);
 font-family: var(--font-primary);
 font-weight: 600;
 text-align: center;
 transition: all var(--transition-speed);
 cursor: pointer;
 border: none;
}

.primary-button {
 background-color: var(--primary-color);
 color: var(--light-text-color);
}

.primary-button:hover {
 background-color: var(--accent-color);
 color: var(--light-text-color);
 transform: translateY(-2px);
 box-shadow: var(--shadow-md);
}

.secondary-button {
 background-color: transparent;
 color: var(--primary-color);
 border: 2px solid var(--primary-color);
}

.secondary-button:hover {
 background-color: var(--primary-color);
 color: var(--light-text-color);
 transform: translateY(-2px);
 box-shadow: var(--shadow-md);
}

.large-button {
 padding: var(--spacing-md) var(--spacing-xl);
 font-size: 1.125rem;
}

/* Header & Navigation */
.main-header {
 background-color: var(--light-background);
 box-shadow: var(--shadow-sm);
 position: fixed;
 width: 100%;
 top: 0;
 left: 0;
 z-index: 1000;
 transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.main-header.scrolled {
 background-color: #ffffffd0; /* Slightly transparent */
 box-shadow: var(--shadow-md);
 backdrop-filter: blur(5px);
}

.navbar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: var(--spacing-md) var(--spacing-lg);
}

.logo {
 font-family: var(--font-primary);
 font-weight: var(--heading-font-weight);
 font-size: 1.5rem;
 color: var(--primary-color);
 text-decoration: none;
 padding-right: var(--spacing-xl); /* Generous margin */
 white-space: nowrap;
}

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

.nav-links {
 display: flex;
 gap: var(--spacing-xl); /* Widely spaced navigation */
}

.nav-links li a {
 color: var(--text-color);
 font-weight: 600;
 position: relative;
 padding: var(--spacing-xs) 0;
}

.nav-links li a::after {
 content: '';
 position: absolute;
 width: 0;
 height: 2px;
 bottom: 0;
 left: 0;
 background-color: var(--primary-color);
 transition: width var(--transition-speed);
}

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

.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; /* Ensure button is above menu items upon activation */
}

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

.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-section {
 background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/img-8c550b15.jpg') no-repeat center center/cover;
 min-height: 80vh; /* 80vh minimum height */
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--light-text-color);
 padding: var(--spacing-xxl) var(--spacing-md);
 margin-top: 80px; /* Adjust for fixed header */
}

.hero-content {
 max-width: 800px;
}

.hero-content h1 {
 font-size: 3.5rem;
 margin-bottom: var(--spacing-lg);
 color: var(--light-text-color);
 letter-spacing: 1px;
 text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
 font-size: 1.25rem;
 margin-bottom: var(--spacing-xl);
 max-width: 600px;
 margin-left: auto;
 margin-right: auto;
 color: var(--light-text-color);
 text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* Features Section */
.features-section h2 {
 text-align: center;
 margin-bottom: var(--spacing-xl);
 font-size: 2.2rem;
}

.features-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: var(--spacing-xl); /* Widely spaced cards */
 padding-bottom: var(--spacing-xxl);
}

.feature-item {
 background-color: var(--light-background);
 padding: var(--spacing-xl);
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-md);
 text-align: center;
 border-top: 4px solid var(--primary-color);
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-item:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-lg);
}

.feature-item h3 {
 color: var(--primary-color);
 margin-bottom: var(--spacing-sm);
 font-size: 1.5rem;
}

/* About Preview Section */
.about-flex {
 display: flex;
 align-items: center;
 gap: var(--spacing-xl);
}

.about-image {
 flex: 1;
 min-width: 0;
 max-width: 50%;
 padding: var(--spacing-xxl); /* 50% whitespace around it */
}

.about-image img {
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-lg);
}

.about-content {
 flex: 1;
}

.about-content h2 {
 color: var(--primary-color);
 font-size: 2.2rem;
}

.about-content ul {
 list-style: disc;
 padding-left: var(--spacing-lg);
 margin-top: var(--spacing-md);
 margin-bottom: var(--spacing-lg);
}

.about-content ul li {
 margin-bottom: var(--spacing-xs);
 font-family: var(--font-secondary);
}

/* Testimonials Section */
.testimonials-section {
 background-color: var(--background-color);
 text-align: center;
}

.testimonials-section h2 {
 margin-bottom: var(--spacing-xl);
 font-size: 2.2rem;
}

.testimonial-card {
 max-width: 800px;
 margin: 0 auto;
 background-color: var(--light-background);
 padding: var(--spacing-xl) var(--spacing-xxl); /* Single quote in center of vast space */
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-lg);
 border-left: 5px solid var(--primary-color);
}

.testimonial-avatar {
 width: 90px;
 height: 90px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto var(--spacing-md);
 border: 3px solid var(--primary-color);
}

.testimonial-text {
 font-style: italic;
 font-size: 1.15rem;
 margin-bottom: var(--spacing-md);
 color: var(--text-color);
}

.testimonial-author {
 font-weight: 600;
 color: var(--primary-color);
}

/* Blog Preview Section */
.blog-preview-section h2 {
 text-align: center;
 margin-bottom: var(--spacing-xl);
 font-size: 2.2rem;
}

.blog-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: var(--spacing-xl);
 padding-bottom: var(--spacing-lg);
}

.blog-post-card {
 background-color: var(--light-background);
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-md);
 overflow: hidden;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
 display: flex;
 flex-direction: column;
}

.blog-post-card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-lg);
}

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

.blog-post-card h3 {
 margin: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
 font-size: 1.3rem;
 color: var(--text-color);
}

.blog-post-card h3 a {
 color: var(--text-color);
}

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

.blog-post-card p {
 padding: 0 var(--spacing-md) var(--spacing-md);
 flex-grow: 1;
}

.blog-post-card .read-more {
 display: block;
 color: var(--primary-color);
 font-weight: 600;
 padding: 0 var(--spacing-md) var(--spacing-md);
}

.blog-post-card .read-more:hover {
 color: var(--accent-color);
}

/* FAQ Preview Section */
.faq-preview-section {
 background-color: var(--light-background);
}

.faq-preview-section h2 {
 text-align: center;
 margin-bottom: var(--spacing-xl);
 font-size: 2.2rem;
}

.faq-accordion {
 max-width: 900px;
 margin: 0 auto var(--spacing-lg);
 border: 1px solid var(--border-color);
 border-radius: var(--border-radius);
 overflow: hidden;
 box-shadow: var(--shadow-sm);
}

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

.accordion-item:last-child {
 border-bottom: none;
}

.accordion-header {
 width: 100%;
 padding: var(--spacing-md) var(--spacing-lg);
 background-color: #fefefe;
 border: none;
 text-align: left;
 font-size: 1.15rem;
 font-family: var(--font-primary);
 font-weight: 600;
 color: var(--text-color);
 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[aria-expanded="true"] {
 background-color: var(--background-color);
 color: var(--primary-color);
}

.accordion-header::after {
 content: '+';
 font-size: 1.5rem;
 line-height: 1;
 transition: transform var(--transition-speed);
}

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

.accordion-content {
 padding: 0 var(--spacing-lg);
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out, padding 0.4s ease-out;
 background-color: #fefefe;
}

.accordion-content p {
 padding-top: var(--spacing-sm);
 padding-bottom: var(--spacing-md);
}

.accordion-item.active .accordion-content {
 max-height: 200px; /* Adjust as needed for content, will be expanded by JS */
 padding-top: var(--spacing-sm);
 padding-bottom: var(--spacing-md);
}

/* CTA Section */
.cta-section {
 background-color: var(--primary-color);
 color: var(--light-text-color);
 padding: var(--spacing-xxl) 0;
 text-align: center;
}

.cta-section h2 {
 font-size: 2.5rem;
 margin-bottom: var(--spacing-md);
 color: var(--light-text-color);
}

.cta-section p {
 font-size: 1.25rem;
 margin-bottom: var(--spacing-xl);
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
}

.cta-section .primary-button {
 background-color: var(--light-text-color);
 color: var(--primary-color);
}

.cta-section .primary-button:hover {
 background-color: var(--accent-color);
 color: var(--light-text-color);
}

/* Footer */
.main-footer {
 background-color: var(--dark-background);
 color: rgba(255, 255, 255, 0.8);
 padding: var(--spacing-xxl) 0;
 font-size: 0.95rem;
}

.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: var(--spacing-xl); /* Spread out footer elements */
}

.footer-col h3 {
 color: var(--light-text-color);
 margin-bottom: var(--spacing-md);
 font-size: 1.15rem;
}

.footer-col p, .footer-col li {
 margin-bottom: var(--spacing-xs);
}

.footer-col a {
 color: rgba(255, 255, 255, 0.7);
 transition: color var(--transition-speed);
}

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

.footer-col.brand-info .copyright {
 margin-top: var(--spacing-lg);
 font-size: 0.85rem;
 color: rgba(255, 255, 255, 0.6);
}

/* Specific Page Styling (e.g., Services Page) */
/* Services Hero */
.services-hero {
 background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/img-9fb1bc43.jpg') no-repeat center center/cover;
 height: 50vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--light-text-color);
 margin-top: 80px;
}

.services-hero h1 {
 font-size: 3rem;
 color: var(--light-text-color);
}

.service-card {
 background-color: var(--light-background);
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-md);
 padding: var(--spacing-xl);
 border-left: 5px solid var(--primary-color);
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-lg);
}

.service-card h3 {
 color: var(--primary-color);
 margin-bottom: var(--spacing-sm);
 font-size: 1.6rem;
}

.process-section .process-step {
 display: flex;
 align-items: flex-start;
 gap: var(--spacing-md);
 margin-bottom: var(--spacing-xl);
}

.process-section .process-step h4 {
 color: var(--primary-color);
 margin-bottom: var(--spacing-xs);
 font-size: 1.3rem;
 flex-shrink: 0;
 width: 100px;
}

.process-section .process-step p {
 margin-left: var(--spacing-md);
}

/* About Page Specific Styles */
.about-hero {
 background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/img-77afb13d.jpg') no-repeat center center/cover;
 height: 50vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--light-text-color);
 margin-top: 80px;
}

.about-hero h1 {
 color: var(--light-text-color);
 font-size: 3rem;
}

.about-story-section, .values-section {
 max-width: 900px;
 margin: 0 auto;
}

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

.team-member-card {
 background-color: var(--light-background);
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-md);
 padding: var(--spacing-lg);
 text-align: center;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.team-member-card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-lg);
}

.team-member-card img {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto var(--spacing-md);
 border: 3px solid var(--primary-color);
}

.team-member-card h4 {
 margin-bottom: var(--spacing-xs);
 font-size: 1.25rem;
 color: var(--primary-color);
}

.team-member-card p {
 font-size: 0.9rem;
 color: #666;
}

/* Contact Page Specific Styles */
.contact-hero {
 background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/img-6972579b.jpg') no-repeat center center/cover;
 height: 50vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--light-text-color);
 margin-top: 80px;
}

.contact-hero h1 {
 color: var(--light-text-color);
 font-size: 3rem;
}

.contact-content-wrapper {
 display: flex;
 flex-wrap: wrap;
 gap: var(--spacing-xl);
}

.contact-form-container, .contact-details-container {
 flex: 1;
 min-width: 300px;
}

.contact-form {
 background-color: var(--light-background);
 padding: var(--spacing-xl);
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-md);
}

.form-group {
 margin-bottom: var(--spacing-md);
}

.form-group label {
 display: block;
 margin-bottom: var(--spacing-xs);
 font-weight: 600;
 color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
 width: 100%;
 padding: var(--spacing-sm);
 border: 1px solid var(--form-border-color);
 border-radius: var(--border-radius);
 font-family: var(--font-secondary);
 font-size: 1rem;
 transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
 outline: none;
}

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

.contact-details {
 padding: var(--spacing-xl);
 background-color: var(--light-background);
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-md);
 line-height: 1.8;
}

.contact-details h3 {
 color: var(--primary-color);
}

.contact-details p {
 margin-bottom: var(--spacing-xs);
}

.contact-details a {
 color: var(--text-color);
}

.contact-details a:hover {
 color: var(--primary-color);
}

.google-map {
 width: 100%;
 height: 450px;
 border: 0;
 border-radius: var(--border-radius);
 margin-top: var(--spacing-xl);
 box-shadow: var(--shadow-md);
}

/* Blog List Page Styles */
.blog-list-hero {
 background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1542744173-8e10e408dce0?w=1200&h=600&fit=crop') no-repeat center center/cover;
 height: 50vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--light-text-color);
 margin-top: 80px;
}

.blog-list-hero h1 {
 color: var(--light-text-color);
 font-size: 3rem;
}

.blog-main-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: var(--spacing-xl);
}

/* Blog Post Page Styles */
.blog-post-header {
 text-align: center;
 margin-bottom: var(--spacing-xl);
 margin-top: calc(var(--spacing-xxl) + 80px); /* Adjust for header */
}

.blog-post-header h1 {
 font-size: 2.8rem;
 color: var(--primary-color);
 margin-bottom: var(--spacing-md);
}

.blog-post-meta {
 font-size: 0.9rem;
 color: #666;
 margin-bottom: var(--spacing-lg);
}

.blog-post-meta span {
 margin: 0 var(--spacing-xs);
}

.blog-post-content {
 max-width: 800px;
 margin: 0 auto;
 font-size: 1.1rem;
 line-height: 1.8;
}

.blog-post-content img {
 margin: var(--spacing-lg) 0;
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-md);
}

.blog-post-content h2, .blog-post-content h3 {
 margin-top: var(--spacing-xl);
 margin-bottom: var(--spacing-md);
 color: var(--primary-color);
}

.author-box {
 display: flex;
 align-items: center;
 gap: var(--spacing-md);
 margin-top: var(--spacing-xxl);
 padding: var(--spacing-lg);
 background-color: var(--light-background);
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-sm);
 border-left: 4px solid var(--primary-color);
}

.author-box img {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 flex-shrink: 0;
 margin: 0; /* Override default img margin */
}

.author-box-info h4 {
 margin-bottom: var(--spacing-xs);
 font-size: 1.1rem;
 color: var(--primary-color);
}

.related-posts {
 margin-top: var(--spacing-xxl);
 border-top: 1px solid var(--border-color);
 padding-top: var(--spacing-xl);
}

.related-posts h3 {
 margin-bottom: var(--spacing-lg);
 font-size: 1.8rem;
 color: var(--primary-color);
}

.related-posts ul {
 list-style: none;
 padding: 0;
}

.related-posts li {
 margin-bottom: var(--spacing-sm);
}

.related-posts li a {
 font-size: 1.1rem;
 color: var(--text-color);
}

.related-posts li a:hover {
 color: var(--primary-color);
}

/* Gallery Page Specific Styles */
.gallery-hero {
 background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1552664730?w=1200&h=600&fit=crop') no-repeat center center/cover;
 height: 50vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--light-text-color);
 margin-top: 80px;
}

.gallery-hero h1 {
 color: var(--light-text-color);
 font-size: 3rem;
}

.gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: var(--spacing-md);
}

.gallery-item {
 cursor: pointer;
 overflow: hidden;
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-sm);
 position: relative;
}

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

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

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

.lightbox-content {
 max-width: 90%;
 max-height: 90%;
 object-fit: contain;
 border-radius: var(--border-radius);
 box-shadow: var(--shadow-lg);
}

.lightbox .close-button {
 position: absolute;
 top: var(--spacing-md);
 right: var(--spacing-md);
 font-size: 2rem;
 color: var(--light-text-color);
 cursor: pointer;
 background: none;
 border: none;
 padding: var(--spacing-xs);
 font-weight: bold;
}

/* FAQ Page Specific Styles - Reusing .faq-accordion */
.faq-page-hero {
 background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1504384308?w=1200&h=600&fit=crop') no-repeat center center/cover;
 height: 50vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--light-text-color);
 margin-top: 80px;
}

.faq-page-hero h1 {
 color: var(--light-text-color);
 font-size: 3rem;
}

/* Legal Pages (Privacy, Terms, etc.) */
.legal-page-hero {
 background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1531973486364?w=1200&h=600&fit=crop') no-repeat center center/cover;
 height: 40vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--light-text-color);
 margin-top: 80px;
}

.legal-page-hero h1 {
 color: var(--light-text-color);
 font-size: 2.5rem;
}

.legal-content {
 max-width: 900px;
 margin: 0 auto;
 font-size: 1rem;
 line-height: 1.7;
}

.legal-content h2, .legal-content h3 {
 margin-top: var(--spacing-xl);
 margin-bottom: var(--spacing-md);
 color: var(--primary-color);
}

.legal-content ul {
 list-style: disc;
 padding-left: var(--spacing-lg);
 margin-bottom: var(--spacing-md);
}

.legal-content ol {
 list-style: decimal;
 padding-left: var(--spacing-lg);
 margin-bottom: var(--spacing-md);
}

.legal-content li {
 margin-bottom: var(--spacing-xs);
}

/* Thanks Page */
.thanks-section {
 min-height: 70vh;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 text-align: center;
 padding: var(--spacing-xxl) var(--spacing-md);
 margin-top: 80px;
}

.thanks-section h1 {
 color: var(--primary-color);
 font-size: 3rem;
 margin-bottom: var(--spacing-md);
}

.thanks-section p {
 font-size: 1.25rem;
 margin-bottom: var(--spacing-xl);
 max-width: 700px;
}

/* 404 Page */
.error-section {
 min-height: 80vh;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 text-align: center;
 padding: var(--spacing-xxl) var(--spacing-md);
 margin-top: 80px;
}

.error-section h1 {
 font-size: 8rem;
 color: var(--primary-color);
 margin-bottom: var(--spacing-md);
 text-shadow: 5px 5px 10px rgba(0,0,0,0.1);
}

.error-section h2 {
 font-size: 2.5rem;
 color: var(--text-color);
 margin-bottom: var(--spacing-lg);
}

.error-section p {
 font-size: 1.15rem;
 margin-bottom: var(--spacing-xl);
 max-width: 600px;
}

/* Generic Section CTA styling */
.section-cta {
 margin-top: var(--spacing-xl);
 text-align: center;
}

/* Animation on Scroll */
.animate-on-scroll {
 opacity: 0;
 transform: translateY(50px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
 opacity: 1;
 transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
 .navbar {
 padding: var(--spacing-md);
 }

 .nav-links {
 gap: var(--spacing-lg);
 }

 .hero-content h1 {
 font-size: 3rem;
 }

 .about-flex {
 flex-direction: column;
 }

 .about-image, .about-content {
 max-width: 100%;
 padding: 0; /* Remove extreme padding on smaller screens */
 }

 .about-image img {
 margin-bottom: var(--spacing-lg);
 }

 .footer-grid {
 grid-template-columns: repeat(2, 1fr);
 }
}

@media (max-width: 768px) {
 h1 { font-size: 2.2rem; }
 h2 { font-size: 1.8rem; }
 h3 { font-size: 1.5rem; }

 .nav-links {
 flex-direction: column;
 position: fixed;
 top: 0;
 right: -100%;
 height: 100dvh; /* Or 100vh if dvh causing issues */
 width: 70%;
 background-color: var(--dark-background);
 padding-top: var(--spacing-xxl);
 box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
 transition: right var(--transition-speed);
 z-index: 999;
 justify-content: flex-start;
 align-items: center;
 gap: var(--spacing-xl); /* Sparse menu with huge touch targets */
 }

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

 .nav-links li {
 width: 100%;
 text-align: center;
 }

 .nav-links li a {
 color: var(--light-text-color);
 padding: var(--spacing-md) 0; /* Larger touch target */
 width: 100%;
 display: block;
 font-size: 1.4rem;
 }

 .nav-links li a:hover::after,
 .nav-links li a.active::after {
 background-color: var(--accent-color);
 }

 .nav-toggle {
 display: flex;
 }

 .hero-section {
 min-height: 70vh;
 margin-top: 60px; /* Smaller header means less margin needed */
 }

 .hero-content h1 {
 font-size: 2.5rem;
 }

 .hero-content p {
 font-size: 1rem;
 }

 .section-padded {
 padding: var(--spacing-xl) 0;
 }

 .features-grid, .blog-grid, .team-grid {
 grid-template-columns: 1fr;
 }
 
 .testimonial-card {
 padding: var(--spacing-lg);
 }

 .footer-grid {
 grid-template-columns: 1fr;
 text-align: center;
 }

 .footer-col {
 margin-bottom: var(--spacing-lg);
 }

 .footer-col ul {
 padding: 0;
 }

 .contact-content-wrapper {
 flex-direction: column;
 }

 .contact-details {
 margin-top: var(--spacing-lg);
 }

 .blog-post-header {
 margin-top: calc(var(--spacing-xl) + 60px);
 }

 .blog-post-header h1 {
 font-size: 2rem;
 }

 .author-box {
 flex-direction: column;
 text-align: center;
 }

 .author-box img {
 margin-bottom: var(--spacing-sm);
 }

 .legal-page-hero, .services-hero, .about-hero, .contact-hero, .blog-list-hero, .gallery-hero, .faq-page-hero {
 height: 35vh;
 margin-top: 60px;
 }

 .legal-page-hero h1, .services-hero h1, .about-hero h1, .contact-hero h1, .blog-list-hero h1, .gallery-hero h1, .faq-page-hero h1 {
 font-size: 2rem;
 }

 .error-section h1 {
 font-size: 5rem;
 }

 .error-section h2 {
 font-size: 1.8rem;
 }
}

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

 .navbar {
 padding: var(--spacing-sm);
 }

 .logo {
 font-size: 1.3rem;
 }

 .hero-content h1 {
 font-size: 2rem;
 }

 .hero-content p {
 font-size: 0.9rem;
 }

 .button {
 padding: var(--spacing-sm) var(--spacing-md);
 font-size: 0.9rem;
 }

 .large-button {
 padding: var(--spacing-md) var(--spacing-lg);
 font-size: 1rem;
 }

 .main-header {
 padding: var(--spacing-sm) 0;
 }

 .nav-toggle {
 width: 25px;
 height: 18px;
 }

 .nav-toggle span {
 height: 2px;
 }
}