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

/* Variables */
:root {
 --primary-color: #3498DB; /* Blue */
 --secondary-color: #2C3E50; /* Dark Blue */
 --accent-color: #E74C3C; /* Red */
 --light-gray: #ECF0F1; /* Light Gray */
 --dark-text: #333;
 --light-text: #f0f0f0;
 --border-color: #ddd;
 --link-hover-color: #1a6bb7;
 --shadow-light: rgba(0, 0, 0, 0.08);
 --shadow-medium: rgba(0, 0, 0, 0.15);
 --header-height: 80px;

 /* Fonts */
 --font-heading: 'Montserrat', sans-serif;
 --font-body: 'Open Sans', sans-serif;
}

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

html {
 scroll-behavior: smooth;
}

body {
 font-family: var(--font-body);
 line-height: 1.6;
 color: var(--dark-text);
 background-color: #fff;
 -webkit-font-smoothing: antialiased;
 display: flex;
 flex-direction: column;
 min-height: 100vh;
}

main {
 flex: 1;
}

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

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

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

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

p {
 margin-bottom: 1em;
}

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

ul {
 list-style: none;
}

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

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

/* Buttons */
.btn {
 display: inline-block;
 padding: 12px 25px;
 border-radius: 8px;
 font-family: var(--font-heading);
 font-weight: 600;
 text-align: center;
 cursor: pointer;
 transition: all 0.3s ease;
 border: none;
 font-size: 1rem;
}

.btn-primary {
 background-color: var(--primary-color);
 color: var(--light-text);
 box-shadow: 0 4px 10px var(--shadow-medium);
}

.btn-primary:hover {
 background-color: var(--link-hover-color);
 transform: translateY(-2px);
 box-shadow: 0 6px 15px var(--shadow-medium);
}

.btn-secondary {
 background-color: var(--secondary-color);
 color: var(--light-text);
 box-shadow: 0 4px 10px var(--shadow-medium);
}

.btn-secondary:hover {
 background-color: #1f2d3f;
 transform: translateY(-2px);
 box-shadow: 0 6px 15px var(--shadow-medium);
}

.btn-light {
 background-color: var(--light-gray);
 color: var(--secondary-color);
 box-shadow: 0 4px 10px var(--shadow-medium);
}

.btn-light:hover {
 background-color: #dbe4e6;
 transform: translateY(-2px);
 box-shadow: 0 6px 15px var(--shadow-medium);
}

.btn-lg {
 padding: 15px 30px;
 font-size: 1.1rem;
}

/* Sections */
section {
 padding: 80px 0;
 position: relative;
 overflow: hidden;
}

.section-dark {
 background-color: var(--secondary-color);
 color: var(--light-text);
}

.section-dark h2, .section-dark h3 {
 color: var(--primary-color);
}

.section-dark a {
 color: var(--light-gray);
}

.section-dark a:hover {
 color: var(--primary-color);
}

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

.section-title {
 font-size: 2.5em;
 margin-bottom: 20px;
 text-align: center;
 position: relative;
 padding-bottom: 15px;
}

.section-title::after {
 content: '';
 position: absolute;
 left: 50%;
 bottom: 0;
 transform: translateX(-50%);
 width: 80px;
 height: 4px;
 background-color: var(--primary-color);
 border-radius: 2px;
}

.section-title-light {
 color: var(--light-text);
 font-size: 2.5em;
 margin-bottom: 20px;
 text-align: center;
 position: relative;
 padding-bottom: 15px;
}

.section-title-light::after {
 content: '';
 position: absolute;
 left: 50%;
 bottom: 0;
 transform: translateX(-50%);
 width: 80px;
 height: 4px;
 background-color: var(--light-gray);
 border-radius: 2px;
}

.section-description {
 text-align: center;
 max-width: 800px;
 margin: 0 auto 50px auto;
 font-size: 1.1em;
 color: #666;
}

.section-dark .section-description {
 color: #b0c0c8;
}

/* Header */
header {
 background-color: #fff;
 padding: 1rem 0;
 position: sticky;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 1000;
 box-shadow: 0 2px 10px var(--shadow-light);
 transition: box-shadow 0.3s ease;
}

header.scrolled {
 box-shadow: 0 4px 15px var(--shadow-medium);
}

nav {
 display: flex;
 justify-content: space-between;
 align-items: center;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 1.5rem;
 height: var(--header-height);
 position: relative;
}

.logo {
 font-family: var(--font-heading);
 font-size: 1.6rem;
 font-weight: 700;
 color: var(--secondary-color);
 text-decoration: none;
 position: relative;
 z-index: 1001; /* Ensure logo is above mobile menu */
}

.nav-links {
 display: flex;
 gap: 2rem;
 list-style: none;
}

