/*
  Bay Foot Care - Main Stylesheet (Cleaned)
  Organized by: Global, Layout, Components, Forms, Calendar, Custom Elements
*/

/* ===== Global ===== */
body {
  font-family: "Lato", sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
}
a {
  text-decoration: none;
}

/* ===== Layout ===== */
.section {
  padding: 3em 2em;
  background: #eee;
  text-align: center;
}

@media (max-width: 768px) {
  .section {
    padding: 4em 1.5em;
  }
}

/* ===== Hero Section ===== */
.et-hero-tabs, .et-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 3em 2em;
  background: #eee;
}
.et-hero-tabs h1, .et-slide h1 {
  font-size: 2.2rem;
  letter-spacing: 0.2rem;
  margin-bottom: 0.5rem;
  color: #1c4d3f;
}
.et-hero-tabs h3, .et-slide h3 {
  font-size: 1rem;
  opacity: 0.7;
  margin-top: 0;
}

.et-hero-tabs-container {
  display: flex;
  flex-direction: row;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 70px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.et-hero-tabs-container--top {
  position: fixed;
  top: 40px;
}

.et-hero-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  color: #000;
  font-weight: bold;
  letter-spacing: 0.1rem;
  font-size: 0.85rem;
  transition: all 0.5s ease;
}
.et-hero-tab:hover {
  background: rgba(28, 77, 63, 0.85);
  color: #fff;
}
.et-hero-tab-slider {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 6px;
  background: #1c4d3f;
  transition: left 0.3s ease;
}

/* ===== Service Blocks ===== */
.service-block {
  max-width: 800px;
  margin: 1rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 6px;
  text-align: left;
}
.service-block h3 {
  color: #1c4d3f;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 1rem;
}
.gallery-grid img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .gallery-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== Call-to-Actions ===== */
.cta {
  margin: 2rem 0;
}
.cta a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #1c4d3f;
  color: white;
  border-radius: 4px;
}

/* ===== Forms ===== */
.form-wrapper {
  max-width: 400px;
  width: 90%;
  margin: 1rem auto;
  text-align: left;
}
.form-wrapper input,
.form-wrapper textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.form-wrapper button {
  width: 100%;
  background: #1c4d3f;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.form-wrapper button:hover {
  background: #388e7d;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  background: #1c4d3f;
  color: white;
  padding: 1rem;
}
footer small {
  display: block;
  margin-top: 0.5rem;
  color: #ccc;
}

/* ===== Testimonials ===== */
.testimonial-block {
  max-width: 800px;
  margin: 1rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 6px;
  text-align: left;
}
.testimonial-block blockquote {
  font-style: italic;
  color: #333;
  border-left: 4px solid #1c4d3f;
  padding-left: 1rem;
  margin: 1rem 0;
}
.testimonial-block footer {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* ===== Calendar / FullCalendar ===== */
#appointment-calendar {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.modal-xl .modal-body {
  overflow-x: hidden;
}
.fc-event.selected {
  border: 2px solid green !important;
  background-color: #e6ffe6 !important;
  color: #1c4d3f !important;
  font-weight: bold;
}
.fc .fc-button {
  background-color: #1c4d3f;
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}
.fc .fc-button:hover,
.fc .fc-button:focus {
  background-color: #388e7d;
  outline: none;
  box-shadow: none;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background-color: #388e7d;
}
.fc .fc-col-header-cell-cushion {
  font-weight: bold;
  color: #1c4d3f;
  padding: 6px 0;
}
.fc .fc-timegrid-slot {
  height: 3.5em;
}
.fc-event-title {
  font-weight: 600;
  font-size: 1rem;
}
.fc-event-time {
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.fc-event {
  background-color: #1c4d3f !important;
  border-left: 5px solid #3d9970;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.fc-event:hover {
  cursor: pointer;
}
.fc .fc-toolbar {
  margin-bottom: 1rem;
}
#appointment-calendar:empty {
  display: none;
}
@media (max-width: 768px) {
  #appointment-calendar {
    padding: 10px;
  }
  .fc-toolbar-title {
    font-size: 1rem;
  }
  .fc .fc-button {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}
.slot.selected {
  border: 2px solid green;
  background-color: #e6ffe6;
  font-weight: bold;
}

/* ===== Anchor Offset ===== */
:target::before {
  content: "";
  display: block;
  height: 120px; /* 80 tabs + 40 top header */
  margin-top: -120px;
  visibility: hidden;
}

/* ===== Fixed Top Header Bar ===== */
.top-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1c4d3f;
  color: white;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  font-family: "Lato", sans-serif;
  z-index: 1050;
}
.top-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.top-header-left span {
  margin-right: 1.2rem;
  display: inline-block;
}
.top-header-left a,
.top-header-right a {
  color: white;
  text-decoration: none;
}
.top-header-right a {
  margin-left: 1rem;
  font-size: 1rem;
}
.top-header-left i,
.top-header-right i {
  margin-right: 0.3rem;
}
@media (max-width: 768px) {
  .top-header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .top-header-right {
    margin-top: 0.5rem;
  }
}

/* ===== Mobile Call Button ===== */
.mobile-call-btn {
  display: none;
  background: #1c4d3f;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
}
.desktop-number {
  display: inline;
}
@media (max-width: 768px) {
  .mobile-call-btn {
    display: inline-block;
  }
  .desktop-number {
    display: none;
  }
}

/* ===== Body Padding to Offset Fixed Header ===== */
body {
  padding-top: 40px; /* match .top-header-bar height */
}