/*
Theme Name: Thai Healing Hands
Theme URI: https://thaihealinghands.com/
Author: Thai Healing Hands
Description: Editable WordPress theme for Thai Healing Hands Quarteira with managed homepage content, treatments, reviews, media images and business settings.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: thai-healing-hands
*/

:root {
  --red: #8f1f1d;
  --red-dark: #52110f;
  --gold: #c79843;
  --ink: #201715;
  --muted: #6f625e;
  --paper: #fff8ed;
  --cream: #f4ead8;
  --green: #506b5a;
  --white: #fffdfa;
  --shadow: 0 20px 60px rgba(44, 20, 14, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 24px;
  row-gap: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(30, 9, 7, 0.72), rgba(30, 9, 7, 0));
  transition: background 180ms ease, box-shadow 180ms ease, row-gap 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  row-gap: 8px;
  background: rgba(82, 17, 15, 0.96);
  box-shadow: 0 10px 30px rgba(25, 8, 6, 0.2);
}

.brand {
  grid-column: 1;
  grid-row: 1 / 3;
  display: block;
  text-decoration: none;
}

.brand-logo {
  width: clamp(142px, 15vw, 190px);
  aspect-ratio: 384 / 382;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(24, 7, 5, 0.16));
}

.site-nav {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  font-weight: 800;
}

.site-nav li {
  display: block;
  list-style: none;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--gold);
}

.header-tools {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-phones {
  grid-row: 1;
  grid-column: 3;
  align-self: end;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  color: var(--white);
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 900;
  line-height: 1.1;
  transition: max-height 180ms ease, opacity 180ms ease;
}

.site-header.is-scrolled .header-phones {
  max-height: 50px;
  opacity: 1;
  pointer-events: auto;
}

.header-phones a {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  text-align: right;
}

.header-phones a:hover {
  color: var(--gold);
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 253, 250, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.08);
}

.language-switcher button {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.language-switcher button.is-active {
  background: rgba(255, 253, 250, 0.92);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.1;
}

.header-cta {
  background: var(--gold);
  color: #2b1508;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--red-dark);
}

.hero picture,
.hero picture img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(39, 10, 8, 0.74) 0%, rgba(39, 10, 8, 0.48) 42%, rgba(39, 10, 8, 0.08) 100%),
    linear-gradient(180deg, rgba(39, 10, 8, 0.04) 0%, rgba(39, 10, 8, 0.66) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 36px));
  margin: 0 0 clamp(72px, 10vw, 120px) clamp(18px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.15;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255, 253, 250, 0.86);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.primary {
  background: var(--gold);
  color: #291307;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 253, 250, 0.45);
  background: rgba(255, 253, 250, 0.08);
}

.button.outline {
  color: var(--red-dark);
  border-color: rgba(82, 17, 15, 0.24);
  background: transparent;
}

.hero-panel {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 5vw, 70px);
  bottom: 34px;
  width: min(315px, calc(100% - 36px));
  padding: 22px;
  border: 1px solid rgba(255, 253, 250, 0.28);
  border-radius: 8px;
  background: rgba(82, 17, 15, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel span,
.hero-panel strong,
.hero-panel a {
  display: block;
}

.hero-panel span {
  color: rgba(255, 253, 250, 0.72);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-panel strong {
  margin: 3px 0 14px;
  font-size: 24px;
}

.hero-panel a {
  color: var(--white);
  text-decoration: none;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 108px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: end;
}

.intro p:last-child,
.clinic p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.treatment-grid article {
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(44, 20, 14, 0.07);
}

.treatment-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.treatment-grid p,
.price-table p,
.booking-box p,
.contact p,
.local-seo p,
.faq p {
  color: var(--muted);
}

.image-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr 1fr;
  gap: 10px;
  width: min(1440px, calc(100% - 20px));
  margin: 0 auto;
}

.image-band img {
  width: 100%;
  height: clamp(260px, 34vw, 470px);
  object-fit: cover;
  border-radius: 8px;
}

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.price-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.price-table article,
.booking-box {
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(44, 20, 14, 0.07);
}

.price-table article {
  padding: 22px;
}

.price-table article.wide {
  grid-column: 1 / -1;
}

.price-table > article > p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 9px 0 0;
  border-top: 1px solid rgba(143, 31, 29, 0.1);
  padding-top: 9px;
}

.price-table .price-desc {
  display: block;
  min-height: 48px;
  margin: 8px 0 14px;
  border-top: 0;
  padding-top: 0;
  line-height: 1.55;
}

.price-table .price-desc p {
  display: block;
  margin: 0;
  border-top: 0;
  padding-top: 0;
}

.price-table strong {
  color: var(--red);
  font-size: 19px;
}

.booking-box {
  position: sticky;
  top: 92px;
  padding: 26px;
}

.booking-box .button {
  width: 100%;
  margin-top: 10px;
}

