:root {
  --hfBlue: rgba(7, 109, 181, 1);
  --darkhfBlue: #0a4d7a;
}

body {
  background: white;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "DM Serif Text", serif;
}

h2,
.servheading,
.heading-text {
  font-family: "DM Serif Text", serif;
  color: var(--darkhfBlue);
  margin: 0;
}

.satisfy-regular,
.servsub,
.ipl-item {
  font-family: "Satisfy", cursive;
  color: var(--darkhfBlue);
}

.heading-text {
  font-size: 54px;
  text-align: center;
  padding-top: 20px;
}
h2 {
  font-size: 28px;
  padding-left: 20px;
}
.servheading {
  font-size: 40px;
  padding-left: 20px;
}
.servsub,
.ipl-item {
  font-size: 24px;
  font-weight: 800;
}

.logo {
  display: block;
  margin: auto;
  width: 10vw;
}

.logoSection {
  background: white;
  margin-bottom: 5px;
}

.navBar {
  position: relative;
  z-index: 10;
}

.nav-list {
  display: flex;
  width: 100vw;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--hfBlue);
  position: sticky;
}

.nav-item {
  position: relative;
}

.nav-right {
  margin-left: auto;
  padding-right: 5px;
  padding-top: 5px;
}

.nav-item a {
  display: block;
  padding: 14px 16px;
  color: white;
  text-decoration: none;
  text-align: center;
}

.nav-item a:hover,
.dropdown-menu li a:hover {
  background: var(--darkhfBlue);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--hfBlue);
  min-width: 160px;
  list-style: none;
  padding: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  text-align: left;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  margin: 10px;
}

