/* ============================================================
   د. عماد الدين فتحي — نظام تصميم "الخِتم" (Letterhead)
   هوية طبية رسمية: ختم دائري + عناوين سيريف + شريط اعتماد
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* ---- الألوان ---- */
    --ink: #14283F;
    --ink-soft: #1F3A5C;
    --brand: #1F4E79;
    --brand-dark: #163A5C;
    --brand-light: #EAF0F5;
    --paper: #F3F5F7;
    --accent: #B8863E;
    --accent-dark: #96692A;
    --accent-bg: #F6EDDD;
    --sage: #3F7D5C;
    --sage-bg: #E7F2EC;
    --danger: #B3453C;
    --danger-bg: #FBEAE8;
    --warning: #B8863E;
    --warning-bg: #F6EDDD;
    --white: #ffffff;
    --slate-50: #F7F8F9;
    --slate-100: #EEF1F3;
    --slate-200: #E1E6EA;
    --slate-300: #C7D0D7;
    --slate-400: #97A4AE;
    --slate-500: #6B7A85;
    --slate-600: #4C5B66;
    --slate-700: #35424C;
    --slate-800: #212E37;
    --slate-900: #14283F;

    --font-display: 'Noto Serif Arabic', 'Amiri', serif;
    --font-body: 'Almarai', 'Segoe UI', sans-serif;

    --shadow-xs: 0 1px 2px rgba(20,40,63,0.06);
    --shadow-sm: 0 2px 6px rgba(20,40,63,0.07);
    --shadow: 0 6px 16px -4px rgba(20,40,63,0.12);
    --shadow-md: 0 14px 28px -8px rgba(20,40,63,0.15);
    --shadow-lg: 0 26px 50px -14px rgba(20,40,63,0.20);
    --shadow-xl: 0 34px 64px -18px rgba(20,40,63,0.26);

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);
    --transition: 260ms cubic-bezier(0.4,0,0.2,1);
    --transition-slow: 480ms cubic-bezier(0.4,0,0.2,1);

    --container-max: 1220px;
    --container-padding: clamp(1rem, 5vw, 2rem);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7; color: var(--slate-700); background: var(--white);
    direction: rtl; overflow-x: hidden;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    font-size: clamp(14px, 1.6vw, 16px);
}

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   Seal emblem (signature element)
   ============================================================ */
.seal { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; position: relative; flex-shrink: 0; }
.seal svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.seal svg circle, .seal svg rect { fill: none; }
.seal-ring { fill: none; stroke: var(--accent); }
.seal-ring-inner { fill: none; stroke: currentColor; opacity: 0.35; }
.seal-mono { font-family: var(--font-display); font-weight: 700; }

/* Stethoscope logo — entrance animation */
@keyframes sealRingIn { 0% { opacity: 0; transform: scale(0.55); } 100% { opacity: 1; transform: scale(1); } }
.seal-ring, .seal-ring-inner { transform-origin: 32px 32px; animation: sealRingIn 0.55s cubic-bezier(.34,1.56,.64,1) both; }
.seal-ring-inner { animation-delay: 0s; }
.seal-ring { animation-delay: .08s; }

.stetho-icon { transform-origin: 14px 10px; animation: stethoDrop .7s cubic-bezier(.34,1.56,.64,1) both; animation-delay: .22s; }
@keyframes stethoDrop {
    0%   { opacity: 0; transform: translateY(-9px) rotate(-18deg) scale(.75); }
    55%  { opacity: 1; transform: translateY(1px) rotate(5deg) scale(1.06); }
    100% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}
.stetho-icon path, .stetho-icon .stetho-bell {
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: stethoDraw .8s ease forwards;
    animation-delay: .42s;
}
@keyframes stethoDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
    .seal-ring, .seal-ring-inner, .stetho-icon, .stetho-icon path, .stetho-icon .stetho-bell { animation: none; opacity: 1; stroke-dashoffset: 0; transform: none; }
}

