/* 
   Pancreas Care - Premium Luxury Redesign
   Focus: Mobile-First, Premium Aesthetics, Perfect RTL
*/

:root {
    --primary: #064e3b;
    --primary-light: #0d6d54;
    --accent: #d4af37;
    --accent-light: #f3cf7a;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --bg-main: #fcfdfc;
    --bg-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.95);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
    --radius-lg: 2.5rem;
    --radius-md: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Nastaliq Urdu', serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 2;
    overflow-x: hidden;
    scroll-behavior: smooth;
    direction: rtl;
}

.en {
    font-family: 'Outfit', sans-serif;
    direction: ltr;
    display: inline-block;
}

/* --- Navigation --- */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(6, 78, 59, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .nav-inner {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    .nav-links {
        gap: 1.5rem;
    }
}

/* --- Hero --- */
.hero {
    padding: 3rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.hero-text h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: var(--primary);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.promo-tag {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: inline-block;
    margin-top: 1rem;
}

.product-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.product-box img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(6, 78, 59, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

@media (min-width: 992px) {
    .hero {
        flex-direction: row;
        text-align: right;
        padding: 5rem 1.25rem;
        justify-content: space-between;
    }
    .hero-text {
        flex: 1;
    }
    .product-box {
        flex: 0 0 450px;
    }
}

/* --- Sections --- */
section {
    padding: 4rem 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.title-center {
    text-align: center;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 3rem;
}

/* --- Generic Grid --- */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card-pos {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border-top: 6px solid var(--primary);
}

.card-pos i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card-pos h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* --- Complications --- */
.dark-box {
    background: #111;
    color: white;
    padding: 3rem 1.5rem;
    border-radius: var(--radius-lg);
    margin: 4rem auto;
    text-align: center;
}

.complications-section {
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1212 50%, #111 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.complications-header h2 {
    color: #ef4444;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.complications-header p {
    opacity: 0.85;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

.complications-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    text-align: right;
    align-items: center;
}

@media (min-width: 768px) {
    .complications-layout {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 2.5rem;
    }
}

.complications-image-wrap {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 2px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 16px 40px rgba(239, 68, 68, 0.15), 0 8px 24px rgba(0, 0, 0, 0.4);
    background: #1a1a1a;
}

.complications-image-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.2) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}

.complications-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
    position: relative;
    z-index: 2;
}

.complications-image-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45);
}

.complications-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.complications-note {
    font-size: 1.1rem;
    color: #fca5a5;
    font-weight: 700;
    margin: 0;
    line-height: 1.7;
}

.complications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 0;
}

.comp-item {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1rem;
    border-radius: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

.comp-item i {
    color: #ef4444;
}

.comp-item:hover {
    background: rgba(239, 68, 68, 0.14);
    transform: translateY(-2px);
}

/* --- Steps --- */
.steps-stack {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    background: white;
    padding: 1.25rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow);
    border-right: 6px solid var(--primary);
}

.step-badge {
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* --- Expert --- */
.expert-layout {
    background: #f0f7f3;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin: 4rem auto;
}

.expert-img-box {
    width: 100%;
    max-width: 300px;
}

.expert-img-box img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
}

.expert-content {
    flex: 1;
}

@media (min-width: 768px) {
    .expert-layout {
        flex-direction: row-reverse;
        padding: 4rem;
        text-align: right;
    }
}

/* --- Spinner --- */
.spinner-luxury {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    padding: 4rem 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 4rem auto;
    border: 1px solid rgba(6, 78, 59, 0.1);
}

.spin-wheel-box {
    position: relative;
    width: clamp(260px, 80vw, 350px);
    height: clamp(260px, 80vw, 350px);
    margin: 3rem auto;
}

.spin-arrow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    z-index: 10;
}

#spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: transform 4s cubic-bezier(0.1, 0, 0.1, 1);
}

/* --- Spin Result Popup --- */
.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 ease, visibility 0.35s ease;
}

.spin-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.spin-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 30, 24, 0.75);
    backdrop-filter: blur(4px);
}

.spin-popup-card {
    position: relative;
    background: white;
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    border-top: 6px solid var(--accent);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s ease;
}

.spin-popup.is-open .spin-popup-card {
    transform: translateY(0) scale(1);
}

.spin-popup-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spin-popup-close:hover {
    background: #e5e7eb;
}

.spin-popup-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0fdf4, #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spin-popup-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.spin-popup-card h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.spin-popup-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.spin-popup-prices {
    background: #f9fafb;
    border-radius: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.spin-original {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.spin-original del {
    font-size: 1.25rem;
    color: #9ca3af;
}

.spin-final {
    font-size: 1.2rem;
    color: var(--primary);
}

.spin-final strong {
    font-size: 2rem;
    color: var(--accent);
    display: block;
    margin-top: 0.25rem;
}

.spin-popup-order {
    display: inline-block;
    width: 100%;
    max-width: none;
    text-decoration: none;
}

/* --- Form --- */
.form-luxury-box {
    background: var(--primary);
    color: white;
    padding: 4rem 1.25rem;
    border-radius: var(--radius-lg);
    margin: 4rem auto;
    text-align: center;
}

.form-card {
    background: white;
    color: var(--text-main);
    max-width: 640px;
    margin: 3rem auto 0;
    padding: 2.5rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    text-align: right;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 1.25rem;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: right;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.form-group input,
.form-group select {
    display: block;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    background: #f8fafc;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input {
    cursor: text;
}

.form-group input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-left: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23064e3b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 1rem;
}

.input-ltr {
    font-family: 'Outfit', sans-serif;
    direction: ltr;
    text-align: left;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.1);
}

.form-submit {
    margin-top: 0.5rem;
    padding-top: 0.25rem;
}

.form-submit .btn-premium {
    margin-top: 0;
}

.btn-premium {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(to right, var(--accent), #b38b1d);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* --- Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Intro & Extra Content --- */
.intro-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid rgba(6, 78, 59, 0.12);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: right;
    margin-bottom: 1rem;
}

.intro-box p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 1rem;
}

.intro-box p:last-child {
    margin-bottom: 0;
}

.intro-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.intro-pill {
    background: white;
    border: 1px solid rgba(6, 78, 59, 0.15);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.symptom-item {
    background: white;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border-right: 4px solid #f59e0b;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: right;
}

.symptom-item i {
    color: #f59e0b;
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.trust-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-bottom: 4px solid var(--accent);
}

.trust-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.trust-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.trust-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.how-to-box {
    background: #f0f7f3;
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.how-to-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.how-to-list li {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    text-align: right;
}

.how-to-num {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    font-family: 'Outfit', sans-serif;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    text-align: right;
    border-right: 4px solid var(--primary);
}

.faq-item h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 720px;
    margin: -1.5rem auto 2.5rem;
    font-size: 1.1rem;
    line-height: 1.9;
}
