@charset "UTF-8";
/* =========================================================
   The Clover Pattaya — demo mockup
   Breakpoints: desktop > 1024 · tablet 768–1024 · mobile < 768
   ========================================================= */

:root {
  --blue: #4a8fc8;
  --blue-dark: #2f6ea3;
  --blue-light: #6aa6d4;
  --navy: #1d3550;
  --ink: #2b2f36;
  --muted: #5d6470;
  --line: #e3e8ee;
  --tint: #f4f7fa;
  --gold: #b8935a;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(29, 53, 80, .35);
  --font-brand: "Cinzel", serif;
  --font-head: "Kanit", sans-serif;
  --font-body: "Noto Sans Thai", sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 80px); margin-inline: auto; }

/* ---------- Image crop from 1920×1080 slides ----------
   --x --y --w --h = crop rectangle in source pixels      */
.crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--w) / var(--h);
  background: var(--line);
}
.crop img {
  position: absolute;
  max-width: none;
  width: calc(1920 / var(--w) * 100%);
  left: calc(var(--x) / var(--w) * -100%);
  top: calc(var(--y) / var(--h) * -100%);
}
.crop--card { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Photo watermark + disclaimer ----------
   .photo            → faint logo, bottom-right corner
   .photo--render    → + exterior/render disclaimer
   .photo--interior  → + interior/furniture disclaimer
   Logo symbol only = top 650px of the 999×909 logo.png  */
.photo::before,
.photo::after { position: absolute; z-index: 1; pointer-events: none; }
.photo::before {
  content: "";
  right: 12px; bottom: 10px;
  width: clamp(40px, 12%, 80px);
  aspect-ratio: 999 / 650;
  background: url("../img/logo.png") top center / 100% auto no-repeat;
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,.6));
  opacity: .85;
}
.photo--render::after,
.photo--interior::after {
  left: 0; right: 0; bottom: 0;
  padding: 26px calc(clamp(40px, 12%, 80px) + 26px) 9px 14px;
  background: linear-gradient(0deg, rgba(0,0,0,.5), transparent);
  color: rgba(255,255,255,.92);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.photo--render::after   { content: "ภาพทั้งหมดเป็นภาพจำลองเพื่อการโฆษณาเท่านั้น บรรยากาศจริงและวัสดุอาจมีการเปลี่ยนแปลงตามความเหมาะสม"; }
.photo--interior::after { content: "ภาพการตกแต่งเพื่อการโฆษณา รายละเอียดและเฟอร์นิเจอร์อาจแตกต่างจากบ้านจริงแต่ละหลัง"; }

/* ---------- Buttons / type ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.8); }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--sm { padding: 8px 20px; font-size: 15px; }

.eyebrow {
  font-family: var(--font-brand);
  letter-spacing: .3em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 12px;
  opacity: .9;
}
.eyebrow--blue { color: var(--blue); }

.h2 {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.3;
  color: var(--blue);
  margin: 0 0 28px;
  padding-top: 22px;
}
.h2::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 64px; height: 3px;
  background: var(--blue);
}
.h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 6px;
}
.lead { font-weight: 600; font-size: 19px; color: var(--ink); }
.lead span { color: var(--blue); }
.note { color: var(--muted); margin: -12px 0 0; }

.list { margin: 0 0 18px; padding-left: 1.2em; }
.list li { margin-bottom: 6px; }
.list li::marker { color: var(--blue); }
.list strong, .poi strong { font-weight: 600; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 50;
  color: var(--white);
  transition: background .3s, box-shadow .3s, color .3s;
}
.nav.is-solid {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {                          /* symbol only: top 650px of logo.png */
  display: block; overflow: hidden;
  height: 46px; aspect-ratio: 999 / 650;
  filter: brightness(0) invert(1);      /* white on the dark hero */
  transition: filter .3s;
}
.brand__logo img { width: 100%; max-width: none; }
.nav.is-solid .brand__logo,
.nav.is-open .brand__logo { filter: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-brand); }
.brand__name { font-size: 22px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.brand__sub { font-size: 11px; letter-spacing: .5em; text-transform: uppercase; opacity: .8; }
.nav__links { display: flex; align-items: center; gap: 30px; font-family: var(--font-head); font-size: 16px; }
.nav__links a:not(.btn) { position: relative; padding: 6px 0; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: currentColor; transition: width .25s;
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__links .btn { color: var(--white); }
.nav__toggle { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--white);
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 90px;
}
.hero__media { position: absolute; inset: 0; container-type: size; }
.hero__media .crop {
  position: absolute; left: 50%; top: 50%;
  width: max(100cqw, 100cqh * 1030 / 615);
  translate: -50% -50%;
  animation: heroZoom 14s ease-out both;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,35,55,.78) 0%, rgba(20,35,55,.35) 55%, rgba(20,35,55,.1) 100%),
    linear-gradient(0deg, rgba(20,35,55,.6) 0%, transparent 40%);
}
@keyframes heroZoom { from { scale: 1.08; } to { scale: 1; } }
.hero__content { position: relative; }
.hero__title {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}
.hero__sub { font-size: clamp(18px, 2.2vw, 30px); font-weight: 300; margin: 10px 0 28px; letter-spacing: .04em; }
.hero__box {
  display: inline-block;
  padding: 20px 28px;
  border-left: 4px solid var(--blue-light);
  background: rgba(74,143,200,.55);
  backdrop-filter: blur(4px);
  font-family: var(--font-head);
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.6;
}
.hero__box p { margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
}
.hero__by { font-size: 14px; opacity: .85; margin: 0; }
.hero__by strong { font-weight: 600; }
.hero__disclaimer { max-width: 420px; margin: 0; font-size: 11px; line-height: 1.5; text-align: right; opacity: .75; }

