/* ===== EXCELLERATE CAREFORCE - Production Stylesheet ===== */

:root {
  --primary: #0D7377;
  --primary-light: #14919B;
  --primary-dark: #095355;
  --accent: #E8A023;
  --accent-light: #F0B84D;
  --accent-dark: #C4861A;
  --teal-soft: #E6F5F5;
  --text: #2D3748;
  --text-light: #718096;
  --text-white: #FFFFFF;
  --bg: #FFFFFF;
  --bg-light: #F7FAFA;
  --bg-alt: #EDF2F7;
  --border: #E2E8F0;
  --success: #38A169;
  --error: #E53E3E;
  --healthcare-blue: #2B6CB0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.25; color: var(--primary-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; color: var(--text); }

.section-label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.section-title { margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 640px; line-height: 1.7; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-light); }
.section--dark { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--text-white); }
.section--dark h2, .section--dark h3, .section--dark .section-label { color: var(--text-white); }
.section--dark .section-subtitle, .section--dark p { color: rgba(255,255,255,0.85); }

.grid { display: grid; gap: 2rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; font-size: 0.95rem; font-weight: 600; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; transition: all var(--transition); text-align: center; white-space: nowrap; }
.btn--primary { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--text-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--secondary:hover { background: var(--primary); color: var(--text-white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--white { background: var(--text-white); color: var(--primary); border-color: var(--text-white); }
.btn--white:hover { background: transparent; color: var(--text-white); transform: translateY(-2px); }
.btn--outline-white { background: transparent; color: var(--text-white); border-color: rgba(255,255,255,0.5); }
.btn--outline-white:hover { background: var(--text-white); color: var(--primary); transform: translateY(-2px); }
.btn--lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* --- Header --- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: all var(--transition); }
.header--scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.header__logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.header__logo-icon { width: 42px; height: 42px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: white; font-weight: 900; font-size: 1.1rem; }
.header__logo .brand-care { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { padding: 0.5rem 0.875rem; font-size: 0.9rem; font-weight: 500; color: var(--text); border-radius: var(--radius-sm); transition: all var(--transition); position: relative; }
.nav a:hover, .nav a.active { color: var(--primary); background: var(--teal-soft); }
.nav a.active::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 20px; height: 2px; background: var(--accent); border-radius: 2px; }

.header__cta { display: flex; align-items: center; flex-direction: column;}
.header__phone { font-size: 0.85rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 0.4rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 1001; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 6px 0; transition: all var(--transition); border-radius: 2px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

.nav-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 999; opacity: 0; visibility: hidden; transition: all var(--transition); }
.nav-overlay.active { opacity: 1; visibility: visible; }

/* --- Hero --- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding-top: var(--header-height); background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 70%; height: 200%; background: radial-gradient(ellipse, rgba(232,160,35,0.1) 0%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }
.hero__content { position: relative; z-index: 2; max-width: 680px; padding: 2rem 0; }
.hero__badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; padding: 0.5rem 1.25rem; font-size: 0.85rem; color: var(--accent-light); font-weight: 500; margin-bottom: 1.5rem; backdrop-filter: blur(4px); }
.hero__title { color: var(--text-white); font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1.15; margin-bottom: 1.25rem; font-weight: 800; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.85); line-height: 1.75; margin-bottom: 2rem; max-width: 600px; }
.hero__shapes { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; pointer-events: none; overflow: hidden; }
.hero__shape { position: absolute; border-radius: 50%; opacity: 0.06; background: white; }
.hero__shape--1 { width: 400px; height: 400px; top: 10%; right: -10%; }
.hero__shape--2 { width: 250px; height: 250px; top: 50%; right: 20%; }
.hero__shape--3 { width: 150px; height: 150px; bottom: 20%; right: 5%; }

/* --- Page Hero --- */
.page-hero { padding: 8rem 0 4rem; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -50%; right: -30%; width: 60%; height: 200%; background: radial-gradient(ellipse, rgba(232,160,35,0.08) 0%, transparent 70%); pointer-events: none; }
.page-hero h1 { color: var(--text-white); margin-bottom: 1rem; position: relative; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.15rem; max-width: 600px; margin: 0 auto; position: relative; }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.85rem; position: relative; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--accent-light); }

/* --- Metrics --- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 2rem 0; }
.metric { text-align: center; padding: 2rem 1rem; background: var(--bg); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all var(--transition); }
.metric:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.metric__number { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 0.5rem; }
.metric__label { font-size: 0.9rem; color: var(--text-light); font-weight: 500; }

/* --- Cards --- */
.card { background: var(--bg); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all var(--transition); position: relative; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: opacity var(--transition); }
.card:hover::before { opacity: 1; }
.card__icon { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--teal-soft); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; color: var(--primary); transition: all var(--transition); }
.card:hover .card__icon { background: var(--primary); color: white; }
.card__title { font-size: 1.15rem; margin-bottom: 0.75rem; font-weight: 700; }
.card__text { font-size: 0.95rem; color: var(--text-light); line-height: 1.65; }
.card__link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--primary); }
.card__link:hover { gap: 0.6rem; color: var(--accent); }

