/* ============================================================
   Rushmore Precision — Shared Stylesheet
   Used by: about.html · products.html · news.html · support.html
   ============================================================ */

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

:root {
  --ink:        #0A1B3D;
  --ink-2:      #112B5E;
  --blue:       #1E4DB7;
  --blue-2:     #3B6FD4;
  --sky:        #E8F0FF;
  --sky-2:      #F4F8FF;
  --line:       #E1E8F4;
  --muted:      #5C6B85;
  --text:       #1B2740;
  --white:      #ffffff;
  --bg:         #FAFBFE;
  --accent:     #00D4FF;
  --radius:     14px;
  --radius-md:  10px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(10,27,61,0.06), 0 4px 12px rgba(10,27,61,0.04);
  --shadow:     0 8px 24px rgba(10,27,61,0.08);
  --shadow-lg:  0 20px 60px rgba(10,27,61,0.12);
  --font-thai:  'Sarabun', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --font-en:    'IBM Plex Sans', 'Sarabun', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-thai);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
.en { font-family: var(--font-en); letter-spacing: -0.01em; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ============ MOCKUP NOTICE ============ */
.mockup-notice {
  background: #0A1B3D;
  color: #9FB6E8;
  text-align: center;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.mockup-notice b { color: #fff; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 28px;
  max-width: 1280px; margin: 0 auto;
  gap: 16px; overflow: visible;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  height: 80px; width: auto; display: block; object-fit: contain;
  background: #fff; border-radius: 8px; padding: 2px; flex-shrink: 0;
}
.logo-text .name { font-family: var(--font-en); font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
.logo-text .tag  { font-size: 8px; color: var(--muted); font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  font-size: 13px; font-weight: 500; color: var(--text);
  padding: 8px 11px; border-radius: 10px;
  transition: all .2s; white-space: nowrap;
}
.nav a:hover, .nav a.active { background: var(--sky); color: var(--blue); }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after,
.nav .has-sub > .nav-trigger::after {
  content: ""; display: inline-block; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -2px); margin-left: 7px; opacity: .55;
}
.nav .has-sub > .nav-trigger {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text);
  cursor: default; user-select: none;
}
.nav .has-sub:hover > .nav-trigger,
.nav .has-sub:focus-within > .nav-trigger { background: var(--sky); color: var(--blue); }
.nav .has-sub:hover > a,
.nav .has-sub:focus-within > a { background: var(--sky); color: var(--blue); }
.nav-dropdown .group-link {
  font-weight: 700; color: var(--ink) !important;
  background: var(--sky); border-radius: 8px;
}
.nav-dropdown .group-link:hover { background: var(--blue) !important; color: #fff !important; }
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 310px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
}
.nav .has-sub:hover > .nav-dropdown,
.nav .has-sub:focus-within > .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
  display: block; border-radius: 8px; padding: 9px 10px;
  font-size: 12px; color: var(--text);
}
.nav-dropdown .group-label {
  display: block; padding: 9px 10px 5px;
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--blue);
}
.nav-dropdown .sub-link { padding-left: 22px; color: var(--muted); }
.nav-dropdown .divider { height: 1px; background: var(--line); margin: 8px 0; }

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

.btn-cta {
  background: var(--blue); color: #fff;
  padding: 10px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  border: 0; transition: all .2s;
  box-shadow: 0 4px 14px rgba(30,91,255,0.25);
}
.btn-cta:hover { background: var(--ink); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30,91,255,0.35); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-nav {
  display: none; background: #fff;
  border-top: 1px solid var(--line);
  padding: 14px 28px 22px;
  flex-direction: column;
}
.mobile-nav a { padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; color: var(--blue); }
.mobile-nav .mobile-subhead {
  padding: 14px 0 4px; font-family: var(--font-en); font-size: 12px;
  font-weight: 700; letter-spacing: 1px; color: var(--blue);
}
.mobile-nav .mobile-sub { padding-left: 16px; font-size: 14px; color: var(--muted); }
.mobile-nav.open { display: flex; }

