/* ===========================================================
   TC Care Ltd — modern rebrand
   Palette: deep navy (trust) · calm teal (care) · warm neutral
   Type: Fraunces (display serif) + Inter (UI sans)
   =========================================================== */

:root {
  --navy:        #0d3b5c;
  --navy-deep:   #082a43;
  --navy-700:    #11486e;
  --teal:        #1c8a8a;
  --teal-600:    #16767a;
  --teal-tint:   #e7f2f1;
  --gold:        #c8923b;
  --ink:         #122231;
  --muted:       #51616e;
  --line:        #e3e8ec;
  --sand:        #f5f1ea;
  --bg:          #ffffff;
  --bg-alt:      #f4f7f9;

  --radius:      18px;
  --radius-sm:   12px;
  --shadow-sm:   0 1px 2px rgba(13,59,92,.06), 0 4px 14px rgba(13,59,92,.06);
  --shadow-md:   0 10px 30px rgba(13,59,92,.12);
  --maxw:        1160px;

  --font-body:   "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-disp:   "Fraunces", Georgia, "Times New Roman", serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-disp);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--teal-600);
  margin: 0 0 .8rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .icon { width: 20px; height: 20px; fill: currentColor; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  border-bottom-color: transparent;
  box-shadow: 0 6px 26px rgba(13,59,92,.10);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; transition: min-height .25s ease; }
.site-header.scrolled .header-inner { min-height: 60px; }
.site-header.scrolled .brand-logo { height: 42px; }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; flex: none; }
.brand-text strong, .brand-text small { white-space: nowrap; }
.brand-logo {
  height: 52px; width: auto; max-width: 92px; object-fit: contain;
  border-radius: 12px; background: #fff; padding: 4px 7px; box-shadow: var(--shadow-sm);
  transition: height .25s ease;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-disp); font-size: 1.3rem; color: var(--navy); font-weight: 600; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .02em; }

.main-nav { display: flex; gap: 1.6rem; }
.main-nav a {
  color: var(--ink); font-weight: 500; font-size: .98rem; padding: .4rem 0; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--teal); transition: width .22s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: .75rem; }
.btn-phone { padding: .65rem 1.15rem; font-size: .95rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(28,138,138,.10), transparent 60%),
    linear-gradient(180deg, #fbfdfd 0%, var(--bg) 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(64px);
  opacity: .55; z-index: 0; pointer-events: none;
}
.hero::before { width: 440px; height: 440px; background: radial-gradient(circle, rgba(28,138,138,.22), transparent 70%); top: -130px; right: -70px; animation: floatA 15s ease-in-out infinite; }
.hero::after  { width: 380px; height: 380px; background: radial-gradient(circle, rgba(13,59,92,.13), transparent 70%); bottom: -150px; left: -70px; animation: floatB 19s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-28px,22px); } }
@keyframes floatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(26px,-18px); } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy .lead { font-size: 1.18rem; color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2rem; }
.hero-trust {
  list-style: none; margin: 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line);
  display: flex; gap: 2rem; flex-wrap: wrap;
}
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--font-disp); font-size: 1.5rem; color: var(--navy); }
.hero-trust span { font-size: .86rem; color: var(--muted); }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 5/4;
  box-shadow: var(--shadow-md);
}
/* subtle cohesion overlay on feature images */
.hero-media::after, .about-media::after, .sustain-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  border-radius: var(--radius);
  background: linear-gradient(180deg, transparent 58%, rgba(13,59,92,.16));
}
.about-media, .sustain-media { position: relative; }
.hero-badge { z-index: 2; }
.hero-badge {
  position: absolute; left: -10px; bottom: 22px;
  background: #fff; border-radius: 14px; padding: .8rem 1rem; max-width: 230px;
  display: flex; gap: .6rem; align-items: center; box-shadow: var(--shadow-md);
  border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--navy);
}
.hero-badge svg { width: 34px; height: 34px; fill: var(--gold); flex: none; }

