html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", "Arial", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f4f8fb;
  color: #222;
}

* {
  box-sizing: border-box;
}

.site-shell {
  min-height: 100vh;
}

main {
  width: 100%;
  margin: 0 auto;
  padding-top: var(--nav-height, 88px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar.nav-hidden {
  transform: translateY(calc(-100% - 12px));
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.navbar-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: #3a3a3a;
  letter-spacing: 1px;
  white-space: nowrap;
}

.den {
  color: #2196f3;
}

.navbar-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s;
}

.navbar-links a,
.footer-links a,
.contact-info a {
  text-decoration: none;
  color: #3a3a3a;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover,
.footer-links a:hover,
.contact-info a:hover {
  color: #2196f3;
}

.navbar-menu-bar {
  display: none;
}

.menu-icon {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.menu-bar {
  width: 28px;
  height: 3px;
  background: #2196f3;
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}

.menu-icon.open .menu-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-icon.open .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-icon.open .menu-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.dark-toggle,
.cta-btn,
.booking-form button,
.contact-form button {
  background: #2196f3;
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.dark-toggle:hover,
.cta-btn:hover,
.booking-form button:hover,
.contact-form button:hover {
  background: #1769aa;
}

.dark-toggle {
  margin-left: 1.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
}

.homepage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background: linear-gradient(120deg, #e3f2fd 0%, #fff 100%);
  text-align: center;
}

.homepage-content {
  max-width: 600px;
  margin: auto;
}

.homepage h1 {
  font-size: 2.7rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.3rem;
  color: #555;
  margin-bottom: 1.2rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.7rem 2.2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.highlights,
.service-area ul,
.safety ul {
  list-style: none;
  padding: 0;
}

.highlights {
  margin: 0;
  color: #222;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}

.highlights li::before {
  content: "\2714  ";
  color: #2196f3;
  font-weight: 700;
}

.animated-photo {
  animation: floatPhoto 2.5s ease-in-out infinite alternate;
}

@keyframes floatPhoto {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
  }

  100% {
    transform: translateY(-18px) scale(1.04);
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.18);
  }
}

.about,
.services,
.pricing,
.booking,
.service-area,
.reviews,
.faq,
.contact,
.safety {
  padding: 3rem 1rem;
  text-align: center;
}

.about,
.pricing,
.service-area,
.faq,
.safety {
  background: #f7fafd;
}

.services,
.booking,
.reviews,
.contact {
  background: #fff;
}

.about-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  max-width: 700px;
  margin: 2rem auto 0;
}

.instructor-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #2196f3;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.08);
}

.services-list,
.pricing-table,
.reviews-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  margin: 2rem auto 0;
  max-width: 900px;
}

.service-item,
.pricing-item,
.review-item,
.faq-item,
.safety li,
.map-placeholder {
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.04);
}

.service-item,
.review-item {
  background: #f7fafd;
}

.pricing-item,
.faq-item,
.safety li,
.map-placeholder {
  background: #fff;
}

.service-item,
.pricing-item,
.review-item {
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  min-width: 220px;
  max-width: 260px;
  flex: 1 1 220px;
}

.pricing-item {
  min-width: 200px;
  max-width: 240px;
  flex-basis: 200px;
}

.price {
  font-size: 1.3rem;
  color: #2196f3;
  font-weight: 700;
  margin: 0.7rem 0;
}

.pricing-note {
  margin-top: 1.5rem;
  color: #555;
  font-size: 1rem;
}

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

.booking-form input,
.booking-form textarea,
.contact-form input,
.contact-form textarea {
  padding: 0.7rem;
  border-radius: 6px;
  border: 1px solid #bbb;
  font-size: 1rem;
  resize: none;
}

.booking-form button,
.contact-form button {
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 1.1rem;
}

.service-area ul {
  margin: 1.5rem 0 0;
  color: #222;
  font-size: 1.1rem;
}

.service-area li + li {
  margin-top: 0.4rem;
}

.map-placeholder {
  margin-top: 2rem;
  border-radius: 12px;
  padding: 2rem;
  color: #bbb;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.review-item {
  font-style: italic;
}

.review-item span {
  display: block;
  margin-top: 1rem;
  color: #2196f3;
  font-weight: 600;
}

