/*
Theme Name: Hytanbio InjectPens
Theme URI: https://www.injectpens.com/
Author: HYTANBIO
Description: Purpose-built B2B injection pen manufacturing, wholesale, and OEM/ODM theme.
Version: 1.0.0
Requires at least: 7.1
Requires PHP: 8.1
Text Domain: hytanbio
*/

:root {
  --navy: #062a5e;
  --blue: #0056b3;
  --blue-2: #1374d5;
  --cyan: #4ac4f3;
  --ink: #10243e;
  --muted: #586a7e;
  --line: #dce5ef;
  --soft: #f2f6fa;
  --white: #fff;
  --success: #087a57;
  --radius: 18px;
  --shadow: 0 18px 46px rgba(8, 42, 82, .1);
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 860px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.topbar { background: #031d41; color: #d9e8f8; font-size: 13px; letter-spacing: .02em; }
.topbar .container { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.topbar a { color: #fff; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(217,229,240,.9); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 218px; height: 54px; object-fit: contain; object-position: left center; }
.main-nav { flex: 1; }
.main-nav ul { display: flex; align-items: center; justify-content: flex-end; gap: 26px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--ink); font-size: 15px; font-weight: 700; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--blue); }
.button, .wp-element-button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px;
  padding: 12px 22px; border: 1px solid var(--blue); border-radius: 999px; background: var(--blue);
  color: #fff; font-weight: 800; line-height: 1.15; cursor: pointer; transition: .2s ease;
}
.button:hover, input[type="submit"]:hover { transform: translateY(-2px); color: #fff; background: var(--navy); border-color: var(--navy); }
.button-light { background: #fff; color: var(--navy); border-color: #fff; }
.button-light:hover { color: var(--navy); background: #eaf5ff; }
.button-ghost { background: transparent; color: var(--blue); }
.button-small { min-height: 40px; padding: 9px 17px; font-size: 14px; }
.nav-cta { margin-left: 4px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; color: var(--navy); font-weight: 800; }

.hero-carousel { position: relative; min-height: 650px; background: #061f45; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .7s ease; background-size: cover; background-position: center; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,22,51,.94) 0%, rgba(3,42,92,.78) 35%, rgba(3,38,78,.13) 70%); }
.hero-inner { position: relative; z-index: 2; min-height: 650px; display: flex; align-items: center; }
.hero-copy { width: min(620px, 90%); color: #fff; padding: 76px 0 92px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: #78d4fb; font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero-copy h1, .hero-copy h2 { margin: 0 0 20px; font-size: clamp(42px, 5.3vw, 72px); line-height: 1.04; letter-spacing: -.045em; color: #fff; }
.hero-copy p { margin: 0 0 28px; max-width: 580px; color: #dcecff; font-size: 19px; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; color: #eaf5ff; font-size: 14px; font-weight: 700; }
.hero-proof span::before { content: "✓"; margin-right: 7px; color: #62d5ad; }
.carousel-dots { position: absolute; z-index: 5; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; gap: 10px; }
.carousel-dots button { width: 38px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.carousel-dots button.is-active { background: #fff; }

.trust-strip { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.trust-item { background: #fff; padding: 27px; text-align: center; }
.trust-item strong { display: block; color: var(--navy); font-size: 20px; }
.trust-item span { display: block; color: var(--muted); font-size: 13px; }

.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-dark { color: #dcecff; background: linear-gradient(135deg, #031d41, #073f86); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 42px; }
.section-head > div { max-width: 760px; }
.kicker { margin: 0 0 10px; color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, h4 { margin-top: 0; color: var(--navy); font-weight: 850; line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(40px, 5vw, 64px); }
h2 { margin-bottom: 17px; font-size: clamp(31px, 3.5vw, 46px); }
h3 { margin-bottom: 12px; font-size: 23px; }
h4 { font-size: 18px; }
.lead { max-width: 820px; color: var(--muted); font-size: 20px; }
.section-head p, .muted { color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card { position: relative; min-height: 250px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 26px rgba(17,52,88,.05); transition: .22s ease; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.category-card .num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--blue); background: #eaf4ff; font-size: 13px; font-weight: 900; }
.category-card p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.category-card .arrow { position: absolute; right: 24px; bottom: 22px; font-size: 24px; }

.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.capability { position: relative; min-height: 430px; padding: 46px; border-radius: 26px; overflow: hidden; color: #fff; background: linear-gradient(135deg,#07376f,#0e69bd); }
.capability:nth-child(2) { color: var(--ink); background: linear-gradient(135deg,#eef6fc,#fff); border: 1px solid var(--line); }
.capability h3 { color: inherit; font-size: 34px; }
.capability p { max-width: 520px; }
.check-list { margin: 24px 0 30px; padding: 0; list-style: none; }
.check-list li { margin: 10px 0; padding-left: 28px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #52d9ad; font-weight: 900; }
.capability:nth-child(2) .check-list li::before { color: var(--success); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 1 / 1; overflow: hidden; background: #edf3f8; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.product-body h3 { font-size: 19px; }
.product-body p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: #21517d; background: #edf6ff; font-size: 12px; font-weight: 800; }

.page-hero { padding: 86px 0 76px; color: #e5f0fb; background: radial-gradient(circle at 80% 20%, #156cc1 0, transparent 32%), linear-gradient(135deg,#031d41,#07376f); }
.page-hero h1 { max-width: 950px; margin-bottom: 18px; color: #fff; }
.page-hero p { max-width: 800px; margin: 0; font-size: 20px; }
.breadcrumb { margin-bottom: 22px; color: #8fc9f1; font-size: 14px; }
.breadcrumb a { color: #d5edff; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 56px; align-items: start; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2 { margin-top: 54px; font-size: 34px; }
.article-content h3 { margin-top: 35px; }
.article-content p { margin: 0 0 20px; }
.article-content ul, .article-content ol { padding-left: 25px; }
.article-content li { margin-bottom: 8px; }
.article-content table, .spec-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.article-content th, .article-content td, .spec-table th, .spec-table td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th, .spec-table th { color: #fff; background: var(--navy); }
.article-content tr:nth-child(even) td, .spec-table tr:nth-child(even) td { background: #f6f9fc; }
.sidebar-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(6,42,94,.06); }
.sidebar-card + .sidebar-card { margin-top: 22px; }
.sidebar-card h3 { font-size: 21px; }

.answer-block { margin: 26px 0; padding-left: 22px; border-left: 4px solid var(--blue); }
.answer-block strong { display: block; color: var(--navy); font-size: 19px; }
.key-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.key-point { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfe; }
.key-point strong { display: block; color: var(--navy); }

.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 56px; align-items: start; }
.product-gallery-main { overflow: hidden; border-radius: 24px; background: var(--soft); }
.product-gallery-main img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-summary { padding-top: 10px; }
.product-summary h1 { font-size: clamp(38px, 4.6vw, 58px); }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.spec-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0; }
.spec-summary div { padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.spec-summary small { display: block; color: var(--muted); }
.spec-summary strong { color: var(--navy); }
.disclaimer { margin-top: 24px; color: #665a35; background: #fff8df; border: 1px solid #edd991; border-radius: 12px; padding: 15px 18px; font-size: 14px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: process; }
.process-step { min-height: 210px; padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.08); }
.process-step::before { counter-increment: process; content: counter(process, decimal-leading-zero); display: block; margin-bottom: 22px; color: #6ed4ff; font-size: 13px; font-weight: 900; }
.process-step h3 { color: #fff; font-size: 19px; }
.process-step p { color: #c9ddf2; font-size: 14px; }

.faq-list { max-width: 920px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border: 0; background: transparent; color: var(--navy); text-align: left; font-weight: 850; cursor: pointer; }
.faq-question::after { content: "+"; font-size: 26px; font-weight: 400; }
.faq-item.is-open .faq-question::after { content: "−"; }
.faq-answer { display: none; padding: 0 0 24px; color: var(--muted); }
.faq-item.is-open .faq-answer { display: block; }

.inquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.inquiry-form .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 14px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cdd9e5; border-radius: 10px; background: #fff; padding: 13px 14px; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(0,86,179,.14); border-color: var(--blue); }
.field textarea { min-height: 150px; resize: vertical; }
.hp-field { position: absolute !important; left: -10000px !important; }
.form-note { color: var(--muted); font-size: 13px; }
.form-status { grid-column: 1 / -1; padding: 14px 17px; border-radius: 10px; }
.form-status.success { color: #075f43; background: #e6f7f0; }
.form-status.error { color: #8b2530; background: #fff0f1; }

.cta-band { padding: 58px 0; color: #fff; background: linear-gradient(100deg, #004d9f, #0a72c8); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin: 0 0 10px; color: #fff; font-size: 36px; }
.cta-band p { margin: 0; color: #dcecff; }

.site-footer { color: #b8c9da; background: #02152f; }
.footer-main { display: grid; grid-template-columns: 1.25fr .8fr .8fr 1fr; gap: 46px; padding: 72px 0 50px; }
.footer-logo { width: 220px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer h3 { color: #fff; font-size: 17px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #d8e6f3; }
.site-footer a:hover { color: #fff; }
.footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 30px; }
.compliance-line { max-width: 820px; }
.whatsapp-float { position: fixed; z-index: 90; right: 24px; bottom: 24px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #1eaf69; box-shadow: 0 12px 28px rgba(4,80,49,.3); font-size: 28px; }
.whatsapp-float:hover { color: #fff; transform: translateY(-3px); }

.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.post-card time { color: var(--muted); font-size: 13px; }
.post-card h2 { margin: 11px 0; font-size: 24px; }

@media (max-width: 1050px) {
  .category-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .main-nav ul { gap: 16px; }
  .nav-cta { display: none; }
}

@media (max-width: 820px) {
  body.admin-bar .site-header { top: 46px; }
  .topbar .container { justify-content: center; }
  .topbar .topbar-copy { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; padding: 18px 24px 25px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; }
  .main-nav li { margin: 12px 0; }
  .hero-carousel, .hero-inner { min-height: 600px; }
  .hero-slide { background-position: 60% center; }
  .hero-slide::before { background: rgba(2,27,61,.78); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .category-grid, .product-grid, .post-list { grid-template-columns: repeat(2, 1fr); }
  .capability-grid, .content-layout, .product-detail { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .section-head, .cta-band .container { align-items: flex-start; flex-direction: column; }
  .key-points { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 28px), var(--container)); }
  .brand img { width: 180px; }
  .topbar-links { gap: 10px; justify-content: center; }
  .hero-copy { width: 100%; padding-top: 58px; }
  .hero-copy h1, .hero-copy h2 { font-size: 40px; }
  .hero-actions .button { width: 100%; }
  .hero-proof { gap: 10px 18px; }
  .trust-grid, .category-grid, .product-grid, .post-list, .process-grid, .footer-main, .inquiry-form { grid-template-columns: 1fr; }
  .capability { padding: 32px; }
  .inquiry-form .full { grid-column: 1; }
  .spec-summary { grid-template-columns: 1fr; }
  .page-hero { padding: 62px 0; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .footer-bottom .container { flex-direction: column; }
}
