header('Content-type: text/css');

/* 
 * CSS Document
 * https://jqueryui.com/demos/
 * https://www.w3schools.com/cssref/css_selectors.php
 * https://www.w3schools.com/cssref/tryit.php?filename=trycss_cursor
 */

:root {
/*  --themeColour: #C26A7A;
  --lightColour: #F7EBEB; */
  --textDark: #3a3a3a;
  --borderRadius: 16px;
}

/* ===============================
   Services Grid
   =============================== */

.services-wide {
  max-width: 1400px;
  margin: auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  background: var(--lightColour);
  
  align-items: stretch; /* explicit, safe */
}

/* ===============================
   Service Row
   =============================== */

.service-row {
  display: flex;
  height: 100%;               /* 🔑 this is the important part */
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.service-row:hover {
  transform: translateY(-4px);
}

/* ===============================
   Service Image
   =============================== */

.service-image {
  position: relative;              /* REQUIRED for overlay */
  width: 40%;
  min-width: 240px;
  aspect-ratio: 300 / 350;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
  border-radius: 0; /* image stays square */
  transition: box-shadow 0.35s ease;
}

/* Image behaviour */
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}
.service-image::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
  pointer-events: none;
}

/* Hover effects */
/* Glow on hover */
.service-row:hover .service-image {
  box-shadow:
    0 0 0 2px rgba(194,106,122,0.25),
    0 10px 30px rgba(194,106,122,0.35);
}
/* Gentle zoom */
.service-row:hover .service-image img {
  transform: scale(1.06);
}

/* ===============================
   Service Info
   =============================== */

.service-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-info h3 {
  margin: 0 0 8px;
  color: var(--themeColour);
  font-size: 1.3rem;
}

.service-info p {
  margin: 0 0 16px;
  color: var(--textDark);
  line-height: 1.6;
}

/* ===============================
   Meta Row
   =============================== */

.service-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto; /* pushes meta to bottom */
}

.duration {
  background: var(--lightColour);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.95rem;
  color: var(--themeColour);
}

.price {
  font-weight: bold;
  font-size: 1.0rem;
  color: var(--themeColour);
}

.book-btn {
  margin-left: auto;
  background: var(--themeColour);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 30px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.book-btn:hover {
  background: #a95765;
  transform: scale(1.05);
}

/* ===============================
   Service Tabs
   =============================== */
/* Hide radio buttons */
.service-tabs-css input[type="radio"] ,
.service-tabs-css input[type="checkbox"] {
  display: none;
}

/* Style labels as tabs */
.service-tabs-css label {
  display: inline-block;
  padding: calc( 0.625rem * var( --ui-scale , 1 ) ) calc( 1.375rem * var( --ui-scale , 1 ) )  ;
  margin-right: calc( 0.625rem * var( --ui-scale , 1 ) );
  margin-bottom: calc( 0.625rem * var( --ui-scale , 1 ) );
  border-radius: calc( 1.875rem * var( --ui-scale , 1 ) );
  background: #fff;
  color: var(--themeColour);
  border: 1px solid rgba( 194 , 106 , 122 , 0.3 );
  cursor: pointer;
  font-size: calc( 1rem * var( --ui-scale , 1 ) );
  transition: all 0.25s ease;
}
.margin-left_2em {
	margin-left: 2em;
}

.service-tabs-css label:hover {
  background: rgba(194,106,122,0.08);
}

/* Active tab highlight */
.service-tabs-css input:checked + label {
  background: var(--themeColour);
  color: #fff;
  border-color: var(--themeColour);
  box-shadow: 0 6px 18px rgba(194,106,122,0.35);
}

/* Hide all sections by default */
.service-tabs-css .tab-content {
  display: none;
  margin-top: 20px;
}

/* Show sections based on radio input */
/*
#tab-all:checked ~ .services-wide .tab-content {
  display: block; /* show all for “All Services” 
}
*/
#tab-all:checked ~ .services-wide .tab-content ,
#tab-facials:checked ~ .services-wide .tab-content.facials ,
#tab-threadings:checked ~ .services-wide .tab-content.threadings ,
#tab-hair_removal:checked ~ .services-wide .tab-content.hair_removal ,
#tab-waxing:checked ~ .services-wide .tab-content.waxing ,
#tab-lips:checked ~ .services-wide .tab-content.lips ,
#tab-brows:checked ~ .services-wide .tab-content.brows
{
  display: block;
}
#tab-all:checked ~ .services-wide .tab-content.hidden ,
#tab-facials:checked ~ .services-wide .tab-content.facials.hidden ,
#tab-threadings:checked ~ .services-wide .tab-content.threadings.hidden ,
#tab-hair_removal:checked ~ .services-wide .tab-content.hair_removal.hidden ,
#tab-waxing:checked ~ .services-wide .tab-content.waxing.hidden ,
#tab-lips:checked ~ .services-wide .tab-content.lips.hidden ,
#tab-brows:checked ~ .services-wide .tab-content.brows.hidden
{
  display: none;
}

/* Optional: smooth fade-in */
.service-tabs-css .tab-content {
  animation: fadeIn 0.95s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   Touch devices (optional polish)
   =============================== */s
@media (hover: none) {
  .service-image img,
  .service-image::after {
    transition: none;
  }
}

/* ===============================
   Mobile (default)
   =============================== */
/* Large phones */
@media (min-width: 480px) {
}

/* Tablets */
@media (min-width: 768px) {}

/* Small laptops */
@media (min-width: 1024px) {}

/* Desktop */
@media (min-width: 1280px) {}

/* ===============================
   Desktop (default)
   =============================== */
/* Mobile-first */
@media (max-width: 480px) {

  .services-wide {
    grid-template-columns: 1fr;
  }

  .service-row {
    flex-direction: column;
  }

  .service-image {
    width: 100%;
    aspect-ratio: 3 / 2;
  }
}

/* Larger phones */
@media (max-width: 600px) {
/* .service-tabs-css label */

  .service-tabs {
    justify-content: center;
  }
  .service-tabs-css label {
	--ui-scale: 0.50;
	font-size: calc( 1.3rem * var( --ui-scale , 1 ) );
  }
}

/* Tablets */
@media (max-width: 768px) {}