:root {
    /* Brand Colors Extracted from logo_AM.png & AM.png */
    --brand-pulse: #ff5733;            /* ECG Heartbeat Orange-Red */
    --brand-pulse-gradient: linear-gradient(135deg, #ff7a45 0%, #e63946 100%);
    --brand-green: #00b865;            /* Pharmacy Cross Shamrock Green */
    --brand-green-dark: #009e56;
    --brand-green-tint: rgba(0, 184, 101, 0.08);
    --brand-purple: #311b58;           /* Store Signboard Deep Royal Purple */
    --brand-dark: #1b1c23;             /* Obsidian Neutral */
    --brand-charcoal: #2d3142;
    
    /* Backgrounds & Neutrals */
    --bg-white: #ffffff;
    --bg-soft: #f9fbfd;
    --border-light: rgba(226, 232, 240, 0.85);
    --text-dark: #18191f;
    --text-muted: #555e6d;
    
    /* Smooth Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-elevated: 0 16px 36px rgba(0, 0, 0, 0.05);
    --shadow-green-glow: 0 8px 24px rgba(0, 184, 101, 0.25);
    --shadow-orange-glow: 0 8px 24px rgba(255, 87, 51, 0.22);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-soft);
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

h1, h2, h3, h4, .nav-logo {
    font-family: 'Outfit', sans-serif;
}

/* ==========================================================
   1. Multi-Color Firecracker Canvas & Cursor Effects
   ========================================================== */

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998; /* Under cursor dot, over background */
}

/* Ambient Subtle Gradients */
.ambient-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
    opacity: 0.22;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--brand-pulse) 0%, transparent 70%);
    top: -100px;
    left: 10%;
    animation: driftOrbOne 18s ease-in-out infinite alternate;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--brand-purple) 0%, transparent 70%);
    top: 30%;
    right: -150px;
    animation: driftOrbTwo 24s ease-in-out infinite alternate;
}

.orb-3 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--brand-green) 0%, transparent 70%);
    bottom: -150px;
    left: 20%;
    animation: driftOrbThree 20s ease-in-out infinite alternate;
}

@keyframes driftOrbOne {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 80px) scale(1.15); }
}

@keyframes driftOrbTwo {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, 120px) scale(0.9); }
}

@keyframes driftOrbThree {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, -90px) scale(1.1); }
}

/* Fluid Cursor Glowing Ring & Center Spark */
@media (pointer: fine) {
    .cursor-glow {
        position: fixed;
        top: -150px;
        left: -150px;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(0, 184, 101, 0.12) 0%, rgba(255, 87, 51, 0.06) 45%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
        will-change: transform;
    }

    .cursor-dot {
        position: fixed;
        top: -4px;
        left: -4px;
        width: 8px;
        height: 8px;
        background: var(--brand-pulse);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transition: transform 0.08s ease-out, background-color 0.25s ease;
        will-change: transform;
    }

    body.cursor-active .cursor-glow {
        width: 420px;
        height: 420px;
        top: -210px;
        left: -210px;
        background: radial-gradient(circle, rgba(255, 87, 51, 0.16) 0%, rgba(0, 184, 101, 0.1) 50%, transparent 75%);
    }

    body.cursor-active .cursor-dot {
        background: var(--brand-green);
        transform: scale(1.5);
    }
}

@media (pointer: coarse) {
    .cursor-glow, .cursor-dot, #particleCanvas { display: none; }
}

/* Scroll Entrance Triggers */
.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   2. Header & Navigation
   ========================================================== */

.top-banner {
    background: var(--brand-purple);
    color: #e2e8f0;
    font-size: 0.86rem;
    padding: 10px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 3px solid var(--brand-pulse);
    position: relative;
    z-index: 20;
}

.top-banner .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-banner .info-item i {
    color: var(--brand-green);
}

.top-banner strong {
    color: #ffffff;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 6%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.nav-logo-box {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-box img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.nav-logo-box:hover img {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    color: var(--brand-charcoal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 20px;
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--brand-green-dark);
    background: var(--brand-green-tint);
}

.nav-links .nav-cta {
    background: var(--brand-green);
    color: #ffffff !important;
    font-weight: 700;
    margin-left: 10px;
    box-shadow: var(--shadow-green-glow);
}

.nav-links .nav-cta:hover {
    background: var(--brand-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 184, 101, 0.35);
}

/* ==========================================================
   3. Hero Section & Heartbeat Pulse
   ========================================================== */

.hero-banner {
    padding: 95px 6% 105px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.pulse-badge {
    background: #ffffff;
    border: 1.5px solid rgba(255, 87, 51, 0.35);
    color: var(--brand-pulse);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 26px;
    box-shadow: 0 4px 16px rgba(255, 87, 51, 0.1);
}

.live-dot {
    width: 9px;
    height: 9px;
    background-color: var(--brand-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 184, 101, 0.7);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 184, 101, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 184, 101, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 184, 101, 0); }
}

