:root {
    --navy: #07111f;
    --navy-2: #0b2a56;
    --accent: #39c8ff;
    --accent-2: #145b9c;
    --text: #142033;
    --muted: #667085;
    --line: #e3e8ef;
    --soft: #f5f7fa;
    --surface: #ffffff;
    --dark-surface: #050b14;
    --white: #ffffff;
    --radius: 20px;
    --shadow: 0 22px 60px rgba(7, 17, 31, 0.10);
    --container: 1180px;
    --motion-duration: 700ms;
    --hero-angle: 125deg;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--surface); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--dark-surface) 94%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; background: #fff; padding: 2px; }
.brand strong { display: block; font-size: .92rem; }
.brand span { display: block; font-size: .66rem; color: rgba(255,255,255,.58); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 24px; color: rgba(255,255,255,.78); font-size: .81rem; font-weight: 700; }
.nav-links a { position: relative; transition: color .25s ease, transform .25s ease; }
.nav-links a:hover { color: #fff; transform: translateY(-1px); }
.nav-cta { padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 999px; color: #fff !important; }
.menu-btn { display: none; background: transparent; border: 1px solid rgba(255,255,255,.18); color: #fff; width: 44px; height: 44px; border-radius: 12px; }

.hero { min-height: 720px; display: grid; align-items: center; color: #fff; background: radial-gradient(circle at 80% 22%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 28%), radial-gradient(circle at 76% 82%, rgba(255,255,255,.05), transparent 24%), linear-gradient(var(--hero-angle), var(--dark-surface), color-mix(in srgb, var(--dark-surface) 72%, var(--accent-2))); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(90deg, transparent, #000 50%, #000); }
.hero-geometry { position: absolute; width: 620px; height: 620px; right: -160px; top: 60px; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.02), 0 0 0 180px rgba(255,255,255,.01); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .65fr; gap: 72px; align-items: center; padding: 116px 0; }
.kicker { color: var(--accent); font-size: .74rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3rem, 7vw, 6.6rem); line-height: .95; letter-spacing: -.06em; margin: 18px 0 26px; max-width: 880px; }
.hero p { color: rgba(255,255,255,.67); font-size: 1.05rem; line-height: 1.8; max-width: 710px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 0; border-radius: 12px; font-weight: 800; font-size: .84rem; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease; }
.btn-primary { background: var(--accent-2); color: #fff; box-shadow: 0 14px 34px color-mix(in srgb, var(--accent-2) 28%, transparent); }
.btn-outline { border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.03); }
.motion-hover .btn:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(0,0,0,.16); }
.hero-card { padding: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 26px; background: rgba(255,255,255,.06); box-shadow: 0 35px 80px rgba(0,0,0,.25); backdrop-filter: blur(16px); }
.hero-logo { width: 168px; height: 168px; margin: 10px auto 24px; object-fit: contain; border-radius: 50%; background: #fff; padding: 9px; }
.hero-card strong { display: block; text-align: center; font-size: 1.18rem; }
.hero-card small { display: block; text-align: center; margin-top: 8px; color: rgba(255,255,255,.58); line-height: 1.6; }
.hero-rule { height: 1px; margin: 20px 0 14px; background: rgba(255,255,255,.1); }

.section { padding: 94px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 790px; margin-bottom: 42px; }
.section-head h2, .cta-panel h2 { color: var(--navy); font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -.045em; line-height: 1.08; margin: 10px 0 16px; }
.section-head p, .cta-panel p { margin: 0; color: var(--muted); line-height: 1.8; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 28px; box-shadow: 0 12px 34px rgba(7,17,31,.05); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.motion-hover .card:hover, .motion-hover .article-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(7,17,31,.10); border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); }
.card-index { display: block; color: color-mix(in srgb, var(--accent-2) 75%, #fff); font-size: .68rem; font-weight: 900; letter-spacing: .12em; margin-bottom: 34px; }
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.16rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.72; font-size: .9rem; }
.card small { color: var(--accent-2); font-weight: 800; }
.text-link { color: var(--accent-2); font-weight: 800; }

.stats-section { color: #fff; background: var(--dark-surface); }
.stats-section .section-head h2 { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { padding: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.stat-card strong { display: block; font-size: clamp(2.1rem, 5vw, 4.3rem); letter-spacing: -.05em; }
.stat-card span { color: rgba(255,255,255,.58); font-size: .78rem; }
.demo-note { display: block; margin-top: 18px; color: rgba(255,255,255,.42); }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.article-image { height: 220px; background: linear-gradient(145deg, #dce9f5, #edf2f7); overflow: hidden; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.motion-hover .article-card:hover img { transform: scale(1.035); }
.article-body { padding: 24px; }
.article-body h3 { margin: 8px 0 10px; color: var(--navy); }
.article-body p { color: var(--muted); line-height: 1.7; font-size: .9rem; }

.page-hero { padding: 118px 0 76px; color: #fff; background: radial-gradient(circle at 82% 20%, color-mix(in srgb,var(--accent) 20%,transparent), transparent 26%), linear-gradient(125deg, var(--dark-surface), color-mix(in srgb,var(--dark-surface) 72%,var(--accent-2))); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.8rem,6vw,5.8rem); letter-spacing: -.055em; margin: 12px 0 16px; }
.page-hero p { max-width: 780px; color: rgba(255,255,255,.65); line-height: 1.8; }
.prose { max-width: 880px; margin: 0 auto; font-size: 1.02rem; line-height: 1.9; color: #344054; }
.prose h2,.prose h3 { color: var(--navy); }
.featured { width: min(100%, 980px); max-height: 520px; object-fit: cover; margin: 0 auto 34px; border-radius: 24px; box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 20px; }
.contact-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 6px; }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; }
.download-row { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.empty { padding: 50px; text-align: center; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }
.appointment-strip { padding-top: 24px; }
.cta-panel { display: flex; justify-content: space-between; gap: 28px; align-items: center; padding: 42px; border-radius: 28px; background: linear-gradient(135deg, color-mix(in srgb,var(--accent) 8%,#fff), #fff); border: 1px solid color-mix(in srgb,var(--accent) 20%,var(--line)); box-shadow: var(--shadow); }

.public-form label { display: block; margin-bottom: 6px; color: #344054; font-size: .74rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.public-form input, .public-form select, .public-form textarea { width: 100%; border: 1px solid #d0d8e4; border-radius: 10px; padding: 12px 13px; background: #fff; color: var(--text); outline: none; }
.public-form input:focus, .public-form select:focus, .public-form textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb,var(--accent-2) 10%,transparent); }
.form-status { margin-top: 12px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.form-status.success { color: #087a4b; }
.form-status.error { color: #b42318; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.site-footer { padding: 52px 0 30px; background: var(--dark-surface); color: rgba(255,255,255,.58); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 40px; }
.site-footer strong { color: #fff; }
.site-footer a { display: block; margin-top: 9px; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .72rem; }

.floating-whatsapp { position: fixed; right: 24px; bottom: 90px; z-index: 120; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; font-weight: 900; box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 130; }
.chat-launcher { min-width: 62px; height: 52px; border: 0; border-radius: 999px; padding: 0 18px; background: var(--accent-2); color: #fff; font-weight: 900; box-shadow: 0 18px 44px rgba(0,0,0,.23); cursor: pointer; }
.chat-panel { position: absolute; right: 0; bottom: 64px; width: min(360px, calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 26px 80px rgba(0,0,0,.22); opacity: 0; transform: translateY(10px) scale(.985); pointer-events: none; transition: .25s ease; }
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; color: #fff; background: var(--dark-surface); }
.chat-head strong, .chat-head small { display: block; }
.chat-head small { margin-top: 4px; color: rgba(255,255,255,.58); font-size: .7rem; }
.chat-head button { border: 0; background: transparent; color: #fff; font-size: 1.4rem; cursor: pointer; }
.chat-messages { max-height: 290px; overflow: auto; padding: 14px; display: grid; gap: 8px; background: #f7f9fc; }
.chat-bubble { max-width: 82%; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: .78rem; line-height: 1.55; }
.chat-bubble.staff { margin-left: auto; background: var(--navy-2); color: #fff; border-color: transparent; }
.chat-bubble small { display: block; margin-bottom: 3px; opacity: .62; font-size: .62rem; }
.chat-form { display: grid; gap: 8px; padding: 14px; }
.chat-form input, .chat-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; resize: vertical; }


/* Premium CMS sliders */
.premium-slider { position: relative; overflow: hidden; }
.slider-track { position: relative; width: 100%; }
.slider-slide { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.slider-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 2; }
.slider-reduced-motion .slider-slide { transition: opacity .16s linear !important; transform: none !important; }
.slider-reduced-motion .hero-slide { transform: none !important; }
.hero-slider { min-height: 720px; background: var(--dark-surface); }
.hero-slider .slider-track { min-height: 720px; }
.hero-slide { position: absolute; inset: 0; min-height: 720px; display: grid; align-items: center; transform: scale(1.018); }
.hero-slide.is-active { transform: scale(1); }
.slide-media { position: absolute; inset: 0; z-index: 0; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; }
.slide-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(3,9,17,.92), rgba(3,9,17,var(--slide-overlay, .35)) 58%, rgba(3,9,17,.18)); }
.hero-slide .hero-geometry { z-index: 1; }
.hero-slide-inner { position: relative; z-index: 3; grid-template-columns: 1fr; }
.hero-slide-inner .hero-copy { max-width: 900px; }
.hero-slide-inner.text-center { text-align: center; }
.hero-slide-inner.text-center .hero-copy { margin-inline: auto; }
.hero-slide-inner.text-center .actions { justify-content: center; }
.hero-slide-inner.text-right { text-align: right; }
.hero-slide-inner.text-right .hero-copy { margin-left: auto; }
.hero-slide-inner.text-right .actions { justify-content: flex-end; }
.slider-arrow { position: absolute; top: 50%; z-index: 8; width: 48px; height: 48px; margin-top: -24px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(4,10,18,.42); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; backdrop-filter: blur(10px); transition: background .25s ease, transform .25s ease; }
.slider-arrow:hover { background: rgba(4,10,18,.72); transform: scale(1.04); }
.slider-prev { left: 22px; }
.slider-next { right: 22px; }
.slider-dots { position: absolute; left: 50%; bottom: 24px; z-index: 8; display: flex; gap: 8px; transform: translateX(-50%); }
.slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.42); cursor: pointer; transition: width .25s ease, background .25s ease; }
.slider-dots button.is-active { width: 30px; background: #fff; }
.content-slider { min-height: 430px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.content-slider .slider-track { min-height: 430px; }
.content-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 430px; overflow: hidden; }
.content-slide-media { min-height: 430px; background: linear-gradient(145deg,#dce9f5,#edf2f7); }
.content-slide-media picture, .content-slide-media img { width: 100%; height: 100%; }
.content-slide-media img { object-fit: cover; }
.content-slide-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px,5vw,64px); }
.content-slide-copy h3 { margin: 10px 0 12px; color: var(--navy); font-size: clamp(2rem,4vw,4rem); line-height: 1; letter-spacing: -.045em; }
.content-slide-copy strong { color: var(--accent-2); margin-bottom: 12px; }
.content-slide-copy p { color: var(--muted); line-height: 1.8; margin: 0 0 22px; }
.content-slide-copy.text-center { text-align: center; align-items: center; }
.content-slide-copy.text-right { text-align: right; align-items: flex-end; }
.content-slider .slider-arrow { border-color: rgba(7,17,31,.14); background: rgba(255,255,255,.88); color: var(--navy); box-shadow: 0 10px 30px rgba(7,17,31,.10); }
.content-slider .slider-dots { bottom: 16px; }
.content-slider .slider-dots button { background: rgba(7,17,31,.22); }
.content-slider .slider-dots button.is-active { background: var(--accent-2); }
.btn-outline.dark { color: var(--navy); border-color: rgba(7,17,31,.2); }

.reveal { opacity: 1; transform: none; }
body[data-scroll-motion="1"] .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--motion-duration) cubic-bezier(.2,.7,.2,1), transform var(--motion-duration) cubic-bezier(.2,.7,.2,1); }
body[data-scroll-motion="1"] .reveal.is-visible { opacity: 1; transform: none; }
.motion-minimal { --motion-duration: 420ms; }
.motion-enhanced { --motion-duration: 900ms; }
.motion-hero .hero-copy { animation: heroReveal 900ms cubic-bezier(.2,.7,.2,1) both; }
.motion-hero .hero-card { animation: heroReveal 1100ms 120ms cubic-bezier(.2,.7,.2,1) both; }
.motion-hero .hero-geometry { animation: geometryFloat 10s ease-in-out infinite alternate; }
.motion-page main { animation: pageFade 480ms ease both; }
@keyframes heroReveal { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }
@keyframes geometryFloat { from { transform:translate3d(0,0,0) rotate(0deg); } to { transform:translate3d(-20px,18px,0) rotate(4deg); } }
@keyframes pageFade { from { opacity:.55; } to { opacity:1; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
    body[data-scroll-motion="1"] .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 900px) {
    .hero-inner, .contact-grid, .footer-grid, .content-slide { grid-template-columns: 1fr; }
    .grid-3, .article-grid, .gallery { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-card { max-width: 560px; }
    .content-slider, .content-slider .slider-track, .content-slide { min-height: 680px; }
    .content-slide-media { min-height: 310px; }
    .cta-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .nav-links { display: none; position: absolute; top: 68px; left: 14px; right: 14px; padding: 14px; background: var(--dark-surface); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; flex-direction: column; align-items: stretch; box-shadow: 0 20px 50px rgba(0,0,0,.2); }
    .nav-links.open { display: flex; }
    .menu-btn { display: block; }
    .hero { min-height: auto; }
    .hero-slider, .hero-slider .slider-track, .hero-slide { min-height: 650px; }
    .slider-arrow { width: 40px; height: 40px; margin-top: -20px; }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }
    .hero-inner { padding: 82px 0; }
    .grid-3, .article-grid, .gallery, .stats-grid, .form-grid { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
    .download-row { flex-direction: column; }
    .chat-widget { right: 14px; bottom: 14px; }
    .floating-whatsapp { right: 14px; bottom: 80px; }
}

/* PFAM V7 landing-page feature rail */
.home-feature-strip {
    position: relative;
    z-index: 12;
    margin-top: -1px;
    color: #fff;
    background: color-mix(in srgb, var(--dark-surface) 96%, #000);
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.home-feature-item {
    min-height: 116px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: center;
    padding: 22px 22px;
    border-right: 1px solid rgba(255,255,255,.10);
}
.home-feature-item:last-child { border-right: 0; }
.home-feature-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--accent) 52%, rgba(255,255,255,.12));
    border-radius: 50%;
    color: var(--accent);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.home-feature-item strong {
    display: block;
    font-size: .82rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .025em;
}
.home-feature-item small {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: rgba(255,255,255,.52);
    font-size: .69rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
    .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-feature-item:nth-child(2) { border-right: 0; }
    .home-feature-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.10); }
}
@media (max-width: 560px) {
    .home-feature-grid { grid-template-columns: 1fr; }
    .home-feature-item { min-height: 94px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); }
    .home-feature-item:last-child { border-bottom: 0; }
}
