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

:root {
 --primary-color: #9a3412;
 --accent-color: #ea580c;
 --text-color: #333;
 --light-text-color: #555;
 --white-color: #ffffff;
 --light-bg-color: #f8fafc;
 --dark-bg-color: #1a202c; /* adjusted for good contrast with text on footer */
 --border-color: #e2e8f0;
 --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
 --shadow-medium: 0 10px 15px rgba(0, 0, 0, 0.1);
 --font-family-primary: 'Roboto', sans-serif;
 --font-family-secondary: 'Playfair Display', serif;
}

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

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

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

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

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

ul {
 list-style: none;
}

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

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

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

p {
 margin-bottom: 1em;
}

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

.section {
 padding: 4rem 0;
 overflow: hidden; /* For reveal animations */
}

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

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

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

/* Buttons */
.btn {
 display: inline-block;
 padding: 0.8rem 1.8rem;
 border-radius: 5px;
 font-weight: 500;
 font-family: var(--font-family-primary);
 text-align: center;
 transition: all 0.3s ease;
 border: 2px solid transparent;
 cursor: pointer;
 font-size: 1rem;
}

.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);
 transform: translateY(-2px);
}

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

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

.btn-text {
 background: none;
 border: none;
 color: var(--primary-color);
 padding: 0.5rem 0;
 font-weight: 500;
 text-decoration: underline;
}

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

/* Header */
.main-header {
 background-color: var(--white-color);
 box-shadow: var(--shadow-light);
 position: sticky;
 top: 0;
 width: 100%;
 z-index: 1000;
}

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

.logo {
 font-family: var(--font-family-secondary);
 font-size: 1.8rem;
 font-weight: 700;
 color: var(--primary-color);
 margin-right: auto;
}
.logo:hover {
 color: var(--accent-color);
}

.nav-menu {
 display: flex;
 gap: 2rem;
}

.nav-menu li a {
 color: var(--text-color);
 font-weight: 500;
 padding: 0.5rem 0;
 position: relative;
}

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

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

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

.nav-toggle span {
 display: block;
 width: 100%;
 height: 2px;
 background-color: var(--text-color);
 transition: all 0.3s ease;
}

/* Mobile nav styles */
@media (max-width: 768px) {
 .navbar {
 padding: 1rem;
 }

 .nav-menu {
 flex-direction: column;
 position: fixed;
 top: 80px; /* Adjust based on header height */
 left: -100%;
 width: 80%;
 max-width: 300px;
 height: calc(100vh - 80px); /* Adjust based on header height */
 background-color: var(--dark-bg-color);
 padding: 2rem;
 box-shadow: var(--shadow-medium);
 transition: left 0.3s ease-in-out;
 z-index: 999;
 overflow-y: auto;
 }

 .nav-menu.active {
 left: 0;
 }

 .nav-menu li {
 margin: 1rem 0;
 }

 .nav-menu li a {
 color: var(--white-color);
 font-size: 1.2rem;
 padding: 0.8rem 0;
 display: block;
 }

 .nav-menu li a::after {
 background-color: var(--accent-color);
 }

 .nav-toggle {
 display: flex;
 }

 /* Hamburger animation */
 .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 {
 position: relative;
 width: 100%;
 height: 60vh; /* Adjust height as needed */
 min-height: 400px;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--white-color);
 text-align: center;
 overflow: hidden;
}

.hero-image {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 filter: brightness(0.4); /* Darken image for better text contrast */
 z-index: 1;
}

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

.hero-text-overlay {
 background: rgba(0, 0, 0, 0.4); /* Additional overlay for text readability */
 padding: 2rem;
 border-radius: 10px;
}

.hero-section h1 {
 font-family: var(--font-family-secondary);
 font-size: clamp(2.5rem, 5vw, 4.5rem);
 margin-bottom: 0.5rem;
 color: var(--white-color);
}

.hero-section p {
 font-size: clamp(1rem, 2vw, 1.3rem);
 margin-bottom: 2rem;
 color: var(--white-color);
 opacity: 0.9;
}

/* Feature Overview */
.features-overview h2, .services-overview h2, .testimonials h2, .cta-section h2, .blog-section h2, .faq-section h2 {
 text-align: center;
 margin-bottom: 2rem;
 position: relative;
}

.features-overview .section-description, .services-overview .section-description, .blog-section .section-description {
 text-align: center;
 max-width: 700px;
 margin: 0 auto 3rem auto;
 font-size: 1.1rem;
 color: var(--light-text-color);
}

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

