/* MP Gold website demo
   Inspired by professional Thai gold-buying websites,
   but redesigned with original layout, colors, icons, and copy.
*/

:root {
  --red-950: #3f0708;
  --red-900: #6f0b10;
  --red-800: #8d1118;
  --red-700: #b21820;
  --gold-500: #d59a25;
  --gold-400: #f2c056;
  --gold-200: #fff0ba;
  --cream: #fff8ea;
  --cream-2: #fff1d2;
  --ink: #1f1f22;
  --muted: #6f6b67;
  --white: #fff;
  --line: rgba(102, 26, 18, .12);
  --shadow: 0 24px 80px rgba(58, 8, 8, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.top-contact {
  background: var(--red-950);
  color: rgba(255,255,255,.86);
  font-size: 14px;
  font-weight: 700;
}

.top-contact-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 234, .92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #3b1500;
  font-weight: 900;
  font-size: 20px;
  background:
    linear-gradient(135deg, #fff5b5 0%, #e4ab31 42%, #9f600d 100%);
  box-shadow: 0 10px 28px rgba(172, 94, 12, .28);
  border: 1px solid rgba(255,255,255,.55);
}

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

.logo-text strong {
  font-size: 18px;
  font-weight: 900;
}

.logo-text small {
  color: var(--gold-500);
  letter-spacing: .15em;
  font-weight: 900;
  font-size: 12px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 800;
  color: #4d4540;
}

.menu a:hover {
  color: var(--red-800);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--red-900);
  color: white;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 900;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: #351000;
  font-weight: 900;
  background: linear-gradient(135deg, #fff3a8, #d39121);
  box-shadow: 0 16px 34px rgba(159, 96, 13, .28);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(159, 96, 13, .34);
}

.cta.small {
  padding: 11px 16px;
}

.cta.outline {
  background: rgba(255,255,255,.78);
  box-shadow: none;
  border: 1px solid rgba(211, 145, 33, .35);
  color: var(--red-900);
}

.cta.outline.light {
  color: #fff;
  border-color: rgba(255,255,255,.38);
  background: rgba(255,255,255,.12);
}

.cta.full {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
  background:
    radial-gradient(circle at 78% 18%, rgba(247, 199, 88, .32), transparent 22%),
    radial-gradient(circle at 4% 18%, rgba(255, 255, 255, .75), transparent 22%),
    linear-gradient(135deg, #fff9ec 0%, #fff0c9 52%, #fff7ea 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -160px -10%;
  height: 280px;
  background: linear-gradient(90deg, var(--red-900), var(--red-700), var(--red-950));
  border-radius: 50% 50% 0 0;
  opacity: .10;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .8;
}

.hero-glow.one {
  width: 260px;
  height: 260px;
  right: 8%;
  top: 42px;
  background: rgba(255, 232, 137, .7);
}

.hero-glow.two {
  width: 120px;
  height: 120px;
  left: 8%;
  bottom: 70px;
  background: rgba(141, 17, 24, .10);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red-800);
  font-weight: 900;
  letter-spacing: .06em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(46px, 6.5vw, 86px);
  line-height: .98;
  letter-spacing: -1.8px;
  margin-bottom: 22px;
  color: var(--red-950);
}

h1 span {
  color: var(--gold-500);
  text-shadow: 0 2px 0 #fff;
}

.lead {
  font-size: 20px;
  line-height: 1.78;
  color: #62564e;
  max-width: 690px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.app-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-row span {
  border: 1px solid rgba(141, 17, 24, .12);
  background: rgba(255,255,255,.66);
  color: #74401b;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

.hero-card {
  position: relative;
  min-height: 470px;
  border-radius: 38px;
  padding: 32px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,.6), transparent 20%),
    linear-gradient(135deg, #7e0f14 0%, #b31822 42%, #4b0709 100%);
  color: white;
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 28px;
}

.card-chip {
  position: relative;
  z-index: 2;
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.12);
  color: var(--gold-200);
  font-weight: 900;
  letter-spacing: .12em;
}

.gold-coin {
  position: relative;
  z-index: 1;
  width: 230px;
  height: 230px;
  margin: 36px auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, #fff8c8 0%, #f8c959 22%, #c47d13 58%, #7a4108 100%);
  box-shadow:
    inset 0 4px 16px rgba(255,255,255,.5),
    inset 0 -18px 32px rgba(62, 26, 1, .26),
    0 22px 60px rgba(0,0,0,.24);
  border: 10px solid rgba(255,255,255,.12);
}

.gold-coin span {
  font-size: 42px;
  font-weight: 900;
  color: #4b2101;
}

.hero-card h2,
.hero-card p,
.hero-card .cta {
  position: relative;
  z-index: 2;
}

.hero-card h2 {
  font-size: 34px;
  margin-bottom: 8px;
}

.hero-card p {
  color: rgba(255,255,255,.78);
  line-height: 1.75;
}

.section {
  padding: 82px 0;
}

.price-section {
  background: #fff;
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}

.section-head p {
  margin-bottom: 8px;
  color: var(--red-800);
  font-weight: 900;
  letter-spacing: .09em;
}

.section-head h2,
.estimate-grid h2,
.branch-copy h2,
.contact-section h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  margin-bottom: 10px;
  color: var(--red-950);
}

.section-head span {
  color: var(--muted);
  font-weight: 800;
}

.main-price-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.main-price-board article {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  background:
    linear-gradient(180deg, #fff, #fff7e7);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(78, 23, 9, .08);
}

.main-price-board article::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(213, 154, 37, .14);
}

.price-label {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 18px;
}

.price-label.buy {
  background: #e6fff1;
  color: #08713c;
}

.price-label.sell {
  background: #fff1c7;
  color: #8a5200;
}

.price-label.member {
  background: #ffe6e7;
  color: var(--red-800);
}

.main-price-board h3 {
  color: #5d5550;
  margin-bottom: 12px;
}

.main-price-board strong {
  display: block;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
  color: var(--red-800);
  letter-spacing: -1.2px;
}

.main-price-board small {
  color: var(--muted);
  font-weight: 800;
}

.price-admin {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border-radius: 26px;
  border: 1px solid rgba(213, 154, 37, .25);
  background: linear-gradient(135deg, #fff9e8, #fff0c7);
  padding: 22px;
}

.price-admin h3 {
  margin-bottom: 4px;
}

.price-admin p {
  margin-bottom: 0;
  color: #79512a;
  line-height: 1.6;
}

#priceForm {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

label {
  display: grid;
  gap: 6px;
  color: #63401e;
  font-weight: 900;
}

input,
select {
  width: 170px;
  border: 1px solid rgba(111, 11, 16, .16);
  border-radius: 14px;
  padding: 12px 14px;
  background: white;
  outline: none;
  font-weight: 800;
}

select,
.estimate-card input {
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--red-800);
  box-shadow: 0 0 0 4px rgba(141, 17, 24, .08);
}

#priceForm button,
.estimate-card button,
.product-grid button,
.branch-search button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--red-800);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.sub-title {
  margin: 34px 0 18px;
  font-size: 28px;
  color: var(--red-950);
}