/* ---------- values strip ---------- */
.values { background: var(--navy); color: #fff; }
.values-list {
  list-style: none; margin: 0; padding: clamp(2rem,4vw,3rem) 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem;
}
.values-list li { padding-right: .5rem; }
.values .v-num { font-family: var(--font-disp); color: var(--teal); font-size: 1rem; opacity: .9; }
.values h3 { color: #fff; margin: .3rem 0 .35rem; font-size: 1.15rem; }
.values p { color: rgba(255,255,255,.78); font-size: .9rem; margin: 0; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto clamp(2rem,4vw,3rem); text-align: center; }
.section-intro { color: var(--muted); font-size: 1.08rem; }

/* age bands */
.age-bands { margin-top: 1.6rem; }
.age-bands-lead { font-weight: 600; color: var(--navy); margin-bottom: .8rem; }
.age-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.age-list li {
  display: flex; align-items: baseline; gap: .45rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .55rem 1.15rem; box-shadow: var(--shadow-sm);
}
.age-list strong { color: var(--navy); font-size: .98rem; }
.age-list span { color: var(--muted); font-size: .85rem; }

/* services */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-ico {
  width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal-600); border-radius: 14px; margin-bottom: 1rem;
}
.service-ico svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .4rem; }
.service-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* specialist */
.specialist {
  margin-top: 1.6rem; background: var(--navy);
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; border-radius: var(--radius); padding: clamp(1.8rem,4vw,2.6rem);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem 2.5rem; align-items: center;
}
.specialist h3 { color: #fff; }
.specialist-text p { color: rgba(255,255,255,.82); margin: 0; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.tag-list li {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  padding: .5rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
}

/* downloads / resources */
.downloads { margin-top: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.download-item {
  display: flex; gap: 1rem; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm); transition: transform .16s ease, border-color .2s ease;
}
.download-item:hover { transform: translateY(-3px); border-color: var(--teal); }
.dl-ico {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal-600); border-radius: 12px;
}
.dl-ico svg { width: 24px; height: 24px; }
.dl-body { display: flex; flex-direction: column; gap: .25rem; }
.dl-body strong { font-family: var(--font-disp); font-size: 1.15rem; color: var(--navy); font-weight: 600; }
.dl-body > span { color: var(--muted); font-size: .94rem; }
.dl-link { color: var(--teal-600) !important; font-weight: 600; margin-top: .2rem; }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6rem; margin-bottom: 2.4rem; }
.team-card { grid-column: span 2; }                       /* 3 cards per row */
.team-card:nth-child(1) { grid-column: 2 / span 2; }      /* top row: two cards, centred */
.team-card:nth-child(2) { grid-column: 4 / span 2; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; text-align: center; box-shadow: var(--shadow-sm);
}
.team-photo {
  width: 132px; height: 132px; margin: 0 auto 1rem; border-radius: 50%;
  overflow: hidden; box-shadow: var(--shadow-sm); border: 4px solid var(--teal-tint);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-info { min-width: 0; }
.team-card h3 { margin: 0 0 .15rem; }
.team-role { display: block; color: var(--teal-600); font-weight: 600; font-size: .92rem; }

/* quality panel: mayor photo + CQC rating */
.quality-panel {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.tender-photo { margin: 0; }
.tender-photo img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.tender-photo figcaption { font-size: .9rem; color: var(--muted); margin-top: .8rem; line-height: 1.5; }
.quality-rating h3 { margin-top: .2rem; }
.quality-rating p { color: var(--muted); }
.cqc-embed { margin: 1.2rem 0; min-height: 60px; }
.cqc-embed #cqc-container { display: inline-block; }
.cqc-fallback { font-size: .9rem; }

/* about */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about-copy p { color: var(--muted); }
.about-copy strong { color: var(--ink); }
.stats { display: flex; gap: 2rem; flex-wrap: wrap; margin: 1.8rem 0; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-family: var(--font-disp); font-size: 1.6rem; color: var(--teal-600); }
.stats span { font-size: .84rem; color: var(--muted); }
.accreditations { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.accred-label { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--muted); font-weight: 700; margin-bottom: .8rem; }
.accred-logos { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 0; padding: 0; }
.accred-logos li {
  display: flex; align-items: center; gap: .7rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .85rem;
  transition: border-color .2s ease, transform .16s ease;
}
.accred-logos li:hover { border-color: var(--teal); transform: translateY(-2px); }
.accred-mark { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--teal-tint); color: var(--teal-600); }
.accred-mark svg { width: 22px; height: 22px; }
.accred-name { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.accred-name strong { color: var(--navy); font-size: .95rem; }
.accred-name small { color: var(--muted); font-size: .72rem; }

/* sustainability */
.sustainability { background: var(--sand); }
.sustain-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
.sustain-copy p { color: var(--muted); max-width: 50ch; }
.sustain-copy .btn { white-space: normal; text-align: center; max-width: 100%; }
.sustain-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* careers */
.careers-inner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(2rem,4vw,3rem);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center;
}
.careers-copy p { color: var(--muted); margin: 0; }
.careers-cta { border-left: 3px solid var(--teal-tint); padding-left: 1.6rem; }
.careers-cta p { font-weight: 600; color: var(--navy); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.3rem; display: flex; flex-direction: column; gap: .25rem; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, border-color .2s ease;
}
a.contact-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.c-label { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--teal-600); }
.c-value { font-family: var(--font-disp); font-size: 1.25rem; color: var(--navy); }
.c-sub { font-size: .85rem; color: var(--muted); }
.contact-map { display: flex; flex-direction: column; gap: .6rem; }
.contact-map iframe { width: 100%; flex: 1; min-height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); background: var(--bg-alt); }
.map-link { align-self: flex-start; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { height: 72px; width: auto; max-width: 130px; border-radius: 12px; background: #fff; padding: 8px 12px; margin-bottom: 1rem; }
.footer-brand p { max-width: 32ch; font-size: .92rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.78); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { font-size: .92rem; margin-bottom: .6rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.3rem; font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-accred { color: rgba(255,255,255,.55); }

/* ---------- soft section transitions ---------- */
.values, .sustainability, .site-footer { border-top-left-radius: 34px; border-top-right-radius: 34px; }
.values, .sustainability { margin-top: -8px; }
.site-footer { margin-top: -8px; }

/* ---------- floating call button (mobile) ---------- */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 95;
  display: none; align-items: center; gap: .5rem;
  background: var(--navy); color: #fff; padding: .8rem 1.15rem; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(8,42,67,.34); font-weight: 600; font-size: .95rem;
  /* hidden by default; revealed once scrolled past the hero */
  opacity: 0; visibility: hidden; transform: translateY(140%);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.call-fab.show { opacity: 1; visibility: visible; transform: none; }
.call-fab svg { width: 22px; height: 22px; fill: #fff; }
.call-fab.show:active { transform: scale(.97); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal { transition-delay: 0ms !important; }
  .hero::before, .hero::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-copy .lead { max-width: none; }
  .values-list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .specialist, .about-grid, .sustain-grid, .careers-inner, .contact-grid, .quality-panel { grid-template-columns: 1fr; }
  .downloads { grid-template-columns: 1fr; }
  /* keep media a sensible size when sections stack on tablet */
  .hero-media, .sustain-media, .tender-photo { max-width: 540px; margin-left: auto; margin-right: auto; }
  .about-media { max-width: 440px; margin-left: auto; margin-right: auto; }
  .careers-cta { border-left: 0; border-top: 3px solid var(--teal-tint); padding-left: 0; padding-top: 1.4rem; }

  /* tablet nav becomes a menu so it never overflows */
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column;
    gap: 0; padding: .5rem 24px 1.2rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .28s ease; visibility: hidden;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .btn-phone span { display: none; }
  .btn-phone { padding: .65rem .8rem; }
}
@media (max-width: 720px) {
  .call-fab { display: inline-flex; }
}
@media (max-width: 560px) {
  .card-grid, .contact-cards { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
  .accred-logos { grid-template-columns: 1fr; }
  /* equal-width, full-width CTAs when stacked on phones */
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card, .team-card:nth-child(1), .team-card:nth-child(2) { grid-column: auto; }
  /* keep the centered column layout on phones so name + role always stack and align */
  .team-photo { width: 104px; height: 104px; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; text-align: left; }
  .hero-trust { gap: 1.2rem 2rem; }
}
