/* ===== Root & Reset ===== */
:root {
    --bg: #f6f4ef;
    --panel: #ffffff;
    --ink: #1b2430;
    --muted: #6b7280;
    --brand: #256a63;
    --brand-ghost: #e6f3f1;
    --line: #e8e5e0;
    --shadow: 0 10px 28px rgba(0, 0, 0, .08);
    --r: 18px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans Thai", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px
}

.muted {
    color: var(--muted)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: .2s
}

.btn:hover {
    transform: translateY(-1px)
}

.btn--ghost {
    background: transparent;
    color: var(--brand)
}

.btn--light {
    background: #fff;
    color: var(--brand);
    border-color: #fff
}

.btn--invert {
    background: #111;
    color: #fff;
    border-color: #111
}

.section {
    padding: 56px 0
}

.section--alt {
    background: #fff
}

/* ===== Navbar ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 244, 239, .72);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line)
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none
}

.brand__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand)
}

.nav__actions {
    display: flex;
    gap: 18px;
    align-items: center
}

.nav__actions a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600
}

.nav__actions .btn--ghost {
    border-color: var(--brand);
    padding: 8px 14px
}

.nav__menu {
    display: none;
    background: transparent;
    border: 0;
    font-size: 22px
}

/* ===== HERO (Center Stack) ===== */
.hero {
    padding: 32px 0
}

.hero__grid {
    display: block !important
}

/* ปิดเลย์เอาต์ซ้าย-ขวาเดิม */
.hero--center .panel {
    background: #fff5dc;
    border: 1px solid #eadfca;
    border-radius: 24px;
    padding: 28px 18px;
    box-shadow: var(--shadow);
}

.hero--center .hero__content {
    max-width: 880px;
    margin: 0 auto;
    text-align: center
}

.hero--center .hero__title {
    margin: 6px 0 8px;
    font-size: 44px;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: .2px
}

.subtitle {
    font-size: 26px;
    font-weight: 800;
    margin: 4px 0 6px;
    color: #111
}

.lead {
    font-size: 20px;
    margin: 6px 0 14px;
    color: #111
}

.hero__figure {
    margin: 10px auto 2px;
    display: flex;
    justify-content: center
}

.hero__figure img {
    width: 100%;
    max-width: 760px;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    border: 3px solid rgba(0, 0, 0, .12)
}

/* ===== Cards (Services) ===== */
.section__head {
    margin-bottom: 18px
}

.section__head h2 {
    margin: 0 0 6px
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 12px
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover
}

.card__body {
    padding: 14px
}

.card__body h3 {
    margin: 2px 0 6px;
    font-size: 18px
}

/* ===== Dark Info Box ===== */
.info {
    margin-top: 26px;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    color: #e5e7eb;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: stretch
}

.info__content {
    padding: 24px 22px
}

.info__content h3 {
    margin-top: 0
}

.info__media img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.checklist {
    margin: 10px 0 16px 0;
    padding-left: 18px
}

.checklist li {
    margin: 6px 0
}
/* ===== Gallery Layout ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* ===== Each Figure ===== */
.gallery figure {
  width: 100%;
  height: 260px;              /* ← ปรับความสูงตรงนี้ได้ */
  overflow: hidden;
  border-radius: 20px;
  margin: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Images Inside ===== */
.gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* ← ทำให้รูปไม่บิด */
  transition: transform 0.4s ease, filter 0.3s ease;
}

/* ===== Hover Zoom Effect ===== */
.gallery figure:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}


/* ขยายเบา ๆ ตอน hover */
.gallery figure:hover img {
  transform: scale(1.08);   /* ขยาย 8% */
  filter: brightness(1.05); /* เพิ่มความสว่างนิด ๆ */
}


/* ===== Team ===== */
.team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.person {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.person img {
    width: 100%;
    height: 220px;
    object-fit: cover
}

.person__meta {
    padding: 12px
}

.person__meta h4 {
    margin: 0 0 4px
}

/* ===== CTA Wide ===== */
.cta-wide {
    margin-top: 24px;
    background: var(--brand);
    color: #fff;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.cta-wide__text h3 {
    margin: 0 0 6px
}

/* ===== Contact ===== */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 18px;
    align-items: stretch
}

.contact__box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow)
}

.contact__list {
    margin: 10px 0 14px;
    padding-left: 16px
}

.contact__map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px
}

