/* ============================================
   PREMIUM LUXURY ENHANCEMENTS
   Canvas Cosmetology - Premium Aesthetics & Salon
   ============================================ */

/* ============================================
   ABOUT-1 SECTION
   ============================================ */

.about-1 .section-id {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b8956a;
  margin-bottom: 25px;
  display: inline-block;
  position: relative;
}

.about-1 .section-id::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #b8956a;
}

.about-1 .h2-title {
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 25px;
}

.about-1 .txt-block p {
  font-size: 1.125rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #6f6f6f;
}

.about-1 .txt-block {
  padding: 20px 0;
}

.about-1.pt-8 {
  padding-top: 4rem !important;
  padding-bottom: 0 !important;
}

#services-2.py-8 {
  padding-top: 2.5rem !important;
  padding-bottom: 4rem !important;
}

/* ============================================
   TIME TO BE BEAUTIFUL — CT-01
   ============================================ */

.ct-01.bg--poudre {
  position: relative;
  background-color: #f2e5d5;
}

.ct-01 .section-id {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b8956a;
  margin-bottom: 25px;
  display: inline-block;
  position: relative;
}

.ct-01 .section-id::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #b8956a;
}

.ct-01 .h2-md {
  font-family: 'Vollkorn', serif;
  font-size: 3rem;
  font-weight: 600;
  color: #363636;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 30px;
}

.ct-01 .txt-block p {
  font-family: 'Jost', sans-serif;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #6f6f6f;
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 40px;
}

.ct-01 .txt-block-btn { margin-top: 40px; }

.ct-01 .img-block {
  overflow: hidden;
  align-self: stretch;
}

.ct-01 .img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.98) contrast(1.05);
}

.ct-01 .img-block:hover img { transform: none; }

/* ============================================
   WORKING HOURS — CT-TABLE
   ============================================ */

.ct-table .section-id {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b8956a;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

.ct-table .section-id::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #b8956a;
}

.ct-table .h2-md {
  font-family: 'Vollkorn', serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: #363636;
  margin-bottom: 20px;
}

.ct-table .table td {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  color: #555;
  padding: 14px 0;
  border-color: rgba(184, 149, 106, 0.15);
  letter-spacing: 0.3px;
}

.ct-table .table tr.last-tr td { border-bottom: none; }

/* Equal top/bottom padding — override responsive reductions */
.ct-table.py-8,
.ct-table.pb-8 {
  padding-top: 80px !important;
  padding-bottom: 66px !important;
}

/* Remove extra bottom margin from table */
.ct-table .txt-table .table {
  margin-bottom: 0;
}

/* Working hours row — themed background */
.ct-table .table tr.working-hours-row td {
  background: linear-gradient(135deg, #f9f0e6 0%, #fdf6ee 100%);
  border-top: 1px solid rgba(184, 149, 106, 0.25);
  border-bottom: 1px solid rgba(184, 149, 106, 0.25) !important;
  color: #4a3728;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.ct-table .table tr.working-hours-row td:first-child {
  border-left: 3px solid #b8956a;
  border-radius: 6px 0 0 6px;
  padding-left: 20px;
}
.ct-table .table tr.working-hours-row td:last-child {
  border-right: 3px solid #b8956a;
  border-radius: 0 6px 6px 0;
  padding-right: 20px;
}

/* Separator column centered, day left, time right */
.ct-table .table td:nth-child(1) { text-align: left; width: 40%; }
.ct-table .table td:nth-child(2) { text-align: center; width: 20%; }
.ct-table .table td:nth-child(3) { text-align: right; width: 40%; }

/* ============================================
   WHY CHOOSE CANVAS — CT-02
   ============================================ */

.ct-02 .section-id {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b8956a;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

.ct-02 .section-id::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #b8956a;
}

.ct-02 .h2-md {
  font-family: 'Vollkorn', serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: #363636;
  margin-bottom: 10px;
}

/* ============================================
   GALLERY — GALLERY-4
   ============================================ */

#gallery-4 .section-id {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b8956a;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

#gallery-4 .section-id::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #b8956a;
}

#gallery-4 .h2-title {
  font-family: 'Vollkorn', serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: #363636;
}

/* ============================================
   TESTIMONIALS — REVIEWS-2
   ============================================ */

#reviews-2 .section-id {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b8956a;
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

#reviews-2 .section-id::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #b8956a;
}

#reviews-2 .h2-title {
  font-family: 'Vollkorn', serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: #363636;
}

#reviews-2 .review-2 .review-txt p {
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #6f6f6f;
  font-style: italic;
}

#reviews-2 .review-author p {
  font-family: 'Vollkorn', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #363636;
}

/* ============================================
   CONTACTS — CONTACTS-2
   ============================================ */

#contacts-2 .h5-lg {
  font-family: 'Vollkorn', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #363636;
  margin-bottom: 15px;
}

#contacts-2 .cbox-2 p {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

