/* Quiet-luxury layout (reference: MALAI Thai Massage) in mackerel colours:
   silver-white belly as the page, blue back for headings/buttons, blue-green sheen for accents */
:root {
  --bg: #f3f6f9;          /* silver-white belly */
  --bg-2: #e7edf3;        /* pale silver panels */
  --ph: #d9e2ec;          /* image placeholders */
  --silver: #8b9bb0;
  --shine: #3f8fa8;       /* blue-green sheen on the back */
  --hair: rgba(31, 78, 121, .16);
  --heading: #1f4e79;     /* blue back of the fish */
  --text: #4a5a6e;
  --pill: #1f4e79;
  --serif: "Noto Serif Thai", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Prompt", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}
/* Slide-in animations start off-screen; clip them so they never widen the page
   (on main, not body: body overflow is passed to the viewport, which mobile Chrome ignores for sizing) */
main { overflow-x: clip; }
body.menu-open { overflow: hidden; }
.nw { white-space: nowrap; }   /* keep a Thai word group on one line */

h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--heading); line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-weight: 400; }
a { color: var(--silver); }
img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; border-top: 1px solid var(--hair); }
.section.alt { background: var(--bg-2); }

/* "—— LABEL" lead-in above headings */
.label {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 22px; color: var(--shine);
  font-size: .8rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
}
.label::before { content: ""; width: 48px; height: 1px; background: var(--shine); opacity: .7; }
.sec-head { margin-bottom: 56px; }
.sec-head h2 { margin-bottom: 0; }
.sub { margin: 10px 0 0; }

/* Pill buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.pill {
  display: inline-block; padding: 15px 34px; border-radius: 999px;
  background: var(--pill); color: #fff; border: 1px solid var(--pill);
  text-decoration: none; font-weight: 400; letter-spacing: .04em;
  transition: background .25s, color .25s, transform .25s;
}
.pill:hover { transform: translateY(-2px); background: #173d60; }
.pill.ghost { background: transparent; color: var(--heading); border-color: var(--hair); }
.pill.ghost:hover { border-color: var(--heading); background: rgba(31,78,121,.04); }

/* ===== Header ===== */
.site-header { position: relative; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--hair); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.logo { position: relative; z-index: 2; text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--heading); letter-spacing: .04em; }
.logo-sub { margin-top: 6px; font-size: .68rem; letter-spacing: .3em; color: var(--text); }
.menu { display: flex; gap: 34px; }
.menu a { color: var(--text); text-decoration: none; font-size: .95rem; transition: color .2s; }
.menu a:hover { color: var(--heading); }
.menu-toggle { display: none; }

/* ===== Hero: still banner, soft fade into the page at the bottom ===== */
.hero {
  position: relative; width: 100%;
  aspect-ratio: 1671 / 941; max-height: calc(100vh - 92px);
  background: var(--bg-2) url("images/hero-bg.png") center top / cover no-repeat;
  background-image: image-set(url("images/hero-bg.webp") type("image/webp"), url("images/hero-bg.png") type("image/png"));
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(243,246,249,.45), transparent 8%),
    linear-gradient(to top, var(--bg) 0%, rgba(243,246,249,.5) 6%, transparent 14%);   /* short: phone number sits low in the banner */
}

.welcome { padding: 24px 0 120px; }
.welcome h1 { max-width: 15em; }
.lead { max-width: 560px; margin: 0 0 44px; font-size: 1.12rem; }

/* ===== About: big image + small overlapping image ===== */
.about {
  display: grid; gap: 64px; align-items: center;
  max-width: 1160px; margin: 0 auto; padding: 112px 24px 136px;
  border-top: 1px solid var(--hair);
}
.about-media { position: relative; margin: 0 48px; }
.about-main { display: block; aspect-ratio: 16 / 10; margin: 0; overflow: hidden; border-radius: 4px; background: var(--ph); }
.about-shop { margin-bottom: 16px; }
.about-shop img { object-position: center top; }   /* keep the shop sign */
/* Small photos overlapping the corners of the two big ones */
.about-small {
  position: absolute; margin: 0; display: block; overflow: hidden;
  background: #c9d5e2; border: 6px solid var(--bg); border-radius: 4px;
}
.s-boxes { right: -48px; bottom: -56px; width: 34%; aspect-ratio: 3 / 4; }
.s-steam { left: -48px; top: 50%; margin-top: -12%; width: 36%; aspect-ratio: 1; }   /* centred on the seam between the big photos */
.s-fish  { left: -48px; bottom: -40px; width: 34%; aspect-ratio: 4 / 3; }
.about-main img, .about-small img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-boxes img { object-position: center 65%; }   /* trim the bare rack above the boxes */
.s-steam img { object-position: center 30%; }
.about-text p:not(.label) { max-width: 440px; margin: 0 0 40px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.35fr 1fr; gap: 96px 88px; } }

/* Image placeholders: replace .ph divs with <img> when photos are ready */
.ph {
  background: var(--ph); color: #7d8da1; font-size: .9rem;
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3; border-radius: 4px;
}


.note { margin: 36px 0 0; font-size: .95rem; }

/* ===== Fish types: image covers the placeholder label once the file exists ===== */
.fish-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.fish-img {
  position: relative; aspect-ratio: 4 / 5; margin-bottom: 18px; overflow: hidden;
  background: var(--ph); color: #7d8da1; border-radius: 4px;
  display: grid; place-items: center; font-size: .85rem;
}
.fish-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.fish-card:hover .fish-img img { transform: scale(1.04); }
.fish-card h3 { font-size: 1.35rem; margin-bottom: 2px; }
.fish-card p { margin: 0; font-size: .92rem; }