/* ============================================================
   Skip / focus
   ============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: clamp(11px, 1.5vw, 14px) clamp(20px, 2.5vw, 30px); border-radius: var(--radius-sm); border: 1.5px solid transparent; font-size: clamp(13px, 1.4vw, 15px); font-weight: 700; font-family: var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast); user-select: none; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 4px 14px rgba(31,78,121,0.28); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 22px rgba(31,78,121,0.34); transform: translateY(-2px); }
.btn-gold { background: var(--accent); color: white; box-shadow: 0 4px 14px rgba(184,134,62,0.3); }
.btn-gold:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-secondary { background: var(--ink); color: white; }
.btn-secondary:hover { background: var(--ink-soft); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--slate-700); border-color: var(--slate-300); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); transform: translateY(-1px); }
.btn-white { background: white; color: var(--ink); }
.btn-white:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-success { background: var(--sage); color: white; }
.btn-success:hover { background: #326249; }
.btn-lg { padding: clamp(14px, 2vw, 17px) clamp(26px, 4vw, 40px); font-size: clamp(14px, 1.7vw, 16px); }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ============================================================
   Header
   ============================================================ */
.header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid var(--slate-200); transition: var(--transition); }
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: clamp(11px, 1.5vw, 15px) 0; gap: clamp(12px, 2vw, 24px); }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo .seal { width: clamp(38px, 5vw, 44px); height: clamp(38px, 5vw, 44px); background: var(--ink); color: var(--white); }
.logo .seal-mono { font-size: 15px; }
.logo-info h2 { font-family: var(--font-display); font-size: clamp(14.5px, 2vw, 17px); color: var(--ink); font-weight: 700; line-height: 1.2; }
.logo-info span { font-size: clamp(9px, 1.1vw, 10.5px); color: var(--slate-500); font-weight: 700; letter-spacing: 0.6px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link { text-decoration: none; color: var(--slate-600); padding: 9px 14px; border-radius: var(--radius-sm); font-size: clamp(12.5px, 1.3vw, 13.5px); font-weight: 700; transition: var(--transition-fast); }
.nav-link:hover, .nav-link.active { background: var(--brand-light); color: var(--brand); }
.nav-cta { background: var(--brand) !important; color: white !important; margin-right: 6px; }
.nav-cta:hover { background: var(--brand-dark) !important; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition-fast); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Page banner (inner pages)
   ============================================================ */
.page-banner { background: var(--ink); position: relative; overflow: hidden; padding: clamp(48px, 7vw, 74px) 0 clamp(38px, 5vw, 56px); }
.page-banner::before { content: ''; position: absolute; left: -10%; top: -40%; width: 480px; height: 480px; border: 1px solid rgba(255,255,255,0.06); border-radius: 50%; }
.page-banner::after { content: ''; position: absolute; left: -3%; top: -18%; width: 300px; height: 300px; border: 1px solid rgba(184,134,62,0.18); border-radius: 50%; }
.page-banner .container { position: relative; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,0.5); margin-bottom: 16px; font-weight: 700; }
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.page-banner h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 42px); color: white; font-weight: 700; margin-bottom: 12px; }
.page-banner p { color: rgba(255,255,255,0.65); max-width: 560px; font-size: clamp(13.5px, 1.4vw, 15.5px); line-height: 1.85; }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-alt { background: var(--paper); }
.section-header { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 54px); text-align: center; }
.section-header.align-right { margin-inline: 0; text-align: right; }
.section-tag { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(11px, 1.1vw, 12.5px); font-weight: 800; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 12px; text-align:center;}
.section-tag::before { content: ''; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; text-align:center;}
.section-title { font-family: var(--font-display); font-size: clamp(23px, 3.2vw, 34px); font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 12px; }
.section-desc { color: var(--slate-500); font-size: clamp(13.5px, 1.4vw, 15.5px); line-height: 1.85; }

