/* Liberty Care website demo. Colours come from the Liberty Care logo; layout rhythm inspired by eshkul.com.
   Green 600+ is used for text/buttons so white text keeps 4.5:1+ contrast. */
:root {
  /* from the Liberty Care logo: green text, orange person, sky-blue wheelchair, magenta cross, red heart */
  --brand-50: #f2f8f2;
  --brand-100: #e2f0e2;
  --brand-200: #c4e1c5;
  --brand-300: #8dc48f;
  --brand-400: #5aa55c;
  --brand-500: #408941;
  --brand-600: #2f6e31; /* buttons + links: 6:1 on white */
  --brand-700: #255927;
  --brand-900: #15361a;
  --orange: #f29420;
  --accent2: #2ea4dd;           /* third card/step colour */
  --accent3: #d2377c;           /* fourth step + aged-care badge */
  --dark-rgb: 21, 54, 26;       /* overlays and shadows */
  --on-dark: #e3efe3;           /* body text on dark bands */
  --on-dark-muted: #bcd6bd;
  --chip-border: #f6cfe0;
  --chip-text: #a8255f;
  --avatar: var(--orange);
  --orange-50: #fff4e5;
  --sky: #2ea4dd;
  --magenta: #d2377c;
  --red: #ef3734;
  --ink: #1f2a20;
  --muted: #5d6b5e;
  --line: #e3ebe2;
  --cream: #fbf9f4;
  --radius: 22px;
  --shadow: 0 20px 50px -24px rgba(var(--dark-rgb), .35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.65; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--orange); }
.lead { font-size: 19px; color: var(--muted); }
.center { text-align: center; }
.center .eyebrow::after { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--orange); }
section { padding: 96px 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 3px; }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; font-size: 16px; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 12px 24px -12px var(--brand-600); }
.btn-primary:hover { background: var(--brand-700); }
.btn-ghost { border-color: var(--brand-300); color: var(--brand-700); background: #fff; }
.btn-light { background: #fff; color: var(--brand-700); }
.btn svg { width: 18px; height: 18px; }

/* top bar + header */
.topbar { background: var(--brand-900); color: var(--on-dark); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding: 8px 0; }
.topbar a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.topbar a:hover { color: var(--orange); }
.topbar .socials { display: flex; gap: 14px; }
header.site { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 24px; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo b { font-family: var(--serif); font-size: 25px; color: var(--ink); }
.logo b span { color: var(--brand-600); }
.logo small { white-space: nowrap; display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: -4px; }
nav.main { margin-left: auto; display: flex; gap: 4px; }
nav.main a { white-space: nowrap; font-size: 15px; text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; color: var(--ink); }
nav.main a:hover, nav.main a.active { background: var(--brand-100); color: var(--brand-700); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }

/* hero */
.hero { position: relative; padding: 72px 0 110px; background: radial-gradient(900px 520px at 88% 8%, var(--brand-100), transparent 60%), radial-gradient(600px 400px at 0% 100%, var(--orange-50), transparent 70%), var(--cream); overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -140px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: var(--orange-50); opacity: .9; filter: blur(10px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); margin: 18px 0; min-height: 2.3em; }
.hero h1 em { font-style: normal; color: var(--brand-600); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--orange); opacity: .3; z-index: -1; border-radius: 4px; }
.rotator { display: inline-block; animation: rise .7s ease both; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--muted); font-weight: 700; font-size: 15px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 22px; height: 22px; color: var(--brand-500); }
.collage { position: relative; height: 560px; }
.collage img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid #fff; }
.collage .a { width: 72%; height: 78%; right: 0; top: 0; }
.collage .b { width: 46%; height: 42%; left: 0; bottom: 0; }
.collage .c { width: 34%; height: 30%; left: 6%; top: 8%; }
.float-card { position: absolute; right: 6%; bottom: 4%; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; max-width: 280px; animation: bob 5s ease-in-out infinite; }
.float-card .icon { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-100); display: grid; place-items: center; color: var(--brand-600); }
.float-card b { display: block; font-size: 15px; }
.float-card small { color: var(--muted); font-size: 13px; }
.dots { display: flex; gap: 8px; margin-top: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: var(--brand-200); cursor: pointer; padding: 0; transition: width .3s; }
.dots button[aria-current="true"] { width: 30px; background: var(--brand-600); }