/* ============ PAGE HERO ============ */
.page-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(30,91,255,0.07), transparent 70%);
  border-radius: 50%;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .crumb {
  font-family: var(--font-en); font-size: 12px; font-weight: 600;
  color: var(--blue); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700; color: var(--ink);
  line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.page-hero h1 .ital { font-style: italic; font-weight: 400; color: var(--blue); }
.page-hero p.lead {
  font-size: 17px; color: var(--muted); line-height: 1.75;
  max-width: 640px;
}

/* ============ SECTIONS ============ */
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--ink); color: #fff; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 60px; flex-wrap: wrap;
}
.section-head .sh-left { max-width: 680px; }
.section-head h2 {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 700; color: var(--ink);
  line-height: 1.05; letter-spacing: -0.025em;
}
.section-head .sh-right p { font-size: 16px; color: var(--muted); max-width: 380px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-en); font-size: 12px; font-weight: 600;
  color: var(--blue); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  border: 0; transition: all .2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30,91,255,0.3); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============ CTA BAND ============ */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, #00D4FF 100%);
  border-radius: var(--radius-lg);
  padding: 72px 64px; color: #fff;
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 60px; align-items: center;
}
.cta-band::before {
  content: "";
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%; background: rgba(255,255,255,0.1);
}
.cta-band::after {
  content: "";
  position: absolute; bottom: -150px; right: 100px;
  width: 300px; height: 300px;
  border-radius: 50%; background: rgba(255,255,255,0.08);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(32px, 4vw, 48px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 14px;
}
.cta-band p { font-size: 16px; opacity: .9; max-width: 480px; }

.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions a {
  background: #fff; color: var(--ink);
  padding: 18px 24px; border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 15px; transition: all .2s;
}
.cta-actions a:hover { transform: translateX(4px); background: var(--ink); color: #fff; }
.cta-actions a.dark { background: var(--ink); color: #fff; }
.cta-actions a.dark:hover { background: #fff; color: var(--ink); }
.cta-actions a .meta { font-family: var(--font-en); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .6; display: block; margin-bottom: 2px; }
.cta-actions a .arrow { font-size: 20px; }

/* ============ FOOTER ============ */
.footer { background: var(--ink); color: #9FB6E8; padding: 80px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .name { font-family: var(--font-en); font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 14px; letter-spacing: -0.01em; white-space: nowrap; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 340px; margin-bottom: 24px; }
.footer-brand .addr { font-size: 13px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); line-height: 1.7; }
.footer-brand .addr strong { color: #fff; font-weight: 600; }
.footer-brand .addr a { color: #9FB6E8; transition: color .2s; }
.footer-brand .addr a:hover { color: #fff; }

.footer h5 { font-family: var(--font-en); font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 13px; color: #9FB6E8; transition: color .2s; }
.footer ul a:hover { color: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; flex-wrap: wrap; gap: 14px;
}
.footer-bottom .copy { font-size: 12px; color: #5C6B85; letter-spacing: 0.3px; }
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom .links a { font-size: 12px; color: #5C6B85; }
.footer-bottom .links a:hover { color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .nav a { padding: 9px 10px; font-size: 13px; }
  .logo-text .tag { display: none; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 32px; gap: 32px; }
}
@media (max-width: 760px) {
  .btn-cta { padding: 9px 14px; font-size: 12px; }
  .section { padding: 72px 0; }
  .page-hero { padding: 52px 0 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* === FORMAL TYPE OVERRIDES === */
/* English headline (hero) — IBM Plex Sans with decorative stroke + gradient spans */
.en-headline {
  font-family: var(--font-en);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.en-headline .stroke {
  font-style: italic;
  font-weight: 800;
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.en-headline .grad {
  background: linear-gradient(120deg, var(--blue) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Thai word-breaking — never break Thai compound words mid-character */
:lang(th), body, h1, h2, h3, h4, h5, p, span, a, button, li, td {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}
/* Allow English long URLs/code to still wrap */
.en, code, pre, a[href^="http"] { word-break: normal; overflow-wrap: anywhere; }

/* Remove decorative italic from inline headline spans; use color accent only */
h1 .ital, h2 .ital, h3 .ital,
.section-head h2 .ital,
.page-hero h1 .ital {
  font-style: normal;
  font-weight: 700;
  color: var(--blue);
}
/* Hide unused decorative .stroke spans */
.stroke:not(.en-headline .stroke) { font-style: normal; -webkit-text-stroke: 0; color: var(--ink); }
/* Italic ZEISS product names → keep upright, more formal */
h3.en[style*="italic"], .en[style*="italic"] { font-style: normal !important; }
/* Body line-height for Thai readability */
body { line-height: 1.7; }

.nb { white-space: nowrap; }