/* ============================================================
   Hero (home)
   ============================================================ */
.hero { position: relative; padding: clamp(30px, 5vw, 50px) 0 0; background: linear-gradient(180deg, var(--brand-light) 0%, var(--white) 78%); overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(24px, 4vw, 50px); align-items: center; }
.hero-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(16px, 2.4vw, 22px); }
.hero-eyebrow .seal { width: 46px; height: 46px; background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink); }
.hero-eyebrow-text strong { display: block; font-size: 13px; color: var(--ink); font-weight: 800; }
.hero-eyebrow-text span { font-size: 11.5px; color: var(--slate-500); }
.hero-title { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 50px); font-weight: 700; color: var(--ink); line-height: 1.28; margin-bottom: clamp(16px, 2vw, 22px); }
.hero-title em { font-style: normal; color: var(--brand); position: relative; }
.hero-title em::after { content: ''; position: absolute; right: 0; left: 0; bottom: 2px; height: 8px; background: var(--accent-bg); z-index: -1; }
.hero-text { color: var(--slate-500); font-size: clamp(14px, 1.5vw, 16.5px); line-height: 1.95; max-width: 490px; margin-bottom: clamp(24px, 3vw, 32px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 38px); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-frame { position: relative; width: 100%; max-width: 360px; }
.hero-frame img { width: 100%; display: block; filter: drop-shadow(0 22px 34px rgba(20,40,63,0.22)); }
.hero-frame-badge { position: absolute; bottom: 6px; right: -18px; background: white; border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 12px 16px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--slate-200); }
.hero-frame-badge .seal { width: 38px; height: 38px; background: var(--sage-bg); color: var(--sage); }
.hero-frame-badge strong { display: block; font-size: 13px; color: var(--ink); }
.hero-frame-badge span { font-size: 10.5px; color: var(--slate-500); }

.ledger { position: relative; background: white; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); display: grid; grid-template-columns: repeat(5, 1fr); box-shadow: var(--shadow); overflow: hidden; margin-top: clamp(30px, 4.5vw, 44px); }
.ledger-item { padding: clamp(16px, 2.2vw, 22px) clamp(8px, 1.4vw, 16px); text-align: center; position: relative; }
.ledger-item + .ledger-item::before { content: ''; position: absolute; top: 20%; bottom: 20%; right: 0; width: 1px; background: var(--slate-200); }
.ledger-value { font-family: var(--font-display); font-size: clamp(19px, 2.6vw, 28px); font-weight: 700; color: var(--accent-dark); line-height: 1.1; }
.ledger-label { font-size: clamp(9.5px, 1vw, 11px); color: var(--slate-500); font-weight: 700; margin-top: 6px; }
.hero-spacer { height: clamp(40px, 6vw, 66px); }

