/* ================================================
   AMMCLINIC — CAREPLUS BLUE THEME
   Pure White · Medical Blue · Soft Silver
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ----------- ROOT TOKENS (LIGHT THEME) ----------- */
:root {
    --obsidian:   #FFFFFF; /* Pure White Background */
    --obsidian-2: #F8FAFC; /* Soft Off-White for sections */
    --obsidian-3: #F1F5F9;
    --surface:    #FFFFFF; /* White Cards */
    --surface-2:  #EFF6FF; /* Soft blue hover tint */
    
    --border:     rgba(0, 102, 255, 0.1); /* Soft Blue Border */
    --border-r:   rgba(0, 102, 255, 0.2);  /* Stronger Blue Border */

    --primary:    #0066FF; /* Primary Medical Blue */
    --primary-2:  #0052CC; /* Darker Blue */
    --primary-glow: rgba(0, 102, 255, 0.15); /* Blue Glow */
    
    --pearl:      #0F172A; /* Dark Charcoal Text */
    --pearl-muted:#475569; /* Grey text */

    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-ui:      'Plus Jakarta Sans', sans-serif;
    --font-body:    'Plus Jakarta Sans', sans-serif;
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
}

/* ----------- RESET & BASE ----------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body); background-color: var(--obsidian);
    color: var(--pearl); overflow-x: hidden; line-height: 1.6;
    cursor: none; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

/* ----------- NOISE TEXTURE ----------- */
.noise-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9999; opacity: 0.02; mix-blend-mode: multiply;
}

/* ----------- CUSTOM CURSOR ----------- */
.cursor {
    width: 8px; height: 8px; background: var(--primary); border-radius: 50%;
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 10000;
    transform: translate(-50%, -50%); transition: transform 0.1s ease, background 0.3s ease;
}
.cursor-follower {
    width: 36px; height: 36px; border: 1px solid rgba(0, 102, 255, 0.5); border-radius: 50%;
    position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); transition: all 0.15s var(--ease-out);
}
body:has(a:hover) .cursor-follower, body:has(button:hover) .cursor-follower, body:has(.tilt-card:hover) .cursor-follower {
    transform: translate(-50%, -50%) scale(2); border-color: var(--primary); background: var(--primary-glow);
}

/* ----------- LOADER ----------- */
.loader { position: fixed; inset: 0; background: var(--obsidian); z-index: 99999; display: flex; align-items: center; justify-content: center; flex-direction: column; transition: opacity 0.8s var(--ease-out), visibility 0.8s; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--pearl); margin-bottom: 20px; }
.loader-logo span { color: var(--primary); }
.loader-bar { width: 200px; height: 4px; background: var(--obsidian-3); border-radius: 4px; overflow: hidden; margin: 0 auto 15px; }
.loader-progress { height: 100%; background: var(--primary); width: 0%; animation: loadProgress 1.8s var(--ease-out) forwards; border-radius: 4px; }
@keyframes loadProgress { to { width: 100%; } }
.loader-tag { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--pearl-muted); }

/* ----------- ANIMATIONS ----------- */
.reveal-up { opacity: 0; transform: translateY(40px); transition: 0.9s var(--ease-out); }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: 1s var(--ease-out); }
.reveal-line { display: block; overflow: hidden; }
.reveal-line::after { content: ''; display: block; width: 100%; height: 100%; background: var(--obsidian); transform: translateX(-101%); }
.is-visible { opacity: 1 !important; transform: none !important; }

