/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

/* General Body and Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    color: #2d3748;
    font-size: 18px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: auto;
    overflow: hidden;
    padding: 40px 20px;
}

/* Improved Typography Hierarchy */
h1, h2, h3, h4 {
    color: #1a202c;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    color: #ffffff;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #00796b, #26a69a);
    margin: 20px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
    font-weight: 600;
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    margin-bottom: 0.75rem;
    color: #4a5568;
    font-weight: 600;
}

/* Improved Paragraph Styling */
p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
    max-width: 75ch;
}

/* Better List Styling */
ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #4a5568;
}

ul li::before {
    content: '→';
    color: #00796b;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Definition Lists for Values Section */
.values-list {
    margin: 2rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #00796b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.values-list dt {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.values-list dt:first-child {
    margin-top: 0;
}

.values-list dd {
    margin-left: 0;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e2e8f0;
    color: #4a5568;
    line-height: 1.6;
}

/* Enhanced Header Styles */
header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #ffffff;
    padding: 1.5rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

header .branding {
    text-align: left;
    flex-shrink: 0;
}

header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 0.25rem;
    color: #ffffff;
    text-shadow: none;
}

header .tagline {
    font-size: 1rem;
    margin: 0;
    color: #cbd5e0;
    font-weight: 300;
    letter-spacing: 0.025em;
}

header nav ul {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

header nav li {
    display: inline-block;
}

header a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

header .active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
}

header a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Enhanced Button Styles */
.btn {
    display: inline-block;
    color: #fff;
    background: linear-gradient(135deg, #00796b, #26a69a);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-top: 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(0, 121, 107, 0.25);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 121, 107, 0.35);
}

.secondary-btn {
    background: #ffffff;
    color: #00796b;
    border: 2px solid #00796b;
    box-shadow: 0 4px 15px rgba(0, 121, 107, 0.15);
}

.secondary-btn:hover {
    background: #00796b;
    color: #fff;
    border-color: #00796b;
}

/* Enhanced Main Content Sections */
main section {
    padding: 4rem 1rem;
    background-color: #ffffff;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

main section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00796b, #26a69a, #4db6ac);
}

/* Hero Visual Section */
#hero-visual {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.9), rgba(45, 55, 72, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff10" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: cover, 100px 100px;
    background-position: center, center;
    color: #ffffff;
    padding: 6rem 0;
    margin-top: 1.5rem;
    text-align: center;
    position: relative;
}

#hero-visual .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

#hero-visual h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#hero-visual p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Image Showcase Section */
#image-showcase {
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    padding: 5rem 0;
}

#image-showcase h3 {
    margin-bottom: 3rem;
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: #2d3748;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
    /* Ensures all grid items stretch to the height of the tallest in the row */
    align-items: stretch; /* */
}

.image-item {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 1.5rem; /* */
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    
    /* Makes the .image-item a flex container to control internal layout */
    display: flex; /* */
    flex-direction: column; /* Stacks image, h4, and p vertically */
    justify-content: flex-start; /* Ensures content starts from the top within the flex container */
}

.image-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-item img {
    width: 100%;
    height: 220px;
    object-fit: contain; /* prevents image distortion or cropping */
    display: block;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    padding: 10px;
    background-color: #ffffff;
}


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

.image-item h4 {
    margin: 0 1.5rem 0.75rem; /* Keeps current horizontal margins and bottom margin */
    font-size: 1.25rem;
    color: #2d3748;
    font-weight: 600;
    flex-shrink: 0; /* Prevents h4 from shrinking */
    /* Remove any potential top margin that could cause misalignment */
    margin-top: 0;
}

.image-item p {
    color: #4a5568;
    font-size: 1rem;
    margin: 0 1.5rem;
    line-height: 1.6;
    flex-grow: 1; /* Makes the paragraph expand to fill available space */
    text-align: center; /* Ensures the paragraph text remains centered */
    margin-top: 0; /* Remove any potential top margin */
}

/* About Page Specific Styles */
#about-content {
    max-width: 900px;
    margin: 0 auto;
}

#about-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #4a5568;
}

/* Contact Page Specific Styles */
.contact-info {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #00796b;
}

.contact-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.contact-item strong {
    min-width: 80px;
    color: #1a202c;
    font-weight: 600;
}

.contact-item a {
    color: #00796b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #004d40;
    text-decoration: underline;
}

/* Enhanced Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2.5rem auto 0;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00796b;
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
}

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

.help-text {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

.error-message {
    font-size: 0.875rem;
    color: #e53e3e;
    margin-top: 0.25rem;
}

.form-actions {
    margin-top: 2rem;
    text-align: center;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    text-align: center;
    padding: 2.5rem 1.25rem;
    margin-top: 3rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00796b, #26a69a, #4db6ac);
}

footer p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .container {
        width: 95%;
        padding: 20px 15px;
    }

    header {
        padding: 1rem 0;
    }

    header .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    header .branding {
        text-align: center;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    header a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    main section {
        padding: 2.5rem 0;
        margin-bottom: 1.5rem;
    }

    #hero-visual {
        padding: 4rem 0;
    }

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        margin: 2rem 0 0;
        padding: 2rem 1.5rem;
    }

    .contact-info {
        padding: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .values-list {
        padding: 1.5rem;
    }

    p {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    header, footer {
        background: none !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .btn {
        border: 1px solid black !important;
        background: none !important;
        color: black !important;
    }
    
    main section {
        box-shadow: none !important;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}