/* ============================================================
   Services (cards)
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 20px); }
.service-card { background: white; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: clamp(22px, 2.8vw, 28px) clamp(18px, 2.4vw, 24px); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); text-decoration: none; display: block; position: relative; }
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.service-icon-ring { width: clamp(46px, 5.5vw, 54px); height: clamp(46px, 5.5vw, 54px); border-radius: 50%; border: 1.5px solid var(--slate-200); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: clamp(16px, 2vw, 20px); transition: var(--transition); }
.service-card:hover .service-icon-ring { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-dark); }
.service-icon-ring .icon { width: 22px; height: 22px; }
.service-card h3 { font-family: var(--font-display); font-size: clamp(15px, 1.6vw, 17.5px); font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.service-card p { font-size: clamp(12.5px, 1.3vw, 13.5px); color: var(--slate-500); line-height: 1.8; margin-bottom: 14px; }
.service-card .service-more { font-size: 12.5px; font-weight: 800; color: var(--brand); display: inline-flex; align-items: center; gap: 5px; }
.service-card:hover .service-more { color: var(--accent-dark); }

/* Service detail page */
.service-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: clamp(30px, 4vw, 52px); align-items: start; }
.service-body h2 { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 24px); color: var(--ink); margin: clamp(26px, 3.5vw, 34px) 0 14px; }
.service-body h2:first-child { margin-top: 0; }
.service-body p { color: var(--slate-600); font-size: clamp(13.5px, 1.4vw, 15px); line-height: 1.95; margin-bottom: 14px; }
.service-body ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.service-body ul li { display: flex; align-items: flex-start; gap: 10px; font-size: clamp(13px, 1.35vw, 14.5px); color: var(--slate-600); }
.service-body ul li .check-holder { width: 21px; height: 21px; border-radius: 50%; background: var(--sage-bg); color: var(--sage); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.service-body ul li .check-holder .icon { width: 12px; height: 12px; stroke-width: 2.6; }
.service-sidebar { position: sticky; top: 90px; }
.service-cta-card { background: var(--ink); color: white; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 30px); text-align: center; box-shadow: var(--shadow-md); }
.service-cta-card .seal { width: 46px; height: 46px; margin: 0 auto 14px; background: rgba(255,255,255,0.08); color: var(--accent); }
.service-cta-card h4 { font-family: var(--font-display); font-size: 16.5px; margin-bottom: 8px; }
.service-cta-card p { color: rgba(255,255,255,0.6); font-size: 12.5px; margin-bottom: 18px; line-height: 1.8; }
.related-services { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.related-services a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--paper); border-radius: var(--radius-sm); text-decoration: none; color: var(--slate-700); font-size: 13px; font-weight: 700; transition: var(--transition-fast); }
.related-services a:hover { background: var(--brand-light); color: var(--brand); }

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-image-wrap { position: relative; }
.about-image-wrap::before { content: ''; position: absolute; inset: -16px auto auto -16px; width: 90%; height: 90%; border: 1.5px solid var(--accent); border-radius: var(--radius-xl); z-index: -1; }
.about-img { width: 100%; max-width: 340px; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.about-body p { color: var(--slate-600); line-height: 1.95; font-size: clamp(13.5px, 1.4vw, 15px); margin-bottom: 18px; }
.about-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 8px; justify-items: center;}
.about-list li { display: flex; align-items: center; gap: 9px; font-size: clamp(12.5px, 1.3vw, 14px); color: var(--slate-700); font-weight: 700; justify-items: center;}
.about-list .check-holder { width: 20px; height: 20px; border-radius: 50%; background: var(--sage-bg); color: var(--sage); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.about-list .check-holder .icon { width: 12px; height: 12px; stroke-width: 2.6; }

.BME {text-align:center;}
/* Timeline (about page) */
.timeline { position: relative; padding-inline-start: 26px; margin-top: 20px; }
.timeline::before { content: ''; position: absolute; right: 8px; top: 6px; bottom: 6px; width: 1.5px; background: var(--slate-200); }
.timeline-item { position: relative; padding-inline-end: 30px; margin-bottom: clamp(22px, 3vw, 30px); }
.timeline-item::before { position: absolute; right: 2px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 3px solid var(--accent-bg); }
.timeline-item strong { display: block; font-family: var(--font-display); font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.timeline-item span.year { display: inline-block; font-size: 11.5px; color: var(--accent-dark); font-weight: 800; margin-bottom: 4px; }
.timeline-item p { color: var(--slate-500); font-size: 13px; line-height: 1.8; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 20px); }
.testimonial-card { background: white; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: clamp(22px, 2.8vw, 28px); transition: var(--transition); }
.testimonial-card:hover { box-shadow: var(--shadow-sm); }
.testimonial-rating { display: flex; gap: 3px; color: var(--accent); margin-bottom: 14px; }
.testimonial-rating .star { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.testimonial-card p { color: var(--slate-600); font-size: clamp(13px, 1.4vw, 14.5px); line-height: 1.85; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: 13px; color: var(--ink); }
.testimonial-author span { font-size: 11.5px; color: var(--slate-400); }
.testimonial-disclaimer { text-align: center; font-size: 11.5px; color: var(--slate-400); margin-top: 22px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--slate-200); border-radius: var(--radius-md); overflow: hidden; background: white; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(15px, 2vw, 18px) clamp(18px, 2.4vw, 22px); background: none; border: none; cursor: pointer; text-align: right; font-family: var(--font-body); font-size: clamp(13.5px, 1.5vw, 15px); font-weight: 700; color: var(--ink); }
.faq-chevron { color: var(--slate-400); transition: var(--transition-fast); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow) ease; }
.faq-item.open .faq-answer { max-height: 260px; }
.faq-answer p { padding: 0 clamp(18px, 2.4vw, 22px) clamp(16px, 2.2vw, 20px); color: var(--slate-500); font-size: clamp(12.5px, 1.3vw, 14px); line-height: 1.85; }
.faq-answer a { color: var(--brand); font-weight: 700; }
.faq-cats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 36px); }
.faq-cat-btn { padding: 8px 18px; border-radius: var(--radius-full); border: 1.5px solid var(--slate-200); background: white; font-size: 12.5px; font-weight: 700; color: var(--slate-600); cursor: pointer; transition: var(--transition-fast); }
.faq-cat-btn:hover { border-color: var(--brand); color: var(--brand); }
.faq-cat-btn.active { background: var(--ink); border-color: var(--ink); color: white; }

