/* ===========================================================
   INNOVATIVE Health Care Ltd — Public site stylesheet
   Design tokens
   Color:
     --sky        #1E88C7  primary light blue (brand)
     --sky-deep   #0F6CA8  hover / pressed state
     --sky-pale   #EAF6FC  page background wash
     --mist       #D7E9F4  borders / dividers
     --ink        #14283A  primary text
     --slate      #4C6579  secondary text
     --mint       #2FB6A0  accent (wellness / success)
     --white      #FFFFFF
   Type:
     Display / headings: "Plus Jakarta Sans"
     Body: "Inter"
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --sky: #1E88C7;
    --sky-deep: #0F6CA8;
    --sky-pale: #EAF6FC;
    --mist: #D7E9F4;
    --ink: #14283A;
    --slate: #4C6579;
    --mint: #2FB6A0;
    --white: #FFFFFF;
    --radius: 10px;
    --shadow: 0 8px 24px rgba(20, 40, 58, 0.08);
    --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5em;
    color: var(--ink);
}

p { margin: 0 0 1em; color: var(--slate); }

a { color: var(--sky-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--sky); color: var(--white); }
.btn-primary:hover { background: var(--sky-deep); }
.btn-outline { background: transparent; border-color: var(--sky); color: var(--sky-deep); }
.btn-outline:hover { background: var(--sky-pale); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- Top bar & header ---------- */
.topbar {
    background: var(--ink);
    color: #CFE4F2;
    font-size: 0.82rem;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}
.topbar a { color: #CFE4F2; }

.site-header {
    border-bottom: 1px solid var(--mist);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--sky), var(--mint));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.68rem; color: var(--slate); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.main-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
}
.main-nav a:hover { color: var(--sky-deep); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--ink);
}
.cart-badge {
    background: var(--mint);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
}

/* ---------- Slideshow ---------- */
.slideshow {
    position: relative;
    background: var(--sky-pale);
    overflow: hidden;
}
.slide {
    display: none;
    position: relative;
}
.slide.active { display: block; }
.slide-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 6;
    min-height: 260px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}
.slide-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,40,58,0.62) 0%, rgba(15,40,58,0.15) 55%, rgba(15,40,58,0) 80%);
}
.slide-copy {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 560px;
    padding: 0 24px;
    margin: 0 auto;
    width: 100%;
    max-width: var(--max-width);
}
.slide-copy h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    max-width: 480px;
}
.slide-copy p { color: #E6F1F8; max-width: 440px; }

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    background: var(--sky-pale);
}
.slide-dots button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: var(--mist);
    cursor: pointer;
    padding: 0;
}
.slide-dots button.active { background: var(--sky); width: 22px; border-radius: 999px; transition: width .2s; }
.slide-empty {
    padding: 60px 24px;
    text-align: center;
    color: var(--slate);
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-size: 1.6rem; }
.section-alt { background: var(--sky-pale); }

/* ---------- Product grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-thumb {
    aspect-ratio: 1 / 0.85;
    background: var(--sky-pale) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mist);
    font-size: 2rem;
    object-fit: cover;
    width: 100%;
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 0.72rem; font-weight: 600; color: var(--mint); }
.product-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink); }
.product-name:hover { color: var(--sky-deep); text-decoration: none; }
.product-desc { font-size: 0.85rem; color: var(--slate); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.product-price { font-weight: 700; color: var(--ink); font-family: 'Plus Jakarta Sans', sans-serif; }

/* ---------- Hero (about/contact pages) ---------- */
.page-hero {
    background: var(--sky-pale);
    padding: 48px 0;
    border-bottom: 1px solid var(--mist);
}
.page-hero h1 { margin-bottom: 6px; }
.page-hero p { margin: 0; max-width: 620px; }

/* ---------- Board members ---------- */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}
.member-card { text-align: left; }
.member-photo {
    aspect-ratio: 1;
    border-radius: var(--radius);
    background: var(--sky-pale) center/cover no-repeat;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mist);
    font-size: 2rem;
    border: 1px solid var(--mist);
    object-fit: cover;
    width: 100%;
}
.member-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.member-role { color: var(--sky-deep); font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.member-bio { font-size: 0.85rem; color: var(--slate); margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--ink);
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--mist);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: 2px solid var(--sky);
    outline-offset: 1px;
    border-color: var(--sky);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-two { grid-template-columns: 1fr; } }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid var(--mist);
    font-size: 0.9rem;
}
.cart-table th { color: var(--slate); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }
.qty-input { width: 64px; padding: 6px 8px; border: 1px solid var(--mist); border-radius: 6px; }
.cart-summary {
    background: var(--sky-pale);
    border-radius: var(--radius);
    padding: 20px;
    max-width: 320px;
    margin-left: auto;
}
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; }
.cart-summary-total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--mist); padding-top: 10px; margin-top: 4px; }

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.alert-success { background: #E4F7F3; color: #0F6E5F; border: 1px solid #BCEADF; }
.alert-error { background: #FDECEC; color: #A3272A; border: 1px solid #F6CACB; }

/* ---------- Empty states ---------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--slate);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #B7CBDA;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0 28px;
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid a { color: #B7CBDA; display: block; margin-bottom: 8px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
    border-top: 1px solid #223546;
    padding: 16px 0;
    font-size: 0.8rem;
    color: #7F97A8;
    text-align: center;
}
@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr; padding-bottom: 8px; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}
.badge-pending { background: #FDF2DC; color: #92650B; }
.badge-processing { background: #E5F0FB; color: #1E5A96; }
.badge-completed { background: #E4F7F3; color: #0F6E5F; }
.badge-cancelled { background: #FDECEC; color: #A3272A; }

/* ---------- Mobile hamburger menu ---------- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--mist);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    padding: 0;
    align-items: center;
}
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--mist);
    background: var(--white);
}
.mobile-nav a {
    padding: 14px 24px;
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px solid var(--mist);
}
.mobile-nav a:hover { background: var(--sky-pale); text-decoration: none; }
.mobile-nav.open { display: flex; }

@media (max-width: 780px) {
    .main-nav { display: none; }
    .menu-toggle { display: flex; }
}
