/* ============================================
   Ultra Medical - Brand Identity
   Teal:  #1B7B8E (Ultra)
   Red:   #E63946 (Medical)
   Dark:  #0A2540
============================================ */

:root {
    --teal: #1B7B8E;
    --teal-dark: #135968;
    --teal-light: #2DA2B8;
    --teal-soft: #E8F4F6;
    --red: #E63946;
    --red-dark: #C02835;
    --red-light: #FF5A66;
    --red-soft: #FDECEE;
    --navy: #0A2540;
    --navy-2: #0F2F4F;
    --ink: #1A2740;
    --slate: #5A6B85;
    --line: #E2E8EC;
    --bg: #FCFDFD;
    --bg-2: #F5F8F9;
    --white: #FFFFFF;
    --wa: #25D366;
    --shadow-sm: 0 2px 8px rgba(10, 37, 64, .06);
    --shadow: 0 10px 30px rgba(10, 37, 64, .08);
    --shadow-lg: 0 25px 60px rgba(10, 37, 64, .12);
    --shadow-color: 0 15px 40px rgba(27, 123, 142, .25);
    --grad-brand: linear-gradient(135deg, #1B7B8E 0%, #2DA2B8 50%, #E63946 100%);
    --grad-teal: linear-gradient(135deg, #1B7B8E, #2DA2B8);
    --grad-red: linear-gradient(135deg, #E63946, #FF5A66);
    --grad-dark: linear-gradient(135deg, #0A2540, #143559);
    --radius: 18px;
    --radius-lg: 28px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, Segoe UI, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.t-teal { color: var(--teal); }
.t-red  { color: var(--red); }
.gradient-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* ============= Background decorations ============= */
.bg-grid {
    position: fixed; inset: 0; z-index: -2;
    background-image:
        linear-gradient(to right, rgba(27,123,142,.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(27,123,142,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.bg-glow {
    position: fixed; z-index: -1; border-radius: 50%;
    filter: blur(120px); opacity: .25; pointer-events: none;
    animation: floatGlow 18s ease-in-out infinite;
}
.bg-glow-1 { width: 600px; height: 600px; background: var(--teal); top: -200px; right: -150px; }
.bg-glow-2 { width: 500px; height: 500px; background: var(--red); bottom: -150px; left: -100px; animation-delay: -9s; }
@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -40px); }
}

/* ============= Loader ============= */
.loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--white);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 1.5rem;
    transition: opacity .6s ease, visibility .6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-pulse {
    width: 200px; height: 60px;
    position: relative;
}
.loader-ecg {
    width: 100%; height: 100%;
    stroke: var(--red); stroke-width: 3; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawECG 1.8s ease-out infinite;
}
@keyframes drawECG {
    0% { stroke-dashoffset: 600; }
    60%, 100% { stroke-dashoffset: 0; }
}
.loader-text {
    font-size: 1.5rem; font-weight: 800;
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    letter-spacing: .5px;
}

/* ============= Navbar ============= */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all .4s var(--ease);
}
.navbar.scrolled {
    background: rgba(255,255,255,.95);
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
    padding: .65rem 0;
}
.nav-container {
    max-width: 1280px; margin: 0 auto;
    padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
}
.nav-logo {
    display: flex; align-items: center; gap: .75rem;
    font-weight: 800;
}
.nav-logo img {
    width: 48px; height: 48px;
    object-fit: contain;
    transition: transform .4s var(--ease);
}
.nav-logo:hover img { transform: rotate(-8deg) scale(1.08); }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-name { font-size: 1.05rem; font-weight: 800; letter-spacing: .2px; }
.nav-logo-tag { font-size: .7rem; color: var(--slate); font-weight: 500; }

.nav-menu {
    display: flex; gap: .3rem;
    margin: 0 auto;
}
.nav-link {
    position: relative;
    padding: .55rem 1rem;
    font-weight: 600;
    color: var(--ink);
    border-radius: 10px;
    transition: color .25s ease, background .25s ease;
}
.nav-link::after {
    content: ''; position: absolute;
    left: 1rem; right: 1rem; bottom: .35rem; height: 2px;
    background: var(--grad-brand);
    border-radius: 2px;
    transform: scaleX(0); transform-origin: center;
    transition: transform .3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--teal); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.1rem;
    background: var(--wa);
    color: white;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
    transition: all .3s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, .5); }

.lang-switch {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem .8rem;
    border: 2px solid var(--line);
    border-radius: 12px;
    font-weight: 800; font-size: .85rem;
    color: var(--navy);
    letter-spacing: .5px;
    transition: all .3s var(--ease);
}
.lang-switch:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.lang-switch svg { opacity: .85; }

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    border-radius: 10px;
    background: var(--bg-2);
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: all .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============= Hero ============= */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 9rem 0 4rem;
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(27,123,142,.10), transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(230,57,70,.08), transparent 60%);
    z-index: -1;
}
.hero-container {
    max-width: 1280px; margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .5rem 1rem;
    background: linear-gradient(135deg, rgba(27,123,142,.12), rgba(230,57,70,.08));
    border: 1px solid rgba(27,123,142,.2);
    border-radius: 50px;
    font-size: .85rem; font-weight: 700;
    color: var(--teal);
    margin-bottom: 1.5rem;
}
.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--red); border-radius: 50%;
    position: relative;
}
.hero-badge .dot::before {
    content: ''; position: absolute; inset: -3px;
    background: var(--red); border-radius: 50%; opacity: .5;
    animation: ping 1.6s ease-out infinite;
}
@keyframes ping {
    0% { transform: scale(.5); opacity: .8; }
    100% { transform: scale(2.4); opacity: 0; }
}