/* ============================================================
   Booking wizard
   ============================================================ */
.booking-wrapper { max-width: 640px; margin: 0 auto; }
.booking-card { background: white; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--slate-200); overflow: hidden; }
.booking-card-header { background: var(--ink); color: white; padding: clamp(16px, 2.2vw, 20px) clamp(20px, 3vw, 28px); display: flex; align-items: center; gap: 12px; }
.booking-card-header .seal { width: 34px; height: 34px; background: rgba(255,255,255,0.08); color: var(--accent); flex-shrink: 0; }
.booking-card-header h3 { font-family: var(--font-display); font-size: clamp(15px, 1.7vw, 17px); font-weight: 700; }
.booking-card-header span { font-size: 11.5px; color: rgba(255,255,255,0.55); }
.booking-card-body { padding: clamp(22px, 3.5vw, 34px); }

.steps { display: flex; justify-content: space-between; position: relative; margin-bottom: clamp(28px, 4vw, 38px); }
.steps-line { position: absolute; top: 17px; right: 5%; left: 5%; height: 2px; background: var(--slate-200); z-index: 1; }
.steps-progress { position: absolute; top: 17px; right: 5%; height: 2px; background: var(--accent); z-index: 1; transition: width var(--transition-slow); }
.step { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; flex: 1; }
.step-num { width: clamp(32px, 4.4vw, 36px); height: clamp(32px, 4.4vw, 36px); border-radius: 50%; background: white; border: 2px solid var(--slate-300); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-display); font-size: clamp(13px, 1.6vw, 15px); margin-bottom: 7px; transition: var(--transition); color: var(--slate-400); }
.step.active .step-num { background: var(--brand); border-color: var(--brand); color: white; box-shadow: 0 0 0 5px var(--brand-light); }
.step.done .step-num { background: var(--accent); border-color: var(--accent); color: white; }
.step-label { font-size: clamp(9px, 1.1vw, 10.5px); color: var(--slate-400); font-weight: 700; text-align: center; }
.step.active .step-label { color: var(--brand); }
.step.done .step-label { color: var(--accent-dark); }

.form-panel { display: none; animation: formSlideIn 0.4s ease; }
.form-panel.active { display: block; }
@keyframes formSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.form-panel h4 { font-family: var(--font-display); font-size: clamp(16px, 2vw, 19px); font-weight: 700; color: var(--ink); margin-bottom: clamp(18px, 2.5vw, 24px); text-align: center; }
.field { margin-bottom: clamp(14px, 2vw, 18px); }
.field-label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--slate-700); font-size: clamp(12px, 1.3vw, 13.5px); }
.field-input { width: 100%; padding: clamp(11px, 1.5vw, 14px) clamp(14px, 1.8vw, 16px); border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm); font-size: clamp(13px, 1.4vw, 14.5px); font-family: inherit; background: var(--slate-50); transition: var(--transition-fast); color: var(--ink); }
.field-input:focus { outline: none; border-color: var(--brand); background: white; box-shadow: 0 0 0 3.5px var(--brand-light); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.5vw, 16px); }
textarea.field-input { resize: vertical; min-height: 80px; }
.phone-field { display: flex; border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm); overflow: hidden; background: var(--slate-50); transition: var(--transition-fast); }
.phone-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3.5px var(--brand-light); }
.phone-prefix { background: var(--ink); color: white; padding: clamp(10px, 1.4vw, 14px) clamp(12px, 1.8vw, 18px); font-weight: 700; font-size: clamp(12px, 1.2vw, 13.5px); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.phone-field input { border: none !important; background: transparent !important; flex: 1; box-shadow: none !important; border-radius: 0 !important; padding: clamp(11px, 1.5vw, 14px) clamp(14px, 1.8vw, 16px); font-family: inherit; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: clamp(22px, 3vw, 28px); }
.field-error { display: block; min-height: 16px; color: var(--danger); font-size: 11.5px; font-weight: 700; margin-top: 4px; }
.field-input.invalid, .phone-field.invalid { border-color: var(--danger) !important; }

.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2vw, 16px); margin-bottom: 18px; }
.payment-option { padding: clamp(18px, 2.5vw, 24px); border: 1.5px solid var(--slate-200); border-radius: var(--radius-md); text-align: center; cursor: pointer; transition: var(--transition); }
.payment-option:hover { border-color: var(--brand); background: var(--brand-light); transform: translateY(-2px); }
.payment-option.selected { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 3.5px rgba(31,78,121,0.12); }
.payment-option .icon-holder { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.payment-option.selected .icon-holder { background: var(--brand); color: white; }
.payment-option .icon-holder .icon { width: 20px; height: 20px; }
.payment-option h5 { font-size: clamp(13.5px, 1.5vw, 15.5px); font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.payment-option p { font-size: clamp(11px, 1.2vw, 12.5px); color: var(--slate-500); word-break: break-all; }
.price-display { text-align: center; margin-bottom: 18px; padding: 14px; background: var(--paper); border-radius: var(--radius-md); }
.price-display small { display: block; color: var(--slate-400); font-size: clamp(11px, 1.2vw, 12.5px); font-weight: 700; }
.price-display strong { font-family: var(--font-display); font-size: clamp(26px, 4.5vw, 34px); font-weight: 700; color: var(--accent-dark); }

.slots-list { display: flex; flex-direction: column; gap: clamp(8px, 1.2vw, 10px); margin-bottom: 18px; max-height: clamp(260px, 35vw, 360px); overflow-y: auto; }
.slot-row { display: flex; align-items: center; justify-content: space-between; padding: clamp(13px, 1.8vw, 16px) clamp(16px, 2.2vw, 20px); border: 1.5px solid var(--slate-200); border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition-fast); background: white; }
.slot-row:hover { border-color: var(--brand); transform: translateX(-3px); }
.slot-row.selected { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 3px rgba(31,78,121,0.1); }
.slot-date { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: clamp(12.5px, 1.4vw, 14px); }
.slot-date .icon { width: 16px; height: 16px; color: var(--slate-400); }
.slot-time-tag { background: var(--ink); color: white; padding: 5px 14px; border-radius: var(--radius-full); font-weight: 700; font-size: clamp(12.5px, 1.4vw, 14.5px); }
.slot-row.selected .slot-time-tag { background: var(--accent); }

/* Skeleton loading */
.skeleton-row { display: flex; align-items: center; justify-content: space-between; padding: clamp(13px, 1.8vw, 16px) clamp(16px, 2.2vw, 20px); border: 1.5px solid var(--slate-100); border-radius: var(--radius-sm); margin-bottom: 8px; }
.skeleton-bar { height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 37%, var(--slate-100) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skeleton-bar.w-100 { width: 100px; } .skeleton-bar.w-60 { width: 60px; height: 22px; border-radius: var(--radius-full); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.upload-box { border: 1.5px dashed var(--slate-300); border-radius: var(--radius-md); padding: clamp(28px, 4.5vw, 44px); text-align: center; cursor: pointer; transition: var(--transition); margin-bottom: 18px; }
.upload-box:hover { border-color: var(--brand); background: var(--brand-light); }
.upload-box .icon-holder { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.upload-box .icon-holder .icon { width: 24px; height: 24px; }
.upload-box .text { font-weight: 700; color: var(--ink); font-size: clamp(13px, 1.4vw, 14.5px); }
.upload-box .hint { color: var(--slate-400); font-size: clamp(10.5px, 1.1vw, 12px); margin-top: 4px; display: block; }
.upload-box img { max-width: 100%; max-height: 240px; border-radius: var(--radius-sm); display: none; }

.success-block { text-align: center; padding: clamp(20px, 4vw, 36px); }
.success-circle { width: clamp(66px, 9vw, 84px); height: clamp(66px, 9vw, 84px); border-radius: 50%; background: var(--sage-bg); color: var(--sage); display: flex; align-items: center; justify-content: center; margin: 0 auto clamp(16px, 3vw, 22px); }
.success-circle .icon { width: 34px; height: 34px; stroke-width: 2; }
.booking-id { display: inline-block; font-family: var(--font-display); font-size: clamp(26px, 4.5vw, 38px); font-weight: 700; color: var(--accent-dark); background: var(--accent-bg); padding: 10px 30px; border-radius: var(--radius-sm); letter-spacing: 4px; margin: 10px 0; }

/* Buttons spinner */
.btn-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); border-top-color: white; animation: spin 0.7s linear infinite; display: none; }
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: clamp(12px, 2vw, 18px); }
.contact-item { display: flex; align-items: center; gap: 14px; padding: clamp(18px, 2.5vw, 22px); background: white; border: 1px solid var(--slate-200); border-radius: var(--radius-md); transition: var(--transition); }
.contact-item:hover { box-shadow: var(--shadow-sm); border-color: var(--accent); transform: translateY(-2px); }
.contact-item-icon { width: clamp(42px, 5.5vw, 48px); height: clamp(42px, 5.5vw, 48px); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--brand-light); color: var(--brand); }
.contact-item-icon .icon { width: 20px; height: 20px; }
.contact-item strong { font-size: clamp(13px, 1.4vw, 14.5px); color: var(--ink); }
.contact-item small { color: var(--slate-500); font-size: clamp(11.5px, 1.2vw, 13px); }
.contact-hours { background: white; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 30px); }
.contact-hours table { width: 100%; border-collapse: collapse; }
.contact-hours td { padding: 10px 4px; font-size: 13.5px; border-top: 1px solid var(--slate-100); }
.contact-hours td:first-child { color: var(--slate-600); font-weight: 700; }
.contact-hours td:last-child { text-align: left; color: var(--ink); font-family: var(--font-body); font-weight: 700; }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--slate-200); }
.contact-map iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,0.6); padding: clamp(48px, 6vw, 70px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(24px, 4vw, 40px); padding-bottom: clamp(32px, 4.5vw, 48px); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .seal { width: 40px; height: 40px; background: rgba(255,255,255,0.08); color: var(--accent); }
.footer-brand strong { font-family: var(--font-display); color: white; font-size: 15.5px; display: block; }
.footer-brand span { font-size: 10.5px; color: rgba(255,255,255,0.5); }
.footer p { font-size: 12.5px; line-height: 1.8; max-width: 280px; }
.footer h5 { color: white; font-size: 13px; margin-bottom: 16px; font-weight: 700; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 12.5px; transition: var(--transition-fast); }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px 0; font-size: 11.5px; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: var(--transition-fast); }
.footer-social a:hover { background: var(--accent); }
.footer-social .icon { width: 16px; height: 16px; }

/* WhatsApp float */
.whatsapp-float { position: fixed; bottom: clamp(20px, 3vw, 30px); left: clamp(20px, 3vw, 30px); width: clamp(50px, 6.5vw, 58px); height: clamp(50px, 6.5vw, 58px); background: #1F9E5A; color: white; border-radius: var(--radius-lg); box-shadow: 0 10px 26px rgba(31,158,90,0.35); z-index: 999; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: var(--transition); }
.whatsapp-float .icon { width: 26px; height: 26px; stroke: none; fill: currentColor; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ============================================================
   Scroll-reveal & motion polish
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@keyframes heroFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow { animation: heroFadeUp .7s ease both .05s; }
.hero-title { animation: heroFadeUp .7s ease both .15s; }
.hero-text { animation: heroFadeUp .7s ease both .25s; }
.hero-actions { animation: heroFadeUp .7s ease both .35s; }
.hero-visual { animation: heroFadeUp .8s ease both .2s; }
.ledger { animation: heroFadeUp .8s ease both .45s; }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-frame { animation: floatY 5.5s ease-in-out infinite; }
.hero-frame-badge { animation: heroFadeUp .6s ease both .6s; }

.service-icon-ring { transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition); }
.service-card:hover .service-icon-ring { transform: rotate(-6deg) scale(1.08); }
.service-card .service-more svg, .service-card .service-more { transition: transform var(--transition-fast); }
.service-card:hover .service-more { transform: translateX(-3px); }

.faq-question { transition: color var(--transition-fast); }
.faq-item:hover .faq-question { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow, .hero-title, .hero-text, .hero-actions, .hero-visual, .ledger, .hero-frame-badge, .hero-frame { animation: none; opacity: 1; transform: none; }
}

/* ============================================================
   404
   ============================================================ */
.error-page { min-height: 72vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; background: var(--paper); }
.error-page .seal { width: 90px; height: 90px; margin: 0 auto 22px; background: white; box-shadow: var(--shadow-md); color: var(--slate-300); }
.error-page .seal-mono { font-size: 30px; }
.error-page h1 { font-family: var(--font-display); font-size: clamp(48px, 8vw, 84px); color: var(--ink); line-height: 1; }
.error-page h2 { font-size: clamp(16px, 2vw, 20px); color: var(--ink); margin: 10px 0 12px; }
.error-page p { color: var(--slate-500); font-size: 14px; margin-bottom: 26px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .service-detail-grid { grid-template-columns: 1fr; }
    .service-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text { max-width: 100%; margin-inline: auto; } .hero-actions { justify-content: center; }
    .hero-eyebrow { justify-content: center; }
    .hero-visual { order: -1; margin-bottom: 10px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image-wrap { max-width: 340px; margin: 0 auto; }
    .about-image-wrap::before { display: none; }
}
@media (max-width: 768px) {
    .nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: white; flex-direction: column; padding: 14px; box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--slate-200); gap: 3px; }
    .nav.active { display: flex; } .nav-link { width: 100%; text-align: center; padding: 12px !important; }
    .menu-toggle { display: flex; }
    .ledger { grid-template-columns: repeat(3, 1fr); }
    .ledger-item:nth-child(3)::before, .ledger-item:nth-child(4)::before { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .about-list { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; } .form-actions .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .ledger { grid-template-columns: repeat(2, 1fr); }
    .ledger-item:nth-child(2n)::before { display: none; }
    .ledger-item:nth-child(5) { grid-column: span 2; }
}