.karat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.karat-card {
  min-height: 160px;
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(78, 23, 9, .06);
}

.karat-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff3a8, #d39121);
}

.karat-card h4 {
  margin: 0 0 6px;
  font-size: 20px;
}

.karat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.karat-card strong {
  display: block;
  margin-top: 10px;
  color: var(--red-800);
  font-size: 24px;
}

.notice {
  margin-top: 20px;
  color: var(--muted);
  font-weight: 700;
}

.estimate-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(213, 154, 37, .16), transparent 20%),
    linear-gradient(180deg, #fff8ea, #fff);
}

.estimate-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.muted {
  color: var(--muted);
  line-height: 1.8;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-weight: 900;
}

.steps b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #391100;
  background: linear-gradient(135deg, #fff3a8, #d39121);
}

.estimate-card {
  padding: 30px;
  border-radius: 32px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.estimate-card button {
  width: 100%;
  padding: 15px;
}

.estimate-result {
  margin-top: 4px;
  border-radius: 24px;
  padding: 22px;
  background: var(--red-950);
  color: white;
}

.estimate-result span,
.estimate-result small {
  display: block;
}

.estimate-result strong {
  display: block;
  margin: 6px 0;
  font-size: clamp(34px, 4vw, 54px);
  color: var(--gold-200);
}

.estimate-result small {
  color: rgba(255,255,255,.72);
}

.why-section {
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.why-grid article {
  border-radius: 28px;
  padding: 26px;
  background: linear-gradient(180deg, #fff, #fff7e8);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(78, 23, 9, .06);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #fff2c8;
  margin-bottom: 18px;
  font-size: 26px;
}

.why-grid p,
.service-grid p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.services-section {
  background: var(--cream);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-grid article {
  overflow: hidden;
  border-radius: 30px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(78, 23, 9, .08);
}

.service-grid h3,
.service-grid p {
  padding-left: 22px;
  padding-right: 22px;
}

.service-grid h3 {
  margin-top: 20px;
}

.service-grid p {
  padding-bottom: 24px;
}

.service-image {
  height: 160px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.7), transparent 18%),
    linear-gradient(135deg, #fff3a8, #d39121 48%, #7e3608);
  position: relative;
}

.service-image::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 20px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.38);
}

.service-image.pawn {
  background: linear-gradient(135deg, #ffe3e5, #b31822 50%, #4b0709);
}

.service-image.shop {
  background: linear-gradient(135deg, #fff3a8, #d39121 45%, #b31822);
}

.service-image.refine {
  background: linear-gradient(135deg, #fff, #f2c056 45%, #6f0b10);
}

.branch-section {
  background: white;
}

.branch-box {
  border-radius: 36px;
  padding: 36px;
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 240, 186, .5), transparent 24%),
    linear-gradient(135deg, var(--red-900), var(--red-950));
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow);
}

.branch-copy .eyebrow,
.contact-section .eyebrow {
  color: var(--gold-200);
}

.branch-copy h2,
.contact-section h2 {
  color: white;
}

.branch-copy .muted {
  color: rgba(255,255,255,.76);
}

.branch-search {
  min-width: 330px;
  display: flex;
  gap: 10px;
}

.branch-search select {
  min-width: 210px;
}

.branch-search button {
  background: var(--gold-500);
  color: #341000;
}

.branch-result {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 20px;
}

.branch-result strong {
  color: var(--gold-200);
}

.branch-result span {
  color: rgba(255,255,255,.8);
}

.branch-result a {
  margin-left: auto;
  color: var(--gold-200);
  font-weight: 900;
}

.products-section {
  background: #fff8ea;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 14px 38px rgba(78, 23, 9, .07);
}

.product-art {
  height: 180px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.74), transparent 22%),
    linear-gradient(135deg, #fff3a8, #d39121 52%, #6a2f06);
  margin-bottom: 18px;
}

