/*
Theme Name: Yoson Precision Frontend
Description: Dependency-light responsive frontend for Yoson Precision.
*/
:root {
  --ink: #182230;
  --ink-soft: #334155;
  --muted: #5f6b7a;
  --navy: #10294b;
  --navy-2: #0b203b;
  --blue: #2868c7;
  --blue-dark: #2059ad;
  --blue-soft: #eaf2ff;
  --paper: #ffffff;
  --mist: #f4f7fb;
  --mist-2: #eef3f9;
  --line: #e5eaf0;
  --success: #18794e;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(16, 41, 75, .10);
  --radius: 18px;
  --radius-lg: 24px;
  --content: 1180px;
  --header-height: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: #cfe0ff; color: var(--ink); }

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 9999;
  padding: 10px 14px; border-radius: 8px; background: var(--navy); color: #fff;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.section { padding: 86px 0; }
.section-sm { padding: 62px 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #fff; }
.section-title { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-title.align-left { margin-left: 0; text-align: left; }
.eyebrow {
  margin: 0 0 10px; color: var(--blue); font-size: 13px; font-weight: 750;
  letter-spacing: .12em; text-transform: uppercase;
}
h1, h2, h3, h4 { margin-top: 0; color: var(--ink); line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(38px, 5vw, 58px); }
h2 { font-size: clamp(31px, 4vw, 43px); }
h3 { font-size: clamp(20px, 2.2vw, 25px); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); line-height: 1.72; }
.muted { color: var(--muted); }
.prose { max-width: 760px; }
.prose p:last-child { margin-bottom: 0; }

.site-header {
  position: relative; z-index: 100; min-height: var(--header-height);
  background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line);
}
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand {
  display: inline-flex; align-items: center; min-width: max-content; color: var(--ink);
  font-size: 17px; font-weight: 750; text-decoration: none; letter-spacing: -.015em;
}
.desktop-nav { display: flex; align-items: center; gap: 23px; }
.desktop-nav a {
  position: relative; padding: 27px 0 24px; color: var(--ink); text-decoration: none;
  font-size: 15.5px; font-weight: 500; white-space: nowrap;
}
.desktop-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 18px; height: 1.5px;
  background: var(--ink); transition: right .2s ease;
}
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { right: 0; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 11px; background: var(--mist);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 23px; height: 23px; }
.mobile-panel {
  position: fixed; inset: 0; z-index: 120; background: var(--navy-2); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.mobile-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-panel-inner { width: min(calc(100% - 36px), 620px); margin: 0 auto; padding: 22px 0 36px; }
.mobile-panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.mobile-panel .brand { color: #fff; }
.menu-close { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 11px; color: #fff; background: transparent; }
.mobile-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; margin-bottom: 38px; }
.mobile-nav a { padding: 13px 0; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.13); }
.mobile-panel-contact { display: grid; gap: 8px; color: rgba(255,255,255,.82); font-size: 15px; }
.mobile-panel-contact a { color: #fff; }

.btn {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 25px; border: 1px solid transparent; border-radius: 999px;
  color: #fff; background: var(--blue); text-decoration: none; font-weight: 700;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(40,104,199,.24); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #f0f5fb; color: var(--navy); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.home-hero {
  position: relative; min-height: 500px; display: grid; place-items: center; overflow: hidden;
  background: var(--navy) center / cover no-repeat;
}
.home-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,18,35,.84) 0%, rgba(5,18,35,.66) 45%, rgba(5,18,35,.18) 100%);
}
.home-hero-content { position: relative; z-index: 1; max-width: 800px; padding: 70px 0; text-align: center; color: #fff; }
.home-hero h1 { margin-bottom: 14px; color: #fff; }
.home-hero p { margin: 0 auto 26px; max-width: 720px; color: rgba(255,255,255,.91); font-size: 17px; }

.page-title { padding: 48px 0 34px; text-align: center; }
.page-title h1 { margin: 0; font-size: clamp(37px, 4.5vw, 50px); }
.page-intro-band { padding: 34px 0 52px; text-align: center; background: var(--mist); }
.page-intro-band p { max-width: 720px; margin: 0 auto 25px; color: var(--ink-soft); font-size: 17px; }

.split { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: 56px; }
.split.reverse { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); }
.split-media { overflow: hidden; border-radius: var(--radius); background: #dde4ec; box-shadow: 0 10px 30px rgba(16,41,75,.08); }
.split-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media.wide img { aspect-ratio: 1.55 / 1; }
.split-copy h2 { margin-bottom: 17px; }
.split-copy > p { color: var(--muted); font-size: 17px; }
.detail-list { display: grid; gap: 20px; margin-top: 27px; }
.detail-item h3 { margin: 0 0 4px; font-size: 20px; }
.detail-item p { margin: 0; color: var(--muted); }

.card-grid { display: grid; gap: 25px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.media-card {
  overflow: hidden; height: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: 0 8px 30px rgba(16,41,75,.045);
}
.media-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-card-body { padding: 24px 24px 26px; }
.media-card h3 { margin-bottom: 9px; }
.media-card p { margin: 0; color: var(--muted); }
.media-card.compact .media-card-body { padding: 20px; }
.media-card.compact h3 { font-size: 21px; }

.industry-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.industry-card-copy { padding: 27px 28px 25px; text-align: center; }
.industry-card-copy h2 { margin-bottom: 12px; font-size: 27px; }
.industry-card-copy p { margin: 0; color: var(--ink-soft); }
.industry-card img { display: block; width: 100%; aspect-ratio: 1.75 / 1; object-fit: cover; }

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-item { padding: 30px 24px; border-right: 1px solid var(--line); }
.feature-item:last-child { border-right: 0; }
.feature-icon {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 17px;
  border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 800;
}
.feature-item h3 { margin-bottom: 8px; font-size: 20px; }
.feature-item p { margin: 0; color: var(--muted); font-size: 15.5px; }

.check-list { display: grid; gap: 17px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: .02em; display: grid; place-items: center;
  width: 21px; height: 21px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 900;
}
.check-list strong { display: block; margin-bottom: 2px; }
.check-list span { color: var(--muted); }

.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.step-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { padding: 0 27px; border-left: 1px solid var(--line); }
.step:first-child { padding-left: 0; border-left: 0; }
.step:last-child { padding-right: 0; }
.step-number { color: var(--blue); font-size: 33px; font-weight: 800; letter-spacing: -.04em; }
.step h3 { margin: 8px 0; font-size: 21px; }
.step p { margin: 0; color: var(--muted); }

.number-list { display: grid; gap: 18px; margin-top: 25px; }
.number-row { display: grid; grid-template-columns: 42px 1fr; gap: 15px; align-items: start; }
.number-row > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; }
.number-row h3 { margin: 1px 0 4px; font-size: 19px; }
.number-row p { margin: 0; color: var(--muted); }

.cta-band { padding: 70px 0; background: var(--mist-2); text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 720px; margin: 0 auto 25px; color: var(--muted); font-size: 17px; }
.confidence-band { position: relative; overflow: hidden; padding: 74px 0; color: #fff; background: var(--navy) center / cover; }
.confidence-band::before { content: ""; position: absolute; inset: 0; background: rgba(5,18,35,.72); }
.confidence-band .container { position: relative; z-index: 1; }
.confidence-band h2 { max-width: 900px; margin: 0; color: #fff; font-size: clamp(27px, 3.4vw, 42px); font-weight: 500; line-height: 1.3; }
.confidence-band .eyebrow { color: #fff; opacity: .86; }

.quote-shell {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 28px;
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow);
}
.quote-form h2 { margin-bottom: 8px; }
.quote-form > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; }
.req { color: #d92d20; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid #cfd6df; border-radius: 10px; background: #fff; color: var(--ink);
  padding: 13px 14px; outline: 0; transition: border .18s, box-shadow .18s;
}
.field textarea { min-height: 165px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40,104,199,.12); }
.field-help { color: var(--muted); font-size: 13px; }
.char-count { text-align: right; color: var(--muted); font-size: 12.5px; }
.upload-box { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 16px 18px; border: 1px dashed #aeb9c8; border-radius: 12px; background: var(--mist); }
.upload-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.upload-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; margin: 0; border: 1px solid #aeb9c8; border-radius: 8px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 650; line-height: 1; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.upload-button:hover { border-color: var(--blue); background: #f8fbff; }
.upload-native:focus + .upload-button { outline: 3px solid rgba(40,104,199,.2); outline-offset: 2px; border-color: var(--blue); }
.upload-filename { min-width: 0; color: var(--muted); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
@media (max-width: 560px) { .upload-box { align-items: flex-start; flex-direction: column; } }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.quote-side { display: grid; align-content: start; gap: 23px; }
.quote-side img { width: 100%; aspect-ratio: 1.42 / 1; object-fit: cover; border-radius: 15px; }
.quote-checklist { padding: 4px 4px 0; }
.quote-checklist h3 { margin-bottom: 9px; }
.quote-checklist p { color: var(--muted); }
.form-alert { padding: 13px 15px; border-radius: 10px; margin-bottom: 18px; }
.form-alert.error { background: #fff0ee; color: var(--danger); }
.form-alert.success { background: #eaf8f0; color: var(--success); }
.privacy-note { margin: 13px 0 0; color: var(--muted); font-size: 13px; }

.site-footer { padding: 58px 0 25px; background: var(--navy); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.15fr 1.25fr; gap: 65px; }
.footer-col h2 { color: #fff; font-size: 18px; margin-bottom: 20px; letter-spacing: 0; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.9); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: grid; gap: 8px; color: rgba(255,255,255,.83); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.socials a { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #fff; text-decoration: none; font-size: 13px; }
.footer-cta p { color: rgba(255,255,255,.82); }
.footer-cta .text-link { color: #fff; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.65); font-size: 13.5px; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 22px; }
.footer-bottom a { color: inherit; }

.simple-page { min-height: 56vh; padding: 80px 0; }
.simple-page .prose h2 { margin-top: 35px; font-size: 26px; }
.error-code { color: var(--blue); font-size: 90px; line-height: 1; font-weight: 850; }

@media (max-width: 1100px) {
  .desktop-nav { gap: 16px; }
  .desktop-nav a { font-size: 14.5px; }
  .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-height: 104px; }
  .container { width: min(calc(100% - 36px), var(--content)); }

  /* Mobile primary navigation: visible by default and horizontally swipeable. */
  .site-header { min-height: var(--header-height); }
  .header-inner {
    width: 100%;
    min-height: var(--header-height);
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .header-inner > .brand {
    width: min(calc(100% - 36px), var(--content));
    min-height: 58px;
    margin-inline: auto;
    padding: 0;
    font-size: 17px;
  }
  .desktop-nav {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 20px;
    padding: 0 18px 1px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .desktop-nav::-webkit-scrollbar { display: none; }
  .desktop-nav a {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 12px 0 11px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
  }
  .desktop-nav a::after { bottom: 6px; }
  .menu-toggle { display: none; }
  .mobile-panel { display: none; }
  .section { padding: 68px 0; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .split.reverse .split-copy { order: 1; }
  .card-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-item:nth-child(2) { border-right: 0; }
  .feature-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .step-grid, .step-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 0; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .quote-shell { grid-template-columns: 1fr; }
  .quote-side { grid-template-columns: 1fr 1fr; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-cta { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 30px); }
  .section { padding: 56px 0; }
  .section-sm { padding: 48px 0; }
  .page-title { padding: 38px 0 24px; }
  .home-hero { min-height: 590px; background-position: 64% center; }
  .home-hero::before { background: linear-gradient(180deg, rgba(5,18,35,.42), rgba(5,18,35,.82)); }
  .home-hero-content { padding: 75px 0 55px; }
  .home-hero h1 { font-size: 39px; }
  .home-hero p { font-size: 16px; }
  .card-grid.three, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; }
  .industry-card-copy { padding: 23px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 5px; }
  .feature-item:last-child { border-bottom: 0; }
  .step-grid, .step-grid.four { grid-template-columns: 1fr; gap: 0; }
  .step, .step:first-child, .step:nth-child(3), .step:last-child { padding: 25px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step:first-child { padding-top: 0; }
  .step:last-child { border-bottom: 0; padding-bottom: 0; }
  .quote-shell { padding: 22px 17px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .quote-side { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 22px; }
  .footer-cta { grid-column: 1 / -1; }
  .footer-bottom-inner { display: grid; }
  .mobile-nav { grid-template-columns: 1fr 1fr; }
  .confidence-band { padding: 58px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* Privacy Policy */
.yp-legal-content{
  max-width: 860px;
  margin: 0 auto;
}
.yp-legal-content h2{
  margin: 2rem 0 .75rem;
  font-size: 1.5rem;
  line-height: 1.3;
}
.yp-legal-content p{
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--yp-muted, #5f6f82);
}
.yp-legal-content a{
  color: var(--yp-primary, #2f72d6);
  text-decoration: underline;
}
@media (max-width: 767px){
  .yp-legal-content{
    max-width: 100%;
  }
  .yp-legal-content h2{
    font-size: 1.25rem;
  }
}


/* V1.7 mobile quick navigation: visible horizontal menu, swipe for more items. */
.mobile-scroll-nav { display: none; }
@media (max-width: 900px) {
  .site-header .desktop-nav,
  .site-header .menu-toggle,
  .mobile-panel { display: none !important; }

  .site-header { min-height: 58px; }
  .header-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
  }
  .header-inner > .brand { min-height: 58px; }

  .mobile-scroll-nav {
    display: block;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .mobile-scroll-nav__track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .mobile-scroll-nav__track::-webkit-scrollbar { display: none; }
  .mobile-scroll-nav a {
    position: relative;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 0 11px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    scroll-snap-align: start;
  }
  .mobile-scroll-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 5px;
    height: 2px;
    background: var(--ink);
  }
}