#contacts-2 .cbox-2-contacts a {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: #b8956a;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contacts-2 .cbox-2-contacts a:hover { color: #363636; }

/* ============================================
   INSTAGRAM SECTION — GALLERY-3
   ============================================ */

#gallery-3 .h3-lg {
  font-family: 'Vollkorn', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #363636;
}

#gallery-3 .h3-lg a {
  color: #b8956a;
  text-decoration: none;
  transition: color 0.3s ease;
}

#gallery-3 .h3-lg a:hover { color: #363636; }

/* Instagram Grid */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 30px;
}

.insta-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 4px;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}

.insta-item:hover img {
  transform: scale(1.08);
}

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 10, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.insta-item:hover .insta-overlay {
  opacity: 1;
}

.insta-overlay svg {
  width: 36px;
  height: 36px;
}

@media (max-width: 767px) {
  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .insta-overlay svg { width: 28px; height: 28px; }
}

@media (max-width: 480px) {
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
  .about-1 .h2-title { font-size: 2.25rem; }
  .about-1 .txt-block p { font-size: 1.0625rem; }
  .ct-01 .h2-md { font-size: 2.5rem; }
  .ct-01 .txt-block p { font-size: 1.1rem; }
}

@media (max-width: 767px) {
  .about-1 .h2-title { font-size: 2rem; }
  .about-1 .txt-block p { font-size: 1rem; }
  .about-1.pt-8 { padding-top: 5rem !important; }
  .ct-01 .h2-md { font-size: 2.25rem; }
  .ct-01 .txt-block p { font-size: 1.05rem; }
}

@media (max-width: 575px) {
  .about-1 .h2-title { font-size: 1.75rem; }
  .ct-01 .h2-md { font-size: 2rem; }
  .ct-01 .txt-block p { font-size: 1rem; }
}

/* ============================================
   HAIR SERVICES — IMAGE CAROUSEL
   ============================================ */
.about8-img-carousel .owl-stage-outer,
.about8-img-carousel {
  width: 100%;
}

.about8-slide {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

.about8-img-carousel img {
  width: 100%;
  height: auto;
  aspect-ratio: 721 / 820;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 16px;
  will-change: transform;
}

/* Ken Burns — slow zoom while slide is active */
.about8-img-carousel .owl-item.active .about8-slide img {
  animation: about8KenBurns 8s ease-out forwards;
}

@keyframes about8KenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.about8-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 10px 16px;
  border-radius: 0 0 16px 16px;
}

/* ============================================
   BOOKING FORM — ERROR STATE
   ============================================ */

.booking-form .form-control.error,
.booking-form .form-select.error {
  border-color: #e55d42 !important;
}

/* ============================================
   GALLERY — MASONRY (Desktop) + CAROUSEL (Mobile)
   ============================================ */

/* Desktop Pinterest-style masonry */
.gallery-masonry {
  column-count: 3;
  column-gap: 8px;
}

@media (min-width: 1200px) {
  .gallery-masonry { column-count: 4; }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
}

.masonry-item .hover-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  display: block;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
  border-radius: 6px;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item .item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 10, 0);
  transition: background 0.35s ease;
  border-radius: 6px;
}

.masonry-item:hover .item-overlay {
  background: rgba(30, 20, 10, 0.35);
}

.masonry-item .image-data {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.masonry-item:hover .image-data {
  opacity: 1;
}

/* Mobile carousel */
.gallery-slide-item {
  overflow: hidden;
  border-radius: 6px;
}

.gallery-slide-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

@media (max-width: 480px) {
  .gallery-slide-item img { height: 260px; }
}

/* Owl dots styling for gallery carousel */
.gallery-mobile-carousel .owl-dots,
.reviews-2-wrapper .owl-dots {
  margin-top: 14px;
  text-align: center;
}

.gallery-mobile-carousel .owl-dot,
.reviews-2-wrapper .owl-dot {
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: inline-block;
}

.gallery-mobile-carousel .owl-dot span,
.reviews-2-wrapper .owl-dot span {
  display: block;
  background: rgba(184, 149, 106, 0.35) !important;
  border: none !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  margin: 0 4px !important;
  transition: background 0.3s ease !important;
}

.gallery-mobile-carousel .owl-dot.active span,
.reviews-2-wrapper .owl-dot.active span {
  background: #b8956a !important;
}

/* ============================================
   INSTAGRAM SECTION — MOBILE FIX
   ============================================ */
@media (max-width: 767px) {
  #gallery-3 .h3-lg {
    font-size: 1rem;
    word-break: break-all;
    overflow-wrap: break-word;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
  }

  #gallery-3 .h3-lg a {
    font-size: 1.1rem;
    word-break: break-all;
  }
}

/* ============================================
   REFLOW CONTAINMENT — reduces forced reflow cost
   from jQuery/Owl carousel layout queries
   ============================================ */

/* Carousel wrappers — isolate layout calculations */
.owl-carousel {
  contain: layout style;
}

