/* ==========================================================================
   AHWAN PHARMACY RESPONSIVE FLUID ENGINE (FINAL MASTER STYLESHEET)
   ========================================================================== */

:root {
    /* PREMIUM HIGH-CONTRAST LIGHT CANVASES */
    --dark-bg: #FFFFFF;          /* Pure white body background */
    --surface-card: #F8FAFC;     /* Sleek off-white for crisp definition cards */
    --surface-card-hover: #F1F5F9; /* Subtle gray interaction hover state */
    --surface-border: #E2E8F0;    /* Razor-sharp clean structural border styling */
    
    /* AHWAN STRATIFIED MOLECULAR BRAND LOGO CORES */
    --brand-blue: #223087;       /* Exact corporate logo royal blue */
    --brand-green: #8DC63F;      /* Exact corporate logo medical green */
    --brand-green-dark: #6fa22a; /* Darkened green profile for readable contrast */
    --whatsapp-brand: #25D366;   /* Direct conversion communication hue */
    
    /* ACCESSIBILITY TEXT TRACING KEYS */
    --text-pure: #0F172A;        /* Deep slate black for absolute body copy focus */
    --text-secondary: #334155;   /* Crisp charcoal slate for reading descriptive texts */
    
    /* LUXURY RADIAL BOUNDARY CORNERS */
    --radius-xl: 20px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --transition-fluid: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   GLOBAL LIQUID FORM RESETS & TEXT CONTRAST ENGINE
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-pure);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    
    /* FLUID TYPOGRAPHY (SCALES AUTOMATICALLY BY SCREEN WIDTH) */
    font-size: clamp(16px, 1.1vw, 18px); 
    font-weight: 500;
    line-height: 1.65;
}

/* ==========================================================================
   FLUID MASTER GRIDS & STRUCTURE CONTAINER COUPLING
   ========================================================================== */

.app-viewport-container {
    width: 100%;
    position: relative;
    background-color: var(--dark-bg);
}

.content-row-wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 max(24px, 2vw); /* Fluid dynamic side padding for laptops and monitors */
}

.section-spacing {
    padding: clamp(60px, 8vw, 100px) 0; /* Fluid padding prevents sections from stretching on desktop */
    border-bottom: 1px solid var(--surface-border);
    background-color: var(--dark-bg);
}

.center-headline-block {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(40px, 5vw, 64px) auto;
}

.center-headline-block .mini-tag {
    font-size: clamp(12px, 0.8vw, 13px);
    font-weight: 800;
    color: var(--brand-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    display: inline-block;
}

.center-headline-block h2 {
    font-size: clamp(28px, 3.2vw, 44px); /* Scales cleanly from mobile up to high-end laptops */
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--brand-blue);
}
/* ==========================================================================
   TOP NOTIFICATION STRIP & STICKY NAVIGATION BAR
   ========================================================================== */

.compliance-announcement-strip {
    background-color: var(--brand-blue);
    color: #FFFFFF;
    font-size: clamp(11px, 0.8vw, 13px);
    font-weight: 700;
    text-align: center;
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compliance-announcement-strip em {
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-style: normal;
    font-weight: 800;
}

.sticky-desktop-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
    z-index: 2000;
}

.nav-flex-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(16px, 2vw, 24px) 0;
}

.nav-brand-anchor {
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 800;
    color: var(--brand-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.nav-brand-anchor span {
    color: var(--brand-green);
}

.nav-links-menu {
    display: flex;
    gap: clamp(24px, 3vw, 40px);
    align-items: center;
}

.nav-links-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: clamp(13px, 0.9vw, 14px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-fluid);
}

.nav-links-menu a:hover {
    color: var(--brand-blue);
}

.nav-active-status-badge {
    background: #F1FBF4;
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #155724;
    font-size: clamp(11px, 0.8vw, 12px);
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pulse-beacon-dot {
    width: 8px;
    height: 8px;
    background-color: var(--whatsapp-brand);
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.pulse-beacon-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--whatsapp-brand);
    border-radius: 50%;
    animation: beaconRadar 2s infinite ease-out;
}

@keyframes beaconRadar {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}

/* ==========================================================================
   FLUID ADAPTIVE SPLIT HERO VIEWPORT
   ========================================================================== */

.hero-view-container {
    padding: clamp(48px, 6vw, 96px) 0;
    background: radial-gradient(40% 40% at 100% 0%, rgba(141, 198, 63, 0.04) 0%, rgba(255, 255, 255, 0) 100%), var(--dark-bg);
    border-bottom: 1px solid var(--surface-border);
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 4vw, 56px);
    align-items: center;
}