.faq-list {
  max-width: 700px;
  margin: 2rem auto 0;
  text-align: left;
}

.faq-item {
  border-radius: 12px;
  padding: 1.2rem 1.2rem 0.7rem;
  margin-bottom: 1.2rem;
}

.faq-item h4 {
  margin: 0 0 0.5rem;
  color: #2196f3;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info p {
  margin: 0.3rem 0;
  font-size: 1.1rem;
}

.safety ul {
  margin: 2rem auto 0;
  max-width: 600px;
  text-align: left;
}

.safety li {
  border-radius: 12px;
  padding: 1.2rem 1.2rem 0.7rem;
  margin-bottom: 1.2rem;
  color: #222;
}

.safety strong {
  color: #2196f3;
}

.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1.2rem 0 0.7rem;
  font-size: 1rem;
  margin-top: 2rem;
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: #2196f3;
}

.footer-links span {
  color: #fff;
  margin: 0 0.3rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.dark-mode {
  background: #181a1b;
  color: #f4f8fb;
}

body.dark-mode .navbar,
body.dark-mode .footer,
body.dark-mode .service-area,
body.dark-mode .about,
body.dark-mode .services,
body.dark-mode .pricing,
body.dark-mode .booking,
body.dark-mode .reviews,
body.dark-mode .faq,
body.dark-mode .contact,
body.dark-mode .safety,
body.dark-mode main {
  background: #181a1b;
  color: #f4f8fb;
}

body.dark-mode .homepage {
  background: linear-gradient(120deg, #15181a 0%, #1f2529 100%);
}

body.dark-mode .homepage h1,
body.dark-mode .tagline,
body.dark-mode .highlights,
body.dark-mode .service-area ul,
body.dark-mode .faq-list,
body.dark-mode .contact-info a,
  body.dark-mode .navbar-title,
  body.dark-mode .navbar-links a {
  color: #f4f8fb;
}

body.dark-mode .service-item,
body.dark-mode .pricing-item,
body.dark-mode .review-item,
body.dark-mode .faq-item,
body.dark-mode .safety li,
body.dark-mode .map-placeholder,
body.dark-mode .booking-form input,
body.dark-mode .booking-form textarea,
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  background: #23272a;
  color: #f4f8fb;
}

body.dark-mode .booking-form input,
body.dark-mode .booking-form textarea,
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
  border-color: #3f4b52;
}

body.dark-mode .footer-links a,
body.dark-mode .navbar-title .den,
body.dark-mode .navbar-links a:hover,
body.dark-mode .contact-info a:hover {
  color: #90caf9;
}

@media (max-width: 800px) {
  .navbar {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .navbar-logo {
    flex: 1;
  }

  .navbar-title {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    letter-spacing: 0.06em;
  }

  .navbar-menu-bar {
    display: block;
    z-index: 120;
  }

  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(33, 150, 243, 0.08);
    z-index: 110;
  }

  .navbar-links.open {
    max-height: 600px;
    padding: 1rem 0;
  }

  .navbar-links li {
    width: 100%;
    padding: 0.7rem 2rem;
    border-bottom: 1px solid #eee;
  }

  .navbar-links a {
    width: 100%;
    display: block;
    color: #3a3a3a;
    font-size: 1.1rem;
  }

  .dark-toggle {
    margin-left: 0.5rem;
  }

  body.dark-mode .navbar-links {
    background: #23272a;
  }

  body.dark-mode .navbar-links li {
    border-bottom-color: #31363a;
  }
}

@media (max-width: 700px) {
  .about-content,
  .services-list,
  .pricing-table,
  .reviews-list {
    flex-direction: column;
    gap: 1rem;
  }

  .services-list,
  .pricing-table,
  .reviews-list {
    align-items: center;
  }

  .service-item,
  .pricing-item,
  .review-item {
    width: min(100%, 340px);
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .homepage h1 {
    font-size: 2rem;
  }

  .homepage-content {
    padding: 0 1rem;
  }

  .navbar {
    gap: 0.75rem;
  }

  .navbar-logo {
    flex: 1 1 auto;
  }

  .dark-toggle {
    padding: 0.45rem 0.9rem;
    font-size: 0.95rem;
  }
}
