/* careservices.ae — public site */
@font-face { font-family: "Inter Var"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Noto Deva Var"; src: url("fonts/noto-sans-devanagari-devanagari-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  --ink: #12232A;        /* body text */
  --deep: #0B4F5C;       /* headings, footer */
  --teal: #0E5E6F;       /* Care Services brand */
  --mist: #EEF4F3;       /* page background */
  --line: #D5E2E0;
  --lanyard: #F2C14E;    /* badge + warning only */
  --white: #fff;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 17px/1.65 "Inter Var", "Noto Deva Var", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
:lang(ne) body, html[lang=ne] body { line-height: 1.75; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--lanyard); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--deep); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.2; margin: 0 0 .6rem; font-weight: 780; }
main > section { max-width: 1080px; margin: 0 auto; padding: clamp(3rem, 6vw, 5.5rem) 20px; }
.intro { max-width: 60ch; color: #3c5058; margin: 0 0 1.8rem; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.2rem; padding: .7rem 20px; background: color-mix(in srgb, var(--mist) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.bar.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 780; color: var(--deep); text-decoration: none; font-size: 1.05rem; letter-spacing: -.01em; }
.mark { width: 26px; height: 26px; border-radius: 8px; background: var(--teal); position: relative; }
.mark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2.5px solid #fff; border-right-color: transparent; transform: rotate(-30deg); }
.links { display: flex; gap: 1.1rem; margin-left: auto; font-size: .95rem; }
.links a { color: var(--ink); text-decoration: none; }
.links a:hover { color: var(--teal); }
.lang { border: 1.5px solid var(--teal); color: var(--teal); padding: .25rem .8rem; border-radius: 99px; text-decoration: none; font-size: .9rem; font-weight: 650; }
.lang:hover { background: var(--teal); color: #fff; }
@media (max-width: 720px) { .links { display: none; } .lang { margin-left: auto; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 2rem; align-items: center; min-height: min(78vh, 720px); }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 4vw, 4rem); line-height: 1.05; margin: 0 0 1.1rem; font-weight: 820; max-width: 14ch; }
html[lang=ne] .hero h1 { line-height: 1.22; max-width: 16ch; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 54ch; color: #2e434b; margin: 0 0 1.8rem; }
.cta { display: inline-block; background: var(--teal); color: #fff; text-decoration: none; font-weight: 720; font-size: 1.1rem; padding: .95rem 1.6rem; border-radius: 14px; box-shadow: 0 10px 24px -12px var(--teal); transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s; }
.cta:hover { background: var(--deep); transform: translateY(-2px); box-shadow: 0 16px 30px -14px var(--deep); }
.cta:active { transform: translateY(0) scale(.98); }
.cta-sub { font-size: .92rem; color: #4d6169; margin: .7rem 0 1.2rem; }
.quiet { font-size: .95rem; }

/* The badge: the one memorable element */
.hero-badge { position: relative; height: 460px; display: flex; justify-content: center; perspective: 900px; }
.lanyard { position: absolute; top: -40px; width: 34px; height: 150px; background: repeating-linear-gradient(90deg, var(--lanyard) 0 14px, #e3ad2c 14px 17px); clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%); border-radius: 0 0 6px 6px; }
.badge {
  position: absolute; top: 96px; width: 230px; padding: 1.4rem 1.2rem 1.1rem; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 50px -24px rgba(11, 79, 92, .55), 0 8px 18px -10px rgba(11, 79, 92, .35);
  transform-origin: 50% -60px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg));
  animation: swing 3.2s var(--ease) .2s backwards; transition: transform .25s ease-out; text-align: center; will-change: transform;
}
.clip { position: absolute; top: -18px; left: 50%; width: 46px; height: 26px; margin-left: -23px; border-radius: 6px 6px 10px 10px; background: linear-gradient(#c9d6d8, #9fb3b6); }
.clip::after { content: ""; position: absolute; left: 13px; right: 13px; top: 8px; height: 7px; border-radius: 4px; background: #e7eeef; }
.badge-top { background: var(--teal); color: #fff; margin: -1.4rem -1.2rem 1rem; padding: .7rem; border-radius: 16px 16px 0 0; font-weight: 800; letter-spacing: .18em; font-size: .82rem; }
.badge-photo { width: 92px; height: 108px; margin: 0 auto .9rem; border-radius: 10px; background: linear-gradient(160deg, #dbe8e6, #c3d7d4); display: grid; place-items: end center; overflow: hidden; }
.badge-photo svg { width: 84px; fill: #9db7b3; }
.badge-name { font-weight: 800; font-size: 1.2rem; color: var(--deep); }
.badge-line { color: #4d6169; margin-bottom: 1rem; }
.badge-bars { display: flex; justify-content: center; gap: 3px; height: 30px; }
.badge-bars i { width: 3px; background: var(--ink); opacity: .85; }
.badge-bars i:nth-child(3n) { width: 6px; } .badge-bars i:nth-child(4n) { width: 2px; } .badge-bars i:nth-child(5n) { width: 5px; }
@keyframes swing { 0% { transform: rotateZ(-14deg) rotateX(8deg); opacity: 0; } 12% { opacity: 1; } 35% { transform: rotateZ(8deg); } 55% { transform: rotateZ(-4deg); } 72% { transform: rotateZ(2deg); } 100% { transform: rotateZ(0); } }
@media (max-width: 860px) {
  /* Phones: a smaller badge above the text, with its own space so it never covers the heading */
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 1rem; gap: .5rem; }
  .hero-badge { order: -1; height: 300px; margin: 0; }
  .lanyard { top: -24px; width: 26px; height: 96px; }
  .badge { top: 60px; width: 176px; padding: 1rem .9rem .8rem; }
  .clip { top: -15px; width: 38px; height: 22px; margin-left: -19px; }
  .badge-top { margin: -1rem -.9rem .7rem; padding: .5rem; font-size: .7rem; }
  .badge-photo { width: 66px; height: 76px; margin-bottom: .55rem; }
  .badge-photo svg { width: 60px; }
  .badge-name { font-size: 1rem; }
  .badge-line { font-size: .88rem; margin-bottom: .55rem; }
  .badge-bars { height: 20px; }
}
@media (max-width: 380px) { .hero-badge { height: 280px; } .badge { width: 160px; } }

/* Who */
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.checks li { background: #fff; border-radius: 16px; padding: 1.1rem 1.1rem 1.1rem 3.1rem; position: relative; border: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 1.05rem; top: 1.25rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/90% no-repeat; }

/* How: a real sequence, so it is numbered */
.how { counter-reset: step; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 1.35rem; left: 1.35rem; right: calc(25% - 1.35rem); height: 3px; background: var(--line); }
.steps li { position: relative; padding: 0 1.2rem 0 0; counter-increment: step; }
.steps li::before { content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 800; margin-bottom: 1rem; box-shadow: 0 0 0 6px var(--mist); }
.steps h3 { font-size: 1.12rem; margin: 0 0 .35rem; }
.steps p { margin: 0; color: #3c5058; font-size: .97rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps::before { top: 0; bottom: 0; left: 1.3rem; right: auto; width: 3px; height: auto; }
  .steps li { padding: 0 0 0 4rem; }
  .steps li::before { position: absolute; left: 0; top: 0; }
}

/* Docs */
.docs { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start; }
.doclist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.doclist li { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: .55rem 1.05rem; font-weight: 560; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; gap: 1rem; } }

/* Safety */
main > section.safe { max-width: 1040px; background: #FFF7E0; border: 2px solid var(--lanyard); border-radius: 24px; padding: clamp(1.8rem, 4vw, 2.8rem); margin: 1rem auto; }
.safe h2 { color: #6b4a00; }
.safe ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; max-width: 70ch; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); max-width: 780px; }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0; font-weight: 680; color: var(--deep); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 1.1rem; color: #3c5058; max-width: 65ch; animation: open .3s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } }

/* Final */
main > section.final { text-align: center; padding-bottom: 6rem; }
.final h2 { max-width: 22ch; margin: 0 auto 1.6rem; }

/* Footer */
.foot { background: var(--deep); color: #cfe0df; padding: 2.2rem 20px; font-size: .9rem; }
.foot a { color: #fff; }
.disclaimer { max-width: 1040px; margin: 0 auto 1.2rem; color: #a9c4c3; }
.foot-row { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.foot-row span { margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge { animation: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Legal pages */
main > section.legal { max-width: 760px; padding-top: 3rem; }
.legal h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin: 0 0 .3rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .4rem; }
.legal p { margin: 0 0 .8rem; max-width: 68ch; }
.disclaimer-dark { color: #4d6169; font-size: .92rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2.4rem !important; }
.brand + .lang { margin-left: auto; }
