/*
Theme Name: Jai Chan Spa
Theme URI: https://jaichan.com
Author: Jai Chan Spa
Description: Custom editable WordPress theme for Jai Chan Spa, aligned to the 2026 Jai Chan CI.
Version: 2.0.0
Text Domain: jaichan-spa
*/

:root {
  --jc-teak: #886044;
  --jc-rice: #D1C7BE;
  --jc-white: #FFFFFF;
  --jc-linen: #BCAFA7;
  --jc-paddy: #DCC186;
  --jc-charcoal: #32312D;
  --jc-cement: #AAAAAA;

  --jc-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --jc-brand: "Anantason", "Helvetica Neue", Arial, sans-serif;
  --jc-strong: "Bernoru Expanded", "Anantason", "Helvetica Neue", Arial, sans-serif;

  --jc-content: 1200px;
  --jc-wide: 1440px;
  --jc-header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--jc-white);
  color: var(--jc-charcoal);
  font-family: var(--jc-brand);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ---------------------------------------------------------
   Layout
--------------------------------------------------------- */

.jc-container {
  width: min(92%, var(--jc-content));
  margin-inline: auto;
}

.jc-wide {
  width: min(94%, var(--jc-wide));
  margin-inline: auto;
}

.jc-home-content {
  width: 100%;
  overflow: hidden;
}

.jc-home-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

.alignwide {
  width: min(94%, var(--jc-wide)) !important;
  max-width: var(--jc-wide) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.alignfull {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */

.jc-site-header {
  position: relative;
  z-index: 100;
  min-height: var(--jc-header-h);
  display: flex;
  align-items: center;
  background: var(--jc-white);
  border-bottom: 1px solid rgba(50, 49, 45, 0.10);
}

.jc-header-inner {
  width: min(94%, var(--jc-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 230px 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.jc-logo-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.jc-site-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.jc-site-header .custom-logo,
.jc-logo-image {
  display: block;
  width: auto;
  height: 58px;
  max-width: 205px;
  object-fit: contain;
}

.jc-primary-nav {
  justify-self: center;
}

.jc-primary-nav ul {
  display: flex;
  align-items: center;
  gap: 42px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.jc-primary-nav a {
  color: var(--jc-charcoal);
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1;
  transition: color .2s ease;
}

.jc-primary-nav a:hover,
.jc-primary-nav a:focus {
  color: var(--jc-teak);
}

.jc-book-button {
  display: inline-flex;
  min-width: 148px;
  justify-content: center;
  align-items: center;
  padding: 14px 24px;
  background: var(--jc-teak);
  color: var(--jc-white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--jc-strong);
  font-size: 0.82rem;
  border: 1px solid var(--jc-teak);
  transition: .2s ease;
}

.jc-book-button:hover,
.jc-book-button:focus {
  background: var(--jc-charcoal);
  border-color: var(--jc-charcoal);
}

.jc-language {
  white-space: nowrap;
  color: var(--jc-charcoal);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.jc-language span + span::before {
  content: " | ";
  color: var(--jc-cement);
  margin: 0 7px;
}

.jc-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.jc-menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--jc-charcoal);
  margin: 5px auto;
}

/* ---------------------------------------------------------
   Typography
--------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--jc-charcoal);
  font-family: var(--jc-display);
  font-weight: 500;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3.5rem, 8vw, 7.5rem);
}

h2 {
  font-size: clamp(2.7rem, 5.4vw, 5.2rem);
}

h3 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

p {
  margin-top: 0;
}

.jc-kicker,
.is-style-jc-kicker {
  font-family: var(--jc-strong);
  color: var(--jc-teak);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   WordPress blocks
--------------------------------------------------------- */

.wp-block-cover {
  min-height: 620px;
}

.wp-block-cover .wp-block-cover__inner-container {
  width: min(92%, var(--jc-content));
  margin-inline: auto;
}

.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover h3 {
  color: inherit;
}

.wp-block-button__link {
  border-radius: 0 !important;
  background: var(--jc-teak);
  color: var(--jc-white);
  border: 1px solid var(--jc-teak);
  padding: 13px 30px;
  font-family: var(--jc-strong);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: .2s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: var(--jc-charcoal);
  border-color: var(--jc-charcoal);
  color: var(--jc-white);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent;
  color: var(--jc-teak);
  border-color: var(--jc-teak);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
  background: var(--jc-teak);
  color: var(--jc-white);
}

.wp-block-separator {
  border: 0;
  border-top: 2px solid var(--jc-teak);
  width: 42px;
  margin-left: 0;
}

.wp-block-image img {
  width: 100%;
  object-fit: cover;
}

.wp-block-columns {
  gap: clamp(24px, 3vw, 42px);
}

.wp-block-group.has-background {
  padding-top: clamp(64px, 8vw, 120px);
  padding-bottom: clamp(64px, 8vw, 120px);
}

/* Useful optional classes for Home blocks */
.jc-hero {
  min-height: min(720px, 78vh);
}

.jc-hero .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(720px, 78vh);
}

.jc-hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--jc-white);
}

.jc-hero p {
  max-width: 520px;
}

.jc-section {
  padding: clamp(72px, 8vw, 120px) 0;
}

.jc-section-heading {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px;
}

.jc-treatment-card h3 {
  margin: 16px 0 10px;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.jc-treatment-card p {
  max-width: 320px;
  margin-inline: auto;
  text-align: center;
}

.jc-treatment-card .wp-block-buttons {
  justify-content: center;
}

.jc-story-split {
  gap: 0;
}

.jc-story-split > .wp-block-column {
  min-height: 520px;
}

.jc-story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 6vw, 100px);
}

.jc-location-split {
  gap: 0;
}

.jc-location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 6vw, 96px);
}