/* ===== Footer ===== */
.footer {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    background: #fff
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

.badges {
    display: flex;
    gap: 10px;
    align-items: center
}

.badges img {
    height: 28px;
    filter: grayscale(20%)
}

/* ===== Responsive ===== */
@media (max-width:1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .info {
        grid-template-columns: 1fr
    }

    .gallery {
        grid-template-columns: repeat(3, 1fr)
    }

    .team {
        grid-template-columns: repeat(2, 1fr)
    }

    .contact {
        grid-template-columns: 1fr
    }
}

@media (max-width:680px) {
    .nav__actions {
        display: none
    }

    .nav__menu {
        display: block
    }

    .nav__actions.is-open {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 10px 20px;
        gap: 12px;
        flex-direction: column
    }

    .container {
        padding: 0 16px
    }

    .hero--center .hero__title {
        font-size: 32px
    }

    .subtitle {
        font-size: 20px
    }

    .lead {
        font-size: 16px
    }

    .hero--center .panel {
        border-radius: 18px;
        padding: 20px 14px
    }

    .cards,
    .gallery,
    .team {
        grid-template-columns: 1fr
    }
}.service-rows{
  display:flex;
  flex-direction:column;
  gap:48px;
  margin-top:40px;
}

.row-card{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:28px;
  background:#fff8e7;
  padding:32px 28px;
  border-radius:20px;
  border:1px solid #eadfca;
  box-shadow:var(--shadow);
}

.row-card--reverse{
  grid-template-columns:1fr 1fr;
  direction:rtl;
}

.row-card--reverse .row-card__text{
  direction:ltr;
}

.row-card__img img{
  width:100%;
  border-radius:14px;
  object-fit:cover;
  height:260px;
  box-shadow:0 8px 22px rgba(0,0,0,.12);
}

.row-card__text h3{
  font-size:26px;
  font-weight:800;
  margin:0 0 8px;
  color:#111;
}

.row-card__text p{
  font-size:17px;
  line-height:1.6;
  margin:0 0 14px;
  color:#444;
}

@media(max-width:768px){
  .row-card, .row-card--reverse{
    grid-template-columns:1fr;
    text-align:center;
    direction:ltr;
  }
  .row-card__img img{height:220px;}
}

/* ===== Feature blocks: single-row alternating ===== */
.feature{
  background:#fff8e7;                 /* ครีมอุ่น */
  border:1px solid #efe2c8;
  border-radius:22px;
  box-shadow:0 12px 28px rgba(0,0,0,.06);
  padding:22px;
  display:grid;
  grid-template-columns: 1.1fr 1fr;   /* text : image */
  align-items:center;
  gap:22px;
  margin-bottom:26px;
}
.feature--reverse{ grid-template-columns: 1fr 1.1fr; }
.feature--reverse .feature__body{ order:2; }
.feature--reverse .feature__media{ order:1; }

.feature__body h2{
  margin:0 0 10px;
  font-size:28px;
  line-height:1.35;
}
.feature__body .muted{
  margin:0 0 14px;
  font-size:16px;
}
.pill{ border-radius:999px; padding:10px 16px; border-color:#256a63; }

.feature__media img{
  width:100%; height:260px; object-fit:cover;
  border-radius:16px;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
}

/* spacing with page background */
.section#services{ padding-top:34px; padding-bottom:34px; }

/* hover micro-interaction */
.feature:hover{ transform:translateY(-2px); transition:.2s ease; }
.feature:hover .feature__media img{ transform:scale(1.01); transition:.25s ease; }

/* ===== Responsive ===== */
@media (max-width: 1100px){
  .feature, .feature--reverse{
    grid-template-columns: 1fr;      /* เรียงหนึ่งเสมอในจอเล็ก */
  }
  .feature--reverse .feature__body,
  .feature--reverse .feature__media{ order:unset; }
  .feature__media img{ height:220px; }
}
@media (max-width: 680px){
  .feature{ padding:16px; border-radius:18px; }
  .feature__body h2{ font-size:22px; }
  .feature__body .muted{ font-size:14px; }
  .feature__media img{ height:200px; }
}


/* ===== Retreat Benefits With Images ===== */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.benefit-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.benefit-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.benefit-content {
  padding: 20px 24px;
}

.benefit-content h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
  color: #2d4f45;
}

.benefit-content p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.benefit-box {
  background: #eef6f4;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #2a4d45;
}

/* Responsive */
@media (max-width: 768px) {
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .benefit-img img {
    height: 170px;
  }
}


/* ===== Physiotherapy Equipment (Intro + Gallery) ===== */
.section--physio-equipment {
  background: #ffffff;
  padding-top: 70px;
  padding-bottom: 70px;
}

/* Intro Text */
.equipment-intro {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.equipment-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

/* Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.equipment-card {
  background: #f8fafa;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.equipment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* Image */
.equipment-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.equipment-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.equipment-card:hover .equipment-img img {
  transform: scale(1.08);
}

/* Text */
.equipment-card h3 {
  font-size: 1rem;
  margin: 12px 14px 6px;
  color: #26463d;
}

.equipment-card p {
  font-size: 0.88rem;
  margin: 0 14px 14px;
  color: #555;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 1100px) {
  .equipment-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .equipment-grid { grid-template-columns: 1fr; }
  .equipment-img { height: 180px; }
}
