/*			ALL			R*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*			HTML			R*/

html {
    height: 100%;
}

/*			BODY			R*/

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    
    background-color: #EDC3C4;

    /*
    background-image: url("backgroundpic.jpg");
    background-repeat: repeat;
    background-size: auto;
    background-position: top left;*/
}

@media (max-width: 768px) {
    body {
        background-size: 75%;
    }
}

/*			NAVIGATION BAR			R*/

.navbarlogo {
    width: 75px;
    height: 75px;
    background-image: url('luminousskincliniclogowithtext.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid black;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ECA0A0;
    height: 90px;
    padding: 0 20px;
    border-bottom: 4px solid black;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 18px;
	font-weight: bold;
    padding: 8px 12px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
	border-radius: 8px;
	display: inline-block;
}

.nav-links a:hover {
    background-color: #EDC3C4;
    font-weight: bold;
	transform: scale(1.15);
}

.nav-links a.active {
    color: white;
    font-weight: bold;
}

/*			FOOTER			R*/

.footer {
    position: sticky;
    bottom: 0;
    z-index: 1000;

    background-color: #222222;
    color: #a2a2a2;
    text-align: center;
    padding: 15px 20px;
    font-size: 0.9rem;
    margin-top: auto;
    border-top: 1px solid #ECA0A0;
}

.footer .footer-links {
    margin-bottom: 8px;
	font-weight: bold;
}
.footer .footer-links a {
    color: #ECA0A0;
    margin: 0 12px;
    text-decoration: none;
	transition: color 0.3s ease;
}

.footer .footer-links a:hover {
    color: #CCCCCC;
}

.footer-links a.active {
    color: white;
}

.footer p {
    margin: 0;
    font-size: 0.85rem;
}

.footer .footer-trustpilot {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

/* image hover only scales itself */
.footer .footer-trustpilot img {
    height: 50px;
    width: auto;
    border-radius: 999px;
    object-fit: cover;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer .footer-trustpilot img:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer .footer-socialmedialinks {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.footer .footer-socialmedialinks img {
    width: 50px;
    height: 50px;
    margin-left: 12px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer .footer-socialmedialinks img:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/*			HOMEPAGE WELCOME MESSAGE			R*/

.welcome-content {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #EDC3C4;
    padding-top: 80px;   
	padding-bottom: 30px;
    text-align: center;
}

.welcome-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333333;
}

.welcome-content p {
    color: #555555;
    font-size: 1.2rem;
    max-width: 1700px;
    margin: 0 auto;
}

.welcomemessagebutton {
    align-self: center;
    margin-top: auto;
    padding: 10px 20px;
    background: #ECA0A0;
	font-weight: bold;
	font-size: 1.2rem;
	color: black;	
    border-radius: 8px;
    text-decoration: none;
    transition: ease 0.3s;
	display: inline-block;
}

.welcomemessagebutton:hover {
    background: black;
	font-weight: bold;	
    color: white;
	transform: scale(1.15);
}

/*			HOMEPAGE SLIDESHOW			R*/

.services-slideshow {
    max-width: 1000px;
    margin: 40px auto;
    text-align: center;
}
.services-slideshow h2 {
    margin-bottom: 20px;
    color: #333333;
    font-weight: bold;
}

.slideshow-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    background: white;
    padding: 20px;
    width: 100%;
    max-width: 900px;
}
.slideshowslide {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.6s ease;
}
.slideshowslide.active {
    display: flex;
}
.slideshowslide img {
    width: 600px;
    max-width: 85%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.slideshowdescription {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.slideshowdescription h3 {
	font-size: 1.4rem;
    margin-bottom: 10px;
    color: #222222;
}

.slideshowdescription p {
    color: #555555;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.slideshowdescription p.slideshowslideprice {
    color: #ECA0A0;
    font-size: 1.2rem;
	font-weight: bold;
    max-width: 600px;
    margin: 0auto;
}

.slideshowdescription .slideshowbutton {
    align-self: center;
    margin-top: auto;
    padding: 10px 20px;
    background: #ECA0A0;
	font-weight: bold;
	font-size: 1.2rem;
	color: black;	
    border-radius: 8px;
    text-decoration: none;
    transition: ease 0.3s;
	display: inline-block;
}

.slideshowdescription .slideshowbutton:hover {
    background: black;
	font-weight: bold;	
    color: white;
	transform: scale(1.15);
}

.prev, .next {
    top: 50%;
    position: absolute;
    padding: 7px 16px;
    color: #fff;
    background-color: rgba(0,0,0,0.2);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    user-select: none;
    transform: translateY(-50%);
    transition: background-color 0.25s ease;
    cursor: pointer;
}
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.4);
}
.prev { left: 10px; }
.next { right: 10px; }

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/*			ABOUT SECTION			R*/

.about-section {
    padding: 40px;
    text-align: center;
}
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: auto;
}
.owner-image {
    width: 250px;
    height: auto;
	transition: ease 0.3s;
}

.owner-image:hover {
	transform: scale(1.1);
}

.owner-info {
    max-width: 500px;
    text-align: left;
}

/* Map section */
.map-section {
    padding: 40px;
    text-align: center;
}
.map-container {
    max-width: 900px;
    margin: auto;
}

.index-widget-container {
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.about-content {
    text-align: center;
}


.about-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333333;
}

.about-content p {
    color: #555555;
    font-size: 1.2rem;
    max-width: 1700px;
    margin: 0 auto;
}

/*			SERVICE CARDS			R*/

.services-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.services-container h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: black;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 2fr;
    }
}

.service-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    padding: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    background-color: #ECA0A0;
}