/* ----------- NAVBAR & HAMBURGER ----------- */
nav { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 0; transition: all 0.5s ease; }
nav.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border); box-shadow: 0 4px 30px rgba(0,0,0,0.03); }
.nav-container { max-width: 1320px; margin: 0 auto; padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; }
.brand-logo { display: flex; align-items: center; gap: 14px; z-index: 1001; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--pearl); line-height: 1; }
.logo-sub { font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); }
.nav-links { display: flex; gap: 5px; list-style: none; }
.nav-link { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; color: var(--pearl-muted); padding: 8px 16px; border-radius: 50px; transition: 0.3s; cursor: none;}
.nav-link:hover { color: var(--primary); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; padding: 12px 28px; background: var(--primary); color: #fff; border-radius: 50px; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 700; box-shadow: 0 8px 20px var(--primary-glow); transition: 0.3s; cursor: none;}
.nav-cta:hover { background: var(--primary-2); transform: translateY(-2px); box-shadow: 0 12px 25px rgba(0, 102, 255, 0.3); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: transparent; border: 1px solid var(--border-r); width: 45px; height: 45px; border-radius: 12px; cursor: pointer; z-index: 1001; transition: 0.3s; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--pearl); border-radius: 2px; transition: all 0.3s var(--ease-out); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.menu-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); z-index: 998; opacity: 0; visibility: hidden; transition: 0.4s ease; }
.menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu { position: fixed; top: 0; right: 0; width: min(420px, 85vw); height: 100vh; background: var(--obsidian); border-left: 1px solid var(--border); z-index: 999; transform: translateX(100%); transition: transform 0.5s var(--ease-out); overflow-y: auto;}
.mobile-menu.active { transform: translateX(0); box-shadow: -10px 0 40px rgba(0,0,0,0.05); }
.mobile-menu-inner { padding: 100px 40px 40px; display: flex; flex-direction: column; min-height: 100%; justify-content: space-between; }
.mobile-link { display: flex; align-items: center; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--border); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--pearl); transition: 0.3s; }
.mobile-link:hover { color: var(--primary); padding-left: 10px; }
.mobile-link span { font-family: var(--font-ui); font-size: 0.8rem; color: var(--pearl-muted); }
.mobile-cta { display: block; padding: 18px 30px; background: var(--primary); color: #fff; border-radius: 50px; text-align: center; font-family: var(--font-ui); font-weight: 700; margin-top: 30px; box-shadow: 0 10px 20px var(--primary-glow); }

/* ----------- COMMON SECTIONS ----------- */
.section-tag { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; color: var(--primary); padding: 8px 20px; background: var(--surface-2); border-radius: 50px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; color: var(--pearl); margin-bottom: 20px;}
.section-body { font-size: 1.1rem; color: var(--pearl-muted); line-height: 1.7; max-width: 600px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 36px; background: var(--primary); color: #fff; font-family: var(--font-ui); font-size: 0.9rem; font-weight: 700; border-radius: 50px; transition: 0.3s; border: none; cursor: none; box-shadow: 0 10px 25px var(--primary-glow);}
.btn-primary:hover { background: var(--primary-2); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 102, 255, 0.3); color: #fff;}
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 36px; background: transparent; color: var(--pearl); font-family: var(--font-ui); font-size: 0.9rem; font-weight: 700; border-radius: 50px; border: 1px solid var(--border-r); transition: 0.3s; cursor: none; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--surface-2); }

/* ----------- HERO (CAREPLUS STYLE) ----------- */
.hero { padding: 160px 0 80px; position: relative; background: var(--obsidian); text-align: center; }
.hero-container { max-width: 1000px; margin: 0 auto; padding: 0 40px; display: flex; flex-direction: column; align-items: center; }
.hero-headline { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; color: var(--pearl); margin-bottom: 24px; }
.hero-body { font-size: 1.2rem; color: var(--pearl-muted); max-width: 700px; margin: 0 auto 40px; line-height: 1.6; }
.hero-actions { display: flex; justify-content: center; gap: 20px; margin-bottom: 60px; }

.hero-masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: center; max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.hero-masonry img { width: 100%; border-radius: var(--radius-md); box-shadow: 0 20px 40px rgba(0,0,0,0.06); object-fit: cover; }
.hm-img-1 { height: 300px; border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg); }
.hm-img-2 { height: 400px; border-radius: var(--radius-lg); }
.hm-img-3 { height: 350px; border-radius: var(--radius-lg); }
.hm-img-4 { height: 280px; border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); }

/* ----------- SHORT STORY ----------- */
.story-section { padding: 100px 0; background: var(--obsidian-2); text-align: center; border-bottom: 1px solid var(--border); }
.story-container { max-width: 800px; margin: 0 auto; padding: 0 40px; }
.story-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--pearl); margin-bottom: 30px; }
.story-text { font-size: 1.1rem; color: var(--pearl-muted); line-height: 1.8; margin-bottom: 20px; }

/* ----------- SERVICES ----------- */
.services-section { padding: 120px 0; background: var(--obsidian); }
.services-header { text-align: center; margin-bottom: 70px; }
.services-header .section-body { margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-card { background: var(--obsidian-2); border-radius: var(--radius-lg); padding: 50px 40px; display: flex; flex-direction: column; transition: 0.4s; position: relative; overflow: hidden; border: 1px solid transparent; }
.service-card:hover { background: #fff; border-color: var(--border-r); box-shadow: 0 20px 50px rgba(0, 102, 255, 0.08); transform: translateY(-5px); }
.service-icon { width: 60px; height: 60px; background: var(--surface-2); color: var(--primary); display: flex; align-items: center; justify-content: center; border-radius: 16px; margin-bottom: 30px; }
.service-icon svg { width: 30px; height: 30px; }
.service-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--pearl); margin-bottom: 16px; }
.service-desc { font-size: 1.05rem; color: var(--pearl-muted); margin-bottom: 30px; flex-grow: 1; }
.service-img-wrap { width: 100%; height: 200px; border-radius: var(--radius-md); overflow: hidden; margin-top: 20px; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ----------- WHY CHOOSE US ----------- */
.why-section { padding: 120px 0; background: var(--obsidian-2); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-img-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(0, 102, 255, 0.1); }
.why-img-wrap img { width: 100%; height: 600px; object-fit: cover; border-radius: var(--radius-lg); }
.why-list { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.why-item { display: flex; align-items: flex-start; gap: 16px; }
.why-icon { width: 28px; height: 28px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 4px; }
.why-icon svg { width: 16px; height: 16px; }
.why-text h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--pearl); margin-bottom: 6px; }
.why-text p { font-size: 1rem; color: var(--pearl-muted); }

