/* ============================================================
   SVP TECH — Brand Stylesheet
   Theme: Bold Red (#C8102E) on light, deep navy accents
   ============================================================ */

:root {
  /* Brand palette */
  --red:        #C8102E;   /* primary bold red */
  --red-dark:   #9B0C23;
  --red-light:  #E63946;
  --red-50:     #FDECEF;
  --red-100:    #FBD0D8;

  --navy:       #0E1A2B;   /* deep text / footer */
  --navy-2:     #1B2840;
  --ink:        #14213D;
  --body:       #3A4256;
  --muted:      #6B7280;

  --line:       #E5E7EB;
  --bg:         #FFFFFF;
  --bg-alt:     #F7F8FA;
  --bg-soft:    #F2F4F7;

  /* Logo accent (used sparingly) */
  --logo-blue:  #0E3D8C;

  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20,33,61,.06), 0 1px 3px rgba(20,33,61,.04);
  --shadow:    0 6px 18px rgba(20,33,61,.08);
  --shadow-lg: 0 18px 50px rgba(20,33,61,.14);

  --container: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Noto Sans Thai', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.05rem; font-weight: 600; font-family: 'Inter', sans-serif; }

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

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  position: relative;
  padding-left: 32px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 22px; height: 2px;
  background: var(--red);
  transform: translateY(-50%);
}
.section-head .eyebrow { display: inline-block; }

.hl { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200,16,46,.32);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200,16,46,.4); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-block { width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; }
.brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .02em;
  color: var(--navy);
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.brand-accent { color: var(--red); margin-left: 2px; }
.brand-th {
  font-family: 'Noto Sans Thai', 'Inter', sans-serif;
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 4px;
  text-transform: none;
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links > a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 6px;
  position: relative;
  transition: color .2s;
}
.nav-links > a:not(.btn-cta):hover { color: var(--red); }
.nav-links > a:not(.btn-cta)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-links > a:not(.btn-cta):hover::after { transform: scaleX(1); }
.btn-cta {
  background: var(--red);
  color: #fff !important;
  padding: 10px 20px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(200,16,46,.3);
}
.btn-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #0E1A2B 0%, #14213D 55%, #1B2840 100%);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(200,16,46,.28), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(14,61,140,.4), transparent 50%);
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 75%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 60px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--red-light); }
.hero-copy .eyebrow::before { background: var(--red-light); }
.hero-copy h1 { color: #fff; margin-bottom: 22px; }
.hero-copy p {
  font-size: 1.12rem;
  color: rgba(255,255,255,.78);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 6px;
}

.hero-visual { display: flex; justify-content: center; }
.hex-frame {
  width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(200,16,46,.18), transparent 60%);
  filter: drop-shadow(0 30px 60px rgba(200,16,46,.25));
  animation: floatY 6s ease-in-out infinite;
}
.hex-frame img { width: 100%; height: auto; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- SECTIONS ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 14px; }
.section-sub { font-size: 1.05rem; color: var(--muted); }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-copy .lead { font-size: 1.12rem; color: var(--ink); margin-bottom: 18px; }
.about-copy p { margin-bottom: 16px; }
.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--body);
  font-size: .98rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--red);
  margin-bottom: 8px;
}
.mini-card p { font-size: .9rem; color: var(--body); margin: 0; }

/* ---------- PRODUCTS ---------- */
.prod-group { margin-bottom: 56px; }
.prod-group:last-child { margin-bottom: 0; }
.prod-group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--red-100);
  margin-bottom: 28px;
}
.prod-icon {
  width: 44px; height: 44px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.prod-group-head h3 { color: var(--ink); }
.prod-tag {
  margin-left: auto;
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 500;
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.prod-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.prod-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s var(--ease);
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--red-100); }
.prod-card:hover::before { transform: scaleY(1); }
.prod-card > h4 {
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.prod-card > p {
  font-size: .93rem;
  color: var(--body);
  margin-bottom: 14px;
  line-height: 1.55;
}
ul.prod-apps {
  list-style: none;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
ul.prod-apps li {
  position: relative;
  padding-left: 22px;
  font-size: .87rem;
  color: var(--body);
  line-height: 1.45;
}
ul.prod-apps li::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 8px; height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}

/* ---------- SUPPLIERS ---------- */
.supp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.supp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .25s var(--ease), box-shadow .25s;
  position: relative;
}
.supp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.supp-logo {
  width: 100%;
  height: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: 18px 24px;
  margin-bottom: 18px;
}
.supp-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 124px;
  object-fit: contain;
}
.supp-card h4 { font-size: 1.2rem; color: var(--ink); margin-bottom: 4px; }
.supp-origin {
  font-size: .78rem;
  color: var(--red);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.supp-card p { font-size: .92rem; margin-bottom: 16px; }
.supp-prods {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-style: italic;
}

/* ---------- APPLICATIONS ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}
.app-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red-100);
}
.app-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.app-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14,26,43,.55) 100%);
  pointer-events: none;
}
.app-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.app-card:hover .app-img img { transform: scale(1.06); }
.app-card h4 {
  font-size: 1.15rem;
  margin: 20px 22px 8px;
  color: var(--ink);
}
.app-card p {
  font-size: .92rem;
  color: var(--body);
  margin: 0 22px 22px;
  line-height: 1.55;
}
.app-credit {
  margin-top: 32px;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- CONTACT ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-copy { padding: 56px 48px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.contact-copy .eyebrow { color: var(--red-light); }
.contact-copy .eyebrow::before { background: var(--red-light); }
.contact-copy h2 { color: #fff; margin-bottom: 18px; }
.contact-copy .lead { color: rgba(255,255,255,.82); margin-bottom: 32px; font-size: 1.05rem; }
.contact-list { display: grid; gap: 18px; }
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ci-label {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.ci-val { font-weight: 500; color: #fff; }

.contact-form { padding: 56px 48px; }
.contact-form h3 { margin-bottom: 24px; color: var(--ink); }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
.field textarea { resize: vertical; min-height: 90px; }
.req { color: var(--red); font-weight: 700; }
.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--red-50);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--red-dark);
  font-weight: 500;
}

/* ---------- FOOTER ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.7); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding: 64px 24px 48px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 52px; height: 52px; object-fit: contain; }
.footer-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
  line-height: 1;
}
.footer-name span { color: var(--red-light); }
.footer-brand small { color: rgba(255,255,255,.55); font-size: .74rem; display: block; margin-top: 4px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h5 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.footer-cols a {
  display: block;
  font-size: .92rem;
  color: rgba(255,255,255,.65);
  padding: 4px 0;
  transition: color .2s;
}
.footer-cols a:hover { color: var(--red-light); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
}
.footer-bar small { color: rgba(255,255,255,.45); font-size: .82rem; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hex-frame { width: 220px; height: 220px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-copy, .contact-form { padding: 40px 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a { padding: 12px 8px; border-radius: 6px; }
  .nav-links > a:not(.btn-cta)::after { display: none; }
  .nav-links > a:not(.btn-cta):hover { background: var(--red-50); }
  .btn-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }

  .section { padding: 72px 0; }
  .hero { padding: 130px 0 70px; }
  .hero-actions .btn { flex: 1; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 2rem; }
  .about-cards { grid-template-columns: 1fr; }
  .prod-group-head { flex-wrap: wrap; }
  .prod-tag { margin-left: 0; width: 100%; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
