/* ============================================================
   WANLIN Medical Equipment — Thai aesthetic design system
   Colors: primary #0A57C2 | deep #063B7E | gold #E8A33D | light #EAF2FF
   Fonts: Prompt (headings) / Sarabun (body), subset=thai
   ============================================================ */
:root {
  --blue: #0A57C2;
  --blue-deep: #063B7E;
  --blue-dark: #04285A;
  --gold: #E8A33D;
  --gold-dark: #C9871F;
  --blue-light: #EAF2FF;
  --blue-mist: #F4F8FE;
  --ink: #1C2B3A;
  --ink-soft: #4A5C72;
  --line: #DBE6F5;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(10, 87, 194, 0.10);
  --shadow-hover: 0 14px 40px rgba(10, 87, 194, 0.18);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', 'Prompt', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.75;
  font-size: 16px;
}

h1, h2, h3, h4, .font-head { font-family: 'Prompt', 'Sarabun', sans-serif; line-height: 1.4; }

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

a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg, .logo img { height: 40px; width: auto; }
.logo-text {
  font-family: 'Prompt', sans-serif; font-weight: 700; font-size: 26px;
  letter-spacing: 3px; color: var(--blue-deep);
}
.logo-text .accent { color: var(--gold); }
.logo-sub { font-size: 12px; color: var(--ink-soft); letter-spacing: 1px; }

.main-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.main-nav a {
  font-family: 'Prompt', sans-serif; font-weight: 500; font-size: 16px;
  color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue); border-bottom-color: var(--gold); }
.nav-cta {
  background: var(--blue); color: #fff !important; padding: 10px 22px !important;
  border-radius: 999px; border-bottom: none !important; font-weight: 600;
}
.nav-cta:hover { background: var(--blue-deep); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 55%, var(--blue-dark) 100%);
  color: #fff; padding: 88px 0 96px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,163,61,.28) 0%, rgba(232,163,61,0) 70%);
}
.hero::before {
  content: ""; position: absolute; left: -120px; bottom: -180px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 70%);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.hero .eyebrow {
  display: inline-block; font-family: 'Prompt', sans-serif; font-weight: 600;
  color: var(--gold); letter-spacing: 2px; font-size: 15px;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; margin-bottom: 20px; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 20px); color: #D9E6FA; max-width: 720px; margin-bottom: 34px; }
.hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 16px;
  padding: 13px 30px; border-radius: 999px; cursor: pointer;
  transition: all .2s ease; border: none;
}
.btn-gold { background: var(--gold); color: var(--blue-dark); }
.btn-gold:hover { background: #F0B45A; color: var(--blue-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-outline {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline-dark:hover { background: var(--blue); color: #fff; }

/* ---------- Trust badges ---------- */
.trustbar { background: var(--blue-light); padding: 34px 0; }
.trustbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.trust-item { display: flex; align-items: center; gap: 14px; justify-content: center; }
.trust-item .t-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); flex-shrink: 0;
}
.trust-item .t-icon svg { width: 28px; height: 28px; }
.trust-item .t-label { font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 16px; color: var(--blue-deep); }
.trust-item .t-note { font-size: 13px; color: var(--ink-soft); }

/* ---------- Sections ---------- */
section.section { padding: 76px 0; }
section.section.alt { background: var(--blue-mist); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head .kicker {
  color: var(--gold-dark); font-family: 'Prompt', sans-serif; font-weight: 600;
  letter-spacing: 2px; font-size: 14px; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); color: var(--blue-deep); margin: 10px 0 14px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }
.gold-divider { width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin: 16px auto 0; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column; border: 1px solid var(--line);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card .card-img { background: var(--blue-light); padding: 18px; display: flex; align-items: center; justify-content: center; }
.card .card-img img { width: 100%; height: 220px; object-fit: contain; }
.card .card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 19px; color: var(--blue-deep); margin-bottom: 8px; }
.card .card-tag { color: var(--ink-soft); font-size: 15px; flex: 1; }
.card .card-code {
  display: inline-block; margin-top: 14px; align-self: flex-start;
  background: var(--blue-light); color: var(--blue); font-family: 'Prompt', sans-serif;
  font-weight: 600; font-size: 13px; padding: 3px 12px; border-radius: 999px;
}
.card .card-link { margin-top: 16px; font-family: 'Prompt', sans-serif; font-weight: 600; color: var(--gold-dark); }