.hero-message-panel {
    text-align: left;
}

.hero-micro-tag {
    font-size: clamp(11px, 0.8vw, 13px);
    font-weight: 800;
    color: var(--brand-green-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    display: inline-block;
}

.hero-main-title {
    font-size: clamp(34px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.hero-main-title span {
    color: var(--text-pure);
}

.hero-main-title em {
    font-style: normal;
    color: var(--brand-green-dark);
    animation: textClinicalPulse 3s ease-in-out infinite alternate;
}

@keyframes textClinicalPulse {
    0% { text-shadow: 0 0 4px rgba(141, 198, 63, 0.05); }
    100% { text-shadow: 0 0 12px rgba(141, 198, 63, 0.2); }
}

.hero-body-description {
    font-size: clamp(16px, 1.2vw, 18px);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: clamp(32px, 4vw, 44px);
    max-width: 540px;
}

.master-action-wa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--whatsapp-brand);
    color: #FFFFFF;
    text-decoration: none;
    padding: clamp(18px, 1.8vw, 22px) clamp(24px, 2.5vw, 40px);
    border-radius: var(--radius-lg);
    font-weight: 800;
    font-size: clamp(16px, 1.2vw, 18px);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.25);
    transition: var(--transition-fluid);
}

.master-action-wa-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4);
    background-color: #1eb855;
}

.master-action-wa-button i {
    font-size: clamp(20px, 1.5vw, 24px);
}

.cta-verification-note {
    display: block;
    font-size: clamp(11px, 0.8vw, 12px);
    color: var(--text-secondary);
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.hero-display-box {
    width: 100%;
    height: clamp(300px, 35vw, 480px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--surface-border);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.hero-display-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   DYNAMIC REPEATABLE ADAPTIVE GRID MATRICES
   ========================================================================== */

.services-display-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(20px, 2.5vw, 32px);
}

.service-display-node {
    background-color: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 3vw, 44px) clamp(24px, 2.5vw, 36px);
    text-align: left;
    transition: var(--transition-fluid);
    display: flex;
    flex-direction: column;
}

.service-display-node:hover {
    border-color: rgba(34, 48, 135, 0.2);
    background-color: #FFFFFF;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(34, 48, 137, 0.04);
}

.service-display-node i {
    font-size: clamp(32px, 2.5vw, 38px);
    color: var(--brand-blue);
    margin-bottom: 20px;
    display: block;
}

.service-display-node h3 {
    font-size: clamp(20px, 1.6vw, 24px);
    font-weight: 800;
    color: var(--text-pure);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.service-display-node p {
    font-size: clamp(15px, 1vw, 16px);
    color: var(--text-secondary);
    line-height: 1.6;
}
/* ==========================================================================
   PRODUCT RANGE GRID HUB STYLING LAYOUT
   ========================================================================== */

.catalogue-flex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Clean adaptive column mesh wrapping */
    gap: clamp(24px, 3vw, 32px);
}

.premium-product-box-card {
    background-color: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: clamp(28px, 3vw, 36px) clamp(20px, 2.5vw, 28px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fluid);
}

.premium-product-box-card:hover {
    border-color: rgba(34, 48, 135, 0.2);
    background-color: #FFFFFF;
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(34, 48, 137, 0.04);
}

.product-image-container-box {
    width: 100%;
    height: clamp(180px, 18vw, 220px); /* Keeps dynamic box aspect ratios stable across screens */
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--surface-border);
}

.product-image-container-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title-string {
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--brand-blue);
}