.main-image {
  position: relative;
  width: 100vw;
  height: 40vh;
  background: url("imgs/hfbg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-left: 5vw;
  box-sizing: border-box;
}

.imgtextleft {
  font-size: clamp(20px, 4vw, 40px);
  font-family: "Satisfy", cursive;
  color: var(--darkhfBlue);
  max-width: 60vw;
  display: flex;
  flex-direction: column;
  gap: 0.6rem; /* reduced gap between child elements */
}

.imgtextleft h1 {
  margin: 0.5rem;
}

.slogan {
  font-size: clamp(12px, 2vw, 18px);
  font-family: "DM Serif Text", serif;
  text-align: left;
  margin: 0;
}

.booking-index {
  padding-left: 100px;
  margin-top: 1rem;
}

/* Treatments */
.trtmnts,
.skintrt {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-evenly;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.trt-wrapper,
.skintrt-wrapper {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.trt-wrapper {
  width: 40%;
}
.skintrt-wrapper {
  width: 32%;
}

.trt-wrapper a,
.skintrt-wrapper a {
  text-decoration: none;
  color: white;
}

.trtmnts img,
.skintrt-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: rgba(10, 77, 122, 1);
  color: white;
  text-align: center;
  font-size: 1.5em;
}

/* IPL Box */
.ipl-box,
.iplserv-text-container,
.info-container {
  display: flex;
  max-width: 90%;
  margin: 40px auto;
  padding: 20px;
  box-sizing: border-box;
  gap: 2rem;
}

.ipl-box {
  align-items: center;
  background: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

.ipl-box img,
.ipl-left-image {
  max-width: 750px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ipl-text,
.ipl-right-text {
  flex: 1;
  font-size: 14px;
  text-align: justify;
}

.ipl-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  table-layout: fixed;
  margin: 2rem 0;
}

.ipl-th,
.ipl-th-emph {
  padding: 1rem;
  font-weight: normal;
  border: none;
  font-family: "DM Serif Text", serif;
  color: var(--darkhfBlue);
}

.ipl-th {
  font-size: 14px;
}
.ipl-th-emph {
  font-family: "Satisfy", cursive;
  font-size: 48px;
  color: var(--hfBlue);
}

/* About */
.about-container {
  display: grid;
  grid-template-columns: 1fr 50vw 1fr;
  gap: 2rem;
  max-width: 95vw;
  margin: 2rem auto;
  padding: 1rem;
}

.about,
.about-blurb,
.hairremov-blurb p {
  text-align: center;
  color: #444444;
}

.about-slogan {
  font-size: 18px;
  text-align: center;
  font-family: "DM Serif Text", serif;
}

.about p {
  text-align: justify;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tables & Address */
.businessAdrs a {
  display: block;
  text-align: center;
  margin-bottom: 15px;
  text-decoration: none;
  color: var(--darkhfBlue);
  font-size: 14px;
}

.businessAdrs iframe {
  width: 100%;
  height: 300px;
  border: 0;
  display: block;
}

.businessHrs table {
  width: 100%;
  border-collapse: collapse;
}

.businessHrs th,
.businessHrs td {
  text-align: left;
  padding: 8px;
}

.businessHrs th {
  width: 50%;
  font-weight: 600;
}

.left-side,
.right-side {
  flex: 0 0 50%;
  max-width: 50%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* General Elements */
hr {
  margin: 0 2rem;
  border: none;
  border-top: 2px solid #444;
}

/* FAQ Accordion */
.accordion {
  display: block;
  background-color: #eee;
  color: #444;
  cursor: pointer;
  width: 80%;
  margin: 0 auto;
  text-align: left;
  border: none;
  outline: none;
  border-radius: 12px;
  transition: 0.4s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 24px 18px;
  font-family: "DM Serif Text", serif;
  font-size: 18px;
}

.active,
.accordion:hover {
  background-color: var(--hfBlue);
  color: white;
}

.panel {
  width: 80%;
  margin: 0 auto;
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  box-sizing: border-box;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

.faq-acc {
  margin: 40px 0;
}

a[href*="bookings.gettimely.com/maroochydorehairfree"] {
  border: 2px solid var(--darkhfBlue);
  border-radius: 5px;
}

/* Navigation right margin fix */
.nav-right {
  margin-left: auto;
  padding-right: 5px;
  padding-top: 5px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  font-size: 18px;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  text-align: center;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

.footer-logo {
  max-width: 100px;
  height: auto;
}

.fa {
  padding: 10px;
  font-size: 30px;
  width: 15px;
  text-align: center;
  border-radius: 50%;
}

.fa:hover {
  opacity: 0.7;
}

.fa-facebook {
  background: #3b5998;
  color: white;
}

.fb-link {
  color: white;
  text-decoration: none;
}

.fb-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .heading-text {
    font-size: 36px;
    padding-top: 10px;
  }
  .servheading {
    font-size: 28px;
  }
  .servsub {
    font-size: 18px;
  }
  .logo {
    width: 40vw;
  }
  .trtmnts,
  .skintrt,
  .ipl-box,
  .info-container,
  .iplserv-text-container,
  .about-container,
  .nav-list,
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .trt-wrapper,
  .skintrt-wrapper {
    width: 90%;
    margin-bottom: 20px;
  }
  .ipl-box img,
  .ipl-left-image {
    width: 100%;
    margin-bottom: 10px;
  }
  .footer-logo {
    max-width: 80px;
    height: auto;
  }
  .nav-item a {
    text-align: left;
    padding: 10px 16px;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    background: var(--hfBlue);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  .nav-list.show {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .nav-item {
    text-align: center;
    padding: 10px;
    display: block;
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    display: block;
    font-size: 12px;
  }
  .dropdown {
    position: static;
  }
  .booking-nav {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 50vw 2vh 0;
  }
  .main-image {
    background-image: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 0 1rem 2rem;
    text-align: center;
  }
  .imgtextleft {
    position: static;
    transform: none;
    padding-left: 0;
    max-width: 100%;
    font-size: clamp(25px, 5vw, 30px);
  }
  .slogan {
    padding-left: 0;
    font-size: clamp(14px, 4vw, 18px);
    display: flex;
    justify-content: center;
    width: 100%;
    padding-left: 0;
  }
  .booking-index {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-left: 0;
  }
  .left-side iframe {
    display: none;
  }
  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1.5rem;
  }
  .about {
    width: 100%;
    padding: 0 1rem;
    text-align: center;
  }
  .left-text,
  .right-text {
    order: unset;
  }
  .about-image {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .aboutimg {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
  }
  .about-slogan {
    font-size: 16px;
    padding: 0 1rem;
    text-align: center;
  }
}
