:root {
  --green-950: #17251f;
  --green-850: #24382e;
  --green-700: #526b58;
  --sage: #8fa48b;
  --sage-soft: #dfe8da;
  --gold: #c5a15e;
  --gold-deep: #9a7738;
  --cream: #f7f0df;
  --cream-deep: #efe3c8;
  --paper: #fffaf0;
  --ink: #1e2822;
  --muted: #69746a;
  --line: rgba(82, 107, 88, 0.2);
  --shadow: 0 26px 78px rgba(36, 56, 46, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--cream) 0%, #fbf6ea 44%, var(--sage-soft) 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", Arial, "Noto Sans Thai", sans-serif;
  line-height: 1.7;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 58px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 250, 240, 0.94);
  color: var(--green-950);
  box-shadow: 0 10px 34px rgba(36, 56, 46, 0.1);
  backdrop-filter: blur(14px);
}

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

.brand-logo-wrap {
  display: flex;
  width: 86px;
  height: 42px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(197, 161, 94, 0.36);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: 0 12px 30px rgba(23, 37, 31, 0.12);
}

.brand-logo {
  width: 96px;
  max-width: none;
  height: auto;
  display: block;
}

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

.brand small {
  font-size: 12px;
  opacity: 0.78;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  font-size: 14px;
}

.nav a {
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  border-color: currentColor;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 37, 31, 0.91) 0%, rgba(36, 56, 46, 0.76) 38%, rgba(82, 107, 88, 0.16) 76%),
    url("assets/arganiq-hero.png") center / cover;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 110px);
  padding-top: 64px;
}

.hero-logo {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  margin-bottom: 26px;
  padding: 12px 18px;
  border: 1px solid rgba(197, 161, 94, 0.42);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 22px 70px rgba(10, 28, 23, 0.28);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 690px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 22px 0 8px;
  color: #f2dba3;
  font-size: clamp(20px, 3vw, 31px);
  font-weight: 650;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 250, 240, 0.62);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(23, 37, 31, 0.14);
}

.button.primary {
  background: linear-gradient(180deg, #d5ba79 0%, var(--gold) 100%);
  border-color: #d8bd7a;
  color: #17241f;
}

.button.secondary {
  color: #fff;
}

.hero-note {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: 34px;
  z-index: 1;
  width: min(440px, calc(100% - 36px));
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: rgba(23, 37, 31, 0.62);
  backdrop-filter: blur(10px);
}

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

.hero-note span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding: clamp(68px, 9vw, 116px) clamp(18px, 5vw, 74px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.15;
}

h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

.section-heading p:not(.eyebrow),
article p,
.founder p,
.booking p {
  color: var(--muted);
  font-size: 17px;
}

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

.intro article,
.service-card,
.product-columns article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.intro article {
  padding: 28px;
  background: linear-gradient(180deg, #fffaf0 0%, #fbf4e6 100%);
}

.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 48px;
  background: var(--sage-soft);
}

.executive-copy {
  align-self: center;
}

.role {
  margin: 14px 0 18px;
  color: var(--gold-deep);
  font-weight: 800;
}

.executive-panel {
  display: grid;
  gap: 18px;
}

.executive-photo-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0 0%, #f6ecd7 100%);
  box-shadow: var(--shadow);
}

.executive-photo {
  width: 100%;
  height: 100%;
  min-height: 500px;
  display: block;
  object-fit: cover;
  object-position: center 34%;
}

.executive-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 44px);
  padding: 10px 14px;
  border: 1px solid rgba(197, 161, 94, 0.44);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--green-850);
  box-shadow: 0 16px 48px rgba(23, 37, 31, 0.18);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.executive-badge img {
  width: 72px;
  height: 32px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(82, 107, 88, 0.24);
}

.timeline span {
  color: var(--gold-deep);
  font-weight: 850;
}

.values {
  background: var(--green-950);
  color: #fff;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(247, 240, 223, 0.2);
}

.value-grid div {
  min-height: 170px;
  padding: 24px;
  background: linear-gradient(180deg, #2a3f34 0%, var(--green-850) 100%);
}

.value-grid strong,
.value-grid span {
  display: block;
}

.value-grid strong {
  margin-bottom: 10px;
  color: #f2dba3;
  font-size: 19px;
}

.value-grid span {
  color: rgba(255, 255, 255, 0.76);
}

.services {
  background: #fbf6ea;
}

.card-grid {
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  overflow-x: auto;
  padding-bottom: 12px;
}

.service-card {
  min-height: 300px;
  padding: 24px;
  background: linear-gradient(180deg, #fffaf0 0%, #f6ecd7 100%);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--gold-deep);
  font-weight: 850;
}

.standards {
  background: var(--cream-deep);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.steps span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(197, 161, 94, 0.58);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.7);
  color: var(--green-850);
  font-weight: 700;
}

.clinic-space {
  background: linear-gradient(180deg, #fbf6ea 0%, var(--sage-soft) 100%);
}

.clinic-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.clinic-photo {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.clinic-photo.featured {
  min-height: 560px;
}

.clinic-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.clinic-photo.featured img {
  object-position: center center;
}

.clinic-photo:not(.featured) img {
  object-position: center center;
}

.clinic-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(197, 161, 94, 0.44);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--green-850);
  box-shadow: 0 16px 48px rgba(23, 37, 31, 0.14);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.products {
  background: linear-gradient(135deg, var(--green-850) 0%, #526b58 100%);
  color: #fff;
}

.products .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.75);
}

.product-columns article {
  min-height: 260px;
  padding: 28px;
  background: rgba(255, 250, 240, 0.1);
  border-color: rgba(247, 240, 223, 0.22);
  box-shadow: none;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 10px;
}

.knowledge-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.knowledge-list a {
  min-height: 118px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0 0%, #f3ead6 100%);
  color: var(--green-850);
  font-weight: 800;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, var(--sage-soft) 0%, var(--cream) 100%);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  font-style: normal;
}

.contact-card a,
.contact-card span {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 28px clamp(18px, 5vw, 74px);
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-brand img {
  width: 58px;
  height: 30px;
  object-fit: cover;
  object-position: center;
  border-radius: 999px;
  background: var(--paper);
}

.site-footer strong {
  color: #fff;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
    gap: 6px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  .nav {
    position: absolute;
    top: 78px;
    right: 18px;
    left: 18px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--green-950);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    padding: 14px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(23, 37, 31, 0.92) 0%, rgba(36, 56, 46, 0.76) 48%, rgba(82, 107, 88, 0.25) 100%),
      url("assets/arganiq-hero.png") center / cover;
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 96px;
  }

  .hero-note {
    right: 18px;
    bottom: 22px;
  }

  .intro-grid,
  .product-columns,
  .founder,
  .booking,
  .clinic-gallery {
    grid-template-columns: 1fr;
  }

  .clinic-photo,
  .clinic-photo.featured {
    min-height: 360px;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo-wrap {
    width: 68px;
    height: 36px;
  }

  .brand-logo {
    width: 82px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-note {
    padding: 16px;
  }

  .value-grid,
  .timeline li {
    grid-template-columns: 1fr;
  }
}