.feature-item {
 background-color: var(--white-color);
 border-radius: 8px;
 box-shadow: var(--shadow-light);
 padding: 2rem;
 text-align: center;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 display: flex;
 flex-direction: column;
 align-items: center;
}

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

.feature-item img {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: 8px;
 margin-bottom: 1.5rem;
}

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

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

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

.about-image {
 flex: 1;
 min-width: 300px;
 border-radius: 8px;
 box-shadow: var(--shadow-medium);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-image:hover {
 transform: scale(1.02);
 box-shadow: var(--shadow-medium);
}

.about-text {
 flex: 2;
 padding-right: 1.5rem;
}

.about-text h2 {
 color: var(--primary-color);
 font-size: 2.2rem;
 margin-bottom: 1rem;
}

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

@media (max-width: 992px) {
 .about-content {
 flex-direction: column;
 text-align: center;
 }
 .about-text {
 padding-right: 0;
 }
}

/* Services Overview */
.services-grid {
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card {
 background-color: var(--white-color);
 border-radius: 8px;
 box-shadow: var(--shadow-light);
 padding: 2rem;
 text-align: center;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 border-top: 4px solid var(--primary-color);
 display: flex;
 flex-direction: column;
 justify-content: space-between;
}

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

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

.service-card p {
 color: var(--light-text-color);
 margin-bottom: 1.5rem;
 flex-grow: 1; /* Ensures buttons align at bottom */
}

/* Testimonials */
.testimonials {
 padding: 6rem 0;
}

.testimonial-carousel {
 display: flex;
 overflow-x: auto;
 scroll-snap-type: x mandatory;
 -webkit-overflow-scrolling: touch;
 gap: 1.5rem;
 padding-bottom: 1rem;
 margin-top: 3rem;
}

.testimonial-carousel::-webkit-scrollbar {
 height: 8px;
}

.testimonial-carousel::-webkit-scrollbar-track {
 background: var(--border-color);
 border-radius: 10px;
}

.testimonial-carousel::-webkit-scrollbar-thumb {
 background: var(--primary-color);
 border-radius: 10px;
}

.testimonial-item {
 flex: 0 0 350px; /* Fixed width for carousel items */
 scroll-snap-align: start;
 background-color: var(--white-color);
 border-radius: 8px;
 box-shadow: var(--shadow-light);
 padding: 2.5rem;
 text-align: center;
 display: flex;
 flex-direction: column;
 align-items: center;
 min-width: 300px;
}

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

.testimonial-item blockquote {
 font-size: 1.1rem;
 font-style: italic;
 color: var(--light-text-color);
 margin-bottom: 1.5rem;
 line-height: 1.8;
}

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

/* CTA Section */
.cta-section {
 background-color: var(--primary-color);
 color: var(--white-color);
 padding: 5rem 0;
 text-align: center;
}

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

.cta-section p {
 font-size: 1.2rem;
 margin-bottom: 2.5rem;
 opacity: 0.9;
}

.cta-section .btn-primary {
 background-color: var(--accent-color);
 border-color: var(--accent-color);
 padding: 1rem 2.5rem;
 font-size: 1.1rem;
}

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

/* Footer */
.main-footer {
 background-color: var(--dark-bg-color);
 color: var(--white-color);
 padding: 4rem 0 1.5rem;
 font-size: 0.9rem;
}

.main-footer h3 {
 color: var(--white-color);
 font-size: 1.2rem;
 margin-bottom: 1.5rem;
}

.main-footer a {
 color: var(--white-color);
 opacity: 0.8;
}

.main-footer a:hover {
 color: var(--accent-color);
 opacity: 1;
}

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

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

.footer-column ul {
 list-style: none;
 padding: 0;
}

.footer-column ul li {
 margin-bottom: 0.6rem;
}

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

/* General card styling (for services, blog, etc.) */
.card {
 background-color: var(--white-color);
 border-radius: 8px;
 box-shadow: var(--shadow-light);
 padding: 2rem;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 display: flex;
 flex-direction: column;
}

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

.card-header {
 margin-bottom: 1rem;
}

.card-header h3 {
 color: var(--primary-color);
 font-size: 1.5rem;
}

.card-body p {
 color: var(--light-text-color);
 font-size: 0.95rem;
 flex-grow: 1;
}

.card-image {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: 6px;
 margin-bottom: 1.5rem;
}

/* Forms */
.contact-form {
 background-color: var(--white-color);
 padding: 2rem;
 border-radius: 8px;
 box-shadow: var(--shadow-light);
 max-width: 600px;
 margin: 2rem auto;
}

.form-group {
 margin-bottom: 1.5rem;
}

.form-group label {
 display: block;
 margin-bottom: 0.5rem;
 font-weight: 500;
 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: 0.8rem;
 border: 1px solid var(--border-color);
 border-radius: 5px;
 font-family: var(--font-family-primary);
 font-size: 1rem;
 transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.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 2px rgba(154, 52, 18, 0.2);
 outline: none;
}

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

.contact-form .btn-primary {
 width: 100%;
 padding: 1rem;
 font-size: 1.1rem;
}

/* Accordion */
.accordion-item {
 background-color: var(--white-color);
 border: 1px solid var(--border-color);
 border-radius: 8px;
 margin-bottom: 1rem;
 box-shadow: var(--shadow-light);
 overflow: hidden;
}

.accordion-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 1.2rem 1.5rem;
 cursor: pointer;
 background-color: var(--light-bg-color);
 transition: background-color 0.3s ease;
}

.accordion-header:hover {
 background-color: #eef2f5;
}

.accordion-header h3 {
 margin: 0;
 font-size: 1.15rem;
 color: var(--text-color);
}

.accordion-icon {
 font-size: 1.5rem;
 color: var(--primary-color);
 transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
 transform: rotate(180deg);
}

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

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

.accordion-content p {
 color: var(--light-text-color);
 margin-bottom: 0;
 padding-top: 0.5rem;
}

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

.gallery-item {
 overflow: hidden;
 border-radius: 8px;
 box-shadow: var(--shadow-light);
 cursor: pointer;
 position: relative;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

/* Lightbox styles (simplified for example) */
.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);
 align-items: center;
 justify-content: center;
 flex-direction: column;
}

