/* style.css for ClinicBridge */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: #f5f8fa;
  color: #333;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0077cc;
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #0077cc;
  font-weight: 700;
  border-bottom: 2px solid #0077cc;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }

  .nav-links a {
    width: 100%;
    padding: 0.5rem 0;
  }
}

form {
  background: #f4f4f4;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

form input[type="text"],
form input[type="email"],
form input[type="tel"] {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #0056b3;
}


/* Hero */
.hero {
  background: linear-gradient(to right, #dfe9f3, #ffffff);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

.cta-button {
  background: #0077cc;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.cta-button:hover {
  background: #005fa3;
}

/* Sections */
.section {
  padding: 4rem 2rem;
  text-align: center;
}

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

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

/* Services */
#services {
  scroll-margin-top: 100px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-weight: 600;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

/* Articles */
#articles {
  scroll-margin-top: 100px;
}

.resources-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.resources-header h2 {
  font-size: 1.8rem;
}

.learn-more {
  background: #fff;
  color: #0077cc;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #0077cc;
  transition: all 0.3s;
}

.learn-more:hover {
  background: #0077cc;
  color: #fff;
}

.articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.article-card {
  text-decoration: none;
  color: #333;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card img {
  width: 100%;
  height: auto;
}

.article-card p {
  padding: 1rem;
  font-size: 1rem;
}

/* Contact */
#contact {
  scroll-margin-top: 100px;
}

.contact form {
  max-width: 500px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.contact button {
  background: #0077cc;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.contact button:hover {
  background: #005fa3;
}

/* Hero Section with Gradient Background */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;
  min-height: 100vh;
  background: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
  color: white;
}

#hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 90%;
}

#hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  color: #e0f7ff;
}