.premium-product-box-card p {
    font-size: clamp(14px, 1.05vw, 15px);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* INTERACTIVE DYNAMIC TRIGGER FORM ACTIONS */
.product-wa-action-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #FFFFFF;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    text-decoration: none;
    padding: clamp(12px, 1.2vw, 16px);
    border-radius: var(--radius-lg);
    font-size: clamp(13px, 1vw, 14px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
    transition: var(--transition-fluid);
    margin-top: auto;
}

.product-wa-action-trigger i {
    color: var(--whatsapp-brand);
    font-size: 16px;
}

.product-wa-action-trigger:hover {
    background-color: var(--brand-blue);
    color: #FFFFFF;
    border-color: var(--brand-blue);
    box-shadow: 0 10px 20px rgba(34, 48, 135, 0.15);
}

.product-wa-action-trigger:hover i {
    color: #FFFFFF;
}

/* ==========================================================================
   M-PESA EXPRESS BANNER CHECKOUT ROW
   ========================================================================== */

.mpesa-integration-card-row {
    background: linear-gradient(135deg, #F1FBF4 0%, #FFFFFF 100%);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: var(--radius-xl);
    padding: clamp(32px, 4vw, 56px) clamp(24px, 3.5vw, 48px);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(32px, 4vw, 48px);
    align-items: center;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.03);
}

.mpesa-integration-card-row h2 {
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 12px;
}

.mpesa-integration-card-row p {
    font-size: clamp(15px, 1.1vw, 16px);
    color: var(--text-secondary);
    line-height: 1.6;
}

.till-display-panel-wrapper {
    background-color: #FFFFFF;
    border: 2px solid var(--whatsapp-brand);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 2.5vw, 32px) 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.01);
}

.till-display-panel-wrapper span {
    font-size: clamp(11px, 0.8vw, 12px);
    color: var(--text-secondary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

.till-display-panel-wrapper .till-numeric-output {
    font-size: clamp(32px, 3.8vw, 52px); /* Scales font output down sharply on mobile viewport frames */
    font-weight: 900;
    color: #1eb855;
    letter-spacing: 0.05em;
    line-height: 1;
    font-family: system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   CORPORATE FOOTER DESIGN SCHEME
   ========================================================================== */

.clinical-platform-footer {
    background-color: #0F172A; /* Slate black footer stays native for heavy design grounding */
    color: #94A3B8;
    padding: clamp(60px, 6vw, 90px) 0 clamp(32px, 4vw, 40px) 0;
    text-align: center;
}

.footer-brand-header {
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.footer-brand-header span {
    color: var(--brand-green);
}

.footer-communication-row-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 3vw, 40px);
    margin: 32px 0;
}

.footer-communication-row-links a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 700;
    transition: var(--transition-fluid);
}

.footer-communication-row-links a:hover {
    color: #FFFFFF;
}

.footer-legal-regulatory-disclaimer {
    font-size: clamp(11px, 0.8vw, 12px);
    color: #475569;
    max-width: 650px;
    margin: 24px auto 0 auto;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.footer-serverless-handshaking-badge {
    font-size: 10px;
    color: #334155;
    margin-top: 40px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
}

/* ==========================================================================
   SMART MOBILE HAMBURGER MENU LAYOUT BREAKPOINTS
   ========================================================================== */

.hamburger-menu-trigger {
    display: none;
    background: none;
    border: 1px solid var(--surface-border);
    color: var(--brand-blue);
    font-size: 20px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fluid);
    align-items: center;
    justify-content: center;
}

.hamburger-menu-trigger:hover {
    background-color: var(--surface-card);
}

.mobile-navigation-drawer {
    display: none;
    background-color: #FFFFFF;
    border-top: 1px solid var(--surface-border);
    border-bottom: 2px solid var(--brand-blue);
    padding: 16px 24px;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    width: 100%;
    left: 0;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
    z-index: 1999;
}

.drawer-link-node {
    display: block;
    color: var(--text-pure);
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 0;
    border-bottom: 1px dashed var(--surface-border);
    transition: var(--transition-fluid);
}

.drawer-link-node:last-child { border-bottom: none; }
.drawer-link-node:hover { color: var(--brand-green-dark); padding-left: 6px; }

/* ==========================================================================
   RESPONSIVE HARDWARE COUPLING OVERRIDES BREAKPOINTS
   ========================================================================== */
.pharmacy-logo{
    width:250px;
}
@media (max-width: 991px) {
    .nav-links-menu { display: none !important; }
    .hamburger-menu-trigger { display: inline-flex; }
    .mobile-navigation-drawer.is-active { display: flex; }
    
    .hero-split-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
    .hero-message-panel { text-align: center; }
    .hero-body-description { margin: 0 auto 32px auto; }
    .hero-display-box { height: clamp(260px, 40vw, 360px); }
    
    .mpesa-integration-card-row { grid-template-columns: 1fr; text-align: center; gap: 28px; padding: 32px 20px; }
.pharmacy-logo{
    width:150px;
    height:50px;
}
.master-action-wa-button{
    font-size: 15px;
    max-width: max-content;

}
.compliance-announcement-strip{
    font-size: 10px;
}
.footer-brand-header{
    font-size: 20px;
}
.footer-logo {
    width: 50px !important;
}

.drawer-link-node{
    font-size: 13px;
}
}

@media (max-width: 500px) {
    .services-display-matrix, .catalogue-flex-grid { grid-template-columns: 1fr; }
    .footer-communication-row-links { flex-direction: column; gap: 16px; }
}



/* ==========================================================================
   DUAL STICKY FIXED MOBILE CONVERSION DOCK STYLES
   ========================================================================== */

.fixed-mobile-action-dock {
    position: fixed;
    bottom: clamp(16px, 3vw, 24px); /* Fluid height placement safe from phone chin bars */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 clamp(16px, 3vw, 24px);
    pointer-events: none; /* Prevents container box from blocking background clicks */
    z-index: 2999; /* Higher than header to stay floating on top of everything */
}

.dock-action-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(52px, 5vw, 60px); /* Fluid circle scaling prevents bulky mobile buttons */
    height: clamp(52px, 5vw, 60px);
    border-radius: 50%;
    color: #FFFFFF ;
    text-decoration: none;
    font-size: clamp(20px, 1.8vw, 24px);
    pointer-events: auto; /* Re-enables clicking on the floating circles */
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
    transition: var(--transition-fluid);
}