.pulse-badge i {
    animation: pulseBeat 1.4s infinite ease-in-out;
}

@keyframes pulseBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.28); color: #e63946; }
}

.hero-banner h1 {
    font-size: 4.2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin-bottom: 22px;
    color: var(--brand-dark);
}

.hero-banner h1 .highlight-orange {
    background: var(--brand-pulse-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-banner h1 .highlight-green {
    color: var(--brand-green);
}

.hero-banner p {
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================
   4. Main Content Showcase & Cards
   ========================================================== */

.main-wrapper {
    max-width: 1240px;
    margin: -30px auto 90px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.presentation-showcase {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    margin-bottom: 90px;
    align-items: center;
}

@media (max-width: 992px) {
    .presentation-showcase { grid-template-columns: 1fr; }
    .hero-banner h1 { font-size: 3rem; }
}

.clean-white-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 48px;
    border-radius: 28px;
    box-shadow: var(--shadow-elevated);
    border-left: 6px solid var(--brand-purple);
    transition: var(--transition-smooth);
}

.clean-white-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(49, 27, 88, 0.08);
}

.clean-white-card h2 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--brand-dark);
}

.clean-white-card p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.clean-white-card p:last-child {
    margin-bottom: 0;
}

/* Media Cards */
.media-stack-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    border: 4px solid #ffffff;
    box-shadow: var(--shadow-elevated);
    transition: var(--transition-smooth);
    margin: 0;
}

.media-stack-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.1);
}

.media-stack-frame img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-stack-frame:hover img {
    transform: scale(1.025);
}

.media-tag {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: rgba(27, 28, 35, 0.88);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mid-banner-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 90px;
}

@media (max-width: 768px) {
    .mid-banner-showcase { grid-template-columns: 1fr; }
}

/* ==========================================================
   5. Specialties Section
   ========================================================== */

.section-headline {
    text-align: center;
    margin-bottom: 50px;
}

.section-headline .section-sub {
    display: inline-block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-green-dark);
    margin-bottom: 8px;
}

.section-headline h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 12px;
}

.section-headline p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto;
}

.aesthetic-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 90px;
}

.aesthetic-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 38px 28px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.aesthetic-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 87, 51, 0.4);
    box-shadow: 0 18px 36px rgba(255, 87, 51, 0.09);
}

.aesthetic-card.accent-green:hover {
    border-color: rgba(0, 184, 101, 0.4);
    box-shadow: 0 18px 36px rgba(0, 184, 101, 0.09);
}

.icon-circle-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 1.45rem;
    transition: var(--transition-smooth);
}

.icon-orange {
    background: rgba(255, 87, 51, 0.1);
    color: var(--brand-pulse);
}

.icon-green {
    background: var(--brand-green-tint);
    color: var(--brand-green);
}

.aesthetic-card:hover .icon-orange {
    background: var(--brand-pulse);
    color: #ffffff;
    box-shadow: var(--shadow-orange-glow);
    transform: rotate(-6deg) scale(1.05);
}

.aesthetic-card:hover .icon-green {
    background: var(--brand-green);
    color: #ffffff;
    box-shadow: var(--shadow-green-glow);
    transform: rotate(6deg) scale(1.05);
}

.aesthetic-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--brand-dark);
}

.aesthetic-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================
   6. Location & Footer
   ========================================================== */

.connectivity-panel-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    transition: var(--transition-smooth);
}

@media (max-width: 880px) {
    .connectivity-panel-grid { grid-template-columns: 1fr; }
}

.textual-details-pane {
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flex-info-row {
    display: flex;
    gap: 22px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.flex-info-row:last-child {
    margin-bottom: 0;
}

.flex-info-row .circular-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.badge-pulse {
    background: rgba(255, 87, 51, 0.1);
    color: var(--brand-pulse);
}

.badge-green {
    background: var(--brand-green-tint);
    color: var(--brand-green);
}

.badge-purple {
    background: rgba(49, 27, 88, 0.08);
    color: var(--brand-purple);
}

.inner-content h4 {
    font-size: 1.15rem;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--brand-dark);
}

.inner-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.phone-callout {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--brand-pulse);
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.phone-callout:hover {
    transform: translateX(4px);
    color: #e63946;
}

.map-frame-box {
    position: relative;
    min-height: 380px;
    background: #e5e7eb;
}

.map-frame-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

footer {
    background: var(--brand-purple);
    color: #cbd5e1;
    text-align: center;
    padding: 40px 20px;
    border-top: 3px solid var(--brand-green);
    font-size: 0.92rem;
    position: relative;
    z-index: 10;
}

footer strong {
    color: #ffffff;
}

/* Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .ambient-orb, #particleCanvas { display: none; }
    .reveal-item { opacity: 1; transform: none; }
}