/* Variables */
:root {
    --bg-color: #ffffff;
    --text-main: #333333;
    --accent-color: #39808b;
    --accent-hover: #2a5f67;
    --nav-bg: #f8f9fa;
    --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;
}

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;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.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;
    max-width: 800px;
    margin: 0 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;
}

/* 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%;
    background-color: rgba(0,0,0,0.02);
}

.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 */
.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;
}

/* Contact Section */
.contact-section {
    padding: 4rem 5%;
    max-width: 600px;
    margin: 0 auto;
    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;
}

#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;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--nav-bg);
}

/* 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; }
}