/*
 * Stylesheet for the website of Dr Fatima Bouzzite, pédiatre à Mohammedia.
 *
 * The design uses a clean layout, calming colours and generous whitespace to
 * convey professionalism and trust. The responsive layout adapts to small
 * screens, ensuring that patients can easily navigate the site on mobiles
 * and tablets. Feel free to adjust colours and margins to suit the doctor’s
 * personal branding.
 */

/* Global resets and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  color: #006aa3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navigation bar */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #006aa3;
}

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

.nav-links a {
  font-weight: 500;
  color: #333;
}

.nav-links a:hover {
  color: #006aa3;
}

/* Hero section */
.hero {
  background: linear-gradient(rgba(0, 106, 163, 0.5), rgba(0, 106, 163, 0.5)),
              url('images/hero.jpg') no-repeat center/cover;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

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

.btn-primary {
  display: inline-block;
  background-color: #006aa3;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #005482;
}

/* Section styling */
section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #006aa3;
}

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

.service-card {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
}

.service-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #006aa3;
}

.service-card p {
  font-size: 0.95rem;
}

/* About section */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about img {
  flex: 1 1 300px;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.about-content {
  flex: 1 1 350px;
}

.about-content h2 {
  font-size: 2rem;
  color: #006aa3;
  margin-bottom: 1rem;
}

.about-content p {
  margin-bottom: 1rem;
}

/* Contact section */
.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background-color: #fff;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.contact-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #006aa3;
}

/* Blog cards and article styling */

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

.blog-card {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
}

.blog-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.blog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #006aa3;
}

.blog-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.blog-card .btn-secondary {
  display: inline-block;
  background-color: #006aa3;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease-in-out;
}

.blog-card .btn-secondary:hover {
  background-color: #005482;
}

.article {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.article h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #006aa3;
}

.article h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #006aa3;
}

.article p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.map-container {
  height: 300px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background-color: #006aa3;
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 3rem;
}

footer a {
  color: #fff;
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .about {
    flex-direction: column;
  }
}