/* Network Api — botanical jade / turmeric theme for F&B franchise guidance */
:root {
  --color-bg: #e7efe8;
  --color-bg-deep: #d5e3d8;
  --color-surface: #f3f7f3;
  --color-ink: #14231c;
  --color-ink-soft: #3a4f44;
  --color-accent: #b8860b;
  --color-accent-deep: #8a6508;
  --color-leaf: #1c3d32;
  --color-leaf-mid: #2f5c4c;
  --color-line: rgba(20, 35, 28, 0.14);
  --color-danger: #8b2e2e;
  --color-ok: #1f6b45;
  --font-display: "Maitree", "Sarabun", serif;
  --font-body: "Sarabun", sans-serif;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --radius: 6px;
  --shadow-soft: 0 12px 40px rgba(20, 35, 28, 0.08);
  --header-h: 4.25rem;
  --max: 70rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(184, 134, 11, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(47, 92, 76, 0.18), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: var(--color-leaf-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 600;
  color: var(--color-leaf);
  margin: 0 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-md);
}

ul, ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.main {
  min-height: 60vh;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2rem, 44rem);
}

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

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-leaf);
}

.site-header__mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--color-leaf) 0%, var(--color-leaf-mid) 55%, var(--color-accent) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.site-header__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.site-header__toggle-bar {
  display: block;
  height: 2px;
  width: 1.15rem;
  margin-inline: auto;
  background: var(--color-ink);
}

.site-nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-leaf);
}

.site-nav__cta {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: var(--color-leaf);
  color: #f3f7f3 !important;
  border-radius: var(--radius);
}

.site-nav__cta:hover {
  background: var(--color-leaf-mid);
  color: #fff !important;
}

@media (max-width: 960px) {
  .site-header__toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    padding: var(--space-md);
    display: none;
  }

  .site-nav.is-open {
    display: block;
    animation: drop-in 0.35s var(--ease);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-0.4rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pan-slow {
  from { transform: scale(1.08) translateX(-1%); }
  to { transform: scale(1.08) translateX(1%); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent);
  color: #1a1505;
}

.btn--primary:hover {
  background: #c99512;
  color: #1a1505;
}

.btn--secondary {
  background: var(--color-leaf);
  color: #f3f7f3;
}

.btn--secondary:hover {
  background: var(--color-leaf-mid);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-ink);
}

.btn--ghost:hover {
  border-color: var(--color-leaf);
  color: var(--color-leaf);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(88vh, 46rem);
  display: grid;
  align-items: end;
  color: #f3f7f3;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pan-slow 28s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(20, 35, 28, 0.88) 0%, rgba(20, 35, 28, 0.55) 48%, rgba(20, 35, 28, 0.25) 100%),
    linear-gradient(0deg, rgba(20, 35, 28, 0.75) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-xl);
  animation: rise 0.8s var(--ease) both;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #f7faf7;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
}

.hero__lead {
  max-width: 34rem;
  font-size: 1.15rem;
  color: rgba(243, 247, 243, 0.9);
  margin-bottom: var(--space-lg);
}

.hero__headline {
  max-width: 22rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section--alt {
  background: rgba(243, 247, 243, 0.55);
  border-block: 1px solid var(--color-line);
}

.section__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: var(--space-sm);
}

.section__lead {
  max-width: 40rem;
  color: var(--color-ink-soft);
  margin-bottom: var(--space-lg);
}

.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.page-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.page-hero__lead {
  max-width: 40rem;
  color: var(--color-ink-soft);
}

.page-hero--media {
  position: relative;
  min-height: 18rem;
  display: grid;
  align-items: end;
  color: #f3f7f3;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.page-hero--media .page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero--media .page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--media .page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 35, 28, 0.85), rgba(20, 35, 28, 0.35));
}

.page-hero--media .wrap {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-lg);
  padding-top: var(--space-xl);
}

.page-hero--media .page-hero__title,
.page-hero--media .page-hero__lead {
  color: #f3f7f3;
}

/* Offer / service listing — interaction containers */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-md);
}

.offer-tile {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
  box-shadow: var(--shadow-soft);
}

.offer-tile:hover {
  border-color: var(--color-leaf-mid);
  transform: translateY(-3px);
  color: inherit;
}

.offer-tile__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.offer-tile__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.offer-tile__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.offer-tile__text {
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  flex: 1;
}

.offer-tile__more {
  margin-top: var(--space-sm);
  font-weight: 600;
  color: var(--color-leaf-mid);
}

/* Flagship band */
.flagship {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.flagship__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.flagship__list {
  list-style: none;
  padding: 0;
}

.flagship__list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
}

.flagship__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--color-accent);
  border-radius: 1px;
}

