/* Theme variables are in static/common/css/theme.css – change colors there. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans, var(--font-fallback));
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
.section-title {
  font-family: var(--font-display, var(--font-sans));
  letter-spacing: 0.01em;
}

/* Top banner */
.top-banner {
  background: var(--secondary-color);
  color: white;
  font-size: 0.9rem;
  padding: 0.55rem 0;
  transition: transform 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  transform-origin: top;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.top-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.top-banner-left {
  display: flex;
  align-items: center;
  gap: 1.2rem 1.6rem;
  flex-wrap: wrap;
}

.top-banner-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-banner-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: white;
}

.top-banner-item a {
  color: white;
  text-decoration: none;
}

.top-banner-item a:hover {
  text-decoration: underline;
}

.top-banner-item i {
  color: var(--primary-light);
}

.top-banner-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, white 12%, transparent);
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.top-banner-icon:hover {
  background: color-mix(in srgb, white 24%, transparent);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .top-banner-left span {
    display: none;
  }

  .top-banner-left {
    gap: 0.75rem;
  }

  .top-banner-inner {
    flex-wrap: nowrap;
  }
}

.banner-hidden .top-banner {
  transform: translateY(-100%);
  opacity: 0;
  padding: 0;
  height: 0;
  overflow: hidden;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 0.9rem 0;
  transition: all 0.3s ease;
  z-index: 1030;
  /* ensure navbar & collapse sit above content */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--secondary-color) 8%, transparent);
}

.navbar .collapse,
.navbar .collapsing,
.navbar .collapse.show {
  visibility: visible !important;
}

.navbar.scrolled {
  padding: 0.6rem 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color) !important;
  letter-spacing: 0.02em;
}

.navbar-brand span {
  color: var(--primary-color);
}

.nav-links {
  gap: 0.4rem;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 600;
  margin: 0 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  position: relative;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
  background: color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.btn-book {
  background: var(--primary-color);
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.btn-book:hover,
.btn-book.active {
  background: var(--secondary-color);
  color: white;
}

/* Ensure toggler icon is visible when using custom styles */
.navbar .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

.navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(44,44,44,0.85)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

/* Ensure toggler icon renders at a visible size regardless of resets */
.navbar .navbar-toggler-icon {
  width: 1.5rem;
  height: 1.5rem;
  background-size: 100% 100%;
}

/* Mobile collapse background so menu items are readable */
@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: white;
    padding: 5rem 1.5rem 2rem;
    border-radius: 0;
    margin-top: 0;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1045;
    overflow-y: auto;
  }

  .navbar .navbar-collapse.show {
    transform: translateX(0);
  }

  .nav-links {
    gap: 0.3rem;
    align-items: flex-start;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    text-align: center;
  }

  .navbar-cta {
    margin-top: 0.75rem;
    width: 100%;
  }

  .navbar-cta .btn {
    width: 100%;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 31, 36, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1035;
  }

  .nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 16%, transparent);
    color: var(--secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-close:hover {
    background: color-mix(in srgb, var(--primary-color) 28%, transparent);
  }

  body.nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Ensure navbar menu is visible on laptop/desktop (>= lg) */
@media (min-width: 992px) {
  .nav-overlay {
    display: none;
  }

  .navbar .navbar-collapse {
    display: flex !important;
    justify-content: flex-end;
    gap: 2rem;
    margin-left: auto;
  }

  .navbar-cta {
    display: flex;
    align-items: center;
  }
}

.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-book.active {
  box-shadow: 0 0 0 2px var(--primary-color);
}

/* Footer */
.footer {
  background: var(--secondary-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.8rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.5rem;
  color: white;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Contact card links: remove default blue underline and inherit color */
.contact-info-card a {
  text-decoration: none;
  color: inherit;
}

.contact-info-card a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* Hero and content links: inherit surrounding color and remove underline */
.hero a,
.contact-section a,
.pricing-card a,
.service-card a {
  color: inherit;
  text-decoration: none;
}

.hero a:hover,
.contact-section a:hover,
.pricing-card a:hover,
.service-card a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.4rem;
  }
}