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

:root {
 --primary-color: #4285F4; /* Google Blue */
 --secondary-color: #34A853; /* Google Green */
 --accent-color: #EA4335; /* Google Red */
 --text-color-dark: #202124;
 --text-color-light: #5F6368;
 --background-light: #F8F9FA;
 --background-dark: #2F3640;
 --border-color: #DADCE0;
 --white-color: #FFFFFF;
 --shadow-light: rgba(0, 0, 0, 0.1);
 --shadow-medium: rgba(0, 0, 0, 0.15);
 --border-radius: 8px;
 --transition-speed: 0.3s ease;
}

/* Reset and base styles */
*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
}

body {
 font-family: 'Open Sans', sans-serif;
 color: var(--text-color-light);
 line-height: 1.6;
 background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
 font-family: 'Montserrat', sans-serif;
 color: var(--text-color-dark);
 line-height: 1.2;
 margin-bottom: 0.8em;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
 margin-bottom: 1em;
}

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

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

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

ul {
 list-style: none;
}

/* Utilities and reusable components */
.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 1.5rem;
}

.section-spacing {
 padding: 4rem 0;
}

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

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

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

.text-white {
 color: var(--white-color);
}

.text-white h1, .text-white h2, .text-white h3, .text-white h4 {
 color: var(--white-color);
}

.section-description {
 font-size: 1.1em;
 max-width: 800px;
 margin: 0 auto 3rem auto;
 text-align: center;
}

.button {
 display: inline-block;
 padding: 0.9em 1.8em;
 border-radius: var(--border-radius);
 font-weight: 600;
 text-align: center;
 transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed);
 text-transform: uppercase;
 font-size: 0.95em;
 letter-spacing: 0.5px;
 border: 2px solid transparent;
}

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

.button.primary:hover {
 background-color: #357ae8; /* Darker primary */
}

.button.secondary {
 background-color: var(--secondary-color);
 color: var(--white-color);
}

.button.secondary:hover {
 background-color: #2b8e45; /* Darker secondary */
}

.button.outlined {
 background-color: transparent;
 border-color: var(--white-color);
 color: var(--white-color);
 padding: 0.8em 1.7em; /* Adjust for border */
}

.button.outlined:hover {
 background-color: var(--white-color);
 color: var(--primary-color);
}

.center-button {
 text-align: center;
 margin-top: 3rem;
}

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

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

.logo {
 font-family: 'Montserrat', sans-serif;
 font-weight: 700;
 font-size: 1.5em;
 color: var(--text-color-dark);
 white-space: nowrap; /* Prevent logo from wrapping */
}

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

.nav-links a {
 color: var(--text-color-light);
 font-weight: 600;
 position: relative;
 padding: 0.5rem 0;
}

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

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

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

.nav-toggle span {
 display: block;
 width: 100%;
 height: 2px;
 background-color: var(--text-color-dark);
 transition: all var(--transition-speed);
 border-radius: 2px;
}

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

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

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

/* Hero Section */
.hero-section {
 background-color: var(--white-color);
 padding: 4rem 0 0;
 overflow: hidden;
}

.hero-section .container {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 3rem;
}

.hero-content {
 flex: 1;
 max-width: 600px;
}

.hero-content h1 {
 font-size: 3.2em;
 font-weight: 700;
 margin-bottom: 0.5em;
 color: var(--primary-color);
}

.hero-content p {
 font-size: 1.25em;
 margin-bottom: 2em;
 color: var(--text-color-light);
}

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

.hero-image img {
 border-radius: var(--border-radius);
 box-shadow: 0 10px 30px var(--shadow-medium);
 max-height: 500px; /* Limit image height */
 object-fit: cover;
}

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