/* Gallery images — prevent reflow on load */
.masonry-item img,
.gallery-slide-item img {
  contain: layout;
}

/* Animated sections — promote to own layer */
.wow {
  will-change: opacity, transform;
}

/* Image blocks — contain layout so sibling reflows don't cascade */
.about-8-img,
.img-block {
  contain: layout;
}

/* ============================================
   STAR RATINGS — single element, CSS-only
   Replaces 5 flaticon spans per review with 1 span
   Uses actual flaticon font characters via ::before
   ============================================ */
.star-rating-single {
  font-family: flaticon !important;
  font-style: normal;
  font-weight: normal !important;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 12px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* filled star = \f18e, half star = \f18b, empty star = \f18d */
/* 5 full stars */
.star-rating-single[data-stars="5"]::before {
  content: "\f18e\f18e\f18e\f18e\f18e";
  color: #f5a623;
}
/* 4 full + 1 half */
.star-rating-single[data-stars="4.5"]::before {
  content: "\f18e\f18e\f18e\f18e\f18b";
  color: #f5a623;
}
/* 4 full + 1 empty */
.star-rating-single[data-stars="4"]::before {
  content: "\f18e\f18e\f18e\f18e\f18d";
  color: #f5a623;
}

/* ============================================
   GOOGLE MAP FACADE
   ============================================ */
.map-facade {
  position: relative;
  width: 100%;
  height: 400px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  background: #e8e0d8;
}

.map-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-facade-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 10, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.map-facade:hover .map-facade-overlay {
  background: rgba(30, 20, 10, 0.5);
}

.map-facade-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #b8956a;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.map-facade:hover .map-facade-btn {
  background: #363636;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
#whatsapp-float {
  display: flex;
  width: 45px;
  height: 45px;
  position: fixed;
  bottom: 30px;
  left: 15px;
  border-radius: 6px;
  background-color: #25d366;
  z-index: 99999;
  -webkit-transition: background-color 400ms ease-in-out;
  transition: background-color 400ms ease-in-out;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

#whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  display: block;
}

#whatsapp-float:hover {
  background-color: rgba(37, 211, 102, 0.85);
}

/* ============================================
   UX/UI POLISH LAYER — LUXURY ENHANCEMENTS
   ============================================ */

/* 1. Global Elegance & Smoothness */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Elegant Text Selection */
::selection {
  background: #b8956a;
  color: #fff;
}
::-moz-selection {
  background: #b8956a;
  color: #fff;
}

/* 2. Refined Typography Polish */
h1, h2, h3, .h2-title, .h2-md {
  letter-spacing: -0.2px;
  text-rendering: optimizeLegibility;
}

/* 3. Interactive Luxury Buttons */
.btn, .btn-red, .btn-sm, .btn--tra-black, .btn-upload, .map-facade-btn {
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform, box-shadow;
}

.btn:hover, .btn-red:hover, .btn--tra-black:hover, .btn-upload:hover, .map-facade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 149, 106, 0.25) !important;
}

/* 4. Luxurious Hover Effects on Features/Images */
.masonry-item, .img-block, .gallery-slide-item, .about8-slide, .service-chip, .fbox-3 {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.masonry-item:hover, .img-block:hover {
  box-shadow: 0 12px 30px rgba(30, 20, 10, 0.12);
  transform: translateY(-3px);
  z-index: 10;
}

/* Smooth fade for all standard links */
a {
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* 5. Service Chips (Booking Form & Services page) */
.service-chip {
  transition: all 0.3s ease;
}
.service-chip:hover {
  background: #b8956a;
  color: #fff;
  border-color: #b8956a;
  box-shadow: 0 4px 12px rgba(184, 149, 106, 0.2);
  transform: translateY(-2px);
}

/* 6. Polished Forms */
.form-control, .form-select, .svc-display {
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.form-control:focus, .form-select:focus, .form-control:focus-within {
  border-color: #b8956a !important;
  box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.15) !important;
  outline: none !important;
}

/* ============================================
   FLATPICKR OVERRIDES (ATTRACTIVE CALENDAR)
   ============================================ */
.flatpickr-calendar {
  box-shadow: 0 10px 40px rgba(30, 20, 10, 0.15) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 10px !important;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
    background: #b8956a !important;
    border-color: #b8956a !important;
}
.flatpickr-months .flatpickr-month {
    background: #b8956a !important;
    border-radius: 8px;
    margin-bottom: 8px;
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper, 
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
    color: white !important;
    fill: white !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months option {
    color: #363636 !important;
    background: #fff !important;
}
.flatpickr-weekdays {
    background: transparent !important;
}
span.flatpickr-weekday {
    color: #b8956a !important;
    font-weight: 600 !important;
}
.flatpickr-time {
    border-top: 1px solid rgba(184, 149, 106, 0.2) !important;
}
.flatpickr-day {
    border-radius: 6px !important;
}