.nav-links a {
 color: var(--secondary-color);
 font-weight: 600;
 font-size: 1.05rem;
 transition: color 0.3s ease, border-bottom 0.3s ease;
 padding-bottom: 5px;
 position: relative;
}

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

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

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 padding: 10px;
 position: relative;
 z-index: 1001; /* Ensure toggle is above mobile menu */
}

.nav-toggle span {
 display: block;
 width: 25px;
 height: 3px;
 background-color: var(--secondary-color);
 margin: 5px 0;
 transition: all 0.3s ease;
 border-radius: 2px;
}

.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 Section */
.hero-section {
 display: flex;
 align-items: center;
 gap: 40px;
 padding: 100px 0;
 background-color: #f7f9fa;
 min-height: 80vh;
}

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

.hero-content h1 {
 font-size: 3.5em;
 color: var(--secondary-color);
 margin-bottom: 20px;
 line-height: 1.1;
}

.hero-subtitle {
 font-size: 1.3em;
 color: #555;
 margin-bottom: 30px;
 font-weight: 300;
}

.hero-content ul {
 list-style: none;
 margin-bottom: 30px;
}

.hero-content ul li {
 font-size: 1.1em;
 margin-bottom: 10px;
 color: #444;
 display: flex;
 align-items: center;
}

.hero-content ul li i {
 color: var(--primary-color);
 margin-right: 10px;
 font-size: 1.2em;
}

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

.hero-image img {
 max-width: 100%;
 border-radius: 12px;
 box-shadow: 0 10px 30px var(--shadow-medium);
}

/* Trusted By Logos */
.section-trusted-by {
 padding: 60px 0;
 background-color: var(--secondary-color);
}

.section-trusted-by h2 {
 color: var(--light-text);
 text-align: center;
 margin-bottom: 40px;
}

.logos-grid {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 align-items: center;
 gap: 30px;
}

.logos-grid img {
 max-height: 50px;
 filter: grayscale(100%) brightness(0) invert(100%); /* Makes logos white */
 opacity: 0.7;
 transition: opacity 0.3s ease, filter 0.3s ease;
}

.logos-grid img:hover {
 opacity: 1;
 filter: grayscale(0%) brightness(1) invert(0%); /* Restores color on hover */
}

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

.feature-card {
 background-color: #fff;
 padding: 30px;
 border-radius: 12px;
 box-shadow: 0 5px 20px var(--shadow-light);
 text-align: center;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 border-top: 5px solid var(--primary-color);
}

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

.feature-card i {
 font-size: 3em;
 color: var(--primary-color);
 margin-bottom: 20px;
}

.feature-card h3 {
 color: var(--secondary-color);
 font-size: 1.4em;
 margin-bottom: 15px;
}

.feature-card p {
 color: #666;
 font-size: 0.95em;
 line-height: 1.7;
}

/* About Preview Section */
.about-content-wrapper {
 display: flex;
 align-items: center;
 gap: 50px;
}

.about-image {
 flex: 1;
}

.about-image img {
 border-radius: 12px;
 box-shadow: 0 8px 25px var(--shadow-medium);
}

.about-text {
 flex: 1.2;
}

.about-text h2 {
 text-align: left;
 margin-bottom: 20px;
}

.about-text h2::after {
 left: 0;
 transform: translateX(0);
}

.about-text p {
 font-size: 1.05em;
 line-height: 1.7;
 margin-bottom: 20px;
}

/* Testimonials Home */
.testimonials-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
 margin-top: 40px;
}

.testimonial-card {
 background-color: #fff;
 padding: 30px;
 border-radius: 12px;
 box-shadow: 0 5px 20px var(--shadow-light);
 text-align: center;
 display: flex;
 flex-direction: column;
 align-items: center;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
 transform: translateY(-7px);
 box-shadow: 0 12px 25px var(--shadow-medium);
}

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

.testimonial-card p {
 font-style: italic;
 font-size: 1.05em;
 color: #555;
 margin-bottom: 15px;
 flex-grow: 1; /* Allow content to push footer down */
}

.testimonial-card h4 {
 margin-bottom: 5px;
 color: var(--secondary-color);
 font-size: 1.2em;
}

.testimonial-card span {
 font-size: 0.9em;
 color: #888;
}

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

.blog-post-card {
 background-color: #fff;
 border-radius: 12px;
 box-shadow: 0 5px 20px var(--shadow-light);
 overflow: hidden;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 display: flex;
 flex-direction: column;
}

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

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

.blog-post-card h3 {
 margin: 20px 20px 10px 20px;
 font-size: 1.4em;
 line-height: 1.3;
}

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

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

.blog-post-card p {
 margin: 0 20px 15px 20px;
 color: #666;
 font-size: 0.95em;
 flex-grow: 1;
}

.blog-post-card .read-more {
 display: inline-block;
 padding: 0 20px 20px 20px;
 color: var(--primary-color);
 font-weight: 600;
 font-size: 0.95em;
}