/* ===== Icon cards (supplies + order) ===== */
.icon {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--hair); color: var(--shine); background: #fff;
  display: grid; place-items: center; flex: none;
}
.icon svg { width: 24px; height: 24px; }

.supplies { display: grid; gap: 48px; }
.supplies-text p:not(.label) { max-width: 380px; margin: 0; }
.supply-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.supply-card { background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 28px 22px; }
.supply-card h3 { font-size: 1.35rem; margin: 18px 0 2px; }
.supply-card p { margin: 0; font-size: .95rem; }
/* Photo panel on top of each card; shows the icon until a photo is added */
.supply-img {
  position: relative; aspect-ratio: 4 / 3; margin: -28px -22px 0; overflow: hidden;
  border-radius: 14px 14px 0 0; background: var(--bg-2); display: grid; place-items: center;
}
.supply-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.supply-card.featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center;
  background: #fff; border-color: rgba(31,78,121,.35);
}
.supply-card.featured .icon { grid-row: span 2; }
.supply-card.featured h3 { margin: 0; }
@media (min-width: 900px) { .supplies { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; } }

.order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.order-item {
  background: #fff; border: 1px solid var(--hair); border-radius: 14px; padding: 32px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.order-item .icon { margin-bottom: 14px; }
.order-item strong { font-family: var(--serif); font-weight: 400; color: var(--heading); font-size: 1.55rem; line-height: 1.3; }
.hint { margin: 0; font-size: .95rem; }

/* ===== Contact ===== */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact { list-style: none; padding: 0; margin: 8px 0 0; }
.contact li { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--heading); }
.contact li span { color: var(--text); }
.map iframe {
  width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--hair); border-radius: 4px;
  filter: saturate(.7);   /* calmer map colours */
}
.map .pill { margin-top: 20px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--hair); padding: 56px 0 64px; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; }
.footer small { margin-top: 24px; font-size: .85rem; }

/* ===== Floating LINE button ===== */
.float-line {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pill); color: #fff;
  border: 1px solid rgba(255,255,255,.35); box-shadow: 0 8px 24px rgba(31,78,121,.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .25s, background .25s;
}
.float-line:hover { transform: scale(1.06); background: #173d60; }
.float-line svg { width: 26px; height: 26px; }

/* ===== Scroll reveal (classes added by script.js) ===== */
.reveal { opacity: 0; transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal-up    { transform: translateY(36px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-zoom  { transform: scale(.95); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Mobile (< 768px) ===== */
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .container { padding: 0 22px; }
  .section { padding: 72px 0; }
  .sec-head { margin-bottom: 36px; }

  /* Header + full-screen menu */
  .header-inner { padding-top: 18px; padding-bottom: 18px; }
  .logo-name { font-size: 1.45rem; }
  .logo-sub { font-size: .62rem; }
  .menu-toggle {
    display: grid; gap: 8px; width: 44px; height: 44px; place-content: center;
    background: none; border: 0; padding: 0; cursor: pointer; position: relative; z-index: 2;
  }
  .menu-toggle span { display: block; width: 30px; height: 1.5px; background: var(--heading); transition: transform .3s; }
  .menu-open .menu-toggle span:first-child { transform: translateY(4.75px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child  { transform: translateY(-4.75px) rotate(-45deg); }
  .menu {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 22px; padding: 0 32px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu a { font-family: var(--serif); font-size: 2rem; color: var(--heading); }
  .menu-open .menu { opacity: 1; visibility: visible; }

  /* Hero: shorter bottom fade on the narrow banner */
  .hero::after {
    background:
      linear-gradient(to bottom, rgba(243,246,249,.4), transparent 10%),
      linear-gradient(to top, var(--bg) 0%, rgba(243,246,249,.5) 5%, transparent 12%);
  }

  .welcome { padding: 16px 0 72px; }
  .welcome h1 { font-size: 2.3rem; }
  .lead { margin-bottom: 32px; font-size: 1.05rem; }
  .actions .pill { text-align: center; }
  .welcome .actions .pill { width: 100%; }

  .about { padding: 72px 22px 88px; gap: 72px; }
  .about-media { margin: 0 18px; }
  .about-shop { margin-bottom: 10px; }
  .about-small { border-width: 4px; }
  .s-boxes { right: -18px; bottom: -36px; width: 36%; }
  .s-steam { left: -18px; width: 36%; }
  .s-fish  { left: -18px; bottom: -48px; width: 36%; }

  /* Fish: two-column grid, last odd card spans the row */
  .fish-row { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .fish-card h3 { font-size: 1.15rem; }
  .fish-card p { font-size: .85rem; }
  .fish-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .fish-card:last-child:nth-child(odd) .fish-img { aspect-ratio: 16 / 10; }

  /* Icon cards become rows: icon left, text right */
  .supplies { gap: 32px; }
  .supply-grid, .order-grid { grid-template-columns: 1fr; gap: 10px; }
  .supply-card, .order-item {
    display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
    padding: 16px 18px;
  }
  .supply-card .icon, .order-item .icon { grid-row: span 2; margin: 0; }
  .supply-img { grid-row: span 2; width: 72px; aspect-ratio: 1; margin: 0; border-radius: 10px; }
  .supply-card h3 { font-size: 1.2rem; margin: 0; }
  .order-item strong { font-size: 1.3rem; }
  .supply-card.featured { grid-template-columns: auto 1fr; }
  .order-grid { margin-bottom: 32px; }
  #order .actions .pill { width: 100%; }


  .contact li { grid-template-columns: 96px 1fr; }

  .float-line { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}