/* --- Feature List --- */
.feature-item { display: flex; align-items: flex-start; gap: 1rem; padding: 0.75rem; border-radius: var(--radius-sm); transition: background var(--transition); }
.feature-item:hover { background: var(--teal-soft); }
.feature-item__icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 0.9rem; font-weight: 700; }
.feature-item__content h4 { margin-bottom: 0.25rem; }
.feature-item__content p { font-size: 0.9rem; color: var(--text-light); margin: 0; }

/* --- CTA Banner --- */
.cta-banner { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); border-radius: var(--radius-lg); padding: 3.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -50%; right: -20%; width: 50%; height: 200%; background: radial-gradient(ellipse, rgba(232,160,35,0.12) 0%, transparent 70%); pointer-events: none; }
.cta-banner h2 { color: var(--text-white); margin-bottom: 1rem; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 1.5rem; position: relative; }
.cta-banner .btn-group { justify-content: center; position: relative; }

/* --- Image Blocks --- */
.img-block { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 320px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.img-block--tall { min-height: 420px; }
.img-block__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,115,119,0.55), rgba(9,83,85,0.35)); display: flex; align-items: flex-end; padding: 2rem; }
.img-block__overlay p { color: white; font-size: 1.1rem; font-weight: 600; margin: 0; }
.img-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.img-row .img-block { min-height: 220px; }

/* --- Process Steps --- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.process-step { text-align: center; position: relative; }
.process-step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; font-weight: 800; font-size: 1.2rem; margin: 0 auto 1rem; }
.process-step h4 { margin-bottom: 0.5rem; }
.process-step p { font-size: 0.9rem; color: var(--text-light); }

/* --- Testimonials --- */
.testimonial-card { background: var(--bg); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.testimonial-card__stars { color: var(--accent); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card__quote { font-size: 1rem; line-height: 1.7; color: var(--text); font-style: italic; margin-bottom: 1.5rem; }
.testimonial-card__author { display: flex; align-items: center; gap: 1rem; }
.testimonial-card__avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1.1rem; }
.testimonial-card__name { font-weight: 700; font-size: 0.95rem; color: var(--primary-dark); }
.testimonial-card__role { font-size: 0.8rem; color: var(--text-light); }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: inherit; transition: all var(--transition); background: var(--bg); color: var(--text); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,115,119,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.form-success { display: none; background: var(--success); color: white; padding: 1rem 1.5rem; border-radius: var(--radius-sm); font-weight: 500; margin-top: 1rem; }
.form-success.show { display: block; }

/* --- Solutions Cards --- */
.solution-card { background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: all var(--transition); }
.solution-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.solution-card__visual { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.solution-card__body { padding: 1.75rem; }
.solution-card__body h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.solution-card__body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }
.solution-card__url { font-size: 0.85rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 0.3rem; }

/* --- Contact Info --- */
.contact-info-card { background: var(--bg); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: flex; align-items: flex-start; gap: 1.25rem; transition: all var(--transition); }
.contact-info-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.contact-info-card__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--teal-soft); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--primary); }
.contact-info-card h4 { margin-bottom: 0.35rem; }
.contact-info-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.contact-info-card a { color: var(--primary); font-weight: 500; }

/* --- Map --- */
.map-placeholder { width: 100%; height: 350px; border-radius: var(--radius-md); background: var(--bg-alt); border: 1px solid var(--border); overflow: hidden; }
.map-placeholder iframe { width: 100%; height: 100%; border: none; }

/* --- Footer --- */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 4rem 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 1rem; line-height: 1.7; }
.footer__title { color: var(--text-white); font-size: 0.95rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer__links a:hover { color: var(--accent); }
.footer__contact-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 0.75rem; }
.footer__contact-item a { color: rgba(255,255,255,0.6); }
.footer__contact-item a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; font-size: 0.85rem; }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { color: rgba(255,255,255,0.5); }
.footer__legal a:hover { color: var(--accent); }

/* --- Excellerate Family Bar --- */
.family-bar { background: #062B3D; padding: 0.75rem 0; font-size: 0.8rem; }
.family-bar__inner { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.family-bar__label { color: rgba(255,255,255,0.5); font-weight: 600; }
.family-bar a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.family-bar a:hover { color: var(--accent); }

/* --- Animations --- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-height: 70px; }
  .nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: var(--bg); flex-direction: column; padding: 5rem 2rem 2rem; box-shadow: var(--shadow-xl); transition: right var(--transition); align-items: flex-start; gap: 0.5rem; z-index: 1000; }
  .nav.open { right: 0; }
  .nav a { width: 100%; padding: 0.75rem 1rem; font-size: 1rem; }
  .nav-toggle { display: block; }
  .header__cta { display: none; }
  .hero { min-height: 80vh; }
  .section { padding: 3.5rem 0; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .img-row { grid-template-columns: 1fr; }
  .img-block { min-height: 240px; }
  .process-steps { grid-template-columns: 1fr; }
  .family-bar__inner { gap: 1rem; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .metric { padding: 1.25rem 0.75rem; }
  .metric__number { font-size: 2rem; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
