/* ============================================================
   Shalom Supported Living & Independent Care
   Main Stylesheet — PHP Version
   Colours: Teal #0D6E6E | Slate #1A2E35 | Amber #E8A020
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Nunito+Sans:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #0D6E6E;
  --teal-light: #7dd3cc;
  --slate: #1A2E35;
  --amber: #E8A020;
  --amber-dark: #d4911a;
  --bg: #F8FAFB;
  --white: #ffffff;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --radius: 1rem;
}

html { scroll-behavior: smooth; }
body { font-family: 'Nunito Sans', sans-serif; background: var(--bg); color: var(--slate); line-height: 1.6; overflow-x: hidden; }

h1,h2,h3,h4 { font-family: 'Lora', serif; line-height: 1.2; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--slate);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.navbar-logo img { height: 48px; width: auto; background: white; border-radius: 8px; padding: 4px 8px; }
.navbar-links { display: flex; align-items: center; gap: 1.5rem; }
.navbar-links a { color: var(--gray-300); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.2s; }
.navbar-links a:hover { color: white; }
.navbar-links a.careers-link { color: var(--amber); }
.navbar-links a.careers-link:hover { color: #f5b84a; }
.navbar-cta { display: flex; align-items: center; gap: 0.5rem; background: var(--amber); color: white; text-decoration: none; padding: 0.5rem 1.25rem; border-radius: 999px; font-size: 0.875rem; font-weight: 700; transition: background 0.2s; }
.navbar-cta:hover { background: var(--amber-dark); }
.mobile-toggle { display: none; background: none; border: none; color: white; cursor: pointer; padding: 0.5rem; }
.mobile-menu { display: none; background: var(--slate); border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; color: var(--gray-300); text-decoration: none; padding: 0.875rem 1.5rem; font-size: 0.9rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.05); transition: color 0.2s, background 0.2s; }
.mobile-menu a:hover { color: white; background: rgba(255,255,255,0.05); }
.mobile-menu a.careers-link { color: var(--amber); }
.mobile-menu .mobile-cta { background: var(--amber); color: white; text-align: center; border-radius: 8px; margin: 1rem 1.5rem; padding: 0.875rem; font-weight: 700; }

@media (max-width: 1024px) { .navbar-links { display: none; } .mobile-toggle { display: block; } }
@media (min-width: 1025px) { .navbar-cta { display: flex; } }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(26,46,53,0.92) 0%, rgba(13,110,110,0.75) 100%),
              url('https://d2xsxph8kpxj0f.cloudfront.net/310519663645394400/7FMgYa7s924ZECHQtB2J5x/hero-care-GKGdLGqkfcJGNMqfmvJPaD.jpg') center/cover no-repeat;
  padding: 8rem 0 5rem;
}
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-badge span { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; display: inline-block; }
.hero h1 { color: white; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; margin-bottom: 1.5rem; max-width: 700px; }
.hero h1 em { color: var(--teal-light); font-style: normal; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.125rem; max-width: 560px; margin-bottom: 2rem; line-height: 1.7; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 2.5rem; }
.hero-highlight { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.9); font-size: 0.875rem; }
.hero-highlight::before { content: '✓'; color: var(--teal-light); font-weight: 700; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.btn-primary { background: var(--amber); color: white; padding: 0.875rem 2rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.4); padding: 0.875rem 2rem; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: all 0.2s; }
.btn-outline:hover { border-color: white; background: rgba(255,255,255,0.1); }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 2rem; }
.hero-stat .num { font-family: 'Lora', serif; font-size: 2rem; font-weight: 700; color: white; }
.hero-stat .label { font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── SECTION COMMON ── */
.section { padding: 5rem 0; }
.section-label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.section-label span { color: var(--amber); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.section-label::before, .section-label::after { content: ''; width: 40px; height: 3px; background: var(--amber); border-radius: 999px; }
.section-label.left::after { display: none; }
.section-label.center { justify-content: center; }
.section-title { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; color: var(--slate); margin-bottom: 0.75rem; }
.section-subtitle { color: var(--gray-500); font-size: 1rem; max-width: 600px; line-height: 1.7; }

/* ── ABOUT ── */
.about { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius); }
.about-badge { position: absolute; bottom: 1.5rem; left: 1.5rem; background: var(--teal); color: white; padding: 1rem 1.5rem; border-radius: var(--radius); }
.about-badge .num { font-family: 'Lora', serif; font-size: 1.75rem; font-weight: 700; }
.about-badge .label { font-size: 0.75rem; opacity: 0.85; }
.about-content p { color: var(--gray-600); line-height: 1.8; margin-bottom: 1.25rem; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.about-value { background: var(--bg); padding: 1rem; border-radius: 0.75rem; border-left: 3px solid var(--teal); }
.about-value h4 { font-size: 0.875rem; font-weight: 700; color: var(--slate); margin-bottom: 0.25rem; }
.about-value p { font-size: 0.8rem; color: var(--gray-500); margin: 0; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ── SERVICES ── */
.services { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.service-card { background: white; border-radius: var(--radius); padding: 2rem; border: 1px solid rgba(0,0,0,0.06); transition: all 0.3s; position: relative; overflow: hidden; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(13,110,110,0.12); border-color: var(--teal); }
.service-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--teal), #0a5858); border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.5rem; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--slate); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 1rem; }
.service-features { list-style: none; }
.service-features li { font-size: 0.8rem; color: var(--gray-600); padding: 0.25rem 0; display: flex; align-items: center; gap: 0.5rem; }
.service-features li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

/* Funding banner */
.funding-banner { background: linear-gradient(135deg, var(--slate) 0%, #0a3d47 100%); border-radius: var(--radius); padding: 2.5rem; }
.funding-banner h3 { font-family: 'Lora', serif; color: white; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.funding-banner p { color: rgba(255,255,255,0.75); margin-bottom: 2rem; font-size: 0.9rem; }
.funding-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.funding-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 0.75rem; padding: 1.25rem; }
.funding-card .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.funding-card h4 { color: var(--teal-light); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; }
.funding-card p { color: rgba(255,255,255,0.65); font-size: 0.8rem; line-height: 1.6; }

/* ── WHY US ── */
.why-us { background: white; }
.why-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why-us-img { position: relative; border-radius: var(--radius); overflow: hidden; }
.why-us-img img { width: 100%; height: 500px; object-fit: cover; border-radius: var(--radius); }
.why-us-overlay { position: absolute; bottom: 1.5rem; right: 1.5rem; background: var(--amber); color: white; padding: 1rem 1.5rem; border-radius: var(--radius); text-align: center; }
.why-us-overlay .num { font-family: 'Lora', serif; font-size: 1.75rem; font-weight: 700; }
.why-us-overlay .label { font-size: 0.75rem; opacity: 0.9; }
.why-features { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.why-feature { display: flex; gap: 1rem; align-items: flex-start; }
.why-feature-icon { width: 44px; height: 44px; background: rgba(13,110,110,0.1); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.why-feature h4 { font-size: 0.95rem; font-weight: 700; color: var(--slate); margin-bottom: 0.25rem; }
.why-feature p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }
@media (max-width: 768px) { .why-us-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ── CARE IN ACTION ── */
.care-in-action { background: var(--slate); padding: 5rem 0; position: relative; overflow: hidden; }
.care-slider { position: relative; border-radius: var(--radius); overflow: hidden; max-width: 900px; margin: 0 auto; }
.care-slide { display: none; position: relative; }
.care-slide.active { display: block; }
.care-slide img { width: 100%; height: 500px; object-fit: cover; border-radius: var(--radius); }
.care-slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(26,46,53,0.9)); padding: 2rem; border-radius: 0 0 var(--radius) var(--radius); }
.care-slide-caption h3 { color: white; font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.care-slide-caption p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.care-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.care-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; border: none; transition: all 0.3s; }
.care-dot.active { background: var(--amber); transform: scale(1.3); }

/* ── TESTIMONIALS ── */
.testimonials { background: var(--bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: white; border-radius: var(--radius); padding: 2rem; border: 1px solid rgba(0,0,0,0.06); }
.testimonial-stars { color: var(--amber); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card blockquote { font-size: 0.9rem; color: var(--gray-600); line-height: 1.75; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), #0a5858); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.testimonial-author h4 { font-size: 0.875rem; font-weight: 700; color: var(--slate); }
.testimonial-author p { font-size: 0.75rem; color: var(--gray-500); }

/* ── CONTACT ── */
.contact { background: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-card { background: var(--bg); border-radius: var(--radius); padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon { width: 44px; height: 44px; background: rgba(13,110,110,0.1); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.contact-info-card h4 { font-size: 0.875rem; font-weight: 700; color: var(--slate); margin-bottom: 0.25rem; }
.contact-info-card p, .contact-info-card a { font-size: 0.875rem; color: var(--gray-500); text-decoration: none; }
.contact-info-card a:hover { color: var(--teal); }
.contact-form { background: var(--bg); border-radius: var(--radius); padding: 2.5rem; }
.contact-form h3 { font-size: 1.3rem; font-weight: 700; color: var(--slate); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--slate); margin-bottom: 0.5rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border: 1px solid #e5e7eb; border-radius: 0.75rem;
  font-size: 0.875rem; font-family: 'Nunito Sans', sans-serif; background: white;
  transition: all 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,110,110,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group.error input, .form-group.error select, .form-group.error textarea { border-color: #ef4444; }
.form-error { color: #ef4444; font-size: 0.75rem; margin-top: 0.25rem; }
.btn-submit { width: 100%; background: var(--teal); color: white; border: none; padding: 1rem; border-radius: 999px; font-size: 1rem; font-weight: 700; font-family: 'Nunito Sans', sans-serif; cursor: pointer; transition: all 0.2s; }
.btn-submit:hover { background: #0a5858; transform: translateY(-1px); }
.alert { padding: 1rem 1.25rem; border-radius: 0.75rem; margin-bottom: 1rem; font-size: 0.875rem; }
.alert-success { background: rgba(13,110,110,0.1); border: 1px solid rgba(13,110,110,0.3); color: var(--teal); }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #dc2626; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } .form-row { grid-template-columns: 1fr; } }

/* ── FOOTER ── */
.footer { background: var(--slate); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img { height: 48px; background: white; border-radius: 8px; padding: 4px 8px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.footer-contact-item a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-contact-item a:hover { color: var(--teal-light); }
.footer-col h4 { color: white; font-size: 0.875rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--teal-light); }
.footer-reg { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; padding: 0.75rem 1.25rem; display: inline-flex; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.footer-reg .reg-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; }
.footer-reg span { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── CAREERS PAGE ── */
.careers-hero { background: var(--slate); padding: 8rem 0 5rem; position: relative; overflow: hidden; }
.careers-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: var(--bg); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.careers-hero h1 { color: white; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; margin-bottom: 1rem; }
.careers-hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 580px; line-height: 1.7; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--teal-light); text-decoration: none; font-size: 0.875rem; margin-bottom: 1.5rem; transition: color 0.2s; }
.back-link:hover { color: white; }
.roles-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.role-card { background: white; border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.role-card:hover { box-shadow: 0 8px 30px rgba(13,110,110,0.1); border-color: var(--teal); }
.role-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 2rem; cursor: pointer; }
.role-header-left { display: flex; align-items: center; gap: 1rem; }
.role-icon { width: 48px; height: 48px; background: rgba(13,110,110,0.1); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.role-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--slate); margin-bottom: 0.25rem; }
.role-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.role-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: var(--gray-500); }
.role-salary { background: rgba(13,110,110,0.1); color: var(--teal); padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.role-body { display: none; padding: 0 2rem 1.5rem; border-top: 1px solid rgba(0,0,0,0.06); }
.role-body.open { display: block; }
.role-body p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.75; margin: 1.25rem 0; }
.role-body ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.5rem; }
.role-body ul li { font-size: 0.85rem; color: var(--gray-600); display: flex; align-items: flex-start; gap: 0.5rem; }
.role-body ul li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.apply-btn { background: var(--teal); color: white; border: none; padding: 0.75rem 1.75rem; border-radius: 999px; font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: 'Nunito Sans', sans-serif; text-decoration: none; display: inline-block; }
.apply-btn:hover { background: #0a5858; }
.chevron { transition: transform 0.3s; font-size: 1.2rem; color: var(--gray-500); }
.chevron.open { transform: rotate(180deg); }

/* Application form */
.app-form-section { background: var(--bg); padding: 5rem 0; }
.app-form-wrap { max-width: 800px; margin: 0 auto; }
.form-section-card { background: white; border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; border: 1px solid rgba(0,0,0,0.06); }
.form-section-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--slate); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.form-section-card h3 .icon { font-size: 1.1rem; }
.success-box { background: rgba(13,110,110,0.05); border: 1px solid rgba(13,110,110,0.2); border-radius: var(--radius); padding: 3rem; text-align: center; }
.success-box .check { width: 64px; height: 64px; background: rgba(13,110,110,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.5rem; }
.success-box h3 { font-size: 1.5rem; font-weight: 700; color: var(--slate); margin-bottom: 0.75rem; }
.success-box p { color: var(--gray-600); line-height: 1.7; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.required { color: #ef4444; }

@media (max-width: 480px) {
  .hero-stats { gap: 1.5rem; }
  .role-body ul { grid-template-columns: 1fr; }
  .role-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
