/* css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #37B44A;
    --primary-darkblue: #252161;
    --white: #ffffff;
    --light-bg: #f5f8fa;
    --gray-text: #33404a;
    --border-light: #e2e8f0;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 30px -10px rgba(0, 80, 30, 0.12);
    --radius-card: 24px;
    --radius-btn: 40px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-text);
    background-color: var(--white);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* navbar */
.navbar {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(37, 33, 97, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-darkblue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: -0.5px;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-green);
    border-radius: 20px;
    display: inline-block;
    margin-right: 6px;
}

.logo-thin {
    font-weight: 400;
    color: var(--primary-green);
    margin-left: 4px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--primary-darkblue);
    font-size: 1rem;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    border-bottom-color: var(--primary-green);
    color: var(--primary-green);
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    box-shadow: 0 8px 18px rgba(55, 180, 74, 0.2);
}

.btn-primary:hover {
    background-color: #2b9a3c;
    transform: scale(1.02);
    box-shadow: 0 14px 24px rgba(55, 180, 74, 0.3);
}

.btn-light {
    background: white;
    color: var(--primary-darkblue);
}

.btn-light:hover {
    background: #f0f7f0;
}

/* hero */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(145deg, #fff, #f9fcff);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-darkblue);
}

.hero-em {
    color: var(--primary-green);
}

.hero-text {
    font-size: 1.2rem;
    margin: 24px 0 32px;
    color: #3b4b5e;
}

.hero-image .img-placeholder {
    background: #eef2f5;
    border-radius: 32px;
    width: 100%;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: block;
}

/* doctor */
.doctor-section {
    padding: 70px 0;
    background: white;
}

.doctor-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: center;
}

.img-circle {
    width: 200px;
    height: 200px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--primary-green);
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 0;
}

.img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.doctor-bio h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--primary-darkblue);
}

.doctor-bio .green {
    color: var(--primary-green);
    font-size: 1.4rem;
}