.hero-title {
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 1.5rem;
    letter-spacing: -.5px;
}
.hero-title .block { display: block; }

.hero-desc {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--slate);
    line-height: 1.85;
    margin-bottom: 2rem;
    max-width: 580px;
}
.hero-desc strong { color: var(--teal); font-weight: 800; }

.hero-actions {
    display: flex; flex-wrap: wrap; gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .95rem 1.6rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    transition: all .3s var(--ease);
    position: relative;
    overflow: hidden;
}
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn-primary {
    background: var(--grad-teal);
    color: white;
    box-shadow: var(--shadow-color);
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: var(--grad-red);
    opacity: 0; transition: opacity .35s ease;
    z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(230,57,70,.35); }
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--line);
}
.btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-soft);
    transform: translateY(-3px);
}

.btn-de {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--line);
}
.btn-de:hover {
    border-color: var(--navy);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.de-flag {
    display: inline-flex; flex-direction: column;
    width: 20px; height: 14px;
    border-radius: 3px; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.de-flag span { flex: 1; }
.de-flag span:nth-child(1) { background: #000; }
.de-flag span:nth-child(2) { background: #DD0000; }
.de-flag span:nth-child(3) { background: #FFCE00; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: .15rem; }
.stat-num {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 900;
    color: var(--navy);
    font-feature-settings: "tnum";
}
.stat-suffix {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 900;
    color: var(--red);
    margin-inline-start: -.15rem;
}
.stat-label { font-size: .85rem; color: var(--slate); font-weight: 500; }

/* Hero visual - rotating rings + orbits */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1;
    margin-inline-start: auto;
}
.logo-ring {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgba(27,123,142,.25);
    animation: spin 30s linear infinite;
}
.ring-1 { inset: 0; }
.ring-2 { inset: 8%; border-color: rgba(230,57,70,.2); border-style: dotted; animation-duration: 24s; animation-direction: reverse; }
.ring-3 { inset: 16%; border-color: rgba(27,123,142,.18); animation-duration: 36s; }
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ecg-line {
    position: absolute;
    left: 5%; right: 5%;
    top: 50%; transform: translateY(-50%);
    height: 70px;
    pointer-events: none;
    z-index: 1;
}
.ecg-line svg {
    width: 100%; height: 100%;
    stroke: var(--red);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(230,57,70,.4));
    stroke-dasharray: 1000;
    animation: dashFlow 4s linear infinite;
}
@keyframes dashFlow {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

.logo-main {
    position: relative;
    width: 70%; aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, white 60%, rgba(255,255,255,.6) 100%);
    box-shadow:
        0 30px 80px rgba(10,37,64,.18),
        0 0 0 1px rgba(27,123,142,.06),
        inset 0 0 60px rgba(27,123,142,.04);
    animation: heartbeat 2.6s ease-in-out infinite;
    z-index: 2;
}
.logo-main img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 8%;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.04); }
    28% { transform: scale(1); }
    42% { transform: scale(1.04); }
    70% { transform: scale(1); }
}

