:root {
  --cream: #f7f0d8;
  --paper: #fffdf7;
  --ink: #111111;
  --muted: #6d6a5f;
  --blue: #1f65b7;
  --blue-deep: #123e78;
  --sand: #d8c98c;
  --olive: #697458;
  --brown: #6b4a35;
  --line: rgba(18, 62, 120, 0.16);
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Sans Thai", Inter, system-ui, sans-serif;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--ink);
  background: rgba(255, 253, 247, 0.9);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at center, var(--cream) 0 43%, transparent 44%),
    conic-gradient(var(--blue), var(--sand), var(--blue), var(--blue));
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.16);
}

.brand-mark strong,
.brand-mark small {
  grid-area: 1 / 1;
  line-height: 1;
}

.brand-mark strong {
  margin-top: -8px;
  font-family: Archivo, sans-serif;
  font-size: 1.06rem;
  letter-spacing: 0;
}

.brand-mark small {
  margin-top: 18px;
  font-size: 0.42rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-copy strong,
.brand-copy small {
  display: block;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: Archivo, sans-serif;
  font-size: clamp(1rem, 2vw, 1.28rem);
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--blue-deep);
}

.nav-cta,
.button,
.lang-toggle {
  min-height: 44px;
  border-radius: var(--radius);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  font-weight: 800;
}

.nav-cta,
.button.primary {
  color: var(--paper);
  background: var(--blue-deep);
  border: 1px solid var(--blue-deep);
}

.button.ghost {
  color: var(--paper);
  border: 1px solid rgba(255, 253, 247, 0.58);
}

.button.line {
  color: var(--ink);
  background: #78c257;
  border: 1px solid rgba(17, 17, 17, 0.14);
}

.lang-toggle {
  width: 48px;
  color: var(--blue-deep);
  background: transparent;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 96vh;
  align-items: end;
  padding: 150px clamp(20px, 6vw, 80px) 72px;
  overflow: hidden;
  color: var(--paper);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.86), rgba(17, 17, 17, 0.48) 46%, rgba(17, 17, 17, 0.12)),
    linear-gradient(0deg, rgba(17, 17, 17, 0.58), transparent 55%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero-note {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: 44px;
  width: min(310px, calc(100% - 40px));
  padding: 20px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(255, 253, 247, 0.56);
  border-radius: var(--radius);
}

.hero-note span,
.hero-note strong,
.hero-note small {
  display: block;
}

.hero-note span,
.eyebrow {
  color: var(--blue);
  font-family: Archivo, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-note strong {
  margin: 8px 0;
  font-family: Archivo, sans-serif;
  font-size: 1.3rem;
}

.hero-note small {
  color: var(--muted);
  line-height: 1.45;
}

.eyebrow {
  margin: 0 0 12px;
}

.hero .eyebrow {
  color: var(--sand);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Archivo, sans-serif;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.4rem, 8vw, 8.8rem);
}

h2 {
  max-width: 860px;
  font-size: clamp(2.25rem, 5vw, 5.2rem);
}

h3 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.hero p:not(.eyebrow),
.section-heading p,
.preview-content p,
.contact p {
  max-width: 680px;
  line-height: 1.72;
}

.hero p:not(.eyebrow) {
  color: rgba(255, 253, 247, 0.84);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--ink);
}

.signal-band article {
  min-height: 126px;
  padding: 26px clamp(18px, 3vw, 42px);
  color: var(--paper);
  border-right: 1px solid rgba(255, 253, 247, 0.12);
}

