/* =========================
   Safe Living Care - Styles
   Theme: White + Blue (Logo)
   ========================= */

/* ---- CSS Reset / Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0b2a4a;
  background: #ffffff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 12px; }
ul { margin: 0; padding-left: 18px; }
h1, h2, h3, h4 { margin: 0 0 10px; line-height: 1.2; }
strong { font-weight: 700; }

:root{
  --blue-900:#0b2a4a;
  --blue-800:#103a66;
  --blue-700:#165084;
  --blue-600:#1f6fb2;
  --blue-500:#2a83cf;

  --bg-soft:#f6f9ff;
  --bg-soft-2:#f2f7ff;

  --border: rgba(11,42,74,.14);
  --shadow: 0 14px 30px rgba(11,42,74,.10);
  --shadow-2: 0 10px 22px rgba(11,42,74,.08);
  --radius: 16px;
  --radius-sm: 12px;
}

/* ---- Layout helpers ---- */
.container{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.section{ padding: 56px 0; }
.section-alt{ background: var(--bg-soft); }
.section-head{
  margin-bottom: 22px;
}
.lead{
  color: rgba(11,42,74,.78);
  font-size: 1.05rem;
  max-width: 72ch;
}
.muted{ color: rgba(11,42,74,.62); }
.small{ font-size: .92rem; }
.spacer-lg{ height: 28px; }
.section-spacer{ height: 22px; }
.content-narrow{ max-width: 820px; }
.breadcrumbs, .breadcrumb{
  color: rgba(11,42,74,.55);
  font-size: .92rem;
  margin-bottom: 8px;
}

/* ---- Topbar ---- */
.topbar{
  background: #f5f9ff;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.topbar-left{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar-item{
  color: rgba(11,42,74,.78);
}
.dot{ color: rgba(11,42,74,.35); }
.topbar-right{
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-icon{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: rgba(11,42,74,.75);
  background: #fff;
}
.topbar-icon:hover{
  box-shadow: 0 6px 14px rgba(11,42,74,.10);
  transform: translateY(-1px);
}

/* ---- Header / Nav ---- */
.header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}
.logo{
  width: auto;          /* ✅ locked size: 100px+ like you asked */
  height: 110px;
  max-height: none;
  object-fit: contain;
  border: none;
}
.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name{
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 1.08rem;
}
.brand-tag{
  color: rgba(11,42,74,.64);
  font-weight: 600;
  font-size: .95rem;
}

.nav{
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link{
  font-weight: 700;
  color: rgba(11,42,74,.74);
  padding: 10px 8px;
  border-radius: 10px;
}
.nav-link:hover{
  background: var(--bg-soft);
}
.nav-link.active{
  color: var(--blue-900);
  background: rgba(31,111,178,.10);
}

/* Mobile toggle */
.nav-toggle{
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span{
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(11,42,74,.80);
  margin: 4px 0;
  border-radius: 99px;
}

/* ---- Hero (index) ---- */
.hero{
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
}
.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11,42,74,.82),
    rgba(11,42,74,.45)
  );
}
.hero-inner{
  position: relative;
  z-index: 2;
  padding: 54px 0 74px;
}
.hero-content{
  max-width: 700px;
  color: #fff;
}
.hero-content h1{
  font-size: clamp(2.0rem, 3.4vw, 3.2rem);
  margin-bottom: 10px;
}
.hero-sub{
  font-size: 1.1rem;
  color: rgba(255,255,255,.90);
  max-width: 60ch;
}

/* ---- Buttons ---- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(11,42,74,.12);
}
.btn-primary{
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
}
.btn-outline{
  background: #fff;
  border-color: rgba(31,111,178,.25);
  color: var(--blue-900);
}
.btn-arrow{ font-weight: 900; }

.btn-overlap{
  margin-top: 18px;
  box-shadow: 0 18px 26px rgba(0,0,0,.18);
}

/* ---- Cards / Callouts ---- */
.info-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.info-card,
.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-2);
}
.info-card h3, .card h4 { margin-bottom: 10px; }

.callout{
  background: linear-gradient(180deg, rgba(31,111,178,.10), rgba(31,111,178,.05));
  border: 1px solid rgba(31,111,178,.18);
  border-left: 4px solid rgba(31,111,178,.55);
  border-radius: var(--radius);
  padding: 14px 14px;
  margin: 14px 0;
  color: rgba(11,42,74,.88);
}

/* Tick list (used everywhere) */
.ticklist{
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}
.ticklist li{
  padding-left: 28px;
  margin: 9px 0;
  position: relative;
  color: rgba(11,42,74,.82);
}
.ticklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue-600);
  font-weight: 900;
}

/* ---- Service Boxes (index) ---- */
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.service-box{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(31,111,178,.18);
  background: #fff;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-box:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.service-box-inner{
  padding: 18px;
}
.service-box h3{ margin-bottom: 8px; }
.service-box p{ color: rgba(11,42,74,.72); margin: 0; }

.service-arrow{
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(31,111,178,.22);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
  background: rgba(31,111,178,.06);
}
.service-arrow::before{
  content: "➜";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  font-weight: 900;
  transform: translateX(-1px);
}
.service-box:hover .service-arrow{
  background: rgba(31,111,178,.12);
}
.service-box:hover .service-arrow::before{
  animation: nudgeArrow .65s ease-in-out infinite;
}
@keyframes nudgeArrow{
  0%,100% { transform: translateX(-1px); }
  50% { transform: translateX(3px); }
}

