/* 
  OptimaHealth - Premium Health Platform Styles
*/

:root {
  --primary-color: #0d8a7c; /* Emerald/Teal */
  --primary-hover: #0a6c62;
  --secondary-color: #1a4f76; /* Trust Blue */
  --accent-color: #48c774;
  --text-dark: #2c3e50;
  --text-light: #64748b;
  --bg-color: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;

  --font-family:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

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

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.125rem;
}

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

a:hover {
  color: var(--primary-hover);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
}

/* Header CTA */
.header-cta {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(13, 138, 124, 0.39);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 138, 124, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  color: var(--text-dark);
}

/* Badges & Tags */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(13, 138, 124, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 60px 0;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.split-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.split-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.split-image-wrap:hover img {
  transform: scale(1.05);
}

/* Stat Blocks */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 60px 0;
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.stat-box {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1rem;
}

/* Quote Block */
.quote-block {
  background: linear-gradient(
    135deg,
    rgba(26, 79, 118, 0.05) 0%,
    rgba(13, 138, 124, 0.05) 100%
  );
  border-left: 5px solid var(--primary-color);
  padding: 40px;
  border-radius: 0 20px 20px 0;
  margin: 40px 0;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--secondary-color);
  position: relative;
}

.quote-block::before {
  content: '”';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 10rem;
  color: rgba(13, 138, 124, 0.1);
  font-family: serif;
  line-height: 1;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.feature-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: #e0f2fe;
  color: var(--primary-color);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.feature-content p {
  margin: 0;
  font-size: 1rem;
}

/* Cards / Services / Benefits */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin: 40px 0;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

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

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: rgba(13, 138, 124, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 25px;
}

.card h3 {
  margin-bottom: 15px;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-light {
  background-color: var(--bg-color);
}

.section-white {
  background-color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

/* Images Placeholder */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

/* Content Pages (Legal, About, etc) */
.content-wrapper {
  background-color: var(--white);
  padding: 60px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  margin: 40px 0;
  border: 1px solid var(--border-color);
}

/* Forms */
.form-container {
  background: var(--white);
  padding: 50px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.05rem;
  transition: var(--transition);
  background: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(13, 138, 124, 0.1);
}

/* Footer */
footer {
  background-color: #0f172a;
  color: var(--white);
  padding: 80px 0 30px;
}

footer a {
  color: #94a3b8;
}

footer a:hover {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.footer-col p {
  color: #94a3b8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 16px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split-layout.reverse {
    direction: ltr; /* Reset reverse on mobile */
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .nav-wrap {
    flex-wrap: wrap;
    height: auto;
    padding: 20px 0;
  }

  nav ul {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .header-cta {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