/* ---------- SECTIONS ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--tint); }
.section__head { margin-bottom: 44px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--wide-media { grid-template-columns: 5fr 6fr; }
.split--reverse .split__media { order: -1; }

/* Crops whose framing changes per breakpoint (vars set here, not inline) */
.crop--concept { --x: 1143; --y: 90; --w: 777; --h: 900; }
.office__a     { --x: 930;  --y: 0;   --w: 990; --h: 314; }
.office__b     { --x: 0;    --y: 314; --w: 930; --h: 544; }

/* Points of interest */
.poi { display: grid; gap: 16px; }
.poi__item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.poi__icon { font-size: 24px; line-height: 1.4; }
.poi p { margin: 4px 0 0; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* Office */
.office {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "b a" "b text";
  gap: 28px 48px;
}
.office__a { grid-area: a; }
.office__b { grid-area: b; align-self: start; }
.office__text { grid-area: text; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(74,143,200,.1);
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 400;
}

/* Rooms */
.room { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
.room--reverse .room__gallery { order: 2; }
.room__gallery { display: grid; grid-template-columns: 1.17fr 1fr; gap: 14px; align-items: start; }
.room__main { grid-row: span 2; }
.feature { padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature p { margin: 0; color: var(--muted); }

/* Spec */
.spec__group { margin-bottom: 18px; }
.spec__group p { margin-bottom: 0; }

/* Plan */
.plan { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.plan__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plan__scroll .crop { min-width: 640px; background: var(--white); }
.plan__hint { display: none; text-align: center; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.plan__disclaimer { margin: 12px 4px 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.price {
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-light); }
.price__unit { font-family: var(--font-head); font-weight: 600; font-size: 30px; color: #2e6b3f; line-height: 1.2; }
.price__val { font-family: var(--font-head); font-size: 22px; font-weight: 500; color: var(--ink); }
.price__val small { font-size: 15px; color: var(--muted); font-weight: 400; }
.price__tag {
  align-self: flex-start;
  padding: 2px 12px; border-radius: 6px;
  background: var(--gold); color: var(--white);
  font-size: 13px; font-weight: 400;
}
.price--show { background: linear-gradient(135deg, #fffaf1, #fff); border-color: #ead8b8; }
.price--show .price__val { color: var(--gold); }

/* Vision / contact */
.vision { position: relative; color: var(--white); padding: 120px 0 70px; overflow: hidden; background: var(--navy); }
.vision__bg {
  position: absolute; inset: -20px;
  width: calc(100% + 40px); height: calc(100% + 40px);
  object-fit: cover;
  object-position: 30% 100%; /* push the slide's baked-in title/QR out of frame */
  filter: blur(14px) brightness(.45) saturate(1.1);
}
.vision__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.vision__title {
  font-family: var(--font-brand); font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.05; margin: 0 0 24px; text-transform: uppercase;
}
.vision__lead { font-size: 19px; max-width: 560px; }
.vision__lead strong { font-weight: 600; font-size: 22px; }
.vision__quote { font-family: var(--font-head); font-size: 26px; color: #cfe4f6; margin: 0; }
.vision__qr {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px; background: var(--white); border-radius: var(--radius);
  color: var(--ink); font-size: 14px;
}
.vision__qr .crop { width: 200px; background: var(--white); }
.contact {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  margin-top: 64px;
  background: rgba(106,166,212,.85);
  border-left: 6px solid var(--blue-dark);
  border-radius: 6px;
  overflow: hidden;
}
.contact__item { display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-size: 16px; font-weight: 400; transition: background .2s; }
.contact__item:hover { background: rgba(255,255,255,.12); }
.contact__icon {
  display: grid; place-items: center; flex: 0 0 34px; height: 34px;
  border-radius: 50%; background: var(--navy); font-size: 16px; font-weight: 600;
}
.footer { background: var(--navy); color: rgba(255,255,255,.6); text-align: center; font-size: 14px; padding: 40px 0 26px; }
.footer__logo { width: 84px; margin: 0 auto 20px; filter: brightness(0) invert(1); opacity: .85; }
.disclaimer { max-width: 820px; margin: 0 auto 20px; font-size: 12px; line-height: 1.7; color: rgba(255,255,255,.55); }
.disclaimer p { margin: 0 0 6px; }
.disclaimer strong { font-weight: 600; color: rgba(255,255,255,.75); }
.footer__copy { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }

.fab {
  display: none;
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  place-items: center; font-size: 24px;
  background: var(--blue); color: var(--white); box-shadow: var(--shadow);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media .crop { animation: none; }
}

/* =========================================================
   TABLET  (768–1024)
   ========================================================= */
@media (max-width: 1024px) {
  body { font-size: 16px; }
  .container { width: min(100% - 64px, 900px); }
  .section { padding: 84px 0; }
  .nav__links { gap: 20px; font-size: 15px; }

  .split, .split--wide-media, .room { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media, .room--reverse .room__gallery { order: 0; }
  .crop--concept { --y: 260; --h: 486; }

  .office { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b b" "text text"; }
  .office__b { --y: 354; --h: 465; }

  .prices { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .price { padding: 18px; }
  .price__unit { font-size: 26px; }
  .price__val { font-size: 18px; }

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

/* Hamburger menu from tablet portrait down */
@media (max-width: 900px) {
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: 0; cursor: pointer; color: inherit;
  }
  .nav__toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav.is-open { background: var(--white); color: var(--ink); }

  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 32px 28px;
    background: var(--white); color: var(--ink);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    font-size: 18px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s, opacity .3s;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 18px; padding: 14px; }
}

/* =========================================================
   MOBILE  (< 768)
   ========================================================= */
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  body { font-size: 15.5px; line-height: 1.75; }
  .container { width: calc(100% - 40px); }
  .section { padding: 64px 0; }
  .brand__name { font-size: 18px; }
  .brand__sub { font-size: 10px; }
  .nav__links { padding-inline: 20px; }

  .hero { padding-bottom: 80px; justify-content: flex-end; }
  .hero__media::after {
    background: linear-gradient(0deg, rgba(20,35,55,.92) 0%, rgba(20,35,55,.55) 55%, rgba(20,35,55,.25) 100%);
  }
  .hero__box { display: block; padding: 16px 18px; }
  .hero { padding-bottom: 120px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 6px; bottom: 16px; padding-right: 64px; } /* clear the call FAB */
  .hero__by { font-size: 12px; }
  .hero__disclaimer { text-align: left; font-size: 10px; max-width: none; }
  .brand__logo { height: 36px; }
  .brand { gap: 10px; }

  .photo--render::after,
  .photo--interior::after { font-size: 10px; padding: 22px calc(clamp(40px, 12%, 80px) + 20px) 7px 10px; }
  .plan__disclaimer { font-size: 11px; }
  .photo::before { right: 8px; bottom: 7px; }

  .h2 { margin-bottom: 20px; padding-top: 18px; }
  .h3 { font-size: 18px; }
  .lead { font-size: 17px; }
  .split, .split--wide-media, .room { gap: 28px; }
  .crop--concept { --y: 200; --h: 583; }

  .office { grid-template-columns: 1fr; grid-template-areas: "a" "b" "text"; gap: 16px; }
  .office__a { --x: 1130; --w: 558; }
  .office__b { --x: 100; --y: 314; --w: 725; --h: 544; }
  .office__text { margin-top: 12px; }
  .chips li { font-size: 14px; }

  .room__gallery { gap: 10px; }
  .poi__item { padding: 14px 16px; }

  .plan { padding: 12px; }
  .plan__hint { display: block; }
  .prices { grid-template-columns: 1fr 1fr; gap: 10px; }
  .price { padding: 14px 16px; }
  .price__unit { font-size: 22px; }
  .price__val { font-size: 17px; }

  .vision { padding: 80px 0 40px; }
  .vision__inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .vision__lead { font-size: 16px; }
  .vision__quote { font-size: 21px; }
  .vision__qr { align-self: center; }
  .vision__qr .crop { width: 180px; }
  .contact { grid-template-columns: 1fr; margin-top: 40px; }
  .contact__item { padding: 14px 18px; font-size: 15px; word-break: break-all; }

  .fab { display: grid; }
}