/* ---------------------------------------------------------
   Standard pages
--------------------------------------------------------- */

.jc-page {
  padding: 80px 0 110px;
}

.jc-page article {
  max-width: 900px;
  margin-inline: auto;
}

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */

.jc-site-footer {
  background: var(--jc-teak);
  color: var(--jc-white);
  padding: 64px 0 26px;
}

.jc-footer-grid {
  width: min(92%, var(--jc-content));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.15fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.jc-footer-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 190px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.jc-footer-tagline {
  margin-top: 34px;
  max-width: 210px;
  font-family: var(--jc-strong);
  font-size: 0.72rem;
  line-height: 1.75;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jc-footer-title {
  margin: 0 0 14px;
  color: var(--jc-white);
  font-family: var(--jc-strong);
  font-size: 0.70rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.jc-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.jc-footer-links li {
  margin: 7px 0;
}

.jc-footer-links a {
  color: var(--jc-white);
  text-decoration: none;
  font-size: 0.88rem;
}

.jc-footer-links a:hover {
  text-decoration: underline;
}

.jc-social-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 8px 0 24px;
}

.jc-social-row a {
  color: var(--jc-white);
  text-decoration: none;
  font-size: 0.86rem;
}

.jc-newsletter-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.84rem;
}

.jc-newsletter {
  display: flex;
  max-width: 360px;
}

.jc-newsletter input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 13px 14px;
  background: var(--jc-white);
  color: var(--jc-charcoal);
}

.jc-newsletter button {
  width: 48px;
  border: 1px solid var(--jc-white);
  background: transparent;
  color: var(--jc-white);
  cursor: pointer;
}

.jc-footer-bottom {
  width: min(92%, var(--jc-content));
  margin: 42px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.35);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.73rem;
}

.jc-footer-legal {
  display: flex;
  gap: 18px;
}

.jc-footer-legal a {
  color: var(--jc-white);
  text-decoration: none;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */

@media (max-width: 980px) {
  .jc-header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .jc-menu-toggle {
    display: block;
    order: 3;
  }

  .jc-primary-nav {
    display: none;
    position: absolute;
    top: var(--jc-header-h);
    left: 0;
    right: 0;
    padding: 24px 5%;
    background: var(--jc-white);
    border-top: 1px solid rgba(50,49,45,.10);
    border-bottom: 1px solid rgba(50,49,45,.10);
  }

  .jc-primary-nav.is-open {
    display: block;
  }

  .jc-primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .jc-language {
    display: none;
  }

  .jc-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --jc-header-h: 76px;
  }

  .jc-header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
  }

  .jc-site-header .custom-logo,
  .jc-logo-image {
    height: 46px;
    max-width: 160px;
  }

  .jc-book-button {
    min-width: auto;
    padding: 11px 15px;
    font-size: 0.70rem;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 5.3rem);
  }

  h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .wp-block-cover {
    min-height: 560px;
  }

  .jc-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .jc-footer-bottom {
    flex-direction: column;
  }
}