.service-card img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
}

.service-card h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: inherit;
    transition: color 0.3s ease;
}

.service-card:hover h2,
.service-card a:hover h2 {
    color: white;
}

.service-card p {
    font-size: 1rem;
    color: #555555;
}

.service-card p.servicecard-price {
    color: #ECA0A0;
    font-size: 1.2rem;
    font-weight: bold;
    max-width: 600px;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.service-card a {
    color: inherit;
    text-decoration: none;
}

.service-card:hover p.servicecard-price,
.service-card a:hover p.servicecard-price {
    color: black;
}

.servicecard-price {
    margin-top: 12px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #ECA0A0;
}

/*			SERVICE DETAIL CARDS			R*/

.service-detail {
  max-width: 1000px;
  margin: 50px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.service-detail h1 {
  text-align: center;
  font-size: 2rem;
  color: #333333;
}

.service-detail-introduction {
  text-align: center;
  color: #666666;
  margin-bottom: 30px;
  margin-top: 15px;
}

/*			SERVICE DETAIL DROPDOWN CARDS			R*/

.dropdown-card {
  border: 1px solid #DDDDDD;
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  background: white;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dropdown-card:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 15px;
  transition: background 0.3s ease;
}

.dropdown-header:hover {
  background: #FFEAEA;
}

.dropdown-header img {
  width: 120px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 15px;
}

.header-info {
  flex: 1;
}

.header-info h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.price {
  color: #eca0a0;
  font-weight: bold;
  margin-top: 5px;
}

.service-detail-book-button {
  background: #eca0a0;
  border-radius: 8px;
  padding: 10px 20px;
  color: black;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-right: 20px;
}

.service-detail-book-button:hover {
  background: black;
  color: white;
  transform: scale(1.15);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: #f0f0f0;
  transition: max-height 0.4s ease;
}

.dropdown-content p {
  margin: 10px 0;
  color: #555555;
  line-height: 1.5;
}

.subsection {
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.subsection h3 {
  color: #ECA0A0;
  margin-bottom: 8px;
}

.subsection:hover {
  transform: scale(1.02);
}

.microservice-images {
  display: flex;
  flex-wrap: wrap; /* allows multiple rows if space is tight */
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.microservice-images img {
  flex: 1 1 calc(20% - 10px); /* 5 images per row, subtract gap space */
  max-width: calc(20% - 10px); /* ensures no image exceeds 1/5 of container */
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.microservice-images img:hover {
  transform: scale(1.05);
}
.dropdown-header.active {
  background: #EDC3C4;
}

@media (max-width: 768px) {
  .dropdown-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-detail-book-button {
    margin-top: 10px;
    margin-right: 0;
  }
}

/*			CSS CODE WHICH NEEDS SORTING AND CHECKING - ?			TBS*/
/*			CODE MERGES WITH PRE EXISTING CODE - NEED TO SORT			TBS*/

.booking-page .datetime-section {
    margin-top: 40px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.booking-page .datetime-section h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #222;
}

/* Date input */
.booking-page .datetime-section input[type="date"],
.booking-page .datetime-section select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin: 5px;
    width: 200px;
    text-align: center;
}

/* Time dropdown */
.booking-page .datetime-section select {
    cursor: pointer;
    background-color: white;
    transition: border-color 0.3s ease;
}

.booking-page .datetime-section select:hover {
    border-color: #d4af37;
}

/* Submit / confirm button */
.booking-page .datetime-section button {
    display: block;
    margin: 25px auto 0;
    background-color: #d4af37;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.booking-page .datetime-section button:hover {
    background-color: #b8912e;
}

.booking-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.booking-container h1 {
  font-size: 2.2rem;
  color: black;
  margin-bottom: 10px;
}

.booking-container p {
  color: #444;
  margin-bottom: 25px;
}

.dropdown-header h3 {
  font-size: 1.3rem;
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease;
}

.dropdown-header.active + .dropdown-content {
  padding: 15px;
  
}

.service-detail-book-button {
  background-color: #ECA0A0;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s;
}

.service-detail-book-button:hover {
    background: black;
  color: white;
  transform: scale(1.15);
}

/* ---- Form ---- */
#appointment-form {
  text-align: left;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#appointment-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

#appointment-form input,
#appointment-form select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 5px;
}

.submit-button {
  margin-top: 20px;
  background-color: #ECA0A0;
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #d78484;
}

/* Wrapper */
.clinic-slideshow-wrapper {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
}

.clinic-slideshow-heading {
	align-self: center;
    font-size: 2rem;
	margin-top: 30px;
    margin-bottom: 15px;
    color: #333333;
}

/* Container visible window */
.clinic-slideshow-container {
  width: 90vw;
  max-width: 900px;
  height: 300px;
  margin: auto;
  margin-top: 10px;
  margin-bottom: 30px;
  overflow: hidden;
  border: 1px solid #EDC3C4;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #ECA0A0;
  display: flex;
  align-items: center;
}

/* The track (now has 24 slides) */
.clinic-slideshow-track {
  display: flex;
  width: calc(24 * 295px); /* 24 slides * (280 + 15) */
  animation: clinic-slide-scroll 60s linear infinite;
}

/* Each slide */
.clinic-slide {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  margin-right: 15px;
  overflow: hidden;
  border: 5px solid #EDC3C4;
}

.clinic-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Infinite scroll animation */
@keyframes clinic-slide-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Move half the total width (the first 12 images worth) */
    transform: translateX(-3540px); /* 12 * (280+15) */
  }
}

.whatsapp-button {
  background-color: #25D366;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-button:hover {
  background-color: #1ebe57;
}