/* Custom Overrides for Salon Renesance - Professional Design */

/* ============================================
   COLOR PALETTE - Unified Dusty Rose
   Primary Rose: #d4727a
   Page Background: #f0d5d8 (dusty rose)
   Card Background: #fffaf8
   Dark Text: #2d2d2d
   Muted Text: #6b6b6b
   ============================================ */

/* ==========================================
   GLOBAL STYLES - Apply to ALL pages
   ========================================== */

/* Global background */
body {
  background-color: #f0d5d8 !important;
}

/* All sections get the same background */
section {
  background-color: #f0d5d8 !important;
  transition: background-color 0.3s ease;
}

/* Content sections */
section.mbr-section,
section.header1,
section.content4,
section.content9,
section.mbr-gallery,
section.gallery5 {
  background-color: #f0d5d8 !important;
}

/* ==========================================
   BUTTONS - Consistent across all pages
   ========================================== */

/* Primary/Secondary buttons (in hero sections) */
.btn-secondary {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #d4727a !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 14px 28px !important;
  font-weight: 500 !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease !important;
}

.btn-secondary:hover {
  background: #ffffff !important;
  color: #c45a62 !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-secondary .mbr-iconfont {
  color: #d4727a !important;
}

/* Outline buttons */
.btn-black-outline {
  border: 2px solid #d4727a !important;
  color: #d4727a !important;
  background: transparent !important;
  border-radius: 30px !important;
  padding: 12px 32px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px;
  transition: all 0.3s ease !important;
}

