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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3748;
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
}

/* Hide nav links on mobile, show hamburger icon */
.nav-links {
    display: flex;
    gap: 2rem;
}

.hamburger {
    display: none; /* Hidden by default */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('/assets/images/hero-banner.jpeg');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.5rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: center;
    color: #333; 
    padding: 1rem;
}

.hero-404 {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f6f9fc 0%, #edf2f7 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.hero-tag {
    display: inline-block;
    background: rgba(74, 85, 104, 0.1);  
    color: #1a202c;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.025em;
}

.hero h1, .hero-404 h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #1a202c;
}

.hero p, .hero-404 p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #1a202c;
}

/* Photo Credit */
.photo-credit {
    position: relative;
    text-align: left;
    margin-top: -0.5rem; 
    padding: 0.5rem 0;
    font-size: 0.6rem; 
    color: #718096; 
    width: 100%;
}

.photo-credit a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
}

.photo-credit a:hover {
    color: #2d3748; 
    text-decoration: underline;
}


/* Services Section */
.services {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

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

.service-card {
    padding: 2rem;
    border-radius: 8px;
    background: #f8fafc;
    text-align: center;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: #f6f9fc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content img {
    display: block;
    margin: 0 auto; 
    max-width: 350px;
    max-height: 350px;
    border-radius: 50%; 
    object-fit: cover; 
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: white;
}

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

.testimonial-card {
    padding: 2rem;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: #f6f9fc;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 2rem 0;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: #4a5568;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2d3748;
}

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

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Services page specific styles */
.service-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* About page specific styles */
.about-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.location {
    font-size: 1rem;
    color: #4a5568;
    margin-top: 1rem;
    font-style: italic;
    display: flex;
    align-items: left;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 32px;
    height: 32px;
}

.social-links svg {
    width: 24px; 
    height: 24px;
    fill: #4a5568; 
    transition: fill 0.3s ease, transform 0.3s ease; 
}

.social-links a:hover svg {
    fill: #2d3748; 
    transform: scale(1.1); 
}

/* Contact page specific styles */
.contact-full-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Contact Form Styles */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a5568;
}

textarea {
    resize: vertical; /* Allow vertical resizing only */
}

.hidden {
    display: none;
}

/* Button Styling */
.contact-form .btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: #4a5568;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
    cursor: pointer;
}

.contact-form .btn:hover {
    background: #2d3748;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav links on mobile */
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%; /* Position below the navbar */
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .hamburger {
        display: block; /* Show hamburger icon on mobile */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr; /* Switch to a single column */
        gap: 2rem;
        padding: 0 1rem; /* Add padding to prevent overflow */
        overflow: hidden; /* Hide any accidental overflow */
    }

    .about-content div,
    .about-content img {
        max-width: 100%; /* Ensure content stays within the container */
    }

    .about-content img {
        display: block;
        margin: 0 auto;
    }
}