/*
 * Stylesheet for the DocCare Solutions website.
 *
 * This file defines the color palette, typography, layout and responsive
 * behaviors for the site. The design borrows inspiration from the
 * professional look of Doctor Multimedia while adding a fresh palette and
 * simplified layout tailored for dentists and other healthcare providers.
 */

/* CSS Reset and Variables */
:root {
  --primary-color: #004d98;        /* deep blue for headers and navigation */
  --secondary-color: #00a0e3;      /* light blue for accents */
  --accent-color: #e76f51;         /* warm accent for buttons and highlights */
  --text-color: #333333;           /* dark grey for body text */
  --bg-color: #f9fafc;             /* very light grey for page backgrounds */
  --white: #ffffff;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

/* Header and Navigation */
header {
  background-color: var(--primary-color);
  color: var(--white);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
}

.navbar .logo {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 1rem;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.nav-links a:hover {
  background-color: var(--secondary-color);
}

/* Hero section */
.hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Dark overlay on hero image for readability */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero-content {
  position: relative;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #d55c45;
}

/* Features section */
.features {
  padding: 4rem 1rem;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background-color: var(--white);
  padding: 2rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.feature-item p {
  font-size: 1rem;
  line-height: 1.4;
}

/* Support section */
.support {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 3rem 1rem;
  text-align: center;
}

.support h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.support p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Testimonials section */
.testimonials {
  padding: 4rem 1rem;
  background-color: var(--white);
}

.testimonials h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.testimonial-item {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  background-color: var(--bg-color);
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color);
}

.testimonial-item p {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Blog section */
.blog {
  padding: 4rem 1rem;
  background-color: var(--bg-color);
}

.blog h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-grid article {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.blog-grid article h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.blog-grid article p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-grid article a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.blog-grid article a:hover {
  color: var(--accent-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem 1rem;
}

.footer-info {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-info p {
  margin-bottom: 1rem;
}

.social-links {
  list-style: none;
  display: flex;
  padding: 0;
}

.social-links li {
  margin: 0 0.5rem;
}

.social-links a {
  color: var(--white);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .navbar .nav-links {
    display: none; /* For mobile, hide nav by default; JS can be added to toggle */
  }
}