/* Variables */
:root {
    --bg-color: #ffffff;
    --bg-alt: #f4f6f8;
    --text-main: #333333;
    --accent-color: #39808b;
    --accent-hover: #2a5f67;
    --nav-bg: #f8f9fa;
    --footer-bg: #f8f9fa;
    --footer-text: #666666;
    --font-heading: 'sans-serif';
    --font-body: 'sans-serif';
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

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

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

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
}

/* Navigation */
header {
    background-color: var(--nav-bg);
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

nav a.logo,
.logo {
    display: flex;
    align-items: center;
    gap: 12px;  
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.logo img {
    height: 44px;   /* Adjust between 36px–50px to fit your nav height */
    width: auto;
    display: block;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 1rem;
}

.hero h1,
.hero p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* About Section */
.about-section {
    padding: 4rem 5%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

/* Middle Section / Grid */
.middle-section, .testimonials-section {
    padding: 4rem 5%;
}

.middle-section h2, .testimonials-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Testimonial Specifics */

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 700px; /* Adjust to fit your layout */
    margin: 0 auto;
}

.testimonials-carousel {
    display: flex;
    flex: 1;
    min-width: 0;
    position: relative;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0;
    scrollbar-width: none; /* Hides scrollbar in Firefox */
}

.testimonials-carousel::-webkit-scrollbar {
    display: none; /* Hides scrollbar in Chrome/Safari */
}

.testimonial-card {
    flex: 0 0 100%; /* Shows 1 card at a time. Change to 300px to show multiple */
    scroll-snap-align: start;
    box-sizing: border-box;
}

.carousel-btn {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0 10px;
    font-size: 18px;
}

.carousel-btn:hover {
    opacity: 0.8;
}

/*
.testimonial-card {
    text-align: left;
    border-left: 4px solid var(--accent-color);
}
*/

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    margin-bottom: 0.2rem;
}

.testimonial-card .subtext {
    color: #666;
}

.testimonial-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.testimonial-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.testimonial-link i {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    vertical-align: baseline;
}

/* Contact Section */
.contact-section {
    padding: 4rem 5%;
    text-align: center;
}

.contact-section h2 { margin-bottom: 1rem; }
.contact-section p { margin-bottom: 2rem; }

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

#contact-form input, 
#contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
}

#contact-form button { cursor: pointer; }

#success-msg {
    display: none;
    color: var(--accent-color);
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
}

/* Footer Logo */
.footer-logo {
    max-height: 50px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0.5rem auto 1.25rem auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.socials-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.socials-container a {
    color: var(--text-main);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.socials-container a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Back to Top Button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
    transition: background 0.3s;
}

#back-to-top:hover {
    background-color: var(--accent-hover);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--nav-bg);
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-links.active { display: flex; }
    .nav-links li { text-align: center; padding: 0.5rem 0; }
    
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero { padding: 4rem 1rem; }
    .hero h1 { font-size: 2.5rem; }
}