@media (max-width: 800px) {
  .flagship {
    grid-template-columns: 1fr;
  }
}

/* Quotes */
.quote-list {
  display: grid;
  gap: var(--space-md);
}

.quote {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-line);
}

.quote:last-child {
  border-bottom: 1px solid var(--color-line);
}

.quote__text {
  font-size: 1.08rem;
  margin-bottom: var(--space-sm);
}

.quote__meta {
  color: var(--color-ink-soft);
  font-size: 0.92rem;
}

.quote--wide {
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  margin-bottom: var(--space-md);
}

/* Process steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-md);
}

.steps__item {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
}

.steps__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-leaf);
  line-height: 1;
}

.steps__num::before {
  content: counter(step, decimal-leading-zero);
}

/* Blog */
.post-list {
  display: grid;
  gap: var(--space-lg);
}

.post-row {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: var(--space-md);
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.post-row:hover .post-row__title {
  color: var(--color-accent-deep);
}

.post-row__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.post-row__date {
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}

.post-row__title {
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

@media (max-width: 700px) {
  .post-row {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin-bottom: 1.1rem;
}

.article-hero img {
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-lg);
}

/* Pricing */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

.rate-table th {
  font-family: var(--font-display);
  background: var(--color-leaf);
  color: #f3f7f3;
  font-weight: 600;
}

.rate-note {
  margin-top: var(--space-md);
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-md);
  max-width: 36rem;
}

.form__field {
  display: grid;
  gap: 0.35rem;
}

.form__label {
  font-weight: 600;
  font-size: 0.95rem;
}

.form__hint {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  color: var(--color-ink);
}

.form__textarea {
  min-height: 9rem;
  resize: vertical;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.form__error {
  color: var(--color-danger);
  font-size: 0.88rem;
  display: none;
}

.form__field.is-invalid .form__error {
  display: block;
}

.form__field.is-invalid .form__input,
.form__field.is-invalid .form__select,
.form__field.is-invalid .form__textarea {
  border-color: var(--color-danger);
}

.form__status {
  padding: var(--space-md);
  border-radius: var(--radius);
  display: none;
}

.form__status.is-success {
  display: block;
  background: rgba(31, 107, 69, 0.12);
  color: var(--color-ok);
  border: 1px solid rgba(31, 107, 69, 0.3);
}

.form__status.is-error {
  display: block;
  background: rgba(139, 46, 46, 0.1);
  color: var(--color-danger);
  border: 1px solid rgba(139, 46, 46, 0.25);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
}

.contact-aside {
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  height: fit-content;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Detail lists */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.detail-block h3 {
  font-size: 1.1rem;
}

.detail-block {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-line);
}

/* Legal */
.legal h2 {
  margin-top: var(--space-lg);
  font-size: 1.3rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  border: 1px solid var(--color-line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  background: var(--color-surface);
}

.legal th {
  background: var(--color-bg-deep);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  padding: var(--space-md);
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  pointer-events: auto;
  width: min(100%, 42rem);
  margin-inline: auto;
  padding: var(--space-md);
  background: var(--color-leaf);
  color: #eef4ef;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: var(--space-sm);
  animation: rise 0.45s var(--ease);
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-banner__text a {
  color: #f0d78c;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.cookie-banner .btn--ghost {
  color: #eef4ef;
  border-color: rgba(238, 244, 239, 0.35);
}

.cookie-banner .btn--primary {
  background: var(--color-accent);
}

/* Footer */
.site-footer {
  margin-top: var(--space-2xl);
  background: var(--color-leaf);
  color: rgba(243, 247, 243, 0.88);
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer a {
  color: #dce9e0;
}

.site-footer a:hover {
  color: #f0d78c;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #f3f7f3;
  margin-bottom: var(--space-xs);
}

.site-footer__tag {
  max-width: 28rem;
  margin-bottom: var(--space-lg);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.site-footer__label {
  font-weight: 700;
  color: #f3f7f3;
  margin-bottom: var(--space-sm);
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li {
  margin-bottom: 0.35rem;
}

.site-footer__copy {
  font-size: 0.88rem;
  border-top: 1px solid rgba(243, 247, 243, 0.15);
  padding-top: var(--space-md);
  margin: 0;
}

@media (max-width: 700px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
  }
}

/* 404 */
.error-page {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--color-accent);
  margin: 0;
  line-height: 1;
}

/* Team strip on about */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-md);
}

.person {
  text-align: left;
}

.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: var(--space-sm);
}

.person__name {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.person__role {
  color: var(--color-ink-soft);
  font-size: 0.92rem;
}

/* Reveal motion */
.reveal {
  animation: rise 0.7s var(--ease) both;
}

.reveal-delay {
  animation-delay: 0.15s;
}
