/* business-casual.css – Chatfield Eye Care Refresh */

/* === Base Reset === */
body {
  margin: 0;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: url('../img/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #000;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: "Josefin Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 10px;
  color: #2d6a4f;
}

p {
  font-size: 1.125em;
  line-height: 1.6;
  color: #000;
  margin-bottom: 20px;
}

/* === Navigation (Translucent Leaf Green) === */
.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(46, 139, 87, 0.85); /* translucent leaf green */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  padding: 13px 0;
  z-index: 1000;
  transition: background 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.main-nav:hover {
  background: rgba(46, 139, 87, 0.92);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.main-nav li {
  text-align: center;
}

.main-nav ul li a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  font-size: 1.1em;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.main-nav ul li a:hover {
  text-decoration: underline;
  color: #F8F8F8;
}

/* === Content Spacing Fix === */
header,
main,
footer,
.container {
  margin-top: 30px; /* space for fixed nav */
  padding: 0 20px;
}

/* === Headings & Welcome === */
.welcome-heading {
  text-align: center;
  font-size: 3em;
  margin-bottom: 10px;
  color: #2d6a4f;
}

.welcome-subtext {
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #1b4332;
}

/* === Content Box for Main Sections === */
.disease-section {
  padding: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin: 40px auto;
  max-width: 1000px;
}

/* === Hours Table === */
.hours-table {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.hours-table table {
  width: fit-content;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.hours-table th,
.hours-table td {
  padding: 10px 14px;
  text-align: center;
}

.hours-table th {
  background: #2E8B57;
  color: #fff;
  font-weight: bold;
}

.hours-table tr:nth-child(even) {
  background: #f7f7f7;
}

/* === Urgent / Emergency Link === */
.urgent-wrapper {
  text-align: center;
  margin-top: 40px;
}

.urgent-wrapper a {
  display: inline-block;
  padding: 10px 18px;
  background-color: #006699;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.urgent-wrapper a:hover {
  background-color: #004c73;
}

/* === Spectacles Section (Rotating Images) === */
.spectacles-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.spectacles-image-rotator {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.spectacles-image-rotator img {
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 180px;
  opacity: 0;
  animation: rotateImages 12s infinite;
}

.spectacles-image-rotator img:nth-child(1) { animation-delay: 0s; }
.spectacles-image-rotator img:nth-child(2) { animation-delay: 4s; }
.spectacles-image-rotator img:nth-child(3) { animation-delay: 8s; }

@keyframes rotateImages {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}

.spectacles-text {
  flex: 1;
  min-width: 250px;
}

/* === Generic Image Rotator === */
.image-rotator {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: auto;
  overflow: hidden;
  margin: 1em auto;
}

.image-rotator img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.image-rotator img.active {
  opacity: 1;
}

/* === Footer === */
footer {
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #444;
  margin-top: 60px;
  border-top: 1px solid #ddd;
}

/* === Responsive Tweaks === */
@media screen and (max-width: 768px) {
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  main {
    margin-top: 160px; /* ensure space for nav */
    padding: 20px;
  }

  .disease-section {
    padding: 20px;
  }

  .welcome-heading {
    font-size: 2.2em;
  }

  .welcome-subtext {
    font-size: 1.2em;
  }
}

/* === PAGE STRUCTURE STYLES (for our-dr.html and other content pages) === */

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-image: url('../img/bgFlip.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #333;
}

main {
  padding-top: 80px; /* space below fixed nav */
}

.container {
  max-width: 1000px;
  margin: 40px auto;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: 40px;
  border-radius: 8px;
}

/* Top section (photo + text) */
.top-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.photo {
  flex: 1;
  min-width: 280px;
}

.photo img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.bio-text {
  flex: 2;
  min-width: 280px;
  font-size: 1.1em;
  line-height: 1.6;
}

.bio-text p {
  margin-bottom: 1em;
}

/* Pledge section */
.pledge {
  margin-top: 40px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #444;
}

.pledge .centered {
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 1.5em;
}

/* Photo gallery section */
.photo-gallery {
  margin: 50px auto;
  padding-top: 30px;
  border-top: 1px solid #ccc;
  text-align: center;
  max-width: 1100px;
}

.photo-gallery h2 {
  font-size: 1.5em;
  color: #2d6a4f;
  margin-bottom: 20px;
}

.photo-gallery div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.photo-gallery img {
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

