/* ==========================================================================
   Care 4 All Ltd — site styles
   Clean static rebuild (no WordPress). Edit colours in :root below.
   ========================================================================== */

:root {
  --teal:       #1a9aa8;   /* primary brand */
  --teal-dark:  #15808c;
  --warm:       #e0a458;   /* warm accent (from old #eab770) */
  --warm-dark:  #cf9143;
  --ink:        #2c3e46;   /* headings / dark text */
  --body:       #5a6b72;   /* body text */
  --muted:      #8a979d;
  --line:       #e4e9eb;
  --bg-tint:    #f4f8f9;   /* light section background */
  --white:      #ffffff;
  --maxw:       1170px;
  --radius:     8px;
  --shadow:     0 6px 24px rgba(0,0,0,.08);
}

/* ---- reset-ish ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", "Lato", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { color: var(--ink); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1.1em; }
a  { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section--tint { background: var(--bg-tint); }
.text-center { text-align: center; }
.lead { font-size: 1.1rem; }

/* ---- the signature 4-colour line ---- */
.colored-line { display: flex; height: 4px; }
.colored-line i { flex: 1; }
.colored-line i:nth-child(1){ background: var(--teal); }
.colored-line i:nth-child(2){ background: var(--warm); }
.colored-line i:nth-child(3){ background: #7ab648; }
.colored-line i:nth-child(4){ background: #3f7fb5; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
  cursor: pointer;
  transition: all .2s;
}
.btn:hover { background: var(--teal); color: #fff; }
.btn--solid { background: var(--warm); border-color: var(--warm); color: #fff; }
.btn--solid:hover { background: var(--warm-dark); border-color: var(--warm-dark); color: #fff; }
.btn + .btn { margin-left: 10px; }

/* section heading helper */
.heading { margin-bottom: 40px; }
.heading h2 { margin-bottom: .15em; }
.heading .sub { color: var(--warm); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar { background: var(--ink); color: #cfd8db; font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #cfd8db; }
.topbar a:hover { color: #fff; }
.topbar [class^="icon-"], .topbar [class*=" icon-"] { color: var(--warm); margin-right: 6px; }

.masthead { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand .brand-text { font-weight: 700; color: var(--ink); font-size: 1.25rem; letter-spacing: .3px; line-height: 1.1; }
.brand .brand-text span { display: block; font-size: .7rem; color: var(--warm); letter-spacing: 2px; text-transform: uppercase; }

/* nav */
.mainnav ul { display: flex; align-items: center; gap: 4px; }
.mainnav a { display: block; padding: 12px 14px; color: var(--ink); font-weight: 700; font-size: .95rem; border-radius: 6px; }
.mainnav a:hover, .mainnav .current > a { color: var(--teal); }
.mainnav li { position: relative; }
.mainnav .has-sub > a::after { content: "\25be"; margin-left: 6px; font-size: .8em; color: var(--muted); }
.mainnav .sub {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; box-shadow: var(--shadow); border-radius: var(--radius);
  padding: 8px; display: none; flex-direction: column;
}
.mainnav .sub a { padding: 10px 14px; font-weight: 400; }
.mainnav .sub a:hover { background: var(--bg-tint); }
.mainnav li:hover > .sub { display: flex; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* ==========================================================================
   HERO / WELCOME
   ========================================================================== */
.welcome { padding: 70px 0; }
.welcome .grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; }
.welcome h1 { display: flex; align-items: center; gap: 12px; }
.welcome h1 [class^="icon-"] { color: var(--teal); font-size: 1.6rem; }
.welcome .tagline { color: var(--warm); font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; }
.welcome .cqc { max-width: 190px; margin-top: 10px; border-radius: 6px; }

/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ic {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--bg-tint); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.card:hover .ic { background: var(--teal); color: #fff; }
.card h3 { margin-bottom: .4em; }
.card p { font-size: .95rem; }

/* ==========================================================================
   TESTIMONIALS (parallax-ish background)
   ========================================================================== */
.testimonials {
  position: relative; color: #fff; text-align: center;
  background: linear-gradient(rgba(26,154,168,.85), rgba(21,128,140,.9)),
              var(--testi-bg, none) center/cover fixed no-repeat;
  padding: 80px 0;
}
.testimonials h2 { color: #fff; }
.testi-slider { max-width: 780px; margin: 0 auto; position: relative; min-height: 130px; }
.testi { display: none; }
.testi.is-active { display: block; animation: fade .5s ease; }
.testi p { font-size: 1.35rem; font-style: italic; margin-bottom: .6em; }
.testi .who { font-weight: 700; color: #ffe6c7; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.testi-dots { margin-top: 22px; display: flex; gap: 10px; justify-content: center; }
.testi-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.testi-dots button.is-active { background: #fff; }

/* ==========================================================================
   SERVICE AREAS — task lists
   ========================================================================== */
.tasklists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 40px; }
.tasklist li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px dashed var(--line); }
.tasklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff;
  font-size: .7rem; line-height: 20px; text-align: center; font-weight: 700;
}

/* ==========================================================================
   FORMS (consultation / contact / referral)
   ========================================================================== */
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field textarea { min-height: 130px; resize: vertical; }
.field--check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; }
.field--check input { width: auto; margin-top: 4px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.form-error { font-size: .85rem; color: #c0392b; margin-top: 10px; }
.form-stage--done { text-align: center; padding: 12px 0; }
.form-done-icon { font-size: 3rem; color: var(--teal); margin-bottom: 8px; }
.form-stage--done h2 { margin-bottom: 8px; }
.form-stage--done p { margin-bottom: 18px; }

/* split layout used on home (news + consultation) and contact page */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: #b9c4c8; }
.footer-main { padding: 40px 0; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.footer-main address { font-style: normal; line-height: 1.8; }
.footer-main a { color: #fff; }
.footer-map iframe { width: 100%; height: 300px; border: 0; display: block; }
.copyright { background: #243339; padding: 16px 0; font-size: .85rem; }
.copyright .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #3a4a51;
  display: flex; align-items: center; justify-content: center; color: #b9c4c8;
}
.socials a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* page banner for inner pages */
.page-banner { background: var(--teal); color: #fff; padding: 50px 0; }
.page-banner h1 { color: #fff; margin: 0; }
.breadcrumb { font-size: .85rem; color: #d4eef1; margin-top: 6px; }
.breadcrumb a { color: #fff; }

/* scroll-to-top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
  background: var(--teal); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--teal-dark); color: #fff; }

/* prose for content pages */
.prose h2 { margin-top: 1.4em; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li { padding: 6px 0 6px 28px; position: relative; }
.prose ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .welcome .grid, .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .tasklists { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.45rem; }
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); padding: 8px; }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .mainnav .sub { position: static; display: flex; box-shadow: none; padding-left: 14px; }
  .mainnav li:hover > .sub { display: flex; }
  .masthead .wrap { position: relative; }
  .cards, .tasklists, .form-row { grid-template-columns: 1fr; }
  .btn + .btn { margin-left: 0; margin-top: 10px; }
}
