/* =========================================================
   Tawan Thai Massage: stylesheet
   Recreation of the Carrd-hosted site for static hosting.
   Palette and layout mirror the original.
   ========================================================= */

:root {
  --teal:        #55a8a8;
  --teal-dark:   #44908f;
  --teal-darker: #336b6b;
  --header-bg:   #332c2b;     /* dark brown/charcoal hero overlay */
  --ink:         #ffffff;
  --ink-soft:    rgba(255, 255, 255, .85);
  --ink-mute:    rgba(255, 255, 255, .65);
  --line:        rgba(255, 255, 255, .35);
  --shadow:      0 10px 30px rgba(0, 0, 0, .15);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1100px;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background: var(--teal);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s ease;
}
a:hover { opacity: .75; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .01em;
  margin: 0;
}

p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

.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;
}

/* ---------- buttons ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0 0;
  list-style: none;
  padding: 0;
}

.btn {
  display: inline-block;
  padding: .65rem 1.25rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s ease;
}

.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--teal-darker);
  opacity: 1;
}

.btn--solid {
  background: var(--ink);
  color: var(--teal-darker);
  border: 1px solid var(--ink);
}
.btn--solid:hover {
  background: transparent;
  color: var(--ink);
  opacity: 1;
}

.btn--full { width: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--header-bg) url('assets/hero.jpg') center/cover no-repeat;
  color: var(--ink);
  padding: 4rem 1.5rem;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(51, 44, 43, .82), rgba(51, 44, 43, .82));
}
.hero__inner {
  position: relative;
  max-width: 540px;
}
.hero__logo {
  width: 160px;
  height: auto;
  margin: 0 auto 1rem;
}
.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: .1em;
  margin: 0;
}
.hero__subtitle {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .35em;
  color: var(--ink-soft);
  margin: .3rem 0 1rem;
}
.hero__rule {
  width: 60%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1rem auto 1.5rem;
}
.hero__tagline {
  font-size: .85rem;
  color: var(--ink-soft);
  letter-spacing: .03em;
  margin: 0;
}

/* =========================================================
   INTRO
   ========================================================= */
.intro {
  background: var(--teal);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.intro__inner {
  max-width: 720px;
  margin: 0 auto;
}
.intro p {
  font-size: 1rem;
  color: var(--ink-soft);
}
.intro .cta-row {
  justify-content: center;
  margin-top: 1.5rem;
}

/* =========================================================
   TREATMENTS
   ========================================================= */
.treatments {
  background: var(--teal);
}
.treatment {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 320px;
}
.treatment__image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 260px;
}
.treatment__info {
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.treatment__info h2 {
  font-size: 1.6rem;
  margin-bottom: .8rem;
}
.treatment__info p {
  font-size: .92rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

/* prices table */
.prices {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 1rem;
  border-collapse: collapse;
  font-size: .85rem;
}
.prices caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: .35rem;
  color: var(--ink);
}
.prices th,
.prices td {
  padding: .35rem .25rem;
  font-weight: 400;
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--line);
}
.prices th { text-align: left; }
.prices td { text-align: right; }
.prices tr:last-child th,
.prices tr:last-child td { border-bottom: 0; }

.treatment .cta-row { justify-content: center; }

/* alternating layout from md up */
@media (min-width: 760px) {
  .treatment {
    grid-template-columns: 1fr 1fr;
  }
  .treatment__image { min-height: 380px; }
  .treatment__info { padding: 3rem 2.5rem; }

  /* default (odd): image left, info right, matches DOM order */
  /* even: flip, info left, image right */
  .treatment:nth-of-type(even) .treatment__image { order: 2; }
  .treatment:nth-of-type(even) .treatment__info  { order: 1; }
}

/* =========================================================
   OPENING TIMES
   ========================================================= */
.opening {
  background: var(--teal);
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}
.opening__inner {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.opening__intro h2 {
  font-size: 2rem;
  margin-bottom: .75rem;
}
.opening__intro p {
  color: var(--ink-soft);
  font-size: .95rem;
}
.opening__address {
  font-style: italic;
  font-family: var(--font-display);
}

.hours {
  margin: 0 auto;
  width: 100%;
  max-width: 360px;
  border-collapse: collapse;
  font-size: .9rem;
}
.hours th,
.hours td {
  padding: .45rem .35rem;
  color: var(--ink-soft);
  border-bottom: 1px dotted var(--line);
}
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: center; }
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }

@media (min-width: 720px) {
  .opening__inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .opening__intro { text-align: left; }
  .hours { margin: 0; }
}

.opening__signoff {
  margin-top: 2.5rem;
  text-align: center;
}
.opening__logo {
  margin: 0 auto .5rem;
  width: 110px;
}
.opening__brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: .1em;
  margin: 0;
}
.opening__brand-sub {
  font-size: .7rem;
  letter-spacing: .35em;
  color: var(--ink-soft);
  margin: .25rem 0 1rem;
}
.opening__welcome {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--ink-soft);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  background-image:
    linear-gradient(rgba(132, 161, 159, .66), rgba(132, 161, 159, .66)),
    url('assets/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--ink);
}
.contact__inner {
  max-width: 540px;
  margin: 0 auto;
}
.contact h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.contact__urgent {
  color: var(--ink-soft);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.contact__urgent a {
  border-bottom: 1px dotted currentColor;
}

/* form */
.contact-form {
  margin: 2rem auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  max-width: 380px;
  text-align: left;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .75rem .9rem;
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 3px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--ink-mute);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  background: rgba(0, 0, 0, .28);
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='white'><path d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 10px;
  background-color: rgba(0, 0, 0, .18);
  padding-right: 2.25rem;
}
.contact-form select option { color: #222; }
.contact-form textarea { resize: vertical; min-height: 96px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .8rem;
  color: var(--ink-soft);
  margin: .3rem 0 .8rem;
  cursor: pointer;
}
.consent input { width: auto; margin-top: 3px; }

.contact-form__note {
  font-size: .82rem;
  min-height: 1.2em;
  color: var(--ink-soft);
  margin: .5rem 0 0;
  text-align: center;
}

.contact__map {
  margin: 1.5rem auto;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact__map iframe { display: block; }
.contact__address {
  font-size: .85rem;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
}

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews {
  background: var(--teal);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.reviews__inner { max-width: 720px; margin: 0 auto; }
.reviews h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.reviews__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}
.reviews__row img { max-height: 80px; width: auto; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--teal);
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer__inner { max-width: 540px; margin: 0 auto; }
.footer__icons {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin: 0 0 1.5rem;
  list-style: none;
  padding: 0;
}
.footer__icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
}
.footer__rule {
  border: 0;
  border-top: 1px solid var(--line);
  width: 60%;
  margin: 1.5rem auto;
}
.footer__logo {
  margin: 0 auto .5rem;
  width: 100px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: .12em;
  margin: 0;
}
.footer__brand-sub {
  font-size: .65rem;
  letter-spacing: .3em;
  color: var(--ink-soft);
  margin: .25rem 0 1rem;
}
.footer__contact {
  font-size: .8rem;
  color: var(--ink-soft);
  margin: 0;
}
.footer__contact a { border-bottom: 1px dotted currentColor; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   Map consent placeholder
   ========================================================= */
.map-placeholder {
  background: rgba(0, 0, 0, .15);
  border: 1px dashed rgba(255, 255, 255, .35);
  border-radius: 4px;
  padding: 2rem 1.25rem;
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}
.map-placeholder p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
}
.map-placeholder__alt {
  font-size: .8rem;
  font-style: italic;
  font-family: var(--font-display);
}
.map-placeholder__alt a {
  border-bottom: 1px dotted currentColor;
}

/* =========================================================
   Cookie banner
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  background: #1f2828;
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  padding: 1rem 1.25rem;
  animation: cookieIn .35s ease both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner__inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  align-items: stretch;
}
.cookie-banner__text {
  margin: 0;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.cookie-banner__text a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
}
.cookie-banner__buttons {
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.btn--small {
  padding: .5rem 1rem;
  font-size: .7rem;
}
@media (min-width: 720px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
  }
  .cookie-banner__buttons { flex-shrink: 0; }
}

/* =========================================================
   Footer legal line
   ========================================================= */
.footer__legal {
  font-size: .78rem;
  color: var(--ink-soft);
  margin: .75rem 0 0;
}
.footer__legal a {
  border-bottom: 1px dotted currentColor;
}