.line-card .card-img img { height: 200px; }
.line-card .card-body { padding-bottom: 24px; }
.badge-count {
  display: inline-block; background: var(--gold); color: var(--blue-dark);
  font-family: 'Prompt', sans-serif; font-weight: 700; font-size: 13px;
  padding: 3px 12px; border-radius: 999px; margin-bottom: 10px;
}

/* ---------- Product detail ---------- */
.product-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.gallery-main {
  background: var(--blue-light); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.gallery-main img { max-height: 480px; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.gallery-thumbs .thumb {
  background: var(--blue-light); border-radius: var(--radius-sm); padding: 12px;
  border: 1px solid var(--line);
}
.gallery-thumbs .thumb img { height: 110px; width: 100%; object-fit: contain; }

.product-info h1 { font-size: clamp(24px, 3.4vw, 34px); color: var(--blue-deep); margin-bottom: 10px; }
.product-info .tagline { color: var(--gold-dark); font-family: 'Prompt', sans-serif; font-weight: 500; font-size: 18px; margin-bottom: 18px; }
.product-info .desc { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 24px; }
.feature-list { list-style: none; margin-bottom: 28px; }
.feature-list li {
  position: relative; padding: 8px 0 8px 34px; color: var(--ink);
  border-bottom: 1px dashed var(--line);
}
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) center/12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}
.product-cta {
  background: var(--blue-light); border-radius: var(--radius);
  padding: 24px 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.product-cta .cta-note { flex-basis: 100%; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 2px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--blue-mist); border-bottom: 1px solid var(--line);
  padding: 14px 0; font-size: 14.5px;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--gold-dark); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .current { color: var(--blue-deep); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 26px; box-shadow: var(--shadow);
}
.faq-item h3 { font-size: 17px; color: var(--blue-deep); margin-bottom: 8px; }
.faq-item p { color: var(--ink-soft); font-size: 15.5px; }
.faq-item a { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: #fff; padding: 64px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.cta-band p { color: #D9E6FA; max-width: 640px; margin: 0 auto 28px; }
.cta-band .contact-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.cta-band a.big {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Prompt', sans-serif; font-weight: 600; font-size: 17px;
  color: #fff; background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.45);
  padding: 12px 26px; border-radius: 999px;
}
.cta-band a.big:hover { background: var(--gold); color: var(--blue-dark); border-color: var(--gold); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
}
.contact-card h2 { color: var(--blue-deep); font-size: 22px; margin-bottom: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .c-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item .c-icon svg { width: 22px; height: 22px; }
.contact-item .c-label { font-family: 'Prompt', sans-serif; font-weight: 600; color: var(--blue-deep); font-size: 15px; }
.contact-item .c-value { color: var(--ink-soft); font-size: 15.5px; word-break: break-word; }

/* ---------- About page ---------- */
.prose { max-width: 840px; margin: 0 auto; }
.prose p { margin-bottom: 18px; color: var(--ink-soft); font-size: 16.5px; }
.prose h2 { color: var(--blue-deep); font-size: 26px; margin: 34px 0 14px; }
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.value-item {
  background: var(--blue-light); border-radius: var(--radius-sm); padding: 24px 26px;
}
.value-item h3 { color: var(--blue-deep); font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.value-item p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: #C6D8F2; padding: 56px 0 30px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #C6D8F2; }
.site-footer a:hover { color: var(--gold); }
.footer-logo-text {
  font-family: 'Prompt', sans-serif; font-weight: 700; font-size: 24px;
  letter-spacing: 3px; color: #fff;
}
.footer-logo-text .accent { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px;
  text-align: center; font-size: 13.5px; color: #8FA9CF;
}
.sibling-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- Placeholder image ---------- */
.img-placeholder {
  width: 100%; height: 220px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-light), #D5E5FA);
  border-radius: var(--radius-sm); color: var(--blue); font-family: 'Prompt', sans-serif;
  font-weight: 700; font-size: 22px; letter-spacing: 1px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .product-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trustbar-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding: 60px 0 68px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trustbar-inner { grid-template-columns: 1fr 1fr; gap: 14px; }
  .trust-item { justify-content: flex-start; }
  .gallery-main img { max-height: 320px; }
  .header-inner { justify-content: center; }
}