.local-seo {
  padding-bottom: clamp(48px, 6vw, 82px);
}

.seo-grid,
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-grid article,
.faq-list article {
  min-height: 190px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(44, 20, 14, 0.07);
}

.faq {
  padding-top: clamp(56px, 7vw, 92px);
}

.clinic {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.62fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: center;
}

.clinic img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.reviews {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.42fr);
  gap: 28px;
  align-items: start;
}

.reviews .section-heading {
  margin-bottom: 0;
}

.review-summary,
.review-grid article {
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(44, 20, 14, 0.07);
}

.review-summary {
  padding: 26px;
  border-top: 5px solid var(--gold);
}

.review-summary strong {
  display: block;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 0.95;
}

.review-summary span,
.review-summary a {
  display: block;
}

.review-summary span {
  margin: 8px 0 16px;
  color: var(--muted);
  font-weight: 800;
}

.review-summary a {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.review-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-grid article {
  padding: 24px;
}

.review-grid article p {
  color: var(--muted);
}

.review-grid article span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.details {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
}

.details div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(143, 31, 29, 0.12);
}

.details dt {
  color: var(--red);
  font-weight: 900;
}

.details dd {
  margin: 0;
  color: var(--muted);
}

.directions {
  display: grid;
  grid-template-columns: minmax(300px, 0.44fr) minmax(0, 0.76fr);
  min-height: 470px;
  background: var(--cream);
}

.directions-copy {
  padding: clamp(42px, 6vw, 86px) clamp(18px, 6vw, 72px);
  align-self: center;
}

.directions iframe {
  width: 100%;
  height: 100%;
  min-height: 470px;
  border: 0;
  filter: saturate(0.78) contrast(1.02);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(48px, 6vw, 70px) clamp(18px, 7vw, 92px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(82, 17, 15, 0.94), rgba(143, 31, 29, 0.84)),
    url("assets/storefront.png") center / cover;
}

.contact h2 {
  margin-bottom: 10px;
}

.contact p {
  margin-bottom: 0;
  color: rgba(255, 253, 250, 0.78);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: rgba(255, 253, 250, 0.76);
  background: var(--red-dark);
}

.site-footer p {
  margin: 0;
}

.whatsapp-float {
  position: fixed;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 18px;
  color: #102f17;
  background: #8dd66e;
  box-shadow: 0 14px 34px rgba(20, 45, 18, 0.24);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .header-phones {
    grid-column: 2;
    grid-row: 1;
  }

  .menu-button {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    display: inline-grid;
    width: 46px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 253, 250, 0.24);
    border-radius: 6px;
    background: rgba(255, 253, 250, 0.08);
  }

  .menu-button span:not(.sr-only) {
    display: block;
    width: 19px;
    height: 2px;
    margin: 2px 0;
    background: var(--white);
  }

  .site-nav,
  .header-tools {
    display: none;
  }

  .site-header.is-open .site-nav,
  .site-header.is-open .header-tools {
    grid-column: 1 / -1;
    display: grid;
    justify-self: stretch;
    gap: 0;
    padding-top: 10px;
  }

  .site-header.is-open .site-nav {
    grid-row: 3;
  }

  .site-header.is-open .header-tools {
    grid-row: 4;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-header.is-open .language-switcher {
    justify-self: start;
  }

  .site-header.is-open .site-nav a {
    padding: 13px 0;
    border-top: 1px solid rgba(255, 253, 250, 0.14);
  }

  .hero {
    min-height: 860px;
  }

  .hero-content {
    margin: 0 auto 260px;
  }

  .hero-panel {
    left: 18px;
    right: 18px;
    bottom: 28px;
    width: auto;
  }

  .intro,
  .price-layout,
  .clinic,
  .contact,
  .reviews,
  .directions {
    grid-template-columns: 1fr;
  }

  .treatment-grid,
  .price-table,
  .review-grid,
  .seo-grid,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-box {
    position: static;
  }

  .contact-actions {
    justify-content: start;
  }

  .directions iframe {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-logo {
    width: 124px;
  }

  .header-phones {
    gap: 2px;
    font-size: clamp(13px, 3.7vw, 15px);
  }

  .site-header.is-scrolled .header-phones {
    max-height: 46px;
  }

  .header-phones a {
    min-height: 22px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(39, 10, 8, 0.28) 0%, rgba(39, 10, 8, 0.72) 58%, rgba(39, 10, 8, 0.9) 100%);
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-bottom: 270px;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .treatment-grid,
  .price-table,
  .image-band,
  .review-grid,
  .seo-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .image-band img {
    height: 300px;
  }

  .section {
    width: min(100% - 28px, 1180px);
  }

  .details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact {
    padding: 46px 18px;
  }

  .whatsapp-float {
    left: 18px;
    right: 18px;
  }
}
