/* Pearl Head Spa — site styles */
:root {
  --charcoal: #3e3d3d;
  --peach: #f7d9bc;
  --grey: #8e8e8e;
  --off-white: #fafafa;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: Almarai, Helvetica, Arial, sans-serif;
  --gutter: 4vw;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--charcoal);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { font-weight: 400; margin: 0 0 1rem; }
h1, .display { font-size: clamp(2.4rem, 4.85vw, 3.88rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.73rem); line-height: 1.11; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); line-height: 1.05; letter-spacing: -0.02em; }
h4 { font-size: clamp(1.3rem, 2vw, 1.58rem); line-height: 1.17; letter-spacing: -0.02em; }
.lead { font-size: clamp(1.15rem, 1.75vw, 1.38rem); line-height: 1.5; }

.wrap { padding: 0 var(--gutter); max-width: 1500px; margin: 0 auto; }
.wrap-narrow { width: min(880px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.dark { background: var(--charcoal); color: var(--peach); }
.peach { background: var(--peach); color: #000; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: #000;
  background: var(--peach);
  border: 0;
  border-radius: 300px;
  padding: 1.2rem 2rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn:hover { opacity: 0.8; }
.btn-lg { font-size: 1.1rem; }
.btn-wide { min-width: min(286px, 100%); }
.btn-dark { background: #000; color: var(--peach); text-transform: uppercase; }
.btn-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 1.5rem; }
.btn-row .btn { flex: 0 1 150px; padding: 0.7rem 1.4rem; font-size: 0.85rem; display: grid; place-items: center; }

/* Announcement bar */
.announcement {
  position: relative;
  z-index: 30;
  background: var(--peach);
  color: var(--charcoal);
  text-align: center;
  padding: 0.65rem 3rem;
  font-size: 0.9rem;
}
.announcement p { margin: 0; }
.announcement-close {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; font-size: 1.4rem; line-height: 1; color: inherit; cursor: pointer;
}

/* Header (overlays the first section of every page) */
.site-header {
  position: absolute;
  left: 0; right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--gutter);
  color: #fff;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }
.site-nav a { text-decoration: none; padding: 0.1rem 0; }
.site-nav a:hover, .site-nav a[aria-current] { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.site-logo img { width: clamp(120px, 14vw, 181px); }
.site-actions { display: flex; justify-content: flex-end; align-items: center; gap: 1.6rem; }
.social { display: flex; gap: 1rem; }
.social a { display: block; width: 20px; height: 20px; }
.social svg { width: 100%; height: 100%; }
.site-actions .btn { padding: 1.15rem 2rem; }
.menu-toggle { display: none; }

/* Carousels (hero + testimonials) */
.carousel { position: relative; overflow: hidden; }
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 60px; height: 60px; border-radius: 50%; border: 0;
  background: var(--peach); color: var(--charcoal);
  display: grid; place-items: center; cursor: pointer; z-index: 5;
  transition: opacity 0.2s ease;
}
.arrow:hover { opacity: 0.8; }
.arrow svg { width: 30px; }
.arrow-prev { left: 3vw; }
.arrow-next { right: 3vw; }

.hero { background: var(--charcoal); height: clamp(480px, 46vw, 760px); }
.hero .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.hero .slide::before { content: ""; position: absolute; inset: 0; background: rgba(62, 61, 61, 0.25); }
.hero .slide.is-active { opacity: 1; visibility: visible; }
.slide-content { position: relative; text-align: center; color: #fff; max-width: 600px; padding: 110px 80px 0; }
.slide-content h2 { font-size: clamp(1.9rem, 3.65vw, 2.92rem); margin-bottom: 3.5rem; }

/* Home: intro */
.intro { padding: 7.5rem 0 14rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5vw; align-items: start; }
.intro .split > div { max-width: 540px; }

/* Home: services card (overlaps the intro section) */
#pearl-home-services { position: relative; margin-top: -110px; z-index: 2; padding: 0 0 60px; }
#pearl-home-services .pearl-home-services-shell { width: 92%; max-width: 1600px; margin: 0 auto; }
#pearl-home-services .pearl-home-services-card { background: #fff; border-radius: 18px; padding: 40px 30px 50px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08); }
#pearl-home-services .pearl-home-services-header { text-align: center; margin-bottom: 30px; }
#pearl-home-services .pearl-home-services-header h2 { margin: 0 0 10px; line-height: 1.1; }
#pearl-home-services .pearl-home-services-header p { margin: 0 auto; max-width: 720px; color: #666; line-height: 1.6; }
#pearl-home-services .pearl-home-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
#pearl-home-services .pearl-home-service-card { display: block; text-decoration: none; color: inherit; border: 1px solid #d9d9d9; border-radius: 32px; overflow: hidden; background: #fff; transition: all 0.25s ease; }
#pearl-home-services .pearl-home-service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06); }
#pearl-home-services .pearl-home-service-card img { width: 100%; height: 480px; object-fit: cover; }
#pearl-home-services .pearl-home-service-card-body { padding: 22px 20px 26px; text-align: center; }
#pearl-home-services .pearl-home-service-card-body h3 { margin: 0 0 8px; line-height: 1.05; color: #000; }
#pearl-home-services .pearl-home-service-card-body p { margin: 0; color: #777; line-height: 1.45; }

/* Home: Le Mieux */
.lemieux { position: relative; padding: 4rem 0 calc(6vw + 5rem); }
.lemieux .split > div:last-child { max-width: 485px; }
.lemieux-logo { width: 138px; margin-bottom: 4rem; }
.lemieux .btn { margin-top: 3rem; min-width: 187px; }
.curve { position: absolute; left: 0; bottom: -1px; width: 100%; height: 6vw; fill: var(--charcoal); }

/* Home: testimonials */
.testimonials { color: var(--off-white); padding: 3rem 0 6rem; }
.testimonials .slides { display: grid; width: min(614px, 100% - 190px); margin: 0 auto; }
.quote { grid-area: 1 / 1; margin: 0; text-align: center; align-self: center; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s; }
.quote.is-active { opacity: 1; visibility: visible; }
.quote blockquote { margin: 0 0 1rem; font-size: clamp(1.05rem, 1.75vw, 1.38rem); line-height: 1.5; }
.quote figcaption { font-size: clamp(1.05rem, 1.75vw, 1.38rem); font-weight: 700; }

/* Book-now call to action */
.cta {
  position: relative; text-align: center; color: #fff;
  padding: 8.5rem var(--gutter) 9rem;
  background: var(--charcoal) center / cover no-repeat;
  isolation: isolate;
}
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(62, 61, 61, 0.45); z-index: -1; }
.cta h2 { margin-bottom: 1.6rem; }

/* Inner page banners */
.banner {
  position: relative; isolation: isolate;
  min-height: 318px; padding: 190px var(--gutter) 2rem;
  display: flex; align-items: flex-end; justify-content: center;
  color: var(--off-white); text-align: center;
  background: var(--grey) center / cover no-repeat;
}
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(142, 142, 142, 0.15); z-index: -1; }
.banner .lead { margin: 0; }
.banner-mid { min-height: 355px; padding-bottom: 3.2rem; }
.banner-short { min-height: 291px; }
.banner-dark::before { background: rgba(62, 61, 61, 0.15); }
.banner-tall { min-height: 550px; justify-content: flex-start; text-align: left; padding-bottom: 150px; }
.banner-copy { max-width: 485px; }
.banner-copy h1 { font-size: clamp(1.9rem, 3.4vw, 2.73rem); line-height: 1.11; margin-bottom: 0.7rem; }
.banner-copy .lead { margin-bottom: 0.7rem; max-width: 385px; }
.banner-copy .btn { min-width: 187px; }

/* About */
.story { padding: 2.3rem 0 4.5rem; }
.story-grid { display: grid; grid-template-columns: minmax(0, 583fr) minmax(0, 422fr); gap: 1.5vw; padding: 0 8vw; align-items: start; }
.story-text h1, .story-text h2 { color: #fff; font-weight: 700; margin-bottom: 0.6rem; }
.story-text h2 { margin-top: 3rem; }
.story-text p { max-width: 435px; }
.story-grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.journey {
  position: relative; isolation: isolate; color: var(--off-white);
  padding: 7.8rem var(--gutter) 3rem;
  background: var(--charcoal) center / cover no-repeat;
}
.journey::before { content: ""; position: absolute; inset: 0; background: rgba(62, 61, 61, 0.45); z-index: -1; }
.journey-inner { max-width: 682px; margin: 0 auto; text-align: center; }
.journey ul { text-align: left; padding-left: 3.5rem; margin: 1.3rem 0 1.2rem; }
.journey li { margin-bottom: 0.5rem; }

/* Contact */
.contact { padding: 2.3rem 0 2.8rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 484fr) minmax(0, 534fr); gap: 12.5vw; align-items: start; }
.contact-grid > img { width: 100%; aspect-ratio: 534 / 719; object-fit: cover; }
.contact h1 { margin-bottom: 0.7rem; }
.contact-form { margin-top: 4.5rem; display: grid; gap: 1.25rem; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; }
.contact-form legend { padding: 0; margin-bottom: 0.25rem; }
.contact-form label { display: block; }
.contact-form label span { color: rgba(0, 0, 0, 0.6); font-size: 0.75rem; margin-left: 0.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-row label { font-size: 0.75rem; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 0.4rem;
  font: inherit; color: #000; background: transparent;
  border: 1px solid var(--grey); border-radius: 24px; padding: 0.55rem 1rem;
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #000; outline-offset: 1px; }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: 0.9rem; }
.form-note.is-error { color: #8a1c1c; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button:disabled { opacity: 0.5; cursor: default; }

/* FAQ */
.faq { padding: 5.3rem 0 6rem; }
.faq h1 { font-size: clamp(1.9rem, 3.4vw, 2.73rem); text-align: center; margin-bottom: 3.7rem; }
.accordion { border-bottom: 1px solid #000; }
.accordion details { border-top: 1px solid #000; }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: clamp(1.2rem, 2vw, 1.58rem); line-height: 1.25; letter-spacing: -0.02em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(#000, #000) center / 100% 1px no-repeat, linear-gradient(#000, #000) center / 1px 100% no-repeat;
  transition: transform 0.2s ease;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details p { margin: 0; padding: 0 2rem 1.9rem 0; }

/* Privacy policy */
.policy { padding: 4rem 0 5rem; }
.policy h1 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); margin-bottom: 1.5rem; }
.policy h2 { font-family: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.5; margin: 1.8rem 0 1rem; }

/* Footer */
.site-footer { background: var(--peach); color: #000; padding: 2rem 0 3.3rem; }
.footer-top { display: grid; grid-template-columns: 6fr 6fr 4fr 7fr; gap: 11px; padding: 0 8vw 0; align-items: start; }
.footer-logo img { width: 237px; margin-top: 1rem; }
.footer-col { text-align: center; grid-column: 3; }
.footer-col + .footer-col { grid-column: 4; }
.footer-col h4 { margin-bottom: 1.9rem; }
.footer-legal { padding: 0 8vw; margin-top: 1.5rem; text-align: center; font-size: 0.9rem; }
.footer-legal hr { width: 187px; border: 0; border-top: 1px solid #000; margin: 0 auto 1rem; }
.footer-legal p:nth-of-type(2) { font-style: italic; }

/* Services page shell */
.services-body { background: #fff; padding-bottom: 3rem; }
.services-body > #pearl-services-modal-page { width: 92%; max-width: 1600px; margin: 0 auto; }
#pearl-services-modal-page h4 { color: var(--grey); }
#pearl-services-modal-page .pearl-modal h3 { color: #000; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 6vw; }
  .site-header { grid-template-columns: auto 1fr auto; padding-top: 0.5rem; }
  .site-logo { justify-self: center; }
  .social, .site-actions .btn { display: none; }
  .site-actions { width: 34px; }
  .menu-toggle {
    display: grid; gap: 8px; width: 34px; padding: 6px 0; background: none; border: 0; cursor: pointer; z-index: 41;
  }
  .menu-toggle span { display: block; height: 1px; background: #fff; transition: transform 0.25s ease; }
  .menu-open .menu-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; z-index: 40;
    background: var(--charcoal);
    flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 1.6rem;
    font-size: 1.7rem;
    opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }

  .arrow { width: 44px; height: 44px; }
  .arrow svg { width: 22px; }
  .slide-content { padding: 110px 64px 0; }
  .slide-content h2 { margin-bottom: 2rem; }
  .split, .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .story-grid { padding: 0 var(--gutter); }
  .intro { padding: 4rem 0 11rem; }
  .lemieux-logo { margin-bottom: 2rem; }
  .lemieux .btn { margin-top: 1.5rem; }
  .testimonials .slides { width: calc(100% - 130px); }
  .cta { padding: 5.5rem var(--gutter) 6rem; }
  .contact-form { margin-top: 2.5rem; }
  .footer-top { grid-template-columns: 1fr; padding: 0 var(--gutter); gap: 2rem; justify-items: center; }
  .footer-col, .footer-col + .footer-col { grid-column: auto; }
  .footer-col h4 { margin-bottom: 0.8rem; }
  .footer-legal { padding: 0 var(--gutter); }

  #pearl-home-services { margin-top: -100px; }
  #pearl-home-services .pearl-home-services-shell { width: 100%; padding: 0 20px; }
  #pearl-home-services .pearl-home-services-card { padding: 30px 20px 36px; border-radius: 14px; }
  #pearl-home-services .pearl-home-services-grid { grid-template-columns: 1fr; gap: 22px; }
  #pearl-home-services .pearl-home-service-card img { height: 340px; }
  .services-body > #pearl-services-modal-page { width: 100%; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  #pearl-home-services .pearl-home-services-shell { padding: 0 16px; }
  #pearl-home-services .pearl-home-service-card { border-radius: 24px; }
  #pearl-home-services .pearl-home-service-card img { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
