/* --- CSS VARIABLES & RESET --- */
:root {
    --primary: #0e4f61; /* Deep Teal */
    --secondary: #17a2b8; /* Cyan/Blue */
    --accent: #ffc107; /* Gold/Warning */
    --dark: #1a1a1a;
    --text-gray: #555;
    --light: #f4f7f6;
    --white: #ffffff;
    --border: #e1e1e1;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- REUSABLE CLASSES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section { padding: 80px 0; }
.section-bg-light { background-color: var(--light); }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary { background: var(--accent); color: var(--dark); }
.btn-primary:hover { background: #e0a800; transform: translateY(-3px); }

.btn-outline { border-color: var(--white); color: var(--white); margin-left: 10px; }
.btn-outline:hover { background: var(--white); color: var(--primary); }

.btn-full { background: var(--primary); color: var(--white); width: 100%; border-radius: 5px; }
.btn-full:hover { background: var(--secondary); }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo-img { height: 50px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--primary); font-size: 0.95rem; }
.nav-links a:hover { color: var(--secondary); }

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--primary); margin: 5px; transition: var(--transition); }

/* --- HERO SECTION --- */
.hero {
    height: 90vh;
    background: url('siam-health-care-banner.avif') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(14, 79, 97, 0.9), rgba(23, 162, 184, 0.8));
}

.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 0 20px; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* --- CHAIRMAN SECTION --- */
.chairman-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.chairman-image-wrapper { position: relative; }
.chairman-img { border-radius: 10px; box-shadow: var(--shadow); width: 100%; }

.chairman-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.chairman-content h3 { color: var(--primary); font-size: 2rem; margin-bottom: 5px; }
.designation { font-weight: 700; color: var(--dark); font-size: 1.1rem; }
.role { color: var(--secondary); font-size: 0.9rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.message-text { font-style: italic; border-left: 4px solid var(--accent); padding-left: 20px; color: #444; }

/* --- ABOUT & STATS --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-image img { border-radius: 10px; box-shadow: var(--shadow); }
.about-list { margin: 20px 0; }
.about-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.about-list i { color: var(--secondary); }

.stats-container {
    display: flex;
    justify-content: space-between;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}
.stat-item h4 { font-size: 2.5rem; color: var(--primary); line-height: 1; margin-bottom: 5px; }

/* --- PRODUCTS SECTION --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.product-img { height: 200px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.1); }
.product-info { padding: 20px; text-align: center; }
.product-info h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 10px; }
.product-info p { font-size: 0.9rem; color: #777; }

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover { transform: translateY(-5px); border-bottom: 5px solid var(--secondary); }
.icon-box {
    width: 70px; height: 70px; background: rgba(23, 162, 184, 0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; color: var(--primary); font-size: 1.8rem;
}

/* --- PROJECTS --- */
.project-list { display: flex; flex-direction: column; gap: 20px; }
.project-item {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary);
}

.project-date {
    background: #f8f9fa;
    padding: 20px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    min-width: 100px;
}

.project-content { padding: 20px; flex: 1; }
.project-content h4 { color: var(--dark); margin-bottom: 5px; }
.project-status {
    padding: 5px 15px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
    display: flex; align-items: center;
}
.project-status.ongoing { background: #fff3cd; color: #856404; }
.project-status.completed { background: #d4edda; color: #155724; }

/* --- CONTACT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    background: var(--primary);
    color: var(--white);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 { font-size: 1.8rem; margin-bottom: 10px; }
.contact-desc { margin-bottom: 30px; opacity: 0.8; }
.info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.info-item i { color: var(--accent); font-size: 1.2rem; margin-top: 5px; }

.contact-form-container { padding: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px;
    font-family: inherit; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--secondary); outline: none; }

/* Status message styling */
#form-status { margin-top: 15px; font-weight: 600; text-align: center; }
.success-message { color: green; }
.error-message { color: red; }

/* --- FOOTER --- */
footer {
    background: #111;
    color: #bbb;
    padding: 70px 0 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    /* Ratio: 40% | 20% | 20% | 20% -> 2fr 1fr 1fr 1fr */
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo { max-height: 50px; margin-bottom: 20px; background: white; padding: 5px; border-radius: 4px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--secondary); padding-left: 5px; }

.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 35px; height: 35px; background: #333; display: flex;
    align-items: center; justify-content: center; border-radius: 50%; color: var(--white);
}
.social-links a:hover { background: var(--secondary); }

.copyright { border-top: 1px solid #333; padding-top: 20px; text-align: center; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .chairman-grid, .about-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; } /* Tablet Footer */
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute; right: 0; top: 80px; height: calc(100vh - 80px);
        background: var(--white); flex-direction: column; align-items: center;
        justify-content: center; width: 60%; transform: translateX(100%);
        transition: transform 0.4s ease-in; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-active { transform: translateX(0%); }
    .burger { display: block; }
    
    /* Burger Animation */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    .hero h1 { font-size: 2rem; }
    .footer-content { grid-template-columns: 1fr; } /* Mobile Footer */
    .project-item { flex-direction: column; }
    .project-date { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 20px; }
}