/* Color Calibration Themes matching her brand assets */
.dock-action-circle.phone-call-shake {
    background-color: #223087; /* Ahwan Brand Corporate Blue */
}

.dock-action-circle.whatsapp-chat-pulse {
    background-color: #25D366; /* Native Conversion Green */
}

/* Hover scales on desktop viewport frames */
.dock-action-circle:hover {
    transform: scale(1.1) translateY(-4px);
   
}

/* ==========================================================================
   ANIMATION KEYFRAMES ENGINE FOR THE FLOATS
   ========================================================================== */

/* 1. Left Button: Persistent Shaking/Ringing Loop */
.phone-call-shake {
    animation: phoneRingingVibration 1.5s ease-in-out infinite;
}

@keyframes phoneRingingVibration {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* 2. Right Button: Constant Pulsing Radar Circle Layer */
.whatsapp-chat-pulse {
    animation: floatingGreenRadar 2s infinite ease-in-out;
}

@keyframes floatingGreenRadar {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5), 0 10px 25px rgba(15, 23, 42, 0.15); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0), 0 10px 25px rgba(15, 23, 42, 0.15); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 25px rgba(15, 23, 42, 0.15); }
}
/* ==========================================================================
   DESKTOP MONITORS HOVER ANIMATION PAUSE MATRIX FIX
   ========================================================================== */

/* Triggers when a mouse cursor hovers over either fixed circle button on a laptop */
.dock-action-circle:hover {
    animation-play-state: paused !important; /* Instantly stops the shaking loop from locking the position */
    transform: scale(1.15) translateY(-6px) !important; /* Smoothly scales up and lifts the button container box */
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3) !important; /* Deepens the layout shadow profile on desktop */
}

/* Color change feedback rules on desktop cursors */
.dock-action-circle.phone-call-shake:hover {
    background-color: #1a2566 !important; /* Deepens to an intense high-trust corporate navy blue */
}

.dock-action-circle.whatsapp-chat-pulse:hover {
    background-color: #1eb855 !important; /* Deepens to a vibrant active conversation green */
}
