/* Pancreas Care — Fit3 Clinical Modern Theme */

:root {
    --primary: #1e3a5f;
    --primary-dark: #0f2744;
    --accent: #0ea5e9;
    --accent-dark: #0284c7;
    --warm: #f59e0b;
    --danger: #ef4444;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg: #f1f5f9;
    --white: #ffffff;
    --radius: 1rem;
    --radius-lg: 1.75rem;
    --shadow: 0 4px 24px rgba(30, 58, 95, 0.08);
    --shadow-lg: 0 20px 50px rgba(30, 58, 95, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Nastaliq Urdu', serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 2;
    direction: rtl;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.en {
    font-family: 'Outfit', sans-serif;
    direction: ltr;
    display: inline-block;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */
.site-header {
    background: var(--primary-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--white);
    letter-spacing: 0.5px;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 0.45rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem !important;
}

@media (max-width: 600px) {
    .header-inner { flex-wrap: wrap; justify-content: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.25rem; }
}

/* Hero */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, #1a4d7a 100%);
    color: white;
    padding: 3.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/bg-tit.jpg') center/cover no-repeat;
    opacity: 0.12;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid { grid-template-columns: 1fr 1fr; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.4);
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #7dd3fc;
}

.hero-banner h1 {
    font-size: clamp(1.85rem, 6vw, 3rem);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.hero-banner h1 em {
    font-style: normal;
    color: var(--warm);
}

.hero-banner .lead {
    opacity: 0.9;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.hero-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-perk {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
}

.hero-perk i { color: var(--accent); }

.hero-product {
    position: relative;
    text-align: center;
}

.hero-product img {
    max-width: 340px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.hero-product-ring {
    position: absolute;
    inset: -15%;
    border: 2px dashed rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    z-index: -1;
}

/* Stats bar */
.stats-bar {
    background: var(--white);
    margin-top: -2rem;
    position: relative;
    z-index: 2;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    overflow: hidden;
}

@media (min-width: 600px) {
    .stats-bar { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
    padding: 1.5rem 1rem;
    text-align: center;
    border-left: 1px solid #e2e8f0;
}

.stat-item:last-child { border-left: none; }

.stat-item .num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
}

.stat-item .lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Sections */
section.page-section {
    padding: 4rem 0;
}

.section-tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.12);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 5vw, 2.25rem);
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* Types grid */
.types-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 700px) {
    .types-grid { grid-template-columns: 1fr 1fr; }
}

.type-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}

.type-card.alt { border-top-color: var(--warm); }

.type-card h3 {
    color: var(--primary);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.type-card p { color: var(--text-muted); font-size: 1rem; }

/* Bento features */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 700px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }
    .bento-wide { grid-column: span 2; }
    .bento-tall { grid-row: span 1; }
}

.bento-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--accent);
    transition: transform 0.25s ease;
}

.bento-card:hover { transform: translateY(-4px); }

.bento-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.bento-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.bento-card p { font-size: 0.95rem; color: var(--text-muted); }

.bento-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.bento-img img { width: 100%; display: block; }

/* Complications */
.complications-wrap {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    color: white;
    overflow: hidden;
}

.complications-wrap .section-title { color: #f87171; }

.complications-wrap .section-desc { color: rgba(255,255,255,0.7); }

.complications-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .complications-layout { grid-template-columns: 1.05fr 0.95fr; }
}

.complications-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(248, 113, 113, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.complications-image-wrap img {
    width: 100%;
    display: block;
    object-fit: contain;
}

.complications-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--danger);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.comp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.comp-chip {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.comp-chip i { color: #f87171; font-size: 0.75rem; }

/* Timeline steps */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 22px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--warm));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-right: 3.5rem;
    padding-bottom: 2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    right: 12px;
    top: 0.25rem;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent);
}

.timeline-card {
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.timeline-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Ingredients */
.ingredients-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.ingredient-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.ingredient-card .icon-circle {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: var(--accent-dark);
    font-size: 1.25rem;
}

.ingredient-card h4 { font-size: 1rem; color: var(--primary); }

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 700px) {
    .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-bottom: 3px solid var(--accent);
}

.testimonial-card .stars {
    color: var(--warm);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Expert */
.expert-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .expert-panel { grid-template-columns: 280px 1fr; }
}

.expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}

.expert-body {
    padding: 2rem;
    text-align: right;
}

.expert-quote {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 1rem 0 1.5rem;
    border-right: 4px solid var(--accent);
    padding-right: 1rem;
}

/* Prevention */
.prevention-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.prevention-item {
    display: flex;
    gap: 1rem;
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-items: flex-start;
}

.prevention-item .num {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
}

/* Spinner */
.spinner-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.spin-wheel-box {
    position: relative;
    width: clamp(260px, 80vw, 320px);
    height: clamp(260px, 80vw, 320px);
    margin: 2rem auto;
}

.spin-arrow {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    z-index: 10;
}

#spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid var(--primary);
    box-shadow: var(--shadow-lg);
    transition: transform 4s cubic-bezier(0.1, 0, 0.1, 1);
}

.spin-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}

.spin-popup.is-open { opacity: 1; visibility: visible; }

.spin-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 39, 68, 0.8);
    backdrop-filter: blur(4px);
}

.spin-popup-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    border-top: 5px solid var(--accent);
    transform: translateY(20px);
    transition: transform 0.35s;
}

.spin-popup.is-open .spin-popup-card { transform: translateY(0); }

.spin-popup-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 1.25rem;
}

.spin-popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: #e0f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.75rem;
}

.spin-popup-card h3 { color: var(--primary); font-size: 1.75rem; margin-bottom: 0.5rem; }

.spin-popup-sub { color: var(--text-muted); margin-bottom: 1.25rem; }

.spin-popup-prices {
    background: #f8fafc;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.spin-original { color: var(--text-muted); margin-bottom: 0.35rem; }

.spin-final strong {
    font-size: 1.75rem;
    color: var(--accent-dark);
    display: block;
}

.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.45);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Form */
.order-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 4rem 0;
    color: white;
}

.order-section .section-title { color: white; }

.order-section .section-desc { color: rgba(255,255,255,0.8); }

.form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 640px;
    margin: 0 auto;
    color: var(--text-main);
    text-align: right;
    box-shadow: var(--shadow-lg);
}

.order-form { display: flex; flex-direction: column; }

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 1rem;
}

@media (min-width: 600px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group { margin-bottom: 1.15rem; width: 100%; }

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    padding-left: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231e3a5f' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.85rem center;
}

.input-ltr {
    font-family: 'Outfit', sans-serif;
    direction: ltr;
    text-align: left;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    background: white;
}

.form-submit { margin-top: 0.5rem; }

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* FAQ accordion style */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
}

.faq-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    border-right: 3px solid var(--accent);
}

.faq-block h3 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.faq-block p { color: var(--text-muted); font-size: 0.95rem; }
