/*
Theme Name: Care Medicus
Theme URI: https://caremedicus.com
Author: Care Medicus
Description: Professional medical billing and RCM solutions theme
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: caremedicus
*/

/* ========================================
   CSS Variables & Design Tokens
   ======================================== */
:root {
  /* Primary: Deep Teal */
  --primary: 195, 70%, 35%;
  --primary-light: 195, 65%, 45%;
  --primary-dark: 195, 75%, 25%;
  --primary-foreground: 0, 0%, 100%;

  /* Secondary: Warm Orange Accent */
  --secondary: 28, 90%, 55%;
  --secondary-foreground: 0, 0%, 100%;

  /* Backgrounds */
  --background: 210, 33%, 98%;
  --foreground: 215, 25%, 15%;
  --card: 0, 0%, 100%;
  --card-foreground: 215, 25%, 15%;

  /* Muted */
  --muted: 210, 20%, 94%;
  --muted-foreground: 215, 15%, 45%;

  /* Accent */
  --accent: 185, 45%, 92%;
  --accent-foreground: 195, 70%, 30%;

  /* Borders */
  --border: 210, 20%, 88%;

  /* Radius */
  --radius: 0.75rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 hsla(215, 25%, 15%, 0.05);
  --shadow-md: 0 4px 6px -1px hsla(215, 25%, 15%, 0.07), 0 2px 4px -2px hsla(215, 25%, 15%, 0.05);
  --shadow-lg: 0 10px 15px -3px hsla(215, 25%, 15%, 0.08), 0 4px 6px -4px hsla(215, 25%, 15%, 0.05);
  --shadow-xl: 0 20px 25px -5px hsla(215, 25%, 15%, 0.1), 0 8px 10px -6px hsla(215, 25%, 15%, 0.05);
  --shadow-card: 0 4px 20px hsla(215, 25%, 15%, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.75rem; }
  h2 { font-size: 3rem; }
}

.text-gradient {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(185, 60%, 40%) 50%, hsl(var(--primary-dark)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Layout Utilities
   ======================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section-padding {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-padding { padding: 6rem 0; }
}

@media (min-width: 1024px) {
  .section-padding { padding: 8rem 0; }
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: hsl(var(--primary-dark));
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
}

.btn-outline:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-hero {
  background-color: hsl(var(--card));
  color: hsl(var(--primary));
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.btn-hero:hover {
  background-color: hsla(var(--card), 0.9);
  box-shadow: var(--shadow-xl);
}

.btn-hero-outline {
  background-color: transparent;
  border: 2px solid hsla(var(--card), 0.8);
  color: hsl(var(--card));
  backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
  background-color: hsla(var(--card), 0.1);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  border-radius: calc(var(--radius) + 4px);
}

/* ========================================
   Cards
   ======================================== */
.card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.header.scrolled {
  background-color: hsla(var(--card), 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.header-topbar {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  display: none;
}

@media (min-width: 768px) {
  .header-topbar { display: block; }
}

.header-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-topbar-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-topbar-contact svg {
  width: 1rem;
  height: 1rem;
}

.header-nav {
  padding: 0 1rem;
}

.header-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header-nav .container { height: 5rem; }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.logo-text span {
  color: hsl(var(--primary));
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: hsl(var(--primary));
}

.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta { display: block; }
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--foreground));
}

.mobile-menu {
  display: none;
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  padding: 1rem;
  margin-top: 0.5rem;
  animation: fadeInUp 0.3s ease;
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  border-radius: var(--radius);
  transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
  background-color: hsl(var(--accent));
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(185, 60%, 40%) 50%, hsl(var(--primary-dark)) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  padding: 6rem 1rem 4rem;
}

@media (min-width: 768px) {
  .hero-content { padding: 8rem 1rem 6rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsla(var(--card), 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid hsla(var(--card), 0.3);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  color: hsl(var(--card));
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: hsl(var(--card));
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 4rem; }
}

.hero p {
  font-size: 1.125rem;
  color: hsla(var(--card), 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero p { font-size: 1.25rem; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsla(var(--card), 0.2);
}

@media (min-width: 768px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: hsl(var(--card));
}

@media (min-width: 768px) {
  .hero-stat-value { font-size: 2.5rem; }
}

.hero-stat-label {
  font-size: 0.875rem;
  color: hsla(var(--card), 0.8);
}

/* ========================================
   About Section
   ======================================== */
.about {
  background-color: hsl(var(--background));
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}

.about-image-overlay {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-image-overlay-value {
  font-size: 2rem;
  font-weight: 800;
}

.about-image-overlay-label {
  font-size: 0.875rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-description {
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  gap: 1rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* ========================================
   Services Section
   ======================================== */
.services {
  background: linear-gradient(180deg, hsl(var(--accent)) 0%, hsl(var(--background)) 100%);
}

.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.service-card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  border: 1px solid hsl(var(--border));
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: hsl(var(--primary));
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary));
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
}

/* ========================================
   Why Choose Us Section
   ======================================== */
.why-us {
  background-color: hsl(var(--background));
}

.why-us-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-us-grid { grid-template-columns: 1fr 1fr; }
}

.why-us-features {
  display: grid;
  gap: 1.5rem;
}

.why-us-feature {
  display: flex;
  gap: 1rem;
}

.why-us-feature-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.why-us-feature h4 {
  margin-bottom: 0.25rem;
}

.why-us-feature p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(185, 60%, 40%) 50%, hsl(var(--primary-dark)) 100%);
}

.testimonials-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.testimonials-header .section-label {
  color: hsla(var(--card), 0.9);
}

.testimonials-header .section-title {
  color: hsl(var(--card));
}

.testimonials-header .section-description {
  color: hsla(var(--card), 0.8);
}

.testimonial-card {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--secondary));
  fill: hsl(var(--secondary));
}

.testimonial-quote {
  color: hsl(var(--foreground));
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  font-weight: 700;
}

.testimonial-name {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.testimonial-role {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  background-color: hsl(var(--background));
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.5fr; }
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background-color: hsl(var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary));
}

.contact-info-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.contact-info-value {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.contact-form {
  background-color: hsl(var(--card));
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(var(--primary), 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
}

.footer-main {
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p {
  color: hsla(var(--background), 0.7);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background-color: hsla(var(--background), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.footer-social a:hover {
  background-color: hsl(var(--primary));
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer h4 {
  color: hsl(var(--background));
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: hsla(var(--background), 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: hsl(var(--secondary));
}

.footer-links li {
  color: hsla(var(--background), 0.7);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: hsla(var(--background), 0.7);
}

.footer-contact li + li {
  margin-top: 1rem;
}

.footer-contact svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--secondary));
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-bottom {
  border-top: 1px solid hsla(var(--background), 0.1);
  padding: 1.5rem 0;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: hsla(var(--background), 0.6);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: hsla(var(--background), 0.6);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: hsl(var(--secondary));
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
