/*
 * SolarScrub Website Stylesheet
 *
 * This CSS provides a clean, professional look for the SolarScrub
 * booking site. The color palette draws on solar-themed blues and
 * yellows. Layouts are responsive, working well on desktop and mobile.
 */

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f5f7fa;
}

/* Navigation bar */
nav {
  background-color: #0a4b77;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav .logo {
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav li {
  display: inline-block;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #f4a824;
}

/* Call Now button in nav */
.call-now {
  background-color: #f4a824;
  color: #0a4b77;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.call-now:hover {
  background-color: #d38c1d;
}

/* Sticky call now bar on small screens */
.mobile-call {
  display: none;
}

@media (max-width: 640px) {
  nav ul {
    display: none; /* hide nav links on small screens */
  }
  .mobile-call {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background-color: #0a4b77;
    color: #fff;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }
  .mobile-call a {
    background-color: #f4a824;
    color: #0a4b77;
    padding: 10px 16px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
  }
}

/* Hero section */
.hero {
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, #0a4b77 30%, #f4a824 100%);
  color: #fff;
  text-align: center;
  margin-top: 56px; /* offset for fixed nav */
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

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

.hero .cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons a {
  background-color: #fff;
  color: #0a4b77;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta-buttons a.primary {
  background-color: #f4a824;
  color: #0a4b77;
}

.cta-buttons a:hover {
  background-color: rgba(255,255,255,0.8);
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  color: #0a4b77;
  margin-bottom: 20px;
  text-align: center;
}

.about, .services, .reviews {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.about p {
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Service cards */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.service-card {
  background-color: #fefefe;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  flex: 1 1 280px;
  max-width: 340px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: #0a4b77;
  margin-top: 0;
  margin-bottom: 10px;
}

.service-card p {
  flex-grow: 1;
  margin-bottom: 15px;
  line-height: 1.5;
}

.service-card a {
  align-self: flex-start;
  background-color: #0a4b77;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.service-card a:hover {
  background-color: #06345a;
}

/* Reviews section */
.reviews-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.review-card {
  background-color: #fefefe;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 20px;
  max-width: 300px;
  position: relative;
}

.review-card .stars {
  color: #f4a824;
  margin-bottom: 8px;
}

.review-card .reviewer {
  font-weight: bold;
  margin-bottom: 6px;
}

.review-card .review-text {
  font-style: italic;
  line-height: 1.4;
}

/* Footer */
footer {
  background-color: #0a4b77;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Chat widget */
#chat-toggle {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background-color: #0a4b77;
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

#chat-window {
  position: fixed;
  bottom: 150px;
  right: 20px;
  width: 300px;
  max-height: 400px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
}

#chat-window header {
  background-color: #0a4b77;
  color: #fff;
  padding: 8px 12px;
  font-weight: bold;
}

#chat-window .messages {
  flex-grow: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 0.9rem;
  background-color: #f9f9f9;
}

#chat-window .input-area {
  display: flex;
  border-top: 1px solid #ddd;
}

#chat-window input[type="text"] {
  flex-grow: 1;
  border: none;
  padding: 8px;
  font-size: 0.9rem;
}

#chat-window button.send {
  background-color: #0a4b77;
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

#chat-window .message {
  margin-bottom: 10px;
  line-height: 1.4;
}

#chat-window .message.user {
  text-align: right;
}

#chat-window .message.bot {
  text-align: left;
  color: #0a4b77;
}

/* Booking page styles */
.booking-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 80px;
  padding: 20px;
  justify-content: center;
}

.calendar-container {
  flex: 1 1 350px;
  max-width: 500px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-grid div {
  text-align: center;
  padding: 8px 0;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

.calendar-grid .header {
  font-weight: bold;
  background-color: #f4f4f4;
  cursor: default;
}

.calendar-grid .inactive {
  color: #aaa;
  cursor: default;
}

.calendar-grid .available {
  background-color: #eaf6fb;
  color: #0a4b77;
  transition: background-color 0.2s ease;
}

.calendar-grid .available:hover {
  background-color: #d4ecf7;
}

.calendar-grid .selected {
  background-color: #0a4b77;
  color: #fff;
}

.times-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.time-slot {
  padding: 8px 12px;
  border: 1px solid #0a4b77;
  border-radius: 20px;
  cursor: pointer;
  color: #0a4b77;
  transition: all 0.2s ease;
}

.time-slot:hover {
  background-color: #0a4b77;
  color: #fff;
}

.time-slot.disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: default;
}

.time-slot.selected {
  background-color: #0a4b77;
  color: #fff;
}

.booking-form-container {
  flex: 1 1 350px;
  max-width: 500px;
}

.booking-form {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.booking-form h2 {
  margin-top: 0;
  color: #0a4b77;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:disabled,
.form-group select:disabled {
  background-color: #f4f4f4;
  color: #aaa;
}

.price-display {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 10px;
  color: #0a4b77;
}

.booking-form button {
  background-color: #0a4b77;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.booking-form button:hover {
  background-color: #06345a;
}

.confirmation-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  background-color: #e0f7e9;
  color: #135e20;
}

/* Map embed */
.map-container {
  margin-top: 15px;
  width: 100%;
  height: 250px;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

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