.blog-post-card .read-more i {
 margin-left: 5px;
 transition: transform 0.3s ease;
}

.blog-post-card .read-more:hover i {
 transform: translateX(5px);
}

/* FAQ Preview */
.accordion-container {
 max-width: 900px;
 margin: 50px auto 0 auto;
}

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

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

.accordion-header::after {
 content: '+';
 font-size: 1.5em;
 color: var(--primary-color);
 transition: transform 0.3s ease;
}

.accordion-header.active {
 background-color: var(--primary-color);
 color: var(--light-text);
}

.accordion-header.active::after {
 content: '-';
 transform: rotate(180deg);
 color: var(--light-text);
}

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

.accordion-content.active {
 max-height: 200px; /* Adjust based on content */
 padding: 20px 25px;
}

.accordion-content p {
 color: #555;
 margin-bottom: 0;
}

/* Call to Action */
.section-cta {
 padding: 80px 0;
 background-color: var(--accent-color);
 text-align: center;
}

.section-cta .section-title-light {
 font-size: 2.8em;
 margin-bottom: 25px;
 color: var(--light-text);
}

.section-cta .section-title-light::after {
 background-color: var(--light-text);
}

.section-cta p {
 font-size: 1.3em;
 color: var(--light-gray);
 max-width: 800px;
 margin: 0 auto 40px auto;
 font-weight: 300;
}

/* FooterStyles */
footer {
 background-color: var(--secondary-color);
 color: var(--light-text);
 padding: 60px 0 20px 0;
 font-size: 0.95em;
}

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

.footer-col h4 {
 color: var(--primary-color);
 margin-bottom: 20px;
 font-size: 1.2em;
}

.footer-col p {
 color: var(--light-gray);
 margin-bottom: 10px;
}

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

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

.footer-col ul li a {
 color: var(--light-gray);
 text-decoration: none;
 transition: color 0.3s ease;
}

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

.brand-info p {
 margin-bottom: 15px;
 line-height: 1.7;
}

.social-icons {
 margin-top: 20px;
}

.social-icons a {
 color: var(--light-gray);
 font-size: 1.5em;
 margin-right: 15px;
 transition: color 0.3s ease;
}

.social-icons a:hover {
 color: var(--primary-color);
}

.contact-info p i {
 margin-right: 8px;
 color: var(--primary-color);
}

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

/* Generic Card Styles for other pages */
.card-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
}

.card {
 background-color: #fff;
 border-radius: 12px;
 box-shadow: 0 5px 20px var(--shadow-light);
 overflow: hidden;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 display: flex;
 flex-direction: column;
}

.card:hover {
 transform: translateY(-7px);
 box-shadow: 0 12px 25px var(--shadow-medium);
}

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

.card-content {
 padding: 25px;
 flex-grow: 1;
 display: flex;
 flex-direction: column;
}

.card-content h3 {
 margin-top: 0;
 margin-bottom: 10px;
 font-size: 1.5em;
 color: var(--secondary-color);
}

.card-content p {
 color: #666;
 font-size: 0.95em;
 line-height: 1.7;
 margin-bottom: 15px;
 flex-grow: 1;
}

.card-button {
 display: inline-block;
 background-color: var(--primary-color);
 color: var(--light-text);
 padding: 10px 20px;
 border-radius: 6px;
 text-decoration: none;
 font-weight: 600;
 align-self: flex-start;
 transition: background-color 0.3s ease;
}

.card-button:hover {
 background-color: var(--link-hover-color);
}

/* Forms */
.contact-form {
 max-width: 700px;
 margin: 50px auto;
 background-color: #fff;
 padding: 40px;
 border-radius: 12px;
 box-shadow: 0 8px 30px var(--shadow-medium);
}

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

