/* Terra Hotel Kawit — quiet, Muji-inspired layout */

:root {
  --bg: #f7f5f0;
  --bg-deep: #efebe3;
  --paper: #fbfaf7;
  --ink: #2c2a27;
  --ink-soft: #5c574f;
  --muted: #8a8178;
  --line: #ddd6cb;
  --line-strong: #cfc6b8;
  --kraft: #c4b5a0;
  --accent: #7f0019;
  --max: 1120px;
  --narrow: 720px;
  --header: 4.5rem;
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 500;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
}

.label {
  margin: 0 0 0.7em;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.note {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--muted);
}

.placeholder {
  color: var(--accent);
  font-style: normal;
  letter-spacing: 0.02em;
}

.text-link {
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 240, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand img {
  width: auto;
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.site-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.nav-reserve {
  padding: 0.45em 0.9em;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
}

.nav-reserve:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
}

/* Hero */
.hero {
  padding-bottom: 0;
}

.hero-figure {
  margin: 0;
  background: var(--bg-deep);
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-caption {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.75rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.hero-caption h1 {
  margin-bottom: 0.35em;
}

.hero-place {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  margin-bottom: 0.75em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-copy p {
  color: var(--ink-soft);
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


/* Care — comfort, cleanliness, security */
.care {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.care-grid article {
  padding: 0 2rem 0.25rem 0;
}

.care-grid article:not(:last-child) {
  box-shadow: 1px 0 0 var(--line);
  margin-right: 2rem;
  padding-right: 2.5rem;
}

.care-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.1rem;
  color: var(--accent);
}

.care-grid h3 {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.care-grid li {
  position: relative;
  padding: 0.55rem 0 0.55rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

.care-grid li:last-child {
  border-bottom: 1px solid var(--line);
}

/* Rooms */
.rooms {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.room-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.room-card {
  background: var(--bg);
}

.room-card figure {
  margin: 0;
}

.room-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.room-body {
  padding: 1.6rem 1.5rem 1.75rem;
}

.room-body .label {
  color: var(--muted);
}

.room-body p {
  color: var(--ink-soft);
}

.rate {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--accent) !important;
}

.room-note {
  margin-top: 2rem;
}

/* Amenities */
.amenity-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.amenity-grid li {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.amenity-grid li:not(:nth-child(3n)) {
  padding-right: 2rem;
  border-right: 0;
  box-shadow: 1px 0 0 var(--line);
  margin-right: 1.5rem;
}

.amenity-grid h3 {
  margin-bottom: 0.4em;
}

.amenity-grid p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.amenities .note {
  margin-top: 2rem;
}

/* Gallery */
.gallery {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid .wide {
  grid-column: 1 / -1;
}

.gallery-grid .wide img {
  aspect-ratio: 16 / 8;
}

.gallery-grid .bathroom img {
  object-position: 85% 80%;
}


/* Details */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.details-grid figure {
  margin: 0;
}

.details-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line);
}

.details-grid figcaption {
  margin: 0.85rem 0 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: stretch;
}

.address {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.map-frame {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  overflow: hidden;
}

.map-fallback {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: 72% 58%;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

/* Contact */
.contact {
  background: var(--bg-deep);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.contact-list li {
  padding: 1.75rem 2rem 1.75rem 0;
  border-bottom: 1px solid var(--line-strong);
}

.contact-list li:nth-child(odd) {
  padding-right: 2.5rem;
}

.contact-list a {
  font-size: 1.15rem;
  font-weight: 300;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  border-bottom-color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 3.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-inner .brand img {
  height: 30px;
}

.footer-meta {
  max-width: 24rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-meta a {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.copyright {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.78rem;
}


/* Reviews */
.reviews {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reviews .section-head {
  margin-bottom: 1.35rem;
}

.overall-rating {
  text-align: center;
  margin: 0 0 2.5rem;
  padding: 0.25rem 0 0.15rem;
}

.overall-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0 0 0.2em;
  line-height: 0.9;
  color: #645c54;
}

.overall-number {
  font-family: "Bitter", "Rockwell", Georgia, serif;
  font-weight: 500;
  font-size: clamp(4.4rem, 16vw, 7.25rem);
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: #645c54;
}

.overall-max {
  font-family: "Bitter", "Rockwell", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 3.2vw, 1.7rem);
  letter-spacing: 0.02em;
  color: #645c54;
  opacity: 0.62;
  margin-left: 0.2em;
}

.overall-basis {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.ratings-strip {
  list-style: none;
  margin: 0;
  padding: 1.2rem 0 1.1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem 1.1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rating-item {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.rating-platform {
  display: inline-block;
  margin: 0 0 0.55em;
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.rating-platform:hover {
  color: var(--ink);
  text-decoration: underline;
}

.stars {
  --p: 100%;
  position: relative;
  display: block;
  width: max-content;
  margin: 0 0 0.45em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #d4cbbd;
}

.stars-base,
.stars-fill {
  display: block;
  letter-spacing: inherit;
  line-height: inherit;
  font-family: inherit;
  white-space: nowrap;
}

.stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--p);
  overflow: hidden;
  color: #c4a36a;
  pointer-events: none;
}

.stars.overall-stars {
  margin: 0.2rem auto 1.15rem;
  font-size: clamp(1.85rem, 6.2vw, 2.85rem);
  letter-spacing: 0.16em;
}

.rating-score {
  margin: 0 0 0.1em;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--ink);
}

.rating-word {
  margin: 0 0 0.1em;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.4;
  min-height: 1.25em;
}

.rating-word-empty {
  visibility: hidden;
}

.rating-count,
.rating-note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

.rating-note {
  margin-top: 0.2rem;
}

.ratings-as-of {
  margin: 0.9rem 0 2.25rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.review-card .label {
  margin-bottom: 0.35em;
}

.review-score {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.review-score .stars {
  margin: 0;
  font-size: 0.85rem;
}

.review-card {
  padding: 1.75rem 2rem 1.85rem 0;
  border-top: 1px solid var(--line);
}

.review-card:nth-child(odd) {
  padding-right: 2.5rem;
}

.review-card:nth-child(even) {
  padding-left: 2.5rem;
  padding-right: 0;
}

.review-card blockquote {
  margin: 0 0 1.15rem;
}

.review-card blockquote p {
  margin: 0;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
}

.review-attrib {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.review-date {
  display: block;
  margin-top: 0.2rem;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 860px) {
  .wrap,
  .header-inner,
  .hero-caption {
    width: min(var(--max), calc(100% - 2rem));
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 50;
  }

  .nav-toggle span {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* The header's blur makes fixed children size to the header, not the screen.
     Turn it off while the menu is open so the menu covers the whole screen. */
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--bg);
  }

  body.nav-open .nav-toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 5rem 2rem;
    gap: 1.4rem;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
  }

  .about-grid,
  .care-grid,
  .room-grid,
  .details-grid,
  .reviews-grid,
  .location-grid,
  .contact-list,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
    gap: 2rem;
  }

  .overall-rating {
    margin-bottom: 2rem;
  }

  .overall-basis {
    max-width: 22rem;
    font-size: 0.88rem;
    padding: 0 0.25rem;
  }

  .ratings-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
  }

  .rating-item {
    padding: 1.35rem 0;
    border-bottom: 1px solid var(--line);
  }

  .rating-item:nth-child(odd) {
    padding-right: 1.15rem;
    box-shadow: 1px 0 0 var(--line);
    margin-right: 1.15rem;
  }

  .rating-item:nth-child(even) {
    padding-left: 1.15rem;
  }

  .rating-item:last-child,
  .rating-item:nth-child(odd):nth-last-child(2) {
    border-bottom: 0;
  }

  .care-grid article,
  .care-grid article:not(:last-child) {
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .review-card,
  .review-card:nth-child(odd),
  .review-card:nth-child(even) {
    padding: 1.6rem 0;
  }

  .amenity-grid {
    grid-template-columns: 1fr;
  }

  .amenity-grid li,
  .amenity-grid li:not(:nth-child(3n)) {
    margin: 0;
    padding: 1.4rem 0;
    box-shadow: none;
  }

  .section {
    padding: 3.75rem 0;
  }

  .contact-list li:nth-child(odd) {
    padding-right: 0;
  }

  .gallery-grid .wide img,
  .gallery-grid .wide:last-child img {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 861px) and (max-width: 980px) {
  .amenity-grid {
    grid-template-columns: 1fr 1fr;
  }

  .amenity-grid li:not(:nth-child(3n)) {
    box-shadow: none;
    margin-right: 0;
  }

  .amenity-grid li:nth-child(odd) {
    box-shadow: 1px 0 0 var(--line);
    margin-right: 1.5rem;
    padding-right: 2rem;
  }
}

/* Hero title set in a slab serif to echo the Terra Hotel logo lettering */
.hero-caption h1 {
  font-family: "Bitter", "Rockwell", Georgia, serif;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  color: #645c54;
  font-size: clamp(2.3rem, 5.6vw, 3.6rem);
}
