/* ============================================
   MedSupplyLife — Landing Page v3
   Layout: simple, vetanymall-inspired
   Style: Anthropic-minimal, White + Bright Blue
   ============================================ */

:root {
  --blue: #0d6efd;
  --blue-bright: #1e90ff;
  --blue-deep: #0a58ca;
  --blue-navy: #071c3d;
  --blue-soft: #eaf2ff;
  --blue-softer: #f6f9ff;
  --line-green: #06c755;
  --ink: #14213b;
  --ink-soft: #5a6b84;
  --white: #ffffff;
  --border: #e4eaf3;
  --radius: 14px;
  --font: 'Anuphan', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.section { padding: 96px 0; }
.section-alt { background: var(--blue-softer); }

h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }

/* ===== Editorial type ===== */
.eyebrow {
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); }

.btn-line { background: var(--line-green); color: var(--white); }
.btn-line:hover { background: #05b34c; }


/* ===== Image placeholders (swap with real photos) ===== */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--blue-soft);
  border: 1.5px dashed rgba(13, 110, 253, .35);
  border-radius: 10px;
  color: var(--blue-deep);
  font-size: .9rem;
  font-weight: 500;
}
.img-placeholder svg { width: 56px; height: 56px; opacity: .8; }
.img-hero { min-height: 400px; border-radius: var(--radius); }
.img-hero svg { width: 64px; height: 64px; }
.img-plan { height: 170px; margin-bottom: 22px; }
.img-plan svg { width: 44px; height: 44px; }
.img-article { height: 160px; }
.img-article svg { width: 40px; height: 40px; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 42px; height: 42px;
  object-fit: contain;
}
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.brand-accent { color: var(--blue); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink-soft);
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 13px;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
  transition: border-color .18s ease;
}
.lang-toggle:hover { border-color: var(--blue); }
.lang-option.active { color: var(--blue); }
.lang-divider { color: var(--border); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { background: var(--white); }

.internal-notice {
  margin: 26px 0 0 auto;
  width: fit-content;
  max-width: 100%;
  color: #d81f26;
  font-weight: 500;
  font-size: .95rem;
  text-align: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0 96px;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-video {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

/* ===== Services (merged strip) ===== */
.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 30px;
}
.service-item + .service-item { border-left: 1px solid var(--border); }
.service-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 13px;
}
.service-icon svg { width: 25px; height: 25px; }
.service-item h3 { font-size: 1.1rem; }

/* ===== Products (plan-style cards) ===== */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.plan-card:hover { transform: translateY(-5px); border-color: rgba(13, 110, 253, .45); }
.plan-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}
.plan-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: var(--blue-softer);
  border: 1px solid var(--border);
}
.plan-card h3 { font-size: 1.22rem; margin-bottom: 6px; }
.plan-desc {
  font-size: .93rem;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 18px;
}
.plan-points {
  display: grid;
  gap: 10px;
  flex-grow: 1;
}
.plan-points li {
  position: relative;
  padding-left: 30px;
  font-size: .93rem;
  color: var(--ink-soft);
}
.plan-points li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 700;
}

/* ===== Articles ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.article-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: transform .2s ease, border-color .2s ease;
}
.article-card:hover { transform: translateY(-5px); border-color: rgba(13, 110, 253, .45); }
.article-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.article-body { padding: 18px 10px 10px; }
.article-body h3 { font-size: 1.03rem; margin-bottom: 8px; line-height: 1.45; }
.article-body p { font-size: .86rem; color: var(--ink-soft); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.contact-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 11px;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item h4 { font-size: .98rem; margin-bottom: 2px; }
.contact-item p { font-size: .92rem; color: var(--ink-soft); }
.contact-item a { color: var(--blue); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

/* ===== Contact form ===== */
.contact-form-card {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
}
.contact-form-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.form-sub {
  font-size: .95rem;
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: 26px;
}
.form-success {
  background: #e8f8ee;
  border: 1px solid #7fd8a2;
  color: #14713d;
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 500;
  margin-bottom: 22px;
}
.hp-field { display: none; }

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: 7px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: .98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}
.form-field textarea { resize: vertical; min-height: 130px; }

/* ===== Footer ===== */
.footer {
  background: var(--blue-navy);
  color: rgba(255, 255, 255, .82);
  padding: 60px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand .brand-name { color: var(--white); font-size: 1.3rem; }
.footer-brand .brand-accent { color: var(--blue-bright); }
.footer-brand p {
  margin-top: 12px;
  font-size: .92rem;
  font-weight: 300;
  opacity: .7;
  max-width: 300px;
}
.social-links { display: flex; gap: 12px; margin-top: 18px; }
.social-links a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: rgba(255, 255, 255, .85);
  transition: background .18s ease, color .18s ease;
}
.social-links a:hover { background: var(--blue); color: var(--white); }
.social-links svg { width: 18px; height: 18px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h5 {
  font-size: .95rem;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: .9rem;
  opacity: .72;
  transition: opacity .18s ease;
}
.footer-col a:hover { opacity: 1; }
.footer-copy {
  font-size: .84rem;
  opacity: .5;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 24px;
}

/* ===== Floating buttons ===== */
.float-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}
.float-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  transition: transform .18s ease;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn svg { width: 26px; height: 26px; }
.float-phone { background: var(--blue); }
.float-line { background: var(--line-green); }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 68px; }
  .img-hero { min-height: 280px; }
  .service-strip { grid-template-columns: 1fr; }
  .service-item + .service-item { border-left: none; border-top: 1px solid var(--border); }
  .plan-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 30px rgba(13, 110, 253, .10);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
    z-index: 99;
  }
  .nav-links.open { max-height: 340px; }
  .nav-links a { padding: 15px 24px; border-top: 1px solid var(--border); }

  .hamburger { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