.section-tag {
    color: var(--primary-green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.signature-line {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--primary-darkblue);
}

/* highlights cards */
.highlights {
    padding: 30px 0 60px;
}

.cards-grid {
    display: grid;
    gap: 30px;
}

.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.highlight-card {
    background: white;
    padding: 40px 24px 32px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    transition: 0.2s;
    border: 1px solid rgba(55, 180, 74, 0.1);
    text-align: center;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 2.8rem;
    color: var(--primary-green);
    margin-bottom: 16px;
}

/* cta */
.cta-section {
    background: var(--primary-darkblue);
    color: white;
    padding: 80px 0;
    margin: 40px 0 0;
}

.cta-container {
    text-align: center;
}

.cta-container h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

.cta-highlight {
    color: var(--primary-green);
    background: rgba(255, 255, 255, 0.1);
    padding: 0 10px;
}

.cta-container .btn-light {
    margin-top: 32px;
}

/* footer */
.footer {
    background: #101522;
    color: #b0c4d9;
    padding: 48px 0 24px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer .logo {
    color: white;
    font-size: 1.6rem;
}

.footer-links a {
    color: #b0c4d9;
    text-decoration: none;
    margin: 0 16px;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    border-top: 1px solid #2a2f3b;
    padding-top: 24px;
}

/* about page */
.page-header {
    background: var(--light-bg);
    padding: 60px 0;
    margin-bottom: 40px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.factory-image .img-placeholder {
    background: #d9e2e9;
    border-radius: 32px;
    width: 100%;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: block;
}

.certifications {
    padding: 60px 0;
}

.five-certs {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.cert-card {
    background: white;
    padding: 28px 12px;
    text-align: center;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: 0.15s;
}

.cert-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
}

.export-badge {
    background: var(--primary-green);
    color: white;
    margin-top: 50px;
    padding: 16px 32px;
    border-radius: 60px;
    display: inline-block;
    font-weight: 600;
}

/* catalog */
.filter-toggle {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.filter-mode-btn {
    background: white;
    border: 1px solid var(--border-light);
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--primary-darkblue);
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-mode-btn.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.scroll-bar {
    display: none;
    /* hidden by default – only visible when .visible class is added */
    overflow-x: auto;
    gap: 12px;
    padding: 16px 4px 24px;
    white-space: nowrap;
    scrollbar-width: thin;
    margin-bottom: 10px;
}

.scroll-bar.visible {
    display: flex;
}

.filter-chip {
    background: white;
    border: 1px solid var(--border-light);
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.1s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.filter-chip.active {
    background: var(--primary-darkblue);
    color: white;
    border-color: var(--primary-darkblue);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 28px;
    margin: 30px 0 60px;
}

.product-card {
    background: white;
    border-radius: 24px;
    padding: 20px 16px 20px;
    box-shadow: var(--shadow-sm);
    transition: 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.02);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    background: #ecf7f0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-green);
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-darkblue);
    margin-bottom: 4px;
}

.product-size {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.95rem;
    background: #eaf6ec;
    display: inline-block;
    padding: 4px 14px;
    border-radius: 40px;
    margin: 8px 0 6px;
}

.product-desc {
    font-size: 0.9rem;
    color: #5b6877;
    margin: 6px 0;
}

/* contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 50px 0;
}

.info-card {
    background: var(--light-bg);
    padding: 24px;
    border-radius: 24px;
    margin-bottom: 20px;
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-green);
}

.contact-form {
    background: white;
    padding: 36px;
    border-radius: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #edf2f7;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    margin: 8px 0 18px;
    border: 1px solid #dde5ed;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
}

.form-note {
    font-size: 0.8rem;
    color: #8b9bb5;
    margin-top: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* make image placeholders ready for real images */
.img-placeholder {
    overflow: hidden;
    padding: 0;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* footer contact & social */
.footer-contact {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-contact a {
    color: #b0c4d9;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-contact a:hover {
    color: var(--primary-green);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    font-size: 1.4rem;
}

.footer-grid {
    gap: 20px;
    /* adds spacing between flex items when they wrap */
}

/* social follow section (about & contact pages) */
.social-follow {
    padding: 60px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.social-follow h3 {
    font-size: 2rem;
    color: var(--primary-darkblue);
    margin-bottom: 24px;
}

.social-icons {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    color: var(--primary-darkblue);
    font-size: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--primary-green);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ========== IMPROVED MOBILE STYLES ========== */
@media (max-width: 800px) {

    .hero-grid,
    .doctor-grid,
    .story-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .three-cols,
    .five-certs {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .filter-toggle {
        gap: 12px;
    }

    .filter-mode-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 24px;
    }
}

/* main mobile breakpoint */
@media (max-width: 600px) {

    /* section spacing */
    .hero {
        padding: 40px 0 20px;
    }

    .doctor-section {
        padding: 40px 0;
    }

    .highlights {
        padding: 20px 0 40px;
    }

    .cta-section {
        padding: 60px 0;
    }

    .page-header {
        padding: 40px 0;
    }

    .certifications {
        padding: 40px 0;
    }

    .social-follow {
        padding: 40px 0;
    }

    .footer {
        padding: 32px 0 16px;
    }

    /* typography */
    .doctor-bio h2 {
        font-size: 2rem;
    }

    .img-circle {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        /* center on mobile */
    }

    .doctor-grid {
        text-align: center;
    }

    .signature-line {
        justify-content: center;
    }

    /* cards */
    .cards-grid.three-cols,
    .cards-grid.five-certs {
        grid-template-columns: 1fr;
    }

    /* contact */
    .contact-grid {
        gap: 30px;
    }

    .info-card {
        padding: 20px;
    }

    /* footer – clean column layout */
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-grid>* {
        width: 100%;
    }

    .footer-contact {
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

    .footer-social {
        justify-content: center;
        gap: 20px;
    }

    .footer-social a {
        font-size: 1.8rem;
        /* larger tap target */
    }

    .footer-links a {
        display: inline-block;
        margin: 5px 10px;
    }

    .footer-info p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-cert {
        margin: 0 auto;
    }

    .copyright {
        margin-top: 20px;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h1 br {
        display: none;
        /* remove line break if too narrow */
    }

    .doctor-bio h2 {
        font-size: 1.8rem;
    }

    .doctor-bio .green {
        font-size: 1.2rem;
        display: block;
        margin-top: 4px;
    }

    .cta-container h2 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .filter-mode-btn {
        width: 100%;
        justify-content: center;
    }

    .product-image {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    /* slightly smaller chips */
    .filter-chip {
        padding: 6px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .doctor-bio h2 {
        font-size: 1.6rem;
    }

    .cta-container h2 {
        font-size: 1.8rem;
    }

    .footer-links a {
        margin: 4px 6px;
        font-size: 0.95rem;
    }

    .footer-social a {
        font-size: 1.6rem;
        width: 50px;
        height: 50px;
    }
}


/* ---------- Hamburger menu styles ---------- */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-darkblue);
    cursor: pointer;
    padding: 0 10px;
    line-height: 1;
    transition: color 0.2s;
}

.hamburger:hover {
    color: var(--primary-green);
}

/* mobile view */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 80px;
        /* height of navbar */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-light);
        z-index: 100;
        text-align: center;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        margin: 0;
        border-bottom: none;
        font-size: 1.2rem;
    }

    .nav-links a:hover,
    .nav-links a.active {
        border-bottom: none;
        background-color: var(--light-bg);
        color: var(--primary-green);
    }
}

@media (max-width: 480px) {
    .nav-links {
        top: 70px;
        /* if navbar height changes on smaller screens */
    }
}

.product-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;           /* ensures the image stays inside the circle */
    background: #ecf7f0;        /* fallback colour while loading */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* crops the image to fill the circle */
    display: block;
}