.product-art.chain {
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.7), transparent 22%), linear-gradient(135deg, #ffe9ad, #b56e12 50%, #7e0f14);
}

.product-art.bangle {
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.7), transparent 22%), linear-gradient(135deg, #fff5c2, #d39121 50%, #4b0709);
}

.product-art.bar {
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.7), transparent 22%), linear-gradient(135deg, #fff, #f2c056 50%, #b56e12);
}

.product-grid strong {
  display: block;
  color: var(--red-800);
  margin-bottom: 14px;
  font-size: 20px;
}

.product-grid button {
  width: 100%;
}

.contact-section {
  padding: 72px 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 240, 186, .4), transparent 22%),
    linear-gradient(135deg, var(--red-900), var(--red-950));
  color: white;
}

.contact-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.contact-section p {
  color: rgba(255,255,255,.78);
  line-height: 1.8;
}

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

.footer {
  background: var(--red-950);
  color: rgba(255,255,255,.68);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .karat-grid,
  .why-grid,
  .service-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .estimate-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 620px;
  }
}

@media (max-width: 860px) {
  .nav {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    padding: 18px;
    border-radius: 22px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .menu.open {
    display: flex;
  }

  .nav > .cta.small {
    display: none;
  }

  .main-price-board,
  .price-admin,
  .branch-box {
    grid-template-columns: 1fr;
  }

  #priceForm {
    display: grid;
    grid-template-columns: 1fr;
  }

  input,
  select {
    width: 100%;
  }

  .branch-search {
    min-width: 0;
    width: 100%;
  }

  .branch-result a {
    margin-left: 0;
  }

  .contact-grid {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .top-contact-inner {
    justify-content: center;
    flex-direction: column;
    padding: 8px 0;
    gap: 4px;
  }

  .hero {
    padding: 50px 0 62px;
  }

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

  .cta {
    width: 100%;
  }

  .main-price-board strong {
    font-size: 44px;
  }

  .karat-grid,
  .why-grid,
  .service-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .branch-box {
    padding: 26px;
  }

  .footer-inner {
    display: grid;
  }
}
