/* ============================================================
   S T Healthcare - Main Stylesheet
   ============================================================ */

:root {
    --primary: #0e7490;        /* teal 700 */
    --primary-dark: #155e75;
    --primary-light: #e0f2fe;
    --accent: #0ea5e9;
    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #ffffff;
    --bg-alt: #f1f7fa;
    --white: #ffffff;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --error-bg: #fee2e2;
    --error-text: #991b1b;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

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

a {
    color: var(--primary);
    text-decoration: none;
}

h1, h2, h3, h4 {
    color: var(--dark);
    line-height: 1.25;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ---------------- Topbar ---------------- */
.topbar {
    background: var(--primary-dark);
    color: #cffafe;
    font-size: 13.5px;
    padding: 7px 0;
}

.topbar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    flex-wrap: wrap;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 74px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.logo-text {
    font-weight: 800;
    color: var(--dark);
    font-size: 19px;
    line-height: 1.15;
    display: flex;
    flex-direction: column;
}

.logo-text small {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.main-nav {
    margin-left: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 6px;
}

.main-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.main-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.header-cta {
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--dark);
    transition: all 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------------- Hero ---------------- */
.hero {
    background:
        radial-gradient(60% 100% at 85% 20%, rgba(14, 165, 233, 0.12), transparent 60%),
        linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    padding: 72px 0;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 17.5px;
    color: var(--muted);
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-stats {
    display: flex;
    list-style: none;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stats li {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark);
}

.hero-stats span {
    font-size: 13.5px;
    color: var(--muted);
}

.hero-image img {
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

/* ---------------- Sections ---------------- */
.section {
    padding: 76px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-dark {
    background: linear-gradient(135deg, var(--primary-dark), #0c4a5e);
}

.section-dark h2,
.section-dark .section-label {
    color: var(--white);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 46px;
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-head h2,
.overview-content h2 {
    font-size: 32px;
}

.section-sub {
    margin-top: 12px;
    color: var(--muted);
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ---------------- Card grids ---------------- */
.card-grid {
    display: grid;
    gap: 24px;
}

.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------- Service / info / cert cards ---------------- */
.service-card,
.info-card,
.cert-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.info-card:hover,
.cert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 34px;
    margin-bottom: 14px;
}

.service-card h3,
.info-card h3,
.cert-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p,
.info-card p,
.cert-card p {
    font-size: 14.5px;
    color: var(--muted);
}

/* ---------------- Overview (two-column) ---------------- */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 52px;
    align-items: center;
}

.overview-image img {
    border-radius: 18px;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.overview-content h2 {
    margin: 8px 0 16px;
}

.overview-content p {
    margin-bottom: 14px;
    color: var(--muted);
}

.check-list {
    list-style: none;
    margin: 18px 0 26px;
}

.check-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------------- Product cards ---------------- */
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.06);
}

.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

.product-body h3 {
    font-size: 17px;
}

.product-body h3 a {
    color: var(--dark);
}

.product-body h3 a:hover {
    color: var(--primary);
}

.product-body p {
    font-size: 14px;
    color: var(--muted);
    flex: 1;
}

.link-arrow {
    font-weight: 600;
    font-size: 14px;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* ---------------- Filter chips ---------------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 42px;
}

.filter-chip {
    padding: 9px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: var(--white);
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-chip.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.empty-note {
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
}

/* ---------------- Product details ---------------- */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 52px;
    align-items: start;
}

.product-detail-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-detail-info h2 {
    font-size: 30px;
    margin: 6px 0 14px;
}

.product-detail-info .lead {
    font-size: 17px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 14px;
}

.product-detail-info p {
    color: var(--muted);
    margin-bottom: 14px;
}

.detail-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.spec-section {
    margin-top: 56px;
}

.spec-section h3 {
    font-size: 22px;
    margin-bottom: 18px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.spec-table th,
.spec-table td {
    text-align: left;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
}

.spec-table th {
    width: 30%;
    background: var(--bg-alt);
    color: var(--dark);
    font-weight: 600;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

/* ---------------- Page banner / breadcrumb ---------------- */
.page-banner {
    background:
        linear-gradient(135deg, rgba(21, 94, 117, 0.94), rgba(14, 116, 144, 0.88)),
        url('https://images.unsplash.com/photo-1538108149393-fbbd81895907?w=1400&q=50') center/cover;
    color: var(--white);
    padding: 64px 0;
    text-align: center;
}

.page-banner h1 {
    color: var(--white);
    font-size: 38px;
    margin-bottom: 10px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
}

.breadcrumb li + li::before {
    content: '/';
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
    color: #a5f3fc;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.85);
}

/* ---------------- Stats (about) ---------------- */
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    padding: 34px 20px;
}

.stat-card strong {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.stat-card span {
    color: var(--muted);
    font-size: 14.5px;
}

/* ---------------- Projects ---------------- */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.project-card.is-reversed {
    direction: rtl;
}

.project-card.is-reversed > * {
    direction: ltr;
}

.project-image {
    position: relative;
    min-height: 260px;
}

.project-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-year {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
}

.project-body {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.project-body h3 {
    font-size: 22px;
}

.project-location {
    color: var(--primary);
    font-weight: 600;
    font-size: 14.5px;
}

.project-body p {
    color: var(--muted);
}

/* ---------------- Careers ---------------- */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 30px;
    transition: box-shadow 0.25s ease;
}

.job-card:hover {
    box-shadow: var(--shadow-lg);
}

.job-main h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.job-main p {
    color: var(--muted);
    font-size: 14.5px;
    margin-bottom: 10px;
}

.job-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13.5px;
    color: var(--text);
    font-weight: 500;
}

.job-apply-btn {
    flex-shrink: 0;
}

/* ---------------- Forms ---------------- */
.form-narrow {
    max-width: 760px;
}

.site-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.14);
}

.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #dc2626;
}

.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 22px;
    font-weight: 500;
    font-size: 14.5px;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
}

/* ---------------- Contact ---------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 52px;
    align-items: start;
}

.contact-info h2 {
    margin: 8px 0 14px;
    font-size: 30px;
}

.contact-info > p {
    color: var(--muted);
    margin-bottom: 26px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-list li {
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

.contact-list strong {
    color: var(--dark);
    font-size: 14px;
    margin-bottom: 3px;
}

.contact-list span {
    color: var(--muted);
    font-size: 14.5px;
}

.contact-form-wrap h3 {
    font-size: 22px;
    margin-bottom: 18px;
}

.map-section iframe {
    display: block;
}

/* ---------------- Testimonials ---------------- */
.testimonial-slider {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.testimonial {
    display: none;
}

.testimonial.is-active {
    display: block;
    animation: fadeIn 0.6s ease;
}

.testimonial p {
    font-size: 19px;
    color: #e0f2fe;
    font-style: italic;
    margin-bottom: 22px;
    line-height: 1.7;
}

.testimonial footer strong {
    display: block;
    color: var(--white);
    font-size: 16px;
}

.testimonial footer span {
    color: #7dd3fc;
    font-size: 14px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
}

.slider-dots button.is-active {
    background: var(--white);
    transform: scale(1.3);
}

/* ---------------- CTA strip ---------------- */
.cta-strip {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    padding: 52px 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-inner h2 {
    color: var(--white);
    font-size: 26px;
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--dark);
    color: #94a3b8;
    padding-top: 60px;
    font-size: 14.5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 44px;
}

.footer-logo {
    margin-bottom: 14px;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 9px;
}

.footer-col a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 18px 0;
    text-align: center;
    font-size: 13.5px;
}