.lightbox-content {
 margin: auto;
 display: block;
 max-width: 90%;
 max-height: 90%;
 border-radius: 8px;
}

.lightbox-caption {
 margin-top: 1rem;
 color: var(--white-color);
 font-size: 1.2rem;
 text-align: center;
}

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

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

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

.reveal-item.visible {
 opacity: 1;
 transform: translateY(0);
}

/* Page specific styles */
/* About Page */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
 margin-top: 3rem;
}

.team-member {
 background-color: var(--white-color);
 border-radius: 8px;
 box-shadow: var(--shadow-light);
 padding: 1.5rem;
 text-align: center;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.team-member h3 {
 margin-bottom: 0.5rem;
 color: var(--primary-color);
 font-size: 1.3rem;
}

.team-member p {
 font-weight: 500;
 color: var(--accent-color);
 margin-bottom: 1rem;
 font-size: 0.95rem;
}

.team-member .bio {
 color: var(--light-text-color);
 font-size: 0.9rem;
 line-height: 1.5;
}

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

.value-item {
 background-color: var(--light-bg-color);
 border-left: 5px solid var(--primary-color);
 padding: 1.5rem;
 border-radius: 8px;
 box-shadow: var(--shadow-light);
 transition: all 0.3s ease;
}

.value-item:hover {
 box-shadow: var(--shadow-medium);
 transform: translateX(5px);
}

.value-item h4 {
 color: var(--primary-color);
 margin-bottom: 0.8rem;
 font-size: 1.2rem;
}

.value-item p {
 color: var(--light-text-color);
 font-size: 0.9rem;
}

/* Services Page specific */
.service-details {
 display: flex;
 flex-direction: column;
 gap: 3rem;
 margin-top: 3rem;
}

.service-detail-item {
 display: flex;
 align-items: flex-start;
 gap: 2.5rem;
 padding: 2rem;
 border-radius: 8px;
 box-shadow: var(--shadow-light);
 background-color: var(--white-color);
}

.service-detail-item:nth-child(even) {
 flex-direction: row-reverse;
 background-color: var(--light-bg-color);
}

.service-detail-item img {
 flex: 1;
 min-width: 300px;
 max-width: 40%;
 height: auto;
 object-fit: cover;
 border-radius: 8px;
 box-shadow: var(--shadow-light);
}

.service-detail-content {
 flex: 1.5;
}

.service-detail-content h3 {
 color: var(--primary-color);
 margin-top: 0;
 font-size: 1.8rem;
}

.service-detail-content ul {
 list-style: disc;
 padding-left: 1.5rem;
 color: var(--light-text-color);
 margin-bottom: 1.5rem;
}

.service-detail-content ul li {
 margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
 .service-detail-item {
 flex-direction: column !important; /* Override even/odd for mobile */
 text-align: center;
 }
 .service-detail-item img {
 max-width: 100%;
 margin-bottom: 2rem;
 }
 .service-detail-content ul {
 text-align: left; /* Keep list left-aligned */
 }
}

.process-section {
 background-color: var(--primary-color);
 color: var(--white-color);
 padding: 5rem 0;
}

.process-section h2 {
 color: var(--white-color);
 text-align: center;
 margin-bottom: 3.5rem;
}

.process-steps {
 display: flex;
 justify-content: space-around;
 align-items: flex-start;
 flex-wrap: wrap;
 gap: 2rem;
}

.process-step {
 flex: 1;
 min-width: 250px;
 max-width: 300px;
 text-align: center;
 position: relative;
 padding: 1.5rem;
 border-radius: 8px;
 background-color: rgba(255, 255, 255, 0.1);
 backdrop-filter: blur(5px);
 border: 1px solid rgba(255, 255, 255, 0.2);
 box-shadow: var(--shadow-light);
}

.process-step::before {
 content: attr(data-step);
 position: absolute;
 top: -20px;
 left: 50%;
 transform: translateX(-50%);
 background-color: var(--accent-color);
 color: var(--white-color);
 border-radius: 50%;
 width: 40px;
 height: 40px;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 700;
 font-size: 1.2rem;
 border: 3px solid var(--primary-color);
 box-shadow: var(--shadow-light);
}

.process-step h4 {
 color: var(--white-color);
 margin-top: 1.5rem;
 font-size: 1.3rem;
}

.process-step p {
 color: rgba(255, 255, 255, 0.8);
 font-size: 0.95rem;
}

/* Blog page */
.blog-post-card {
 background-color: var(--white-color);
 border-radius: 8px;
 box-shadow: var(--shadow-light);
 overflow: hidden;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.blog-card-content {
 padding: 1.5rem;
}

.blog-card-content h3 {
 margin-top: 0;
 font-size: 1.6rem;
 color: var(--primary-color);
}

.blog-card-content p {
 color: var(--light-text-color);
 font-size: 0.95rem;
 margin-bottom: 1rem;
}

.blog-meta {
 font-size: 0.85rem;
 color: #888;
 margin-bottom: 1rem;
}
.blog-meta span {
 margin-right: 15px;
}
.blog-meta .author {
 font-weight: 500;
 color: var(--primary-color);
}

/* Single blog post */
.blog-post-header {
 text-align: center;
 margin-bottom: 3rem;
}

.blog-post-header h1 {
 font-size: clamp(2rem, 4vw, 3.5rem);
 color: var(--primary-color);
 margin-bottom: 1rem;
}

.blog-post-header .meta {
 font-size: 0.9rem;
 color: #777;
}

.blog-post-header .meta span {
 margin: 0 10px;
}
.blog-post-header .meta .author {
 font-weight: 500;
 color: var(--accent-color);
}

.blog-post-image {
 width: 100%;
 height: clamp(250px, 40vw, 500px);
 object-fit: cover;
 border-radius: 8px;
 margin-bottom: 2.5rem;
 box-shadow: var(--shadow-medium);
}

.blog-post-content {
 max-width: 800px;
 margin: 0 auto;
 font-size: 1.1rem;
 line-height: 1.8;
 color: var(--light-text-color);
}

.blog-post-content h2, .blog-post-content h3 {
 color: var(--primary-color);
 margin-top: 2rem;
 margin-bottom: 1rem;
 font-size: 1.8rem;
}

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

.blog-post-content ul, .blog-post-content ol {
 margin-left: 1.5rem;
 margin-bottom: 1.5rem;
 color: var(--light-text-color);
}

.blog-post-content ul li, .blog-post-content ol li {
 margin-bottom: 0.5rem;
}

.author-box {
 display: flex;
 align-items: center;
 gap: 1.5rem;
 background-color: var(--light-bg-color);
 padding: 1.5rem;
 border-radius: 8px;
 margin-top: 3rem;
 box-shadow: var(--shadow-light);
}

.author-box img {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 border: 2px solid var(--primary-color);
}

.author-info h4 {
 margin-top: 0;
 margin-bottom: 0.5rem;
 color: var(--primary-color);
 font-size: 1.2rem;
}

.author-info p {
 margin: 0;
 font-size: 0.9rem;
 color: var(--light-text-color);
}

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

.related-posts h3 {
 text-align: center;
 margin-bottom: 2.5rem;
 color: var(--primary-color);
}

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

/* Thank you page */
.thank-you-container {
 padding: 5rem 0;
 text-align: center;
 background-color: var(--light-bg-color);
 min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

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

.thank-you-container p {
 font-size: 1.2rem;
 color: var(--light-text-color);
 margin-bottom: 2rem;
 max-width: 600px;
}

/* 404 page */
.error-container {
 padding: 5rem 0;
 text-align: center;
 background-color: var(--light-bg-color);
 min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.error-container h1 {
 font-size: 6rem;
 color: var(--accent-color);
 margin-bottom: 0.5rem;
 line-height: 1;
}

.error-container h2 {
 font-size: 2.5rem;
 color: var(--primary-color);
 margin-bottom: 1.5rem;
}

.error-container p {
 font-size: 1.1rem;
 color: var(--light-text-color);
 margin-bottom: 2.5rem;
}

.error-container .btn-primary {
 padding: 0.9rem 2rem;
}

/* Legal pages */
.legal-content {
 max-width: 800px;
 margin: 0 auto;
 padding: 2rem 0;
 line-height: 1.7;
 font-size: 1rem;
 color: var(--light-text-color);
}

.legal-content h1 {
 text-align: center;
 color: var(--primary-color);
 margin-bottom: 2rem;
 font-size: 2.5rem;
}

.legal-content h2 {
 color: var(--primary-color);
 margin-top: 2rem;
 margin-bottom: 1rem;
 font-size: 1.8rem;
}

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

.legal-content p {
 margin-bottom: 1.2rem;
}

.legal-content ul, .legal-content ol {
 list-style: disc;
 padding-left: 1.5rem;
 margin-bottom: 1.5rem;
}

.legal-content ol {
 list-style: decimal;
}

.legal-content ul li, .legal-content ol li {
 margin-bottom: 0.5rem;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
 h1 { font-size: 2.2rem; }
 h2 { font-size: 1.8rem; }
 h3 { font-size: 1.5rem; }

 .section {
 padding: 3rem 0;
 }

 .hero-section {
 height: 50vh;
 min-height: 350px;
 }

 .hero-text-overlay {
 padding: 1.5rem;
 }
 .hero-section h1 {
 font-size: 2.5rem;
 }
 .hero-section p {
 font-size: 1rem;
 }

 .feature-grid, .services-grid, .blog-grid, .team-grid, .values-grid, .related-posts-grid {
 grid-template-columns: 1fr;
 }

 .about-content {
 flex-direction: column;
 gap: 2rem;
 }

 .about-image {
 min-width: unset;
 max-width: 100%;
 }

 .testimonial-item {
 flex: 0 0 90vw;
 margin: 0 1rem;
 padding: 1.5rem;
 }
 .testimonial-carousel {
 padding-bottom: 0.5rem;
 }

 .process-steps {
 flex-direction: column;
 align-items: center;
 }
 .process-step {
 max-width: 90%;
 }

 .footer-grid {
 grid-template-columns: 1fr;
 text-align: center;
 }
 .footer-column ul {
 padding-left: 0;
 }
 .footer-column ul li {
 display: inline-block;
 margin: 0 0.5rem;
 }
 .footer-column.company-info p, .footer-column.contact-info p {
 max-width: 300px;
 margin-left: auto;
 margin-right: auto;
 }

 /* Specific adjustments for smaller screens */
 .blog-post-card img {
 height: 180px;
 }
 .blog-card-content h3 {
 font-size: 1.4rem;
 }
 .blog-post-content h2, .blog-post-content h3 {
 font-size: 1.6rem;
 }
 .author-box {
 flex-direction: column;
 text-align: center;
 }
}

@media (max-width: 480px) {
 .navbar {
 height: 60px;
 }
 .nav-menu {
 top: 60px;
 height: calc(100vh - 60px);
 }
 .logo {
 font-size: 1.5rem;
 }
 h1 { font-size: 1.8rem; }
 h2 { font-size: 1.6rem; }
 h3 { font-size: 1.3rem; }

 .btn {
 padding: 0.7rem 1.4rem;
 font-size: 0.9rem;
 }

 .hero-section h1 {
 font-size: 2rem;
 }
 .cta-section .btn-primary {
 padding: 0.8rem 1.8rem;
 font-size: 1rem;
 }

 .testimonial-item {
 flex: 0 0 95vw;
 padding: 1.2rem;
 }
}