.form-group label {
 display: block;
 margin-bottom: 8px;
 font-weight: 600;
 color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
 width: 100%;
 padding: 12px 15px;
 border: 1px solid var(--border-color);
 border-radius: 8px;
 font-family: var(--font-body);
 font-size: 1rem;
 transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
 border-color: var(--primary-color);
 outline: none;
 box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

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

.form-group input[type="submit"] {
 width: auto;
 background-color: var(--primary-color);
 color: var(--light-text);
 border: none;
 padding: 14px 30px;
 cursor: pointer;
 font-size: 1.1rem;
 font-weight: 600;
 border-radius: 8px;
 transition: background-color 0.3s ease, transform 0.3s ease;
}

.form-group input[type="submit"]:hover {
 background-color: var(--link-hover-color);
 transform: translateY(-2px);
}

.error-message {
 color: var(--accent-color);
 font-size: 0.9em;
 margin-top: 5px;
 display: block;
}

/* Utility Classes for content pages */
.content-section {
 padding: 60px 0;
}

.content-section p {
 margin-bottom: 1em;
 line-height: 1.7;
 font-size: 1.05em;
 color: #444;
}

.content-section ul {
 list-style: disc;
 margin-left: 20px;
 margin-bottom: 1em;
 font-size: 1.05em;
 color: #444;
}

.content-section ol {
 list-style: decimal;
 margin-left: 20px;
 margin-bottom: 1em;
 font-size: 1.05em;
 color: #444;
}

.content-section ul li, .content-section ol li {
 margin-bottom: 0.5em;
}

.content-section h3 {
 margin-top: 2em;
 margin-bottom: 0.8em;
 color: var(--secondary-color);
 font-size: 1.8em;
}

.content-section h4 {
 margin-top: 1.5em;
 margin-bottom: 0.7em;
 color: var(--secondary-color);
 font-size: 1.4em;
}

.content-section blockquote {
 border-left: 4px solid var(--primary-color);
 padding-left: 20px;
 margin: 20px 0;
 font-style: italic;
 color: #666;
 font-size: 1.1em;
}

.author-info {
 display: flex;
 align-items: center;
 margin-top: 40px;
 padding-top: 20px;
 border-top: 1px solid var(--border-color);
}

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

.author-details h4 {
 margin-bottom: 5px;
 font-size: 1.2em;
}

.author-details p {
 font-size: 0.9em;
 color: #777;
 margin-bottom: 0;
}

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

 .hero-section {
 flex-direction: column;
 text-align: center;
 padding: 80px 0 50px 0;
 min-height: auto;
 }

 .hero-content {
 max-width: 80%;
 margin: 0 auto;
 }

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

 .hero-image {
 margin-top: 40px;
 }

 .about-content-wrapper {
 flex-direction: column;
 text-align: center;
 }

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

 .about-text h2::after {
 left: 50%;
 transform: translateX(-50%);
 }

 .section-title {
 font-size: 2em;
 }

 .section-cta .section-title-light {
 font-size: 2.2em;
 }

 .section-description {
 margin-bottom: 30px;
 }

 .footer-grid {
 grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
 }
}

@media (max-width: 768px) {
 nav {
 padding: 0 1rem;
 height: 70px;
 }

 .logo {
 font-size: 1.4rem;
 }

 .nav-links {
 flex-direction: column;
 position: absolute;
 top: var(--header-height);
 left: 0;
 right: 0;
 background-color: var(--secondary-color);
 padding: 20px 0;
 box-shadow: 0 10px 20px var(--shadow-medium);
 display: none;
 opacity: 0;
 transform: translateY(-20px);
 transition: opacity 0.4s ease, transform 0.4s ease, display 0.4s ease;
 }

 .nav-links.active {
 display: flex;
 opacity: 1;
 transform: translateY(0);
 top: 70px; /* Adjust if header height changes */
 }

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

 .nav-links a {
 color: var(--light-text);
 font-size: 1.1rem;
 padding: 10px 0;
 display: block;
 }

 .nav-links a::after {
 background-color: var(--primary-color);
 height: 3px;
 }

 .nav-toggle {
 display: block;
 }

 .hero-content h1 {
 font-size: 2.5em;
 }
 .hero-subtitle {
 font-size: 1.1em;
 }
 .hero-content ul li {
 font-size: 1em;
 }

 section {
 padding: 60px 0;
 }

 .section-title {
 font-size: 1.8em;
 }

 .section-cta .section-title-light {
 font-size: 2em;
 }

 .features-grid,
 .testimonials-grid,
 .blog-grid,
 .card-grid {
 grid-template-columns: 1fr;
 }

 .logos-grid {
 gap: 20px;
 }

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

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

 .footer-col ul li {
 display: inline-block;
 margin: 0 10px 10px 0;
 }
 .footer-col ul li:last-child {
 margin-right: 0;
 }
 .footer-col:last-child {
 margin-top: 20px;
 }
}

@media (max-width: 480px) {
 .hero-content h1 {
 font-size: 2em;
 }

 .hero-subtitle {
 font-size: 1em;
 }

 .btn {
 padding: 10px 20px;
 font-size: 0.9rem;
 }

 .btn-lg {
 padding: 12px 25px;
 font-size: 1rem;
 }

 .section-title {
 font-size: 1.6em;
 }

 .section-cta .section-title-light {
 font-size: 1.8em;
 }

 .section-description {
 font-size: 0.95em;
 }

 .logos-grid img {
 max-height: 40px;
 }

 .contact-form {
 padding: 30px 20px;
 }
 .social-icons a {
 font-size: 1.3em;
 margin-right: 10px;
 }

 .accordion-header {
 font-size: 1em;
 padding: 15px 20px;
 }

 .accordion-content {
 padding: 15px 20px;
 }
}