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

html {
    scroll-behavior: smooth;
}

* {
    transition: all 0.2s ease-in-out;
}

/* COLORS */
:root {
    --primary: #8B5E3C;
    --dark: #5A3E2B;
    --light: #C8A27A;
    --bg: #f7f3ef;
}

/* BODY */
body {
    font-family: Arial, sans-serif;
    background: var(--bg);
}

/* HEADINGS */
h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
}

h3::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--light);
    display: block;
    margin-top: 8px;
    border-radius: 2px;
}

/* HEADER */
.header {
    position: relative;
    background: linear-gradient(90deg, var(--dark), var(--primary));
    padding: 20px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* LOGO BOX */
.logo-box {
    position: absolute;
    left: 40px;
    top: 100%;
    transform: translateY(-50%);
    z-index: 999;
    background: linear-gradient(90deg, var(--dark), var(--primary));
    border-radius: 20px;
}

.logo-box img {
    height: 110px;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* NAV */
.nav {
    display: flex;
    align-items: center;
}

.nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-size: 15px;
}

/* CTA BUTTON */
.cta-btn {
    background: var(--primary);
    padding: 7px 14px;
    border-radius: 20px;
    color: white;
}

.cta-btn:hover {
    background: var(--dark);
}

/* HERO */
.hero {
    background: 
        linear-gradient(rgba(90, 62, 43, 0.7), rgba(255, 255, 255, 0.9)),
        url('images/lab.jpg') center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero-btn {
    display: inline-block;
    margin-top: 20px;
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
}

.hero-btn:hover {
    background: var(--dark);
}

/* CONTAINER */
.container {
    padding: 60px 40px;
    max-width: 1200px;
    margin: auto;
}

/* ABOUT */
.about-section {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 50px;
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(139, 94, 60, 0.15);
}

.about-section img {
    width: 300px;
    border-radius: 12px;
}

.about-section p {
    line-height: 1.7;
    color: #444;
}

/* FEATURES */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.feature {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(139, 94, 60, 0.15);
    position: relative;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(139, 94, 60, 0.3);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--light);
    border-radius: 15px 15px 0 0;
}

.feature h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.feature p {
    color: #555;
}

/* SERVICES */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(139, 94, 60, 0.15);
    position: relative;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(139, 94, 60, 0.3);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: 0.4s;
}

.card:hover img {
    transform: scale(1.1);
}

.card p {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--dark);
}

/* FOOTER */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366; /* keep original green */
    padding: 15px;
    border-radius: 50%;
    text-decoration: none;
}

/* MOBILE */
@media(max-width: 768px) {

    .logo-box {
        position: static;
        margin-bottom: 10px;
        text-align: center;
    }

    .logo-box img {
        height: 80px;
    }

    .header {
        flex-direction: column;
        padding: 20px;
    }

    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-section img {
        width: 100%;
        max-width: 300px;
    }
}