/* ═══════════════════════════════════════════════════════════
   DR. NIDAL ASADI — PREMIUM MEDICAL WEBSITE
   Aesthetic: Refined Luxury Medical
   ═══════════════════════════════════════════════════════════ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100;200;300;400;500;600;700;800;900&family=Frank+Ruhl+Libre:wght@300;400;500;700;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

/* ── VARIABLES ── */
:root {
    --navy: #0A1628;
    --navy-mid: #12243D;
    --navy-light: #1B3456;
    --gold: #C9A84C;
    --gold-dark: #A68A3E;
    --gold-light: #DFC06A;
    --gold-pale: #F7F0DC;
    --gold-glow: rgba(201, 168, 76, 0.15);
    --cream: #FDFBF7;
    --cream-dark: #F5F1EA;
    --white: #FFFFFF;
    --text-primary: #0F1923;
    --text-secondary: #3D4F63;
    --text-tertiary: #7A8899;
    --text-light: #A4B0BD;
    --border: #E6E1D8;
    --border-light: #F0ECE5;
    --shadow-xs: 0 1px 3px rgba(10,22,40,0.04);
    --shadow-sm: 0 4px 12px rgba(10,22,40,0.06);
    --shadow-md: 0 12px 36px rgba(10,22,40,0.08);
    --shadow-lg: 0 24px 64px rgba(10,22,40,0.1);
    --shadow-xl: 0 40px 80px rgba(10,22,40,0.14);
    --shadow-gold: 0 8px 32px rgba(201,168,76,0.2);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.5s;
    --page-max: 1260px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'Heebo', sans-serif;
    color: var(--text-primary);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── SELECTION ── */
::selection { background: var(--gold-pale); color: var(--navy); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */
.container { max-width: var(--page-max); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 32px; }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
.serif { font-family: 'Frank Ruhl Libre', 'Playfair Display', serif; }

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-eyebrow::before {
    content: '';
    width: 40px;
    height: 1.5px;
    background: var(--gold);
    flex-shrink: 0;
}

.section-eyebrow.center { justify-content: center; }
.section-eyebrow.center::after {
    content: '';
    width: 40px;
    height: 1.5px;
    background: var(--gold);
    flex-shrink: 0;
}

.section-heading {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-heading span { color: var(--gold); }

.section-desc {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 600px;
}

.text-center { text-align: center; }
.text-center .section-desc { margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.3s; }

.btn-primary {
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--navy);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border: 2px solid transparent;
}

.btn-gold:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); filter: brightness(1.1); }

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--border);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-white {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--white);
}

.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-ghost {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.4s var(--ease);
    padding: 8px 0;
}

.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    opacity: 0;
    transition: opacity 0.4s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled::before {
    opacity: 1;
    border-bottom-color: var(--border-light);
}

.nav.scrolled { padding: 0; }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    height: 76px;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: opacity 0.3s;
}

.nav-logo:hover { opacity: 0.85; }

.logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-mark::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.3);
}

.logo-mark svg { width: 20px; height: 20px; fill: var(--gold); position: relative; z-index: 1; }

.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-name { font-family: 'Frank Ruhl Libre', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.logo-sub { font-size: 0.68rem; color: var(--text-tertiary); letter-spacing: 0.5px; font-weight: 400; }

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover { color: var(--navy); background: rgba(10,22,40,0.03); }

.nav-link.active { color: var(--gold); }

.nav-cta-btn {
    margin-right: 8px;
    padding: 10px 26px;
    background: var(--navy);
    color: var(--white) !important;
    border-radius: 9px;
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-cta-btn:hover { background: var(--gold); transform: translateY(-1px); box-shadow: var(--shadow-gold); }

/* Hamburger */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: background 0.3s;
    z-index: 1001;
}

.hamburger:hover { background: rgba(10,22,40,0.04); }

.hamburger-lines {
    width: 22px;
    height: 16px;
    position: relative;
}

.hamburger-lines span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
    right: 0;
}

.hamburger-lines span:nth-child(1) { top: 0; }
.hamburger-lines span:nth-child(2) { top: 7px; width: 70%; }
.hamburger-lines span:nth-child(3) { top: 14px; }

.hamburger.active .hamburger-lines span:nth-child(1) { transform: rotate(45deg); top: 7px; }
.hamburger.active .hamburger-lines span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active .hamburger-lines span:nth-child(3) { transform: rotate(-45deg); top: 7px; }

/* Mobile menu */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    backdrop-filter: blur(4px);
}

.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: var(--white);
    z-index: 999;
    transition: right 0.45s var(--ease);
    padding: 100px 32px 40px;
    overflow-y: auto;
    box-shadow: -20px 0 60px rgba(10,22,40,0.15);
}

.mobile-menu.active { right: 0; }

.mobile-menu a {
    display: block;
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s;
}

.mobile-menu a:hover { color: var(--gold); padding-right: 12px; }

.mobile-menu .mobile-cta {
    display: block;
    margin-top: 28px;
    padding: 16px;
    background: var(--navy);
    color: var(--white);
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: background 0.3s;
}

.mobile-menu .mobile-cta:hover { background: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (Internal pages)
   ═══════════════════════════════════════════════════════════ */
.page-hero {
    padding: 160px 0 80px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -300px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--gold-glow), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.page-hero .breadcrumb a { color: var(--gold); transition: opacity 0.3s; }
.page-hero .breadcrumb a:hover { opacity: 0.7; }
.page-hero .breadcrumb svg { width: 14px; height: 14px; opacity: 0.4; }

.page-hero h1 {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 16px;
}

.page-hero h1 span { color: var(--gold); }

.page-hero .lead {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.85;
    max-width: 640px;
}

/* ═══════════════════════════════════════════════════════════
   CARDS — SHARED
   ═══════════════════════════════════════════════════════════ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 40px 32px;
    transition: all 0.45s var(--ease);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card:hover::before { opacity: 1; }

.card-icon {
    width: 68px;
    height: 68px;
    background: var(--cream);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s;
}

.card:hover .card-icon { background: var(--gold-pale); }

.card-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.3;
}

.card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 7px 16px;
    background: var(--gold-glow);
    color: var(--gold-dark);
    border-radius: 30px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    background: var(--navy);
    padding: 70px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201,168,76,0.05), transparent);
    border-radius: 50%;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h4 {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
    padding: 6px 0;
    transition: all 0.3s;
}

.footer-col a:hover { color: var(--gold); padding-right: 8px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-social a:hover { background: var(--gold); transform: translateY(-3px); }

.footer-social svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.5); }
.footer-social a:hover svg { fill: var(--white); }

/* Logo in footer */
.footer .logo-name { color: var(--white); }
.footer .logo-sub { color: rgba(255,255,255,0.35); }
.footer .logo-mark { background: rgba(255,255,255,0.08); }

/* ═══════════════════════════════════════════════════════════
   SCROLL TOP
   ═══════════════════════════════════════════════════════════ */
.scroll-top {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 50px;
    height: 50px;
    background: var(--navy);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease);
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--gold); transform: translateY(-4px); }
.scroll-top svg { width: 20px; height: 20px; stroke: var(--white); fill: none; stroke-width: 2; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-scale.visible { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); }
    50% { box-shadow: 0 0 0 20px transparent; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   DIVIDER / DECORATIVE
   ═══════════════════════════════════════════════════════════ */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.gold-accent {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--gold-glow);
    pointer-events: none;
    animation: rotate-slow 40s linear infinite;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .page-hero { padding: 130px 0 60px; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
}