.feature-card {
 background-color: var(--white-color);
 border-radius: var(--border-radius);
 box-shadow: 0 4px 15px var(--shadow-light);
 padding: 2rem;
 text-align: center;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.feature-card img {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: var(--border-radius);
 margin-bottom: 1.5rem;
}

.feature-card h3 {
 color: var(--primary-color);
 margin-bottom: 0.5rem;
 font-size: 1.4em;
}

.feature-card p {
 font-size: 0.95em;
 color: var(--text-color-light);
}

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

.about-image {
 flex: 1;
}

.about-image img {
 border-radius: var(--border-radius);
 box-shadow: 0 4px 15px var(--shadow-light);
 height: 400px;
 object-fit: cover;
}

.about-text {
 flex: 1;
}

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

.about-text p {
 font-size: 1.1em;
 margin-bottom: 1.5em;
}

/* Testimonials */
.testimonials-section h2 {
 text-align: center;
 margin-bottom: 3rem;
}

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

.testimonial-card {
 background-color: var(--background-light);
 border-radius: var(--border-radius);
 padding: 2rem;
 box-shadow: 0 2px 10px var(--shadow-light);
 text-align: center;
 display: flex;
 flex-direction: column;
 align-items: center;
 position: relative;
}

.testimonial-avatar {
 width: 90px;
 height: 90px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 1rem;
 border: 3px solid var(--primary-color);
 box-shadow: 0 2px 8px var(--shadow-light);
}

.testimonial-card blockquote {
 font-size: 1.1em;
 font-style: italic;
 color: var(--text-color-dark);
 margin-bottom: 1rem;
}

.testimonial-card cite {
 font-weight: 600;
 color: var(--primary-color);
 display: block;
 margin-top: 0.5rem;
}

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

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

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

.blog-card img {
 width: 100%;
 height: 220px;
 object-fit: cover;
 border-top-left-radius: var(--border-radius);
 border-top-right-radius: var(--border-radius);
}

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

.blog-card p {
 font-size: 0.95em;
 padding: 0 1.5rem;
 flex-grow: 1;
 color: var(--text-color-light);
}

.blog-card .read-more {
 display: inline-block;
 padding: 1rem 1.5rem 1.5rem;
 font-weight: 600;
 color: var(--primary-color);
 transition: color var(--transition-speed);
}

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

.blog-card .read-more .arrow {
 margin-left: 5px;
 transition: margin-left var(--transition-speed);
}
.blog-card .read-more:hover .arrow {
 margin-left: 10px;
}

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

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

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

.accordion-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 width: 100%;
 padding: 1.2em 1.5em;
 background-color: var(--white-color);
 border: none;
 text-align: left;
 font-family: 'Montserrat', sans-serif;
 font-size: 1.15em;
 font-weight: 600;
 color: var(--text-color-dark);
 cursor: pointer;
 transition: background-color var(--transition-speed);
}

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

.accordion-header .accordion-icon {
 font-size: 0.8em;
 transition: transform var(--transition-speed);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
 transform: rotate(180deg);
}

.accordion-content {
 max-height: 0;
 overflow: hidden;
 transition: max-height var(--transition-speed) ease-out;
 background-color: var(--background-light);
 padding: 0 1.5em; /* Padding will be applied when open */
}

.accordion-content p {
 padding-top: 1em;
 padding-bottom: 1em;
 border-top: 1px solid var(--border-color); /* Separator for content */
 font-size: 0.95em;
 color: var(--text-color-light);
}

.accordion-item:first-child .accordion-content p {
 border-top: none; /* No top border for first item's content */
}

/* About Page Specifics */
.about-intro-section {
 padding: 4rem 0;
 background-color: var(--background-light);
}
.about-intro-section .container {
 text-align: center;
}
.about-intro-section h1 {
 font-size: 3em;
 color: var(--primary-color);
 margin-bottom: 0.5em;
}
.about-intro-section p {
 font-size: 1.25em;
 max-width: 900px;
 margin: 0 auto 2em;
}

.mission-values-section {
 display: flex;
 flex-wrap: wrap;
 gap: 2rem;
 padding: 4rem 0;
}
.mission-values-section .container {
 display: flex;
 gap: 3rem;
}
.mission-card {
 flex: 1;
 background-color: var(--white-color);
 padding: 2.5rem;
 border-radius: var(--border-radius);
 box-shadow: 0 4px 15px var(--shadow-light);
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 text-align: center;
}
.mission-card h3 {
 color: var(--primary-color);
 margin-bottom: 1em;
 font-size: 1.8em;
}
.mission-card p {
 font-size: 1em;
}