/* value columns (eshkul-style 3 service columns) */
.values { margin-top: -64px; position: relative; z-index: 2; padding: 0; }
.values .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { --c: var(--brand-500); background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); text-align: center; border-top: 5px solid var(--c); }
.value:nth-child(2) { --c: var(--orange); }
.value:nth-child(3) { --c: var(--accent2); }
.value .icon { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, #fff); display: grid; place-items: center; color: var(--c); border: 2px dashed var(--c); }
.value .icon svg { width: 32px; height: 32px; }
.value p { color: var(--muted); margin: 0; }

/* services */
.services .head { display: flex; flex-wrap: wrap; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 44px; }
.services .head p { max-width: 520px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .img { position: relative; height: 220px; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .img img { transform: scale(1.06); }
.tag { position: absolute; left: 14px; top: 14px; background: var(--brand-600); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 99px; letter-spacing: .04em; }
.card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card .body p { color: var(--muted); font-size: 16px; }
.more { margin-top: auto; font-weight: 800; color: var(--brand-600); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.more:hover { gap: 10px; }

/* feature rows */
.feature { background: var(--cream); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.row + .row { margin-top: 96px; }
.row.flip .media { order: 2; }
.media { position: relative; }
.media img { border-radius: var(--radius); width: 100%; height: 460px; object-fit: cover; box-shadow: var(--shadow); }
.media .badge { position: absolute; left: -18px; bottom: 30px; background: var(--badge, var(--brand-600)); color: #fff; border-radius: 18px; padding: 16px 20px; font-weight: 800; box-shadow: var(--shadow); max-width: 220px; line-height: 1.35; }
.row.flip .media .badge { left: auto; right: -18px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-weight: 900; font-size: 14px; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.chips span { background: #fff; border: 1px solid var(--chip-border); color: var(--chip-text); padding: 7px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step { --c: var(--brand-500); border-top: 4px solid var(--c); }
.step:nth-child(2) { --c: var(--orange); }
.step:nth-child(3) { --c: var(--accent2); }
.step:nth-child(4) { --c: var(--accent3); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 46px; color: var(--c); display: block; line-height: 1; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }

/* banner */
.banner { position: relative; padding: 130px 0; color: #fff; background: linear-gradient(90deg, rgba(var(--dark-rgb), .9) 0%, rgba(var(--dark-rgb), .55) 45%, rgba(var(--dark-rgb), 0) 75%), url("images/swing.jpg") 78% 68% / cover; }
.banner h2 { max-width: 640px; font-size: clamp(34px, 5vw, 54px); }
.banner p { max-width: 560px; color: var(--on-dark); font-size: 19px; }

/* testimonials */
.stories { background: var(--brand-900); color: #fff; }
.stories .eyebrow { color: var(--orange); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.quote { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 34px; }
.quote .stars { color: var(--orange); letter-spacing: 3px; font-size: 18px; }
.quote blockquote { margin: 14px 0 22px; font-family: var(--serif); font-size: 22px; line-height: 1.45; }
.who { display: flex; gap: 14px; align-items: center; }
.who .av { width: 50px; height: 50px; border-radius: 50%; background: var(--avatar); display: grid; place-items: center; font-weight: 900; color: var(--brand-900); }
.who small { display: block; color: var(--on-dark-muted); }
.verified { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--brand-200); border: 1px solid color-mix(in srgb, var(--brand-200) 50%, transparent); padding: 4px 10px; border-radius: 99px; }

/* faq */
.faq .row { align-items: start; }
details { border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; background: #fff; }
details + details { margin-top: 12px; }
details[open] { border-color: var(--brand-300); background: var(--brand-50); }
summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand-600); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--muted); }
.help-card { background: var(--brand-600); color: #fff; border-radius: var(--radius); padding: 34px; margin-top: 28px; }
.help-card a { color: #fff; font-weight: 800; }

/* careers */
.careers .box { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 30px; overflow: hidden; background: var(--orange-50); }
.careers .box > div { padding: 56px; }
.careers .box img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }

/* contact */
.contact { background: var(--cream); }
.contact .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; margin-top: 40px; }
.info { display: grid; gap: 16px; align-content: start; }
.info .item { display: flex; gap: 16px; background: #fff; border-radius: 18px; padding: 20px; border: 1px solid var(--line); }
.info .icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-100); color: var(--brand-600); display: grid; place-items: center; }
.info b { display: block; }
.info a { text-decoration: none; }
.info a:hover { color: var(--brand-600); }
.map { border: 0; width: 100%; height: 240px; border-radius: 18px; }
form.enquiry { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.enquiry .full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 14px; display: grid; gap: 6px; }
input, select, textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-400); background: #fff; box-shadow: 0 0 0 4px var(--brand-100); }
.thanks { display: none; grid-column: 1 / -1; background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: 12px; padding: 14px; font-weight: 700; color: var(--brand-700); }

/* footer */
footer { background: var(--brand-900); color: var(--on-dark-muted); padding: 72px 0 26px; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
footer h4 { color: #fff; font-family: var(--serif); font-size: 18px; margin: 0 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--orange); }
footer .logo b { color: #fff; }
footer .socials { display: flex; gap: 10px; margin-top: 18px; }
footer .socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
footer .socials a:hover { background: var(--brand-600); color: #fff; }
.legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--on-dark-muted); opacity: .8; }
.icon svg, .socials svg, .topbar svg { width: 20px; height: 20px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* responsive */
@media (max-width: 1180px) {
  nav.main { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
  .menu-btn { display: block; }
  header .btn { display: none; }
}
@media (max-width: 980px) {
  /* minmax(0,1fr): plain 1fr won't shrink below long unbreakable content and pushes the page sideways on phones */
  .hero .wrap, .row, .contact .grid, .careers .box, .quotes { grid-template-columns: minmax(0, 1fr); }
  .row.flip .media { order: 0; }
  .collage { height: 420px; }
  .cards, .values .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .media .badge, .row.flip .media .badge { left: 16px; right: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .btn { white-space: normal; }
  .info a, .topbar a { overflow-wrap: anywhere; }
  .logo small { display: none; }
  section { padding: 72px 0; }
  .cards, .values .grid, .steps, footer .cols, form.enquiry { grid-template-columns: 1fr; }
  .collage { height: 340px; }
  .collage .c { display: none; }
  .float-card { display: none; }
  .media img { height: 300px; }
  .careers .box > div, form.enquiry { padding: 28px; }
  .topbar .socials { display: none; }
}

/* logo image + tags + moments strip */
.logo img { height: 64px; width: auto; }
footer .logo img { background: #fff; border-radius: 12px; padding: 6px 10px; height: 60px; }
.tag.cap { background: var(--accent2); color: var(--brand-900); }
.tag.capital { background: var(--orange); color: var(--brand-900); }
.moments { padding: 0 0 96px; }
.strip { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 16px; margin-top: 36px; }
.strip figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; height: 260px; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.strip figure:hover img { transform: scale(1.06); }
.strip figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94); color: var(--ink); font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 99px; }
@media (max-width: 980px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .strip figure { height: 180px; } }
