/*
Theme Name: Jivisha Clinic Pro
Theme URI: https://jivishaclinic.com/
Author: Jivisha Clinic
Author URI: https://jivishaclinic.com/
Description: Premium custom WordPress theme for Jivisha Dermatology, Aesthetic & Pediatric Clinic, Delhi. Built for performance, accessibility and conversion.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: Proprietary
License URI: https://jivishaclinic.com/
Text Domain: jivisha-clinic-pro
Tags: healthcare, dermatology, premium, mobile-first, custom-theme
*/

/* ============================================================
   JIVISHA CLINIC PRO — CSS DESIGN TOKEN SYSTEM
   ============================================================ */
:root {
  /* Brand Colors */
  --c-navy:    #0F172A;
  --c-ink:     #1E293B;
  --c-muted:   #64748B;
  --c-border:  #E2E8F0;
  --c-cyan:    #0284C7;
  --c-cyan-d:  #0369A1;
  --c-teal:    #0D9488;
  --c-teal-d:  #0F766E;
  --c-bg:      #F8FAFC;
  --c-bg2:     #F1F5F9;
  --c-white:   #FFFFFF;
  --c-gold:    #D97706;
  --c-gold-l:  #FEF3C7;
  --c-rose:    #F43F5E;
  --c-success: #10B981;

  /* Gradients */
  --g-primary: linear-gradient(135deg, #0284C7 0%, #0D9488 100%);
  --g-dark:    linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --g-gold:    linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  --g-hero:    linear-gradient(135deg, rgba(2,132,199,0.08) 0%, rgba(13,148,136,0.06) 100%);

  /* Typography */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Type Scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  clamp(1.5rem, 3.5vw, 2rem);
  --text-4xl:  clamp(1.75rem, 4vw, 2.5rem);
  --text-5xl:  clamp(2rem, 5vw, 3.5rem);
  --text-6xl:  clamp(2.5rem, 6vw, 4.5rem);

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 120px;

  /* Section Rhythm */
  --section-pad: clamp(60px, 8vw, 120px);

  /* Radius */
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.07);
  --shadow-cyan: 0 8px 30px rgba(2,132,199,0.25);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 250ms var(--ease);
  --t-slow: 350ms var(--ease);

  /* Layout */
  --container: 1200px;
  --container-sm: 760px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* =========================================
   BLOG & ARCHIVE STYLES
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 300ms ease, box-shadow 300ms ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.blog-card-img {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--g-primary);
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}
.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-cat {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(14, 116, 144, 0.1);
    color: var(--c-cyan);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    align-self: flex-start;
}
.blog-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--c-ink);
    margin-bottom: 12px;
    line-height: 1.3;
}
.blog-card-excerpt {
    color: var(--c-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

/* Single Post Styles */
.single-hero {
    position: relative;
    overflow: hidden;
}
.single-hero::before {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(135deg, var(--c-navy) 0%, #0f172a 100%);
    z-index: 0;
}
.single-hero > div {
    position: relative;
    z-index: 1;
}
.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}
.post-content h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--c-ink);
    margin-top: 40px;
    margin-bottom: 16px;
}
.post-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--c-ink);
    margin-top: 32px;
    margin-bottom: 12px;
}
.post-content p {
    margin-bottom: 20px;
}
.post-content ul, .post-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}
.post-content li {
    margin-bottom: 8px;
}
.post-content img {
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.post-content blockquote {
    font-style: italic;
    font-size: 20px;
    color: var(--c-navy);
    border-left: 4px solid var(--c-cyan);
    padding-left: 20px;
    margin: 32px 0;
    background: rgba(14,116,144,0.03);
    padding: 20px;
    border-radius: 0 12px 12px 0;
}
.category.bg-primary {
    background: var(--c-cyan) !important;
    color: white;
}
.border-radius-sm {
    border-radius: 4px;
}
.opacity-80 {
    opacity: 0.8;
}

/* =========================================
   PAGE HERO & CTA STYLES
   ========================================= */
.page-hero {
    background-color: #E6F6FA; background-image: radial-gradient(at 20% 30%, rgba(255,255,255,0.8) 0px, transparent 50%), radial-gradient(at 80% 20%, rgba(0,163,196,0.15) 0px, transparent 50%), linear-gradient(rgba(0, 163, 196, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 163, 196, 0.04) 1px, transparent 1px); background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px; background-position: 0 0, 0 0, -1px -1px, -1px -1px;
    padding: 120px 0 160px;
    text-align: center;
    position: relative;
    overflow: hidden;
}



.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50px;
    background: #F8FAFC;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.eyebrow:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 163, 196, 0.25) !important; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 163, 196, 0.2);
    color: #00A3C4;
    background: #ffffff !important;
    color: #00A3C4 !important;
    border: none !important;
    box-shadow: 0 8px 24px rgba(0, 163, 196, 0.15) !important;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 163, 196, 0.3);
}
.eyebrow-dot {
    width: 8px; height: 8px;
    background: #38bdf8;
    border-radius: 50%;
    margin-right: 8px;
}
.page-hero-title {
    color: #0f172a !important;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);

    font-size: 52px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.page-hero-sub {
    color: #475569;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.section-pad {
    padding: 60px 0;
    background: #F8FAFC;
}
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.cta-eyebrow {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.cta-eyebrow .eyebrow-dot {
    background: #00A3C4;
}

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

/* =========================================
   DROPDOWN MENU STYLES
   ========================================= */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: white;
    min-width: 260px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}
.nav-dropdown-wrapper:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-dropdown-menu a {
    color: #334155 !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.nav-dropdown-menu a:last-child {
    border-bottom: none;
}
.nav-dropdown-menu a:hover {
    color: #00A3C4 !important;
    background: rgba(0, 163, 196, 0.05);
    padding-left: 28px !important;
}

@media (max-width: 991px) {
    .nav-dropdown-wrapper {
        display: block;
        width: 100%;
    }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        display: flex;
        padding: 0;
        background: rgba(0, 163, 196, 0.03);
        border-radius: 8px;
        margin-top: 5px;
        transform: none;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }
    .nav-dropdown-wrapper:focus-within .nav-dropdown-menu,
    .nav-dropdown-wrapper:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 8px 0;
    }
    .nav-dropdown-menu a {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