.values-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 2rem;
 margin-top: 3rem;
 padding: 0 1.5rem;
}
.value-item {
 background-color: var(--background-light);
 border-left: 4px solid var(--secondary-color);
 padding: 1.5rem;
 border-radius: var(--border-radius);
 box-shadow: 0 2px 8px var(--shadow-light);
}
.value-item h4 {
 color: var(--secondary-color);
 margin-bottom: 0.5em;
 font-size: 1.3em;
}
.value-item p {
 font-size: 0.95em;
}

.team-section {
 background-color: var(--background-light);
 padding: 4rem 0;
 text-align: center;
}
.team-section h2 {
 color: var(--primary-color);
 margin-bottom: 3rem;
}
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 2.5rem;
}
.team-member-card {
 background-color: var(--white-color);
 border-radius: var(--border-radius);
 padding: 1.5rem;
 box-shadow: 0 4px 15px var(--shadow-light);
 text-align: center;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.team-member-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 25px var(--shadow-medium);
}
.team-member-card img {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1rem;
 border: 3px solid var(--primary-color);
}
.team-member-card h3 {
 font-size: 1.4em;
 margin-bottom: 0.3em;
 color: var(--text-color-dark);
}
.team-member-card p {
 font-size: 0.95em;
 color: var(--text-color-light);
}

/* Services Page Specifics */
.service-intro-section {
 padding: 4rem 0;
 background-color: var(--background-light);
 text-align: center;
}
.service-intro-section h1 {
 font-size: 3em;
 color: var(--primary-color);
 margin-bottom: 0.5em;
}
.service-intro-section p {
 font-size: 1.25em;
 max-width: 900px;
 margin: 0 auto 2em;
}

.services-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 2.5rem;
}
.service-card {
 background-color: var(--white-color);
 border-radius: var(--border-radius);
 box-shadow: 0 4px 15px var(--shadow-light);
 padding: 2.5rem;
 text-align: center;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.service-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 25px var(--shadow-medium);
}
.service-card img {
 width: 80px;
 height: 80px;
 margin: 0 auto 1.5rem;
 display: block;
}
.service-card h3 {
 font-size: 1.5em;
 color: var(--primary-color);
 margin-bottom: 0.8em;
}
.service-card p {
 font-size: 0.95em;
 color: var(--text-color-light);
}

.process-section {
 padding: 4rem 0;
 background-color: var(--background-dark);
 color: var(--white-color);
 text-align: center;
}
.process-section h2 {
 color: var(--white-color);
 font-size: 2.5em;
 margin-bottom: 3rem;
}
.process-steps {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
}
.process-step-card {
 background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
 padding: 2rem;
 border-radius: var(--border-radius);
 box-shadow: 0 4px 15px rgba(0,0,0,0.2);
 border: 1px solid rgba(255, 255, 255, 0.1);
 transition: background-color var(--transition-speed);
}
.process-step-card:hover {
 background-color: rgba(255, 255, 255, 0.15);
}
.process-step-card .step-number {
 font-family: 'Montserrat', sans-serif;
 font-size: 2.5em;
 font-weight: 700;
 color: var(--primary-color);
 margin-bottom: 0.5rem;
}
.process-step-card h3 {
 color: var(--white-color);
 font-size: 1.4em;
 margin-bottom: 1em;
}
.process-step-card p {
 color: rgba(255, 255, 255, 0.8);
 font-size: 0.9em;
}

/* Contact Page Specifics */
.contact-intro-section {
 padding: 4rem 0;
 background-color: var(--background-light);
 text-align: center;
}
.contact-intro-section h1 {
 font-size: 3em;
 color: var(--primary-color);
 margin-bottom: 0.5em;
}
.contact-intro-section p {
 font-size: 1.25em;
 max-width: 900px;
 margin: 0 auto 2em;
}

.contact-details-section {
 padding: 4rem 0;
 display: flex;
 flex-wrap: wrap;
 gap: 3rem;
 justify-content: center;
}
.contact-form-container {
 flex: 2;
 min-width: 300px;
 background-color: var(--white-color);
 padding: 3rem;
 border-radius: var(--border-radius);
 box-shadow: 0 4px 15px var(--shadow-light);
}