.btn-black-outline:hover {
  background: #d4727a !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 114, 122, 0.3);
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */

/* Content text areas */
.content4,
.content9 {
  background-color: #f0d5d8 !important;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

.content4 h2 {
  color: #d4727a !important;
  font-weight: 600 !important;
}

.content4 h3,
.content4 .mbr-section-subtitle {
  font-weight: 400 !important;
  color: #5a5a5a !important;
}

.content9 .section-text {
  color: #d4727a !important;
  font-weight: 500 !important;
}

.content9 .line {
  border-color: rgba(212, 114, 122, 0.3) !important;
}

/* ==========================================
   GALLERY SECTIONS
   ========================================== */

.mbr-gallery,
.gallery5 {
  background-color: #f0d5d8 !important;
  padding-top: 20px !important;
  padding-bottom: 40px !important;
}

/* Gallery section - full width */
section.mbr-gallery.mbr-slider-carousel {
  padding: 10px 20px !important;
}

/* Reset Mobirise's absolute positioning for gallery */
.mbr-gallery-row {
  position: relative !important;
  height: auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 8px !important;
}

.mbr-gallery-layout-default {
  width: 100% !important;
}

.mbr-gallery-layout-default > div {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.mbr-gallery-layout-default > div > div {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.mbr-gallery-item {
  position: relative !important;
  float: none !important;
  flex: 1 1 calc(25% - 8px) !important;
  max-width: calc(25% - 8px) !important;
  min-width: 200px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mbr-gallery-item > div {
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 3px 12px rgba(150, 100, 100, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 180px !important;
  width: 100% !important;
  background: #fff;
}

.mbr-gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 10px !important;
}

.mbr-gallery-item:hover > div {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(150, 100, 100, 0.25);
}

/* Hide clearfix that might affect layout */
.mbr-gallery-layout-default .clearfix {
  display: none !important;
}

/* Hide the icon-focus overlay */
.mbr-gallery-item .icon-focus {
  display: none !important;
}

/* Responsive gallery */
@media (max-width: 1200px) {
  .mbr-gallery-item {
    flex: 1 1 calc(33.33% - 8px) !important;
    max-width: calc(33.33% - 8px) !important;
  }
}

@media (max-width: 768px) {
  .mbr-gallery-item {
    flex: 1 1 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
    min-width: 140px !important;
  }
  .mbr-gallery-item > div {
    height: 150px !important;
  }
}

@media (max-width: 480px) {
  .mbr-gallery-item {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  .mbr-gallery-item > div {
    height: 200px !important;
  }
}

/* Gallery5 type galleries */
.gallery-image .item-wrapper {
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 3px 12px rgba(150, 100, 100, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 180px !important;
}

.gallery-image .item-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 10px !important;
}

.gallery-image:hover .item-wrapper {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(150, 100, 100, 0.25);
}

/* ==========================================
   HOMEPAGE SPECIFIC - Service Cards
   ========================================== */

/* Featured service cards on homepage */
.cid-u5ZlhBGoSN .container,
.cid-srQQsHSRSU .container {
  max-width: 900px;
}

.cid-u5ZlhBGoSN .col-md-10,
.cid-srQQsHSRSU .col-md-10 {
  background: linear-gradient(135deg, #fffaf8 0%, #fdf5f3 100%);
  border-radius: 16px;
  padding: 50px 40px !important;
  box-shadow: 
    0 4px 24px rgba(180, 100, 110, 0.12),
    0 2px 6px rgba(150, 100, 100, 0.08);
  border: 1px solid rgba(212, 114, 122, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cid-u5ZlhBGoSN .col-md-10:hover,
.cid-srQQsHSRSU .col-md-10:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px rgba(180, 100, 110, 0.18),
    0 4px 12px rgba(150, 100, 100, 0.1);
}

/* Service title styling */
.cid-u5ZlhBGoSN H1,
.cid-srQQsHSRSU H1,
.cid-t9Gst4CvKw H1 {
  color: #2d2d2d !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
}

/* Highlight class for service names */
.service-highlight {
  color: #d4727a !important;
  font-weight: 600 !important;
  display: block;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Better text colors on homepage */
.cid-u5ZlhBGoSN .mbr-text,
.cid-srQQsHSRSU .mbr-text,
.cid-t9Gst4CvKw .mbr-text,
.cid-shJBti3DmP .mbr-section-subtitle {
  color: #5a5a5a !important;
  line-height: 1.8;
}

/* Article/Blog section on homepage */
.cid-t9Gst4CvKw .col-md-10 {
  padding: 40px 30px !important;
}

/* Section separators on homepage */
.cid-u5ZlhBGoSN::after,
.cid-t9Gst4CvKw::after,
.cid-srQQsHSRSU::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4727a, transparent);
}

/* Decorative element */
.cid-u5ZlhBGoSN::before {
  content: '✦';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #d4727a;
  font-size: 14px;
  opacity: 0.6;
}

/* ==========================================
   LINKS
   ========================================== */

.text-primary {
  color: #d4727a !important;
}

a.text-primary:hover {
  color: #c45a62 !important;
}

/* ==========================================
   FOOTER - Keep original dark style
   ========================================== */

section[id^="footer"] {
  background-color: #635a51 !important;
}

/* ==========================================
   NAVBAR - Keep clean and clickable
   ========================================== */

section.menu {
  background-color: transparent !important;
  position: relative !important;
  z-index: 1000 !important;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  z-index: 1000 !important;
}

.navbar-fixed-top {
  z-index: 1000 !important;
}

/* Ensure overlays don't block clicks */
.mbr-overlay {
  pointer-events: none !important;
}

/* Ensure buttons and links are clickable */
.mbr-section-btn,
.mbr-section-btn a,
.btn,
a.btn {
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
}

/* Hero section content should be above overlay */
.header1 .container {
  position: relative !important;
  z-index: 5 !important;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .cid-u5ZlhBGoSN .col-md-10,
  .cid-srQQsHSRSU .col-md-10 {
    padding: 30px 20px !important;
    margin: 0 15px;
  }
  
  .btn-secondary,
  .btn-black-outline {
    padding: 12px 24px !important;
  }
}

/* ==========================================
   ABOUT US - Team Member Cards
   ========================================== */

.content6,
.content7 {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

.content6 .media-container-row > .col-12,
.content7 .media-container-row > .col-12 {
  max-width: 900px;
}

/* Team member card styling */
.content6 .col-12 > .media-container-row,
.content7 .col-12 > .media-container-row {
  background: linear-gradient(135deg, #fffaf8 0%, #fdf5f3 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 
    0 8px 32px rgba(180, 100, 110, 0.15),
    0 2px 8px rgba(150, 100, 100, 0.08);
  border: 1px solid rgba(212, 114, 122, 0.15);
  align-items: center;
  gap: 30px;
}

/* Team member images */
.content6 .mbr-figure,
.content7 .mbr-figure {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 280px !important;
}

.content6 .mbr-figure img,
.content7 .mbr-figure img {
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(150, 100, 100, 0.2);
  transition: transform 0.3s ease;
}

.content6 .mbr-figure img:hover,
.content7 .mbr-figure img:hover {
  transform: scale(1.02);
}

/* Team member text content */
.content6 .media-content,
.content7 .media-content {
  flex: 1;
  padding: 20px;
}

.content6 .mbr-text,
.content7 .mbr-text {
  color: #5a5a5a !important;
  line-height: 1.8 !important;
  font-size: 0.95rem !important;
}

.content6 .mbr-text strong,
.content7 .mbr-text strong {
  color: #d4727a !important;
  font-size: 1.3rem !important;
  display: inline-block;
  margin-bottom: 10px;
}

/* Remove forced line breaks for better flow */
.content6 .mbr-text br,
.content7 .mbr-text br {
  content: ' ';
}

/* Right-aligned text for second card */
.content7 .mbr-text.align-right {
  text-align: left !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .content6 .col-12 > .media-container-row,
  .content7 .col-12 > .media-container-row {
    flex-direction: column !important;
    text-align: center;
  }
  
  .content6 .mbr-figure,
  .content7 .mbr-figure {
    max-width: 250px !important;
    margin: 0 auto 20px auto;
  }
  
  .content6 .media-content,
  .content7 .media-content {
    padding: 10px 0;
  }
  
  .content7 .mbr-text.align-right {
    text-align: center !important;
  }
}

/* ==========================================
   ARTICLE PAGES (Celulitida, Manuální lifting, etc.)
   ========================================== */

/* Article title sections - only for specific article pages */
.cid-sHjaV81lKm,
.cid-sHjb8G8vnh {
  padding-top: 120px !important;
  padding-bottom: 40px !important;
}

.cid-sHjaV81lKm .title,
.cid-sHjb8G8vnh .title {
  background: linear-gradient(135deg, #fffaf8 0%, #fdf5f3 100%);
  border-radius: 16px;
  padding: 50px 60px !important;
  box-shadow: 
    0 4px 24px rgba(180, 100, 110, 0.12),
    0 2px 6px rgba(150, 100, 100, 0.08);
  border: 1px solid rgba(212, 114, 122, 0.15);
  max-width: 800px;
  margin: 0 auto;
}

.cid-sHjaV81lKm .mbr-section-title,
.cid-sHjb8G8vnh .mbr-section-title {
  color: #d4727a !important;
  margin-bottom: 0 !important;
}

/* Masaze page description - simple styling without card */
.cid-raU668NHJc .title {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 20px !important;
  box-shadow: none !important;
  border: none !important;
  max-width: 100%;
}

/* Article content sections */
.content5 {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

.content5 .col-lg-10 {
  background: linear-gradient(135deg, #fffaf8 0%, #fdf5f3 100%);
  border-radius: 16px;
  padding: 40px 50px !important;
  box-shadow: 
    0 4px 24px rgba(180, 100, 110, 0.12),
    0 2px 6px rgba(150, 100, 100, 0.08);
  border: 1px solid rgba(212, 114, 122, 0.15);
}

.content5 .mbr-section-subtitle {
  color: #2d2d2d !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  border-left: 4px solid #d4727a;
  padding-left: 20px;
  margin-bottom: 30px !important;
}

.content5 .mbr-text {
  color: #5a5a5a !important;
  line-height: 1.8 !important;
}

.content5 .mbr-text strong {
  color: #d4727a !important;
}

/* ==========================================
   TESTIMONIALS / TEAM CARDS
   ========================================== */

.testimonials1 {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

.testimonials1 .panel-item {
  background: linear-gradient(135deg, #fffaf8 0%, #fdf5f3 100%) !important;
  border-radius: 20px !important;
  box-shadow: 
    0 8px 32px rgba(180, 100, 110, 0.15),
    0 2px 8px rgba(150, 100, 100, 0.08) !important;
  border: 1px solid rgba(212, 114, 122, 0.15) !important;
  padding: 30px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials1 .panel-item:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 12px 40px rgba(180, 100, 110, 0.2),
    0 4px 12px rgba(150, 100, 100, 0.1) !important;
}

.testimonials1 .testimonial-photo {
  width: 180px !important;
  height: 180px !important;
  margin: 0 auto 20px auto !important;
  overflow: hidden;
  border-radius: 50% !important;
  box-shadow: 0 6px 20px rgba(150, 100, 100, 0.2);
}

.testimonials1 .testimonial-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.testimonials1 .mbr-author-name {
  color: #d4727a !important;
  font-size: 1.2rem !important;
  margin-top: 15px !important;
}

.testimonials1 .mbr-author-desc {
  color: #6b6b6b !important;
}

/* ==========================================
   IMAGE SECTIONS
   ========================================== */

section[id^="image"] {
  padding: 40px 0 !important;
}

section[id^="image"] .image-block {
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(150, 100, 100, 0.15);
}

section[id^="image"] img {
  border-radius: 16px;
}

/* ==========================================
   MASAZE PAGE - Content styling
   ========================================== */

/* Style the massage descriptions */
.cid-raU668NHJc .mbr-section-subtitle {
  background: linear-gradient(135deg, #fffaf8 0%, #fdf5f3 100%);
  border-radius: 16px;
  padding: 40px !important;
  box-shadow: 
    0 4px 24px rgba(180, 100, 110, 0.12),
    0 2px 6px rgba(150, 100, 100, 0.08);
  border: 1px solid rgba(212, 114, 122, 0.15);
  color: #5a5a5a !important;
  line-height: 1.9 !important;
}

.cid-raU668NHJc .mbr-section-subtitle strong {
  color: #d4727a !important;
  font-size: 1.1em;
}

.cid-raU668NHJc .mbr-section-subtitle a {
  color: #d4727a !important;
  text-decoration: underline;
}

.cid-raU668NHJc .mbr-section-subtitle a:hover {
  color: #c45a62 !important;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */

.form1 {
  padding-top: 120px !important;
  padding-bottom: 60px !important;
}

.form1 .title {
  background: linear-gradient(135deg, #fffaf8 0%, #fdf5f3 100%);
  border-radius: 16px;
  padding: 50px !important;
  box-shadow: 
    0 4px 24px rgba(180, 100, 110, 0.12),
    0 2px 6px rgba(150, 100, 100, 0.08);
  border: 1px solid rgba(212, 114, 122, 0.15);
  margin-bottom: 40px !important;
}

.form1 .mbr-section-title {
  color: #d4727a !important;
  font-weight: 600 !important;
  margin-bottom: 20px !important;
}

.form1 .mbr-section-subtitle {
  color: #5a5a5a !important;
}

.form1 .mbr-section-subtitle p {
  margin-bottom: 10px !important;
}

.form1 .mbr-section-subtitle hr {
  border-color: rgba(212, 114, 122, 0.3) !important;
  margin: 25px 0 !important;
}

/* Contact info cards */
.contact-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(150, 100, 100, 0.1);
  border: 1px solid rgba(212, 114, 122, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(150, 100, 100, 0.15);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.contact-service {
  color: #d4727a !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-bottom: 15px !important;
}

.contact-name {
  color: #2d2d2d !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  margin-bottom: 15px !important;
  white-space: nowrap;
}

.contact-phone {
  display: inline-block;
  color: #fff !important;
  background: #d4727a;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.contact-phone:hover {
  background: #c45a62;
  transform: scale(1.05);
  color: #fff !important;
  text-decoration: none !important;
}

.contact-email-card {
  display: inline-block;
  background: #fff;
  border-radius: 30px;
  padding: 15px 35px;
  box-shadow: 0 4px 15px rgba(150, 100, 100, 0.1);
  border: 1px solid rgba(212, 114, 122, 0.1);
}

.email-icon {
  font-size: 1.5rem;
  margin-right: 10px;
}

.contact-email {
  color: #d4727a !important;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none !important;
}

.contact-email:hover {
  color: #c45a62 !important;
  text-decoration: underline !important;
}

/* Form styling */
.form1 .media-container-column {
  background: linear-gradient(135deg, #fffaf8 0%, #fdf5f3 100%);
  border-radius: 16px;
  padding: 40px !important;
  box-shadow: 
    0 4px 24px rgba(180, 100, 110, 0.12),
    0 2px 6px rgba(150, 100, 100, 0.08);
  border: 1px solid rgba(212, 114, 122, 0.15);
}

.form1 .form-control {
  border: 2px solid rgba(212, 114, 122, 0.2) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  background: #fff !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.form1 .form-control:focus {
  border-color: #d4727a !important;
  box-shadow: 0 0 0 3px rgba(212, 114, 122, 0.15) !important;
  outline: none !important;
}

.form1 .form-control-label {
  color: #2d2d2d !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
}

.form1 .btn-form,
.form1 .btn-primary {
  background: #d4727a !important;
  border: none !important;
  border-radius: 30px !important;
  padding: 14px 40px !important;
  font-weight: 500 !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
  margin-top: 20px !important;
}

.form1 .btn-form:hover,
.form1 .btn-primary:hover {
  background: #c45a62 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 114, 122, 0.3);
}

/* ==========================================
   SIMPLE GALLERY - Clean Bootstrap grid
   ========================================== */

.simple-gallery {
  background-color: #f0d5d8 !important;
  padding: 20px 0 40px 0 !important;
}

.simple-gallery .gallery-item {
  padding: 8px !important;
}

.simple-gallery .gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(150, 100, 100, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.simple-gallery .gallery-item img:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(150, 100, 100, 0.25);
}

@media (max-width: 768px) {
  .simple-gallery .gallery-item img {
    height: 140px;
  }
}

/* ==========================================
   HIDE MOBIRISE BRANDING
   ========================================== */

section[style*="font-family: -apple-system"] {
  display: none !important;
}