/* ---- CTA band ---- */
.cta-band{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, rgba(11,42,74,.06), rgba(31,111,178,.10));
  border: 1px solid rgba(31,111,178,.18);
  border-radius: var(--radius);
  padding: 18px;
}
.cta-text p{ color: rgba(11,42,74,.74); margin: 6px 0 0; }
.cta-actions{ display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Page hero (inner pages) ---- */
.page-hero{
  padding: 34px 0 20px;
  background: var(--bg-soft-2);
  border-bottom: 1px solid var(--border);
}
.page-hero h1{ font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.page-sub{
  color: rgba(11,42,74,.74);
  max-width: 80ch;
}

/* ---- Services page layout ---- */
.service-detail{
  display: grid;
  grid-template-columns: 1.65fr .95fr;
  gap: 18px;
  align-items: start;
}
.service-panel{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-2);
}
.service-panel h2{
  margin-top: 6px;
}
.anchor-offset{
  scroll-margin-top: 100px;
}
.service-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.pill{
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(31,111,178,.10);
  border: 1px solid rgba(31,111,178,.16);
  color: rgba(11,42,74,.78);
  font-weight: 700;
  font-size: .92rem;
}
.service-figure{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(31,111,178,.18);
  box-shadow: var(--shadow-2);
  margin: 12px 0 14px;
  background: #fff;
}
.service-figure img{
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.figure-caption{
  padding: 12px 14px;
  color: rgba(11,42,74,.78);
  background: #fff;
}
.service-aside .card{
  position: sticky;
  top: 98px;
}
.aside-links{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.aside-links a{
  padding: 10px 12px;
  border: 1px solid rgba(31,111,178,.16);
  border-radius: 12px;
  background: rgba(31,111,178,.06);
  color: rgba(11,42,74,.82);
  font-weight: 800;
}
.aside-links a:hover{
  background: rgba(31,111,178,.10);
}

/* ---- About page content grid ---- */
.content-grid{
  display: grid;
  grid-template-columns: 1.55fr .95fr;
  gap: 18px;
  align-items: start;
}
.aside-list{
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}
.aside-list li{
  padding: 10px 0;
  border-bottom: 1px solid rgba(11,42,74,.10);
  color: rgba(11,42,74,.78);
}
.aside-list li:last-child{ border-bottom: none; }

/* ---- Recruitment / Tabs (supports BOTH tab systems) ---- */
.tabs{ margin-top: 18px; }

.tablist{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tabbtn, .tab-btn{
  border: 1px solid rgba(31,111,178,.22);
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  color: rgba(11,42,74,.72);
  cursor: pointer;
}
.tabbtn:hover, .tab-btn:hover{
  background: rgba(31,111,178,.06);
}
.tabbtn.active, .tab-btn.active{
  background: rgba(31,111,178,.12);
  color: var(--blue-900);
  border-color: rgba(31,111,178,.28);
}

.tabpanel, .tab-panel{
  display: none;
}
.tabpanel.active, .tab-panel.active{
  display: block;
}

.jobs-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.job-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-2);
}
.job-head h3{ margin-bottom: 8px; }
.job-list{
  margin-top: 10px;
  color: rgba(11,42,74,.80);
}
.job-actions{ margin-top: 14px; }

/* ---- Forms ---- */
.form{ margin-top: 12px; }
.field, .form-row{
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
label{
  font-weight: 800;
  color: rgba(11,42,74,.80);
}
input, select, textarea{
  border: 1px solid rgba(11,42,74,.18);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  outline: none;
  background: #fff;
}
textarea{ resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus{
  border-color: rgba(31,111,178,.55);
  box-shadow: 0 0 0 4px rgba(31,111,178,.12);
}
.form-check{
  display: flex;
  gap: 10px;
  align-items: start;
}
.form-check input{
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.btn-row, .mini-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Contact page layout ---- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.contact-card .contact-list{
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.contact-item{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(31,111,178,.16);
  background: rgba(31,111,178,.05);
}
.contact-label{ font-weight: 900; color: rgba(11,42,74,.70); }
.contact-value a{ font-weight: 900; color: var(--blue-800); }
.contact-note{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(11,42,74,.04);
  border: 1px solid rgba(11,42,74,.10);
}

/* ---- Footer ---- */
.footer{
  background: #081f37;
  color: rgba(255,255,255,.86);
  margin-top: 38px;
}
.footer-inner{
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 18px;
  padding: 34px 0;
}
.footer a{ color: rgba(255,255,255,.88); }
.footer a:hover{ text-decoration: underline; }
.footer-col h4{
  color: #fff;
  margin-bottom: 10px;
}
.footer-brand{
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-logo{
  width: auto;
  max-height: 110px;
}
.footer-name{
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 14px 0 18px;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
}

/* ---- Responsive ---- */
@media (max-width: 980px){
  .info-cards{ grid-template-columns: 1fr; }
  .service-grid{ grid-template-columns: 1fr; }
  .cta-band{ flex-direction: column; align-items: flex-start; }
  .service-detail{ grid-template-columns: 1fr; }
  .content-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .jobs-grid{ grid-template-columns: 1fr; }
  .service-figure img{ height: 280px; }
  .footer-inner{ grid-template-columns: 1fr; }
}

@media (max-width: 860px){
  .nav-toggle{ display: inline-flex; }
  .nav{
    position: absolute;
    right: 16px;
    top: 74px;
    width: min(320px, calc(100% - 32px));
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav.open{ display: flex; }
  .nav-link{ padding: 12px 12px; }
  .brand{ min-width: auto; }
  .logo{ width: 110px; }
}

@media (max-width: 520px){
  .logo{ width: 104px; }
  .contact-item{ grid-template-columns: 1fr; }
}