.contact-info-block {
 flex: 1;
 min-width: 250px;
 background-color: var(--background-light);
 padding: 3rem;
 border-radius: var(--border-radius);
 box-shadow: 0 4px 15px var(--shadow-light);
}
.contact-info-block h3 {
 color: var(--primary-color);
 margin-bottom: 1.5em;
 font-size: 1.8em;
}
.contact-info-block p {
 margin-bottom: 1em;
 display: flex;
 align-items: center;
 gap: 10px;
 color: var(--text-color-light);
}
.contact-info-block p strong {
 color: var(--text-color-dark);
 min-width: 80px; /* Align labels */
}
.contact-info-block a {
 color: var(--text-color-light);
}
.contact-info-block a:hover {
 color: var(--primary-color);
}
.contact-info-block .icon {
 color: var(--primary-color);
 font-size: 1.2em; /* Using placeholder for icons if no font-awesome */
}

/* Contact Form Styles */
.contact-form-container h2 {
 color: var(--primary-color);
 margin-bottom: 2rem;
}
.contact-form label {
 display: block;
 font-weight: 600;
 margin-bottom: 0.5rem;
 color: var(--text-color-dark);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
 width: 100%;
 padding: 0.8em 1em;
 margin-bottom: 1.5em;
 border: 1px solid var(--border-color);
 border-radius: var(--border-radius);
 font-family: 'Open Sans', sans-serif;
 font-size: 1em;
 color: var(--text-color-dark);
 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 rgba(66, 133, 244, 0.2);
 outline: none;
}
.contact-form textarea {
 resize: vertical;
 min-height: 120px;
}
.contact-form button {
 width: auto;
 padding: 1em 2.5em;
 font-size: 1em;
 cursor: pointer;
 border: none;
 background-color: var(--primary-color);
 color: var(--white-color);
 border-radius: var(--border-radius);
 font-weight: 600;
 transition: background-color var(--transition-speed);
}
.contact-form button:hover {
 background-color: #357ae8;
}

.map-section {
 padding-bottom: 4rem;
}
.map-section h2 {
 text-align: center;
 margin-bottom: 2rem;
 color: var(--primary-color);
}
.map-container {
 width: 100%;
 height: 450px;
 border-radius: var(--border-radius);
 overflow: hidden;
 box-shadow: 0 4px 15px var(--shadow-light);
}

/* Blog Page Specifics */
.blog-intro-section {
 padding: 4rem 0;
 background-color: var(--background-light);
 text-align: center;
}
.blog-intro-section h1 {
 font-size: 3em;
 color: var(--primary-color);
 margin-bottom: 0.5em;
}
.blog-intro-section p {
 font-size: 1.25em;
 max-width: 900px;
 margin: 0 auto 2em;
}
.blog-page-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 3rem;
 padding-bottom: 4rem;
}

/* Blog Post Specifics */
.blog-post-header {
 background-color: var(--background-dark);
 color: var(--white-color);
 padding: 4rem 0;
 text-align: center;
 margin-bottom: 3rem;
}
.blog-post-header h1 {
 font-size: 3em;
 color: var(--white-color);
 margin-bottom: 0.5em;
}
.blog-post-meta {
 font-size: 0.9em;
 color: rgba(255, 255, 255, 0.7);
 margin-bottom: 1em;
}
.blog-post-meta a {
 color: var(--primary-color);
}
.blog-post-content {
 max-width: 800px;
 margin: 0 auto;
 padding: 0 1.5rem 4rem;
}
.blog-post-content h2,
.blog-post-content h3 {
 color: var(--primary-color);
 margin-top: 2em;
 margin-bottom: 1em;
}
.blog-post-content p {
 margin-bottom: 1.5em;
 font-size: 1.1em;
 line-height: 1.7;
 color: var(--text-color-dark);
}
.blog-post-content ul {
 list-style: disc;
 margin-left: 1.5em;
 margin-bottom: 1.5em;
 color: var(--text-color-dark);
}
.blog-post-content ul li {
 margin-bottom: 0.5em;
}
.blog-post-content img {
 border-radius: var(--border-radius);
 box-shadow: 0 4px 15px var(--shadow-light);
 margin: 2em 0;
}
.author-box {
 display: flex;
 align-items: center;
 gap: 1.5rem;
 background-color: var(--background-light);
 padding: 1.5rem;
 border-radius: var(--border-radius);
 margin-top: 3rem;
 border: 1px solid var(--border-color);
}
.author-box img {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 border: 2px solid var(--secondary-color);
 flex-shrink: 0;
}
.author-info h4 {
 margin-bottom: 0.3em;
 color: var(--text-color-dark);
}
.author-info p {
 font-size: 0.9em;
 color: var(--text-color-light);
 margin-bottom: 0;
}
.related-posts {
 margin-top: 4rem;
 padding-top: 2rem;
 border-top: 1px solid var(--border-color);
}
.related-posts h2 {
 text-align: center;
 margin-bottom: 2rem;
 color: var(--primary-color);
}
.related-posts-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
}

