/* =============================================
   CareRecruit Solutions — Main Stylesheet
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:     #1a5276;
  --primary-dark:#154360;
  --secondary:   #1abc9c;
  --secondary-dark:#17a589;
  --accent:      #e67e22;
  --light:       #f4f8fb;
  --white:       #ffffff;
  --text:        #2c3e50;
  --text-light:  #5d6d7e;
  --border:      #dce6f0;
  --shadow:      0 4px 20px rgba(0,0,0,.08);
  --radius:      8px;
  --transition:  .3s ease;
  --max-width:   1140px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--light); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.05rem;
}
.divider {
  width: 56px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,188,156,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.brand-logo-image {
  width: 185px;
  height: 58px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: left center;
}
table { width:100%; border-collapse:collapse; margin-top:16px; } th, td { text-align:left; padding:10px; border-bottom:1px solid var(--border); font-size:.9rem; }
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-name span:first-child {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
}
.brand-name span:last-child {
  font-size: .75rem;
  color: var(--text-light);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  color: var(--text);
  font-size: .92rem;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: var(--light);
}
.nav-links .nav-cta {
  background: var(--primary);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 6px;
}
.nav-links .nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2471a3 60%, #1a8a76 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(255,255,255,.9);
}
.hero-badge::before { content: '✦'; color: var(--secondary); }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--secondary); }
.hero p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.hero-stat {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--secondary); }
.hero-stat span { font-size: .85rem; opacity: .85; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image { width: 100%; max-width: 520px; height: auto; object-fit: contain; border-radius: 16px; box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.image-feature { max-width: var(--max-width); height: 300px; margin: 48px auto 0; padding: 0 20px; }
.image-feature img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); }
.image-feature-services { height: 430px; }
.image-feature-services img { object-position: center 30%; }
.image-feature-careers { width: min(100% - 40px, 680px); max-width: none; height: auto; padding: 0; margin-top: 36px; }
.image-feature-careers img { height: auto; object-fit: contain; }
.hero-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 360px;
}
.hero-card h3 { font-size: 1.1rem; margin-bottom: 18px; opacity: .9; }
.hero-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hero-card-item:last-child { border-bottom: none; }
.hci-icon {
  width: 38px;
  height: 38px;
  background: rgba(26,188,156,.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.hci-text strong { display: block; font-size: .9rem; }
.hci-text span { font-size: .78rem; opacity: .75; }

/* ---------- Values Strip ---------- */
.values-strip {
  background: var(--primary);
  color: var(--white);
  padding: 48px 0;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
.value-item { padding: 16px 8px; }
.value-icon { font-size: 1.8rem; margin-bottom: 10px; }
.value-item strong { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 4px; }
.value-item p { font-size: .8rem; opacity: .75; }

/* ---------- Services Cards ---------- */
.services-grid { /* home: 2x2 */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.service-card p { color: var(--text-light); font-size: .95rem; margin-bottom: 20px; }
.service-card .learn-more {
  font-weight: 600;
  font-size: .9rem;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .learn-more::after { content: '→'; transition: transform var(--transition); }
.service-card:hover .learn-more::after { transform: translateX(4px); }

/* ---------- Why Choose Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-list { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.why-item h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.why-item p { font-size: .9rem; color: var(--text-light); }
.why-visual {
  background: linear-gradient(135deg, var(--primary) 0%, #2471a3 100%);
  border-radius: 16px;
  padding: 48px 36px;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.why-visual::after {
  content: '+';
  position: absolute;
  font-size: 16rem;
  font-weight: 900;
  color: rgba(255,255,255,.04);
  top: -40px;
  right: -20px;
  line-height: 1;
}
.why-visual-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.why-visual h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.why-visual p { opacity: .85; font-size: .95rem; position: relative; z-index: 1; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #148f77 100%);
  padding: 72px 0;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.cta-banner p { font-size: 1.05rem; opacity: .9; max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.stars { color: #f1c40f; font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-card p {
  color: var(--text-light);
  font-size: .95rem;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.cqc-card { max-width: 920px; margin: 0 auto; padding: 32px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); text-align: center; }
.cqc-overall { display: flex; flex-direction: column; gap: 4px; margin-bottom: 28px; }
.cqc-overall span, .cqc-overall small { color: var(--text-light); }
.cqc-overall strong { color: var(--primary); font-size: 2.2rem; line-height: 1.1; }
.cqc-ratings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 28px; }
.cqc-ratings div { padding: 16px 8px; border-radius: 8px; background: var(--light); border: 1px solid var(--border); }
.cqc-ratings strong, .cqc-ratings span { display: block; }
.cqc-ratings strong { color: var(--secondary-dark); font-size: 1.05rem; }
.cqc-ratings span { font-size: .85rem; color: var(--text-light); }
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.author-info strong { display: block; font-size: .9rem; color: var(--primary); }
.author-info span { font-size: .8rem; color: var(--text-light); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2471a3 100%);
  color: var(--white);
  padding: 72px 0 56px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { font-size: 1.05rem; opacity: .9; max-width: 560px; margin: 0 auto; }

/* ---------- Services Page ---------- */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* services page: 2x2 */
  gap: 28px;
}
.service-full-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.service-full-card:hover { transform: translateY(-4px); }
.sfc-header {
  background: linear-gradient(135deg, var(--primary), #2471a3);
  color: var(--white);
  padding: 32px 28px;
}
.sfc-header .sfc-icon { font-size: 2.2rem; margin-bottom: 12px; }
.sfc-header h3 { font-size: 1.2rem; font-weight: 700; }
.sfc-body { padding: 28px; }
.sfc-body p { color: var(--text-light); margin-bottom: 20px; font-size: .95rem; }
.sfc-features { display: flex; flex-direction: column; gap: 10px; }
.sfc-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text);
}
.sfc-feature::before { content: '✓'; color: var(--secondary); font-weight: 700; flex-shrink: 0; }

/* ---------- About Page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); color: var(--primary); font-weight: 700; margin-bottom: 16px; }
.about-text p { color: var(--text-light); margin-bottom: 16px; font-size: .98rem; }
.about-visual {
  background: linear-gradient(135deg, var(--primary) 0%, #2471a3 100%);
  border-radius: 16px;
  padding: 40px 32px;
  color: var(--white);
}
.about-image { width: 100%; height: 210px; object-fit: cover; border-radius: 10px; margin-bottom: 26px; }
.about-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.av-item {
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.av-item .av-icon { font-size: 1.5rem; margin-bottom: 8px; }
.av-item strong { display: block; font-size: .85rem; font-weight: 700; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-3px); }
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 auto 14px;
}
.team-card h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.team-card span { font-size: .85rem; color: var(--text-light); }

/* ---------- Work With Us ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.process-step h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.process-step p { font-size: .88rem; color: var(--text-light); }
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.roles-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }
.vacancies-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 840px; margin: 0 auto; }
.vacancy-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); }
.vacancy-card h3 { color: var(--primary); font-size: 1.3rem; margin: 18px 0 10px; }
.vacancy-card p { color: var(--text-light); margin-bottom: 18px; }
.vacancy-card ul { margin: 0 0 24px; display: grid; gap: 8px; }
.vacancy-card li { color: var(--text); font-size: .92rem; }
.vacancy-card li::before { content: '✓'; color: var(--secondary-dark); font-weight: 700; margin-right: 9px; }
.vacancy-status { display: inline-block; padding: 5px 10px; border-radius: 999px; color: #0e6655; background: #e8f8f5; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.vacancies-note { text-align: center; color: var(--text-light); margin-top: 28px; font-size: .92rem; }
.vacancy-meta, .vacancy-closing { font-size: .88rem; color: var(--text-light); }
.vacancies-empty { max-width: 650px; margin: 0 auto; padding: 40px; text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: 12px; }
.vacancies-empty h3 { color: var(--primary); margin-bottom: 10px; }
.vacancies-empty p { color: var(--text-light); margin-bottom: 24px; }
.role-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
}
.role-card:hover { border-color: var(--secondary); box-shadow: 0 4px 16px rgba(26,188,156,.15); }
.role-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.role-card h4 { font-size: .95rem; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.role-card p { font-size: .83rem; color: var(--text-light); }

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.contact-info-card {
  background: var(--primary);
  border-radius: 12px;
  padding: 36px 28px;
  color: var(--white);
  position: sticky;
  top: 90px;
}
.contact-info-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.contact-info-card > p { opacity: .85; font-size: .9rem; margin-bottom: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 2px; }
.contact-item a { color: rgba(255,255,255,.85); font-size: .9rem; }
.contact-item a:hover { color: var(--secondary); }
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}
.contact-form-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.contact-form-card > p { color: var(--text-light); font-size: .92rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group label .req { color: var(--accent); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--light);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,82,118,.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-status {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .92rem;
  font-weight: 500;
  display: none;
}
.form-status.success { background: #e8f8f5; border: 1px solid #1abc9c; color: #0e6655; display: block; }
.form-status.error { background: #fdedec; border: 1px solid #e74c3c; color: #922b21; display: block; }

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { max-width: 280px; }
.footer-brand .brand-logo-image { border-radius: 10px; }
.footer-brand .brand-name span:first-child { color: var(--white); font-size: 1.1rem; }
.footer-brand .brand-name span:last-child { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: .9rem; margin-top: 16px; opacity: .75; line-height: 1.6; }
.footer-col h4 {
  color: var(--white);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--secondary); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .88rem;
}
.footer-contact-item .fci-icon { opacity: .6; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  opacity: .65;
}

/* ---------- Alert / Flash ---------- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: .93rem;
}
.alert-success { background: #e8f8f5; border: 1px solid var(--secondary); color: #0e6655; }
.alert-error { background: #fdedec; border: 1px solid #e74c3c; color: #922b21; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 20px 24px; box-shadow: 0 8px 24px rgba(0,0,0,.1); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .image-feature { height: 220px; margin: 32px auto 0; }
  .image-feature-services { height: 320px; }
  .image-feature-careers { height: auto; }
  .hero { padding: 72px 0 60px; }
  .services-grid, .services-full-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .roles-grid { grid-template-columns: 1fr; }
  .roles-grid-two { grid-template-columns: 1fr; }
  .vacancies-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cqc-ratings { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .services-full-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Vacancy admin ---------- */
.btn-sm { padding: 8px 18px; font-size: .88rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-close-advert { background: var(--primary); color: var(--white); border-color: var(--primary); white-space: nowrap; }
.btn-close-advert:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.admin .container { max-width: 900px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.admin-topbar h1 { color: var(--primary); font-size: 1.9rem; margin-bottom: 4px; }
.admin-summary { color: var(--text-light); }
.admin-summary strong { color: var(--text); }
.admin-signout { font-size: .9rem; white-space: nowrap; }
.admin-flash { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.admin-link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; }
.admin-expired-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 24px; border-radius: var(--radius); background: #fef5e7; border: 1px solid var(--accent); color: #7e4a12; font-size: .92rem; }
.admin-section-title { font-size: 1.25rem; color: var(--primary); margin: 32px 0 12px; }
.admin-bulkbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: var(--light); border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; font-size: .9rem; }
.admin-bulkbar label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.admin-bulkbar + .admin-adverts { border-top-left-radius: 0; border-top-right-radius: 0; }
.admin-adverts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--white); overflow: hidden; }
.admin-advert { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-top: 1px solid var(--border); }
.admin-advert:first-child { border-top: 0; }
.admin-advert.is-expired { background: #fffaf3; }
.admin-select { width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.admin-advert-body { flex: 1; min-width: 0; }
.admin-advert-body h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 2px; }
.admin-advert-meta { font-size: .85rem; color: var(--text-light); margin-bottom: 6px; }
.admin-advert-actions { display: flex; align-items: center; gap: 16px; }
.admin-adverts-closed .admin-advert-body h3 { color: var(--text-light); }
.admin-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.admin-badge-live { background: #e8f8f5; color: #0e6655; }
.admin-badge-soon { background: #fef5e7; color: #9c5a14; }
.admin-badge-expired { background: #fdedec; color: #922b21; }
.admin-badge-closed { background: #eef1f4; color: var(--text-light); }
.admin-delete { color: #c0392b; font-weight: 600; font-size: .88rem; }
.admin-empty { padding: 20px; text-align: center; color: var(--text-light); background: var(--light); border-radius: 12px; }
.admin-add { margin-top: 32px; padding: 0; }
.admin-add summary { padding: 18px 24px; font-weight: 700; color: var(--primary); cursor: pointer; }
.admin-add[open] summary { border-bottom: 1px solid var(--border); }
.admin-add form { padding: 24px; }
.admin-add label small { font-weight: 400; color: var(--text-light); }
@media (max-width: 600px) {
  .admin-advert { flex-wrap: wrap; }
  .admin-advert-body { flex-basis: calc(100% - 40px); }
  .admin-advert > .btn-close-advert, .admin-advert-actions { margin-left: auto; }
  .admin-expired-banner, .admin-flash { flex-direction: column; align-items: flex-start; }
}
.services-cta { text-align: center; margin-top: 48px; }
.services-cta p { color: var(--text-light); margin-bottom: 16px; }
.contact-direct { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.contact-direct-item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); color: var(--text); transition: border-color var(--transition); min-width: 0; }
.contact-direct-item:hover { border-color: var(--secondary); }
.contact-direct-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: #e8f8f5; color: var(--secondary-dark); font-size: 1.3rem; }
.contact-direct-item small { display: block; color: var(--text-light); font-size: .8rem; }
.contact-direct-item strong { display: block; color: var(--primary); font-size: 1rem; overflow-wrap: anywhere; }
@media (max-width: 600px) { .contact-direct { grid-template-columns: 1fr; } }
/* <picture> wrappers from picture(): let the inner <img> size against the container */
.image-feature picture, .hero-visual picture, .about-visual picture { display: block; height: 100%; }
.about-visual picture { height: auto; }