/* ----------- DEGREES ----------- */
.degrees-section { padding: 120px 0; background: var(--obsidian); border-top: 1px solid var(--border); overflow: hidden; }
.degrees-header { text-align: center; margin-bottom: 50px; }
.degrees-slider-wrapper { position: relative; }
.degrees-slider { display: flex; gap: 30px; overflow-x: auto; padding: 20px 40px; scrollbar-width: none; cursor: grab; }
.degrees-slider::-webkit-scrollbar { display: none; }
.degree-card { min-width: 320px; height: 420px; border-radius: var(--radius-md); overflow: hidden; position: relative; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.degree-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.degree-card:hover img { transform: scale(1.05); }

/* ----------- LEGACY SECTION ----------- */
.legacy-section { padding: 120px 0; background: var(--primary); color: #fff; position: relative; overflow: hidden; }
.legacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 2; }
.legacy-section .section-tag { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.legacy-section .section-title { color: #fff; }
.legacy-section .section-body { color: rgba(255,255,255,0.9); }
.legacy-image-wrap { position: relative; }
.legacy-image { width: 100%; border-radius: var(--radius-lg); border: 8px solid rgba(255,255,255,0.1); }
.legacy-quote-card { position: absolute; bottom: -30px; right: -30px; background: #fff; color: var(--pearl); padding: 30px; border-radius: var(--radius-md); box-shadow: 0 20px 40px rgba(0,0,0,0.2); max-width: 300px; }
.legacy-quote-card p { font-style: italic; font-weight: 600; margin-bottom: 10px; }
.legacy-quote-card strong { color: var(--primary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* ----------- TESTIMONIALS ----------- */
.testimonials-section { padding: 120px 0; background: var(--obsidian-2); text-align: center; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; text-align: left; }
.testimonial-card { background: #fff; padding: 40px; border-radius: var(--radius-md); box-shadow: 0 15px 35px rgba(0, 102, 255, 0.05); border: 1px solid var(--border); transition: 0.3s; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(0, 102, 255, 0.1); }
.stars { color: #F59E0B; margin-bottom: 20px; font-size: 1.2rem; }
.testimonial-text { font-size: 1.05rem; color: var(--pearl-muted); font-style: italic; margin-bottom: 30px; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--surface-2); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.author-info h5 { font-family: var(--font-display); font-size: 1.1rem; color: var(--pearl); }
.author-info span { font-size: 0.85rem; color: var(--pearl-muted); }

/* ----------- CTA BAND ----------- */
.cta-band { margin: 80px 40px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-radius: var(--radius-lg); padding: 80px 60px; text-align: center; box-shadow: 0 20px 50px var(--primary-glow); }
.cta-band h2 { font-family: var(--font-display); font-size: 3rem; color: #fff; margin-bottom: 20px; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 1.2rem; margin-bottom: 40px; }
.cta-band .btn-primary { background: #fff; color: var(--primary); }
.cta-band .btn-primary:hover { background: var(--obsidian-3); transform: translateY(-3px); color: var(--primary);}

/* ----------- FOOTER ----------- */
.footer { background: var(--obsidian); border-top: 1px solid var(--border); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer-logo { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--pearl); margin-bottom: 20px; }
.footer-logo span { color: var(--primary); }
.footer-brand p { color: var(--pearl-muted); font-size: 1rem; margin-bottom: 30px; max-width: 320px; }
.social-btn { display: inline-block; padding: 10px 24px; border: 1px solid var(--border-r); border-radius: 50px; font-family: var(--font-ui); font-size: 0.85rem; font-weight: 700; color: var(--primary); transition: 0.3s; }
.social-btn:hover { background: var(--primary); color: #fff; }
.footer-col h4 { font-family: var(--font-ui); font-size: 1rem; font-weight: 700; color: var(--pearl); margin-bottom: 24px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-col a { color: var(--pearl-muted); font-size: 1rem; transition: 0.3s; }
.footer-col a:hover { color: var(--primary); }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--pearl-muted); font-size: 1rem; margin-bottom: 16px;}
.phone-highlight { color: var(--primary) !important; font-weight: 700; font-size: 1.1rem !important; }
.hours-card { background: var(--obsidian-2); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 20px; border: 1px solid var(--border); }
.hours-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.hours-row:last-child { margin: 0; padding: 0; border: none; }
.hours-row span { color: var(--pearl-muted); }
.hours-row strong { color: var(--pearl); }
.hours-row.closed strong { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--pearl-muted); }

/* ----------- RESPONSIVE ----------- */
@media (max-width: 1024px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .hero-masonry { grid-template-columns: repeat(2, 1fr); }
    .hm-img-3, .hm-img-4 { display: none; }
    .why-grid, .legacy-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .why-item { text-align: left; }
    .legacy-quote-card { position: relative; bottom: 0; right: 0; margin: -30px auto 0; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .hero { padding: 120px 0 60px; }
    .hero-headline { font-size: 2.5rem; }
    .hero-masonry { grid-template-columns: 1fr; }
    .hm-img-2 { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-band { margin: 40px 20px; padding: 50px 30px; }
}