/* Gallery Page Specifics */
.gallery-intro-section {
 padding: 4rem 0;
 background-color: var(--background-light);
 text-align: center;
}
.gallery-intro-section h1 {
 font-size: 3em;
 color: var(--primary-color);
 margin-bottom: 0.5em;
}
.gallery-intro-section p {
 font-size: 1.25em;
 max-width: 900px;
 margin: 0 auto 2em;
}

.image-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 1.5rem;
 padding-bottom: 4rem;
}
.gallery-item {
 background-color: var(--white-color);
 border-radius: var(--border-radius);
 box-shadow: 0 4px 10px var(--shadow-light);
 overflow: hidden;
 cursor: pointer;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.gallery-item:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 20px var(--shadow-medium);
}
.gallery-item img {
 width: 100%;
 height: 250px;
 object-fit: cover;
 display: block;
}

/* Lightbox styles (optional, can be implemented with JS) */
.lightbox {
 display: none; /* Hidden by default */
 position: fixed; /* Stay in place */
 z-index: 2000; /* Sit on top */
 padding-top: 50px; /* Location of the box */
 left: 0;
 top: 0;
 width: 100%; /* Full width */
 height: 100%; /* Full height */
 overflow: auto; /* Enable scroll if needed */
 background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.lightbox-content {
 margin: auto;
 display: block;
 width: 80%;
 max-width: 700px;
 max-height: 90vh; /* Adjust for fixed header/footer */
 object-fit: contain;
}

.lightbox-text {
 margin: auto;
 display: block;
 width: 80%;
 max-width: 700px;
 text-align: center;
 color: #ccc;
 padding: 10px 0;
 height: 150px;
}

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

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

/* Legal Pages (Privacy, Terms, etc.) */
.legal-page-content {
 max-width: 900px;
 margin: 0 auto;
 padding: 4rem 1.5rem;
}
.legal-page-content h1 {
 font-size: 2.5em;
 color: var(--primary-color);
 margin-bottom: 1em;
 text-align: center;
}
.legal-page-content h2 {
 font-size: 1.8em;
 color: var(--text-color-dark);
 margin-top: 2em;
 margin-bottom: 0.8em;
}
.legal-page-content h3 {
 font-size: 1.4em;
 color: var(--text-color-dark);
 margin-top: 1.5em;
 margin-bottom: 0.5em;
}
.legal-page-content p,
.legal-page-content ul,
.legal-page-content ol {
 margin-bottom: 1em;
 font-size: 1em;
 line-height: 1.7;
 color: var(--text-color-light);
}
.legal-page-content ul,
.legal-page-content ol {
 margin-left: 1.5em;
}
.legal-page-content ul li,
.legal-page-content ol li {
 margin-bottom: 0.5em;
}
.legal-page-content address {
 font-style: normal;
 margin-bottom: 1em;
 color: var(--text-color-light);
}
.legal-page-content a {
 text-decoration: underline;
}

/* Thanks Page */
.thanks-section {
 min-height: 60vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 background-color: var(--background-light);
 padding: 4rem 1.5rem;
}
.thanks-content h1 {
 font-size: 3.5em;
 color: var(--primary-color);
 margin-bottom: 0.5em;
}
.thanks-content p {
 font-size: 1.3em;
 max-width: 700px;
 margin: 0 auto 2em;
}

/* 404 Page */
.error-section {
 min-height: 70vh;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 text-align: center;
 background-color: var(--background-dark);
 color: var(--white-color);
 padding: 4rem 1.5rem;
}
.error-section h1 {
 font-size: 6em;
 margin-bottom: 0.2em;
 color: var(--accent-color);
 letter-spacing: 5px;
}
.error-section h2 {
 font-size: 2.5em;
 margin-bottom: 1em;
 color: var(--white-color);
}
.error-section p {
 font-size: 1.2em;
 max-width: 600px;
 margin-bottom: 2em;
 color: rgba(255, 255, 255, 0.8);
}

/* Footer */
footer {
 background-color: var(--background-dark);
 color: var(--white-color);
 padding: 3rem 0;
 font-size: 0.9em;
}

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

.footer-col h3, .footer-col h4 {
 color: var(--white-color);
 margin-bottom: 1em;
 font-size: 1.1em;
 font-weight: 600;
}

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

.footer-col ul {
 margin: 0;
 padding: 0;
}

.footer-col ul li {
 margin-bottom: 0.7em;
}

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

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

.footer-col.brand-info p {
 line-height: 1.8;
}

.footer-col.contact-info p {
 display: flex;
 align-items: flex-start;
 gap: 10px;
}

.footer-col.contact-info a {
 color: rgba(255, 255, 255, 0.7);
}

.footer-col.contact-info a:hover {
 color: var(--primary-color);
}

footer address {
 font-style: normal;
 color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
 h1 { font-size: 2.5em; }
 h2 { font-size: 2em; }
 h3 { font-size: 1.6em; }
 .hero-content h1 { font-size: 2.8em; }
 .hero-content p { font-size: 1.1em; }
 .hero-section .container {
 flex-direction: column-reverse;
 text-align: center;
 gap: 2rem;
 }
 .hero-image {
 margin-top: 2rem;
 }
 .hero-image img { max-height: 400px; }
 .about-content-wrapper {
 flex-direction: column;
 text-align: center;
 }
 .about-image {
 order: 1;
 }
 .about-text {
 order: 2;
 }
 .mission-values-section .container {
 flex-direction: column;
 }
 .footer-grid {
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 }
 .contact-details-section {
 flex-direction: column;
 align-items: center;
 padding: 2rem 0;
 }
 .contact-form-container,
 .contact-info-block {
 box-shadow: none; /* Remove shadows for cleaner look on small screens */
 border: 1px solid var(--border-color);
 padding: 2rem;
 width: 100%;
 max-width: 600px;
 }
 .blog-post-header h1 {
 font-size: 2.5em;
 }
 .error-section h1 {
 font-size: 4em;
 }

}

@media (max-width: 768px) {
 .nav-links {
 display: none;
 flex-direction: column;
 position: absolute;
 top: 100%;
 left: 0;
 width: 100%;
 background-color: var(--white-color);
 box-shadow: 0 8px 10px var(--shadow-light);
 padding: 1rem 0;
 border-top: 1px solid var(--border-color);
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-in-out;
 }
 .nav-links.active {
 display: flex;
 max-height: 300px; /* Adjust based on content */
 }
 .nav-links li {
 width: 100%;
 text-align: center;
 }
 .nav-links a {
 display: block;
 padding: 0.8rem 0;
 border-bottom: 1px solid var(--background-light);
 }
 .nav-links a::after {
 display: none; /* Hide underline for mobile menu */
 }
 .nav-toggle {
 display: flex;
 }

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

 .section-spacing {
 padding: 3rem 0;
 }

 .hero-content h1 { font-size: 2.5em; }
 .hero-content p { font-size: 1em; }
 .hero-section { padding-top: 2rem; }

 .footer-grid {
 grid-template-columns: 1fr;
 text-align: center;
 }
 .footer-col {
 padding-top: 1rem;
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 }
 .footer-col:first-child {
 border-top: none;
 }
 .footer-col ul {
 display: flex;
 flex-direction: column;
 align-items: center;
 }
 .footer-col.contact-info p {
 justify-content: center;
 }
 .about-intro-section h1,
 .service-intro-section h1,
 .blog-intro-section h1,
 .gallery-intro-section h1,
 .legal-page-content h1,
 .thanks-content h1 {
 font-size: 2.2em;
 }
 .thanks-content p {
 font-size: 1.1em;
 }
 .error-section h1 {
 font-size: 3em;
 }
 .error-section h2 {
 font-size: 2em;
 }
}