.orbit {
    position: absolute;
    width: 56px; height: 56px;
    top: 50%; left: 50%;
    margin: -28px;
    animation: orbit 16s linear infinite;
}
.orbit-1 { animation-delay: 0s; }
.orbit-2 { animation-delay: -4s; animation-duration: 18s; }
.orbit-3 { animation-delay: -8s; animation-duration: 20s; }
.orbit-4 { animation-delay: -12s; animation-duration: 22s; }

.orbit-icon {
    position: absolute;
    top: 50%; left: 50%;
    width: 56px; height: 56px;
    margin: -28px;
    transform: translateY(calc(-1 * min(40vw, 250px)));
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
    animation: counterOrbit 16s linear infinite;
}
.orbit-2 .orbit-icon { color: var(--red); animation-duration: 18s; }
.orbit-3 .orbit-icon { animation-duration: 20s; }
.orbit-4 .orbit-icon { color: var(--red); animation-duration: 22s; }
.orbit-icon svg { width: 26px; height: 26px; }

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes counterOrbit {
    from { transform: translateY(calc(-1 * min(40vw, 250px))) rotate(0deg); }
    to { transform: translateY(calc(-1 * min(40vw, 250px))) rotate(-360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    color: var(--slate);
    font-size: .8rem;
    animation: bobble 2s ease-in-out infinite;
}
.scroll-mouse {
    width: 26px; height: 42px;
    border: 2px solid var(--slate);
    border-radius: 14px;
    position: relative;
}
.scroll-dot {
    position: absolute;
    top: 7px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px;
    background: var(--slate);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
    0%, 100% { opacity: 0; transform: translate(-50%, 0); }
    50% { opacity: 1; transform: translate(-50%, 12px); }
}
@keyframes bobble {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============= Marquee ============= */
.marquee {
    overflow: hidden;
    background: var(--grad-dark);
    color: white;
    padding: 1.25rem 0;
    position: relative;
}
.marquee::before, .marquee::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 100px;
    z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--navy), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--navy), transparent); }
.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marquee 35s linear infinite;
}
.marquee-track span {
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    color: rgba(255,255,255,.85);
}
.marquee-track span:nth-child(odd) {
    background: linear-gradient(90deg, #fff, var(--teal-light));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* ============= Sections base ============= */
.section { padding: 6rem 0; position: relative; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}
.eyebrow {
    display: inline-block;
    padding: .35rem 1rem;
    background: var(--teal-soft);
    color: var(--teal);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: .75rem;
    letter-spacing: -.4px;
}
.section-sub {
    font-size: 1.05rem;
    color: var(--slate);
    line-height: 1.7;
}

/* ============= About ============= */
.about { background: var(--bg-2); }
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-text .lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
    line-height: 1.75;
}
.about-text p {
    color: var(--slate);
    margin-bottom: 1rem;
}
.about-text strong { color: var(--teal); }

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: 1.75rem;
}
.about-feature {
    display: flex; align-items: center; gap: .6rem;
    font-weight: 600;
    color: var(--navy);
    font-size: .95rem;
}
.feat-ico {
    width: 28px; height: 28px;
    flex-shrink: 0;
    color: var(--teal);
}
.feat-ico svg { width: 100%; height: 100%; }

.about-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: transform .5s var(--ease);
}
.about-card:hover { transform: translateY(-6px); }

.badge-flag {
    position: absolute;
    top: -1px; right: 1.5rem;
    background: var(--navy);
    color: white;
    padding: .6rem .9rem;
    border-radius: 0 0 10px 10px;
    font-size: .75rem; font-weight: 700;
    display: flex; align-items: center; gap: .5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.flag-stripes {
    display: flex; flex-direction: column;
    width: 18px; height: 12px;
    border-radius: 2px;
    overflow: hidden;
}
.flag-stripes span { flex: 1; }
.flag-stripes span:nth-child(1) { background: #000; }
.flag-stripes span:nth-child(2) { background: #DD0000; }
.flag-stripes span:nth-child(3) { background: #FFCE00; }

.quality-card { text-align: center; padding-top: 1rem; }
.quality-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.25rem;
    background: var(--grad-teal);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    box-shadow: var(--shadow-color);
    transform: rotate(-8deg);
    transition: transform .4s var(--ease);
}
.about-card:hover .quality-icon { transform: rotate(0); }
.quality-icon svg { width: 42px; height: 42px; }
.quality-card h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: .75rem;
}
.quality-card p { color: var(--slate); margin-bottom: 1.5rem; }
.quality-meter { text-align: start; }
.meter-bar {
    height: 8px;
    background: var(--bg-2);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: .5rem;
}
.meter-fill {
    height: 100%;
    width: 0;
    background: var(--grad-brand);
    border-radius: 50px;
    transition: width 1.8s var(--ease);
}
.in-view .meter-fill { width: var(--w); }
.quality-meter span { font-size: .85rem; color: var(--slate); font-weight: 600; }

/* ============= Services ============= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.service-card {
    position: relative;
    padding: 2.25rem 1.75rem 2rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: all .4s var(--ease);
    overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute;
    inset: 0;
    background: var(--grad-brand);
    opacity: 0;
    transition: opacity .4s ease;
    z-index: 0;
}
.service-card::after {
    content: ''; position: absolute;
    top: -50%; right: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(27,123,142,.08), transparent 60%);
    opacity: 0;
    transition: opacity .5s ease;
    z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 30px 60px rgba(27,123,142,.25);
    color: white;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; }

.service-icon {
    width: 64px; height: 64px;
    background: var(--teal-soft);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
    margin-bottom: 1.25rem;
    transition: all .4s var(--ease);
}
.service-card:nth-child(even) .service-icon {
    background: var(--red-soft);
    color: var(--red);
}
.service-card:hover .service-icon {
    background: rgba(255,255,255,.2);
    color: white;
    transform: scale(1.08) rotate(-6deg);
}
.service-icon svg { width: 32px; height: 32px; }

.service-card h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: .6rem;
    transition: color .3s ease;
}
.service-card p {
    color: var(--slate);
    font-size: .95rem;
    line-height: 1.7;
    transition: color .3s ease;
}
.service-card:hover h3, .service-card:hover p { color: white; }
.service-card:hover p { color: rgba(255,255,255,.9); }

.service-num {
    position: absolute;
    top: 1.25rem; left: 1.5rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--bg-2);
    line-height: 1;
    transition: color .3s ease;
    z-index: 0;
}
.service-card:hover .service-num { color: rgba(255,255,255,.18); }

/* ============= Equipment ============= */
.equipment { background: var(--bg-2); }
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}
.eq-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    border: 1px solid var(--line);
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden;
}
.eq-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad-brand);
    transform: scaleX(0); transform-origin: right;
    transition: transform .5s var(--ease);
}
.eq-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.eq-card:hover::before { transform: scaleX(1); transform-origin: left; }

.eq-illustration {
    width: 100px; height: 100px;
    margin: 0 auto 1rem;
    color: var(--teal);
    transition: all .4s var(--ease);
}
.eq-card:nth-child(even) .eq-illustration { color: var(--red); }
.eq-card:hover .eq-illustration { transform: scale(1.1); }
.eq-illustration svg { width: 100%; height: 100%; }

.eq-card h3 {
    font-size: 1.05rem;
    color: var(--navy);
    margin-bottom: .5rem;
    line-height: 1.4;
}
.eq-card p {
    font-size: .9rem;
    color: var(--slate);
    line-height: 1.6;
}

.equipment-cta {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--grad-dark);
    color: white;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.equipment-cta::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(230,57,70,.2), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(27,123,142,.25), transparent 50%);
}
.equipment-cta > * { position: relative; }
.equipment-cta p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,.92);
}

/* ============= Why ============= */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.why-item {
    background: white;
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    border: 1px solid var(--line);
    transition: all .4s var(--ease);
    position: relative;
}
.why-item::after {
    content: ''; position: absolute;
    bottom: 0; left: 0; right: 0; height: 0;
    background: var(--grad-brand);
    border-radius: 0 0 var(--radius) var(--radius);
    transition: height .4s var(--ease);
}
.why-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.why-item:hover::after { height: 4px; }

.why-num {
    display: inline-block;
    font-size: 2.25rem;
    font-weight: 900;
    background: var(--grad-brand);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    margin-bottom: .5rem;
    line-height: 1;
}
.why-item h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: .6rem;
}
.why-item p {
    color: var(--slate);
    font-size: .95rem;
    line-height: 1.7;
}

/* ============= Contact ============= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.contact-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--line);
    transition: all .4s var(--ease);
    display: flex; flex-direction: column;
    align-items: center; gap: .35rem;
}
.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.contact-icon {
    width: 70px; height: 70px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    margin-bottom: .75rem;
    transition: transform .4s var(--ease);
}
.contact-card:hover .contact-icon { transform: scale(1.08) rotate(-6deg); }
.contact-icon.wa { background: var(--wa); box-shadow: 0 12px 28px rgba(37,211,102,.35); }
.contact-icon.location { background: var(--grad-teal); box-shadow: var(--shadow-color); }
.contact-icon.ig { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); box-shadow: 0 12px 28px rgba(253,29,29,.3); }
.contact-icon.fb { background: #1877F2; box-shadow: 0 12px 28px rgba(24,119,242,.35); }
.contact-icon.email { background: var(--grad-red); box-shadow: 0 12px 28px rgba(230,57,70,.3); }

.contact-label {
    font-size: .8rem; font-weight: 700;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}
.contact-sub { font-size: .9rem; color: var(--slate); }
.contact-cta {
    margin-top: .4rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--teal);
}
.whatsapp-card .contact-cta { color: var(--wa); }

.contact-banner {
    background: var(--grad-dark);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.contact-banner::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(230,57,70,.25), transparent 50%),
        radial-gradient(circle at 20% 70%, rgba(27,123,142,.3), transparent 50%);
}
.contact-banner > * { position: relative; }
.banner-content h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: .35rem;
}
.banner-content p { color: rgba(255,255,255,.85); }

/* ============= Footer ============= */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.8);
    padding: 4rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-logo {
    width: 70px; height: 70px;
    margin-bottom: 1rem;
    filter: brightness(1.05);
}
.footer-brand p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,.7);
}
.footer-brand strong { color: white; }
.footer-brand .t-teal { color: var(--teal-light); }
.footer-brand .t-red { color: var(--red-light); }

.footer-social {
    display: flex; gap: .65rem;
}
.footer-social a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    transition: all .3s var(--ease);
}
.footer-social a:hover {
    background: var(--grad-brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow-color);
}

.footer-col h4 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: .6rem;
}
.footer-col h4::after {
    content: ''; position: absolute;
    bottom: 0; right: 0; width: 30px; height: 2px;
    background: var(--grad-brand);
    border-radius: 2px;
}
.footer-col ul li { margin-bottom: .6rem; font-size: .95rem; }
.footer-col ul li a { transition: color .25s ease, padding .25s ease; }
.footer-col ul li a:hover { color: var(--teal-light); padding-inline-start: .3rem; }
.footer-col ul .hl { color: var(--red-light); font-weight: 700; }

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .85rem;
    color: rgba(255,255,255,.6);
}
.footer-bottom strong { color: white; }
.footer-made .heart { color: var(--red-light); animation: heartbeat 1.4s ease-in-out infinite; display: inline-block; }

/* ============= Floating action buttons ============= */
.float-stack {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}
.float-wa {
    position: relative;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--wa);
    color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 30px rgba(37,211,102,.45);
    transition: transform .3s var(--ease);
}
.float-wa svg { width: 30px; height: 30px; }
.float-wa:hover { transform: scale(1.1); }

.float-btn {
    position: relative;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    animation: floatIn .5s var(--ease) both;
}
.float-btn svg { width: 24px; height: 24px; }
.float-btn:hover { transform: scale(1.1); box-shadow: var(--shadow-lg); }
.float-email { color: var(--red); }
.float-addr { color: var(--teal); }
@keyframes floatIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.float-tip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%; transform: translateY(-50%);
    background: var(--navy); color: white;
    padding: .4rem .7rem; border-radius: 8px;
    font-size: .8rem; font-weight: 600; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
    box-shadow: var(--shadow);
}
.float-tip::before {
    content: ''; position: absolute;
    right: 100%; top: 50%; transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--navy);
}
.float-btn:hover .float-tip { opacity: 1; }
.float-wa-pulse {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: var(--wa);
    opacity: .4;
    animation: pulseFloat 1.8s ease-out infinite;
}
@keyframes pulseFloat {
    0% { transform: scale(1); opacity: .5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ============= Reveal animations ============= */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============= Responsive ============= */
@media (max-width: 1024px) {
    .hero-container { gap: 2rem; }
    .hero-visual { max-width: 460px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .nav-menu {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        height: 100dvh;
        width: 80%; max-width: 320px;
        background: white;
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: .25rem;
        margin: 0;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        box-shadow: -20px 0 40px rgba(0,0,0,.1);
        z-index: 1100;
        overflow-y: auto;
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu li { width: 100%; }
    .nav-link {
        display: block;
        padding: .85rem 1rem;
        border-radius: 12px;
        font-size: 1.05rem;
        text-align: start;
    }
    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.active { background: var(--teal-soft); }
    .nav-toggle { display: flex; }
    .nav-cta span { display: none; }
    .nav-cta { padding: .65rem; }

    .hero { padding: 7rem 0 3rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-badge, .hero-desc, .hero-actions { margin-inline: auto; }
    .hero-desc { margin-bottom: 1.75rem; }
    .hero-actions { justify-content: center; }
    .hero-visual {
        order: -1;
        max-width: 360px;
        margin: 0 auto 1.5rem;
    }
    .orbit-icon { transform: translateY(-180px); }
    @keyframes counterOrbit {
        from { transform: translateY(-180px) rotate(0deg); }
        to { transform: translateY(-180px) rotate(-360deg); }
    }

    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-features { grid-template-columns: 1fr; }

    .section { padding: 4rem 0; }
    .section-header { margin-bottom: 2.5rem; }

    .contact-banner { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand { grid-column: 1 / -1; }

    .scroll-indicator { display: none; }
}

@media (max-width: 540px) {
    .nav-container { padding: 0 1rem; }
    .nav-logo img { width: 42px; height: 42px; }
    .nav-logo-name { font-size: .95rem; }
    .nav-logo-tag { font-size: .65rem; }

    .container { padding: 0 1.25rem; }

    .hero { padding: 6.5rem 0 2.5rem; }
    .hero-visual { max-width: 280px; }
    .orbit-icon {
        width: 44px; height: 44px;
        margin: -22px;
        transform: translateY(-145px);
    }
    .orbit-icon svg { width: 22px; height: 22px; }
    @keyframes counterOrbit {
        from { transform: translateY(-145px) rotate(0deg); }
        to { transform: translateY(-145px) rotate(-360deg); }
    }

    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem .75rem;
    }
    .hero-stats .stat:nth-child(3) { grid-column: 1 / -1; }

    .btn { width: 100%; justify-content: center; }
    .hero-actions { flex-direction: column; width: 100%; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .float-stack { bottom: 1rem; left: 1rem; gap: .6rem; }
    .float-wa { width: 54px; height: 54px; }
    .float-wa svg { width: 26px; height: 26px; }
    .float-btn { width: 46px; height: 46px; }
    .float-btn svg { width: 22px; height: 22px; }

    .equipment-cta { padding: 2rem 1.25rem; }
    .equipment-cta p { font-size: 1rem; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 1.75rem; }
    .nav-logo-text { display: none; }
}

/* ============= LTR (English) overrides ============= */
[dir="ltr"] .footer-col h4::after { right: auto; left: 0; }
[dir="ltr"] .eyebrow { letter-spacing: 1px; }

/* ============================================
   Photographic imagery layer (added)
============================================ */

/* --- Hero background banner --- */
.hero-bg-photo {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: .12;
    filter: saturate(.9);
}
.hero-bg-veil {
    position: absolute; inset: 0;
    z-index: -1;
    background: linear-gradient(to left, var(--bg) 22%, rgba(252,253,253,.82) 58%, rgba(252,253,253,.62) 100%),
                linear-gradient(to top, var(--bg), transparent 35%);
}

/* --- Hero photo showcase --- */
.hero-visual { aspect-ratio: auto; }
.hero-photo-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 5;
    margin-inline-start: auto;
}
.hero-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px rgba(10,37,64,.28), 0 0 0 1px rgba(255,255,255,.55);
    position: relative; z-index: 2;
}
.hero-photo-accent {
    position: absolute; border-radius: 50%;
    filter: blur(60px); z-index: 0; opacity: .55;
    pointer-events: none;
}
.hero-photo-accent-1 { width: 240px; height: 240px; background: var(--teal); top: -45px; inset-inline-end: -45px; }
.hero-photo-accent-2 { width: 220px; height: 220px; background: var(--red); bottom: -45px; inset-inline-start: -45px; }
.hero-ecg {
    position: absolute; left: 7%; right: 7%; bottom: 9%;
    height: 42px; z-index: 3; pointer-events: none;
}
.hero-ecg svg {
    width: 100%; height: 100%;
    stroke: #fff; stroke-width: 2.5; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(230,57,70,.7));
    stroke-dasharray: 1000;
    animation: dashFlow 4s linear infinite;
}
.hero-logo-badge {
    position: absolute; z-index: 4;
    top: -22px; inset-inline-start: -22px;
    width: 92px; height: 92px;
    background: #fff; border-radius: 22px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center;
    padding: 12px;
    animation: heartbeat 2.6s ease-in-out infinite;
}
.hero-logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.hero-chip {
    position: absolute; z-index: 4;
    display: flex; align-items: center; gap: .6rem;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    padding: .65rem .85rem; border-radius: 14px;
    box-shadow: var(--shadow);
    animation: floatChip 4.5s ease-in-out infinite;
}
.hero-chip-cert { bottom: 16%; inset-inline-start: -28px; }
.hero-chip-global { top: 26%; inset-inline-end: -28px; animation-delay: -2.2s; }
.hero-chip-ico {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex-shrink: 0;
}
.hero-chip-cert .hero-chip-ico { background: var(--grad-teal); }
.hero-chip-global .hero-chip-ico { background: var(--grad-red); }
.hero-chip-ico svg { width: 20px; height: 20px; }
.hero-chip-text { display: flex; flex-direction: column; line-height: 1.12; }
.hero-chip-text strong { font-size: 1.05rem; color: var(--navy); font-weight: 900; }
.hero-chip-text span { font-size: .72rem; color: var(--slate); font-weight: 600; white-space: nowrap; }
@keyframes floatChip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* --- About photo --- */
.about-card { overflow: hidden; }
.about-media {
    position: relative;
    margin: -2.5rem -2rem 1.75rem;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.badge-flag {
    position: absolute; top: auto;
    bottom: 1rem; inset-inline-end: 1rem;
    right: auto;
    background: rgba(10,37,64,.85);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    color: #fff;
    padding: .5rem .9rem;
    border-radius: 50px;
    font-size: .78rem; font-weight: 700;
    display: flex; align-items: center; gap: .5rem;
    box-shadow: var(--shadow);
}
.badge-check { width: 18px; height: 18px; color: var(--teal-light); display: flex; flex-shrink: 0; }
.badge-check svg { width: 100%; height: 100%; }

/* --- Equipment photo cards --- */
.eq-card { padding: 0; text-align: start; }
.eq-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}
.eq-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.eq-card:hover .eq-media img { transform: scale(1.06); }
.eq-media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,37,64,.4), transparent 50%);
}
.eq-ico {
    position: absolute; z-index: 2;
    bottom: .85rem; inset-inline-start: .85rem;
    width: 46px; height: 46px;
    border-radius: 13px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
}
.eq-card:nth-child(even) .eq-ico { color: var(--red); }
.eq-ico svg { width: 28px; height: 28px; }
.eq-body { padding: 1.5rem 1.4rem 1.6rem; }
.eq-body h3 { margin-bottom: .45rem; }

@media (max-width: 540px) {
    .hero-photo-frame { max-width: 300px; }
    .hero-chip { padding: .55rem .7rem; }
    .hero-chip-cert { inset-inline-start: -14px; bottom: 12%; }
    .hero-chip-global { inset-inline-end: -14px; }
    .hero-chip-text span { font-size: .68rem; }
    .hero-logo-badge { width: 72px; height: 72px; top: -16px; inset-inline-start: -12px; }
}

@media (max-width: 380px) {
    .hero-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