.signal-band span {
  display: block;
  color: var(--sand);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-band strong {
  display: block;
  margin-top: 12px;
  font-family: Archivo, sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.section {
  padding: clamp(70px, 9vw, 128px) clamp(20px, 6vw, 80px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  color: var(--muted);
  margin: 0;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

select,
input,
textarea {
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  padding: 0 14px;
}

textarea {
  min-height: 110px;
  padding-top: 14px;
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 101, 183, 0.12);
}

.animal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.animal-card,
.trust-grid article,
.care-grid article,
.policy-list article,
.payment-card,
.delivery-card,
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.animal-card {
  overflow: hidden;
}

.animal-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
}

.animal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watermark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: rgba(255, 253, 247, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status.reserved {
  color: var(--paper);
  background: var(--olive);
}

.status.sold {
  color: var(--paper);
  background: var(--brown);
}

.animal-body {
  padding: 20px;
}

.animal-body header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.animal-code,
.animal-price {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.animal-body h3 {
  margin-top: 8px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.meta-row span {
  padding: 7px 9px;
  background: rgba(31, 101, 183, 0.08);
  border-radius: 999px;
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 800;
}

.animal-body p {
  color: var(--muted);
  line-height: 1.62;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.card-actions .button {
  min-height: 40px;
  flex: 1;
  padding: 10px 12px;
  font-size: 0.86rem;
}

.profile-preview {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 74px);
  align-items: center;
  background: var(--paper);
}

.preview-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.preview-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1px;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-grid span,
.detail-grid strong {
  padding: 13px 14px;
  background: var(--cream);
}

.detail-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-grid strong {
  background: var(--paper);
}

.trust-grid,
.care-grid,
.policy-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust-grid article,
.care-grid article,
.policy-list article {
  padding: 24px;
}

.trust-grid article span,
.care-grid small {
  color: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
}

.trust-grid h3,
.care-grid h3,
.policy-list h3 {
  margin: 18px 0 10px;
}

.trust-grid p,
.care-grid p,
.policy-list p,
.timeline p,
.plain-list {
  color: var(--muted);
  line-height: 1.62;
}

.payment-delivery {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
  background: var(--ink);
}

.payment-card,
.delivery-card {
  padding: clamp(24px, 4vw, 44px);
}

.delivery-card {
  background: var(--cream);
}

.qr-box {
  display: grid;
  position: relative;
  min-height: 230px;
  place-items: center;
  margin: 24px 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qr-grid {
  position: absolute;
  inset: 32px;
  background:
    linear-gradient(90deg, var(--ink) 10px, transparent 10px) 0 0 / 31px 31px,
    linear-gradient(var(--ink) 10px, transparent 10px) 0 0 / 29px 29px,
    var(--paper);
  opacity: 0.13;
}

.qr-box strong {
  position: relative;
  padding: 13px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.timeline article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper);
  background: var(--blue-deep);
  border-radius: 50%;
  font-weight: 900;
}

.timeline p {
  grid-column: 2;
  margin: 6px 0 0;
}

.care {
  background: var(--paper);
}

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

.waitlist-form {
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.policies {
  display: grid;
  grid-template-columns: minmax(270px, 0.7fr) 1fr;
  gap: 36px;
}

.policy-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
  padding: clamp(70px, 9vw, 128px) clamp(20px, 6vw, 80px);
  color: var(--paper);
  background: var(--blue-deep);
}

.contact .eyebrow {
  color: var(--sand);
}

.contact p {
  color: rgba(255, 253, 247, 0.74);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  color: var(--ink);
}

.contact-actions {
  margin-top: 4px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(20px, 6vw, 80px);
  color: rgba(255, 253, 247, 0.74);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 16px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (max-width: 1060px) {
  .site-nav {
    position: fixed;
    top: 87px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .nav-toggle {
    display: block;
  }

  .hero-note {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 30px;
  }

  .section-heading,
  .profile-preview,
  .payment-delivery,
  .policies,
  .contact {
    grid-template-columns: 1fr;
  }

  .animal-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters,
  .signal-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .hero {
    min-height: 92vh;
    padding-top: 124px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .animal-grid,
  .trust-grid,
  .care-grid,
  .policy-list,
  .filters,
  .signal-band,
  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .signal-band article {
    min-height: auto;
  }

  .card-actions,
  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }
}
