/*
Theme Name: LD Screw Industrial 2.0
Theme URI: https://ldscrew.com/
Author: LD Screw
Description: A lightweight, original WordPress theme for an industrial fastener manufacturer and export supplier.
Version: 2.0.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ldscrew-v2
*/

:root {
  --ink: #0b1f33;
  --ink-2: #163653;
  --steel: #466276;
  --muted: #657786;
  --line: #dbe4ea;
  --surface: #f3f6f8;
  --white: #ffffff;
  --accent: #f59b23;
  --accent-dark: #d97d08;
  --success: #2f7c67;
  --shadow: 0 20px 50px rgba(8, 31, 52, .11);
  --radius: 18px;
  --container: 1280px;
}

* { 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", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--soft { background: var(--surface); }
.section--dark { color: var(--white); background: var(--ink); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section--dark .eyebrow { color: #ffc66d; }
.section-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.section-intro { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.section--dark .section-intro { color: #c2d0dc; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-head__copy { max-width: 760px; }
.skip-link {
  position: fixed;
  z-index: 9999;
  top: -100px;
  left: 16px;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
}
.skip-link:focus { top: 16px; }

/* Header */
.topbar { color: #d9e3eb; background: #061727; font-size: 13px; }
.topbar__inner { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar__contact { display: flex; gap: 24px; }
.topbar a:hover { color: var(--white); }
.site-header {
  position: sticky;
  z-index: 900;
  top: 0;
  border-bottom: 1px solid rgba(219, 228, 234, .85);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}
.site-header__inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__logo { width: 218px; height: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; list-style: none; }
.primary-nav a { display: block; padding: 10px 9px; color: #263c4d; font-size: 14px; font-weight: 750; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--accent-dark); }
.header-cta { padding: 12px 18px; border-radius: 999px; color: var(--white); background: var(--ink); font-size: 14px; font-weight: 800; }
.header-cta:hover { background: var(--ink-2); }
.language-switcher { flex: 0 0 auto; min-width: 118px; }
.language-switcher select { width: 100%; min-height: 40px; padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 700; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; width: 20px; height: 2px; display: block; margin: 5px auto; background: var(--ink); transition: .2s ease; }

/* Buttons */
.btn { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 850; transition: .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--accent { color: #1d2a34; background: var(--accent); box-shadow: 0 12px 28px rgba(245, 155, 35, .25); }
.btn--accent:hover { background: #ffad3d; }
.btn--dark { color: var(--white); background: var(--ink); }
.btn--outline { color: var(--white); border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
.btn--light-outline { color: var(--ink); border-color: var(--line); background: var(--white); }

/* Home hero */
.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: #0a2238 url("https://ldscrew.com/wp-content/uploads/2026/06/byszek-bolts-6777092-1.jpg") center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,18,31,.96) 0%, rgba(6,30,49,.86) 48%, rgba(6,25,41,.34) 100%); }
.hero::after { content: ""; position: absolute; width: 560px; height: 560px; right: -190px; top: -180px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.hero__inner { position: relative; z-index: 1; padding: 100px 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); align-items: center; gap: 80px; }
.hero__badge { width: fit-content; margin-bottom: 24px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #ffd596; background: rgba(255,255,255,.07); font-size: 12px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(46px, 6.5vw, 78px); line-height: .99; letter-spacing: -.05em; }
.hero__lead { max-width: 720px; margin: 26px 0 0; color: #d8e2e9; font-size: clamp(17px, 2vw, 20px); }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__proof { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 10px; }
.proof-chip { padding: 8px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #dfe8ee; background: rgba(7,26,41,.38); font-size: 13px; font-weight: 700; }
.rfq-card { padding: 30px; border: 1px solid rgba(255,255,255,.17); border-radius: 20px; background: rgba(9,30,48,.76); box-shadow: 0 25px 60px rgba(0,0,0,.25); backdrop-filter: blur(14px); }
.rfq-card__kicker { color: #ffc66d; font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.rfq-card h2 { margin: 10px 0 12px; font-size: 25px; line-height: 1.15; }
.rfq-card p { margin: 0 0 20px; color: #c7d5df; font-size: 14px; }
.rfq-list { margin: 0 0 24px; padding: 0; list-style: none; }
.rfq-list li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid rgba(255,255,255,.09); color: #e6edf2; font-size: 14px; }
.rfq-list li::before { content: "✓"; position: absolute; left: 0; color: #ffc66d; font-weight: 900; }
.rfq-card .btn { width: 100%; }

/* Cards and grids */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: .22s ease; }
.product-card:hover { transform: translateY(-6px); border-color: #c4d3dc; box-shadow: var(--shadow); }
.product-card__image { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; background: #fff; }
.product-card__image img { width: 100%; height: 100%; padding: 15px; object-fit: contain; transition: transform .35s ease; }
.product-card:hover .product-card__image img { transform: scale(1.035); }
.product-card__number { position: absolute; top: 12px; left: 12px; min-width: 31px; height: 31px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; color: var(--white); background: rgba(6,23,39,.82); font-size: 10px; font-weight: 850; }
.product-card__body { padding: 18px 18px 20px; }
.product-card h3 { margin: 0 0 7px; font-size: 18px; line-height: 1.22; }
.product-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.text-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-dark); font-size: 14px; font-weight: 850; }
.text-link::after { content: "→"; }
.text-link:hover { gap: 12px; }

.about-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 68px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; height: 420px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.about-media__note { position: absolute; right: -24px; bottom: -24px; max-width: 270px; padding: 22px; border-radius: 16px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); }
.about-media__note strong { display: block; margin-bottom: 4px; color: #ffc66d; font-size: 19px; }
.about-copy h2 { margin: 0; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.about-copy > p { color: var(--muted); font-size: 17px; }
.factory-gallery { display: grid; grid-template-columns: 1.45fr .78fr .78fr; gap: 18px; }
.factory-gallery img { width: 100%; height: 390px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.check-list { margin: 24px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 20px; list-style: none; }
.check-list li { position: relative; padding-left: 28px; font-size: 14px; font-weight: 750; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }

.process-grid { counter-reset: process; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.process-card { counter-increment: process; min-height: 230px; padding: 28px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; background: rgba(255,255,255,.045); }
.process-card::before { content: "0" counter(process); display: block; margin-bottom: 35px; color: #ffc66d; font-size: 14px; font-weight: 900; letter-spacing: .12em; }
.process-card h3 { margin: 0 0 10px; font-size: 20px; }
.process-card p { margin: 0; color: #bdccd7; font-size: 14px; }

.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.document-card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.document-card__icon { width: 50px; height: 50px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 14px; color: var(--ink); background: #fff3df; font-size: 22px; font-weight: 900; }
.document-card h3 { margin: 0 0 10px; font-size: 19px; }
.document-card p { margin: 0; color: var(--muted); font-size: 14px; }
.document-note { margin-top: 24px; padding: 14px 18px; border-left: 4px solid var(--accent); color: var(--muted); background: var(--white); font-size: 14px; }

.application-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.application { min-height: 140px; padding: 24px; display: flex; flex-direction: column; justify-content: end; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(140deg, #fff, #eef3f6); }
.application strong { font-size: 18px; }
.application span { margin-top: 4px; color: var(--muted); font-size: 13px; }

.cta-band { padding: 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; border-radius: 24px; color: var(--white); background: linear-gradient(125deg, var(--ink) 0%, var(--ink-2) 100%); box-shadow: var(--shadow); }
.cta-band h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.cta-band p { max-width: 700px; margin: 12px 0 0; color: #bfd0dc; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Internal pages */
.page-hero { position: relative; overflow: hidden; padding: 100px 0 86px; color: var(--white); background: linear-gradient(120deg, #071a2b 0%, #143c5d 100%); }
.page-hero::after { content: ""; position: absolute; width: 480px; height: 480px; right: -100px; top: -210px; border: 70px solid rgba(255,255,255,.035); border-radius: 50%; }
.page-hero__inner { position: relative; z-index: 1; }
.breadcrumbs { margin-bottom: 22px; color: #b9cbd7; font-size: 13px; font-weight: 700; }
.breadcrumbs a { color: #ffd08a; }
.page-hero h1 { max-width: 820px; margin: 0; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -.05em; }
.page-hero p { max-width: 760px; margin: 24px 0 0; color: #d3e0e8; font-size: 19px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 50px; }
.content-card { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.content-card h2, .content-card h3 { margin-top: 0; line-height: 1.2; }
.sidebar-card { position: sticky; top: 120px; padding: 28px; border-radius: 18px; color: var(--white); background: var(--ink); }
.sidebar-card h2 { margin: 0 0 10px; font-size: 24px; }
.sidebar-card p { color: #c5d4de; font-size: 14px; }
.sidebar-card .btn { width: 100%; margin-top: 10px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 28px; border: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 31%; color: #314c60; background: #f3f6f8; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.spec-table td { font-size: 14px; }
.product-detail__image { width: 100%; margin-bottom: 30px; aspect-ratio: 16/9; object-fit: cover; border-radius: 18px; background: #edf2f5; }
.feature-list { margin: 24px 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.feature-list li { padding: 14px 16px 14px 44px; position: relative; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfd; font-size: 14px; }
.feature-list li::before { content: "✓"; position: absolute; left: 16px; color: var(--success); font-weight: 900; }
.faq { display: grid; gap: 12px; }
.faq details { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 850; }
.faq p { margin: 12px 0 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.contact-card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.contact-card span { display: block; color: var(--accent-dark); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.contact-card strong { display: block; margin-top: 8px; font-size: 19px; overflow-wrap: anywhere; }
.contact-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.notice { padding: 18px 20px; border-left: 4px solid var(--accent); color: #415c6f; background: #fff8ed; }

/* Footer */
.site-footer { padding: 68px 0 24px; color: #cad6df; background: #061727; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr 1.1fr; gap: 46px; }
.footer-brand .brand__logo { width: 230px; }
.footer-brand p { max-width: 340px; color: #9fb2c0; }
.site-footer h2 { margin: 4px 0 18px; color: var(--white); font-size: 15px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 9px 0; }
.site-footer a:hover { color: #ffc66d; }
.footer-contact { font-size: 14px; }
.footer-contact strong { display: block; margin-top: 12px; color: #fff; }
.footer-bottom { margin-top: 52px; padding-top: 22px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #8fa4b3; font-size: 13px; }

/* WordPress content */
.entry-content > * { max-width: 820px; margin-inline: auto; }
.entry-content > .alignwide { max-width: var(--container); }
.entry-content > .alignfull { max-width: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .rfq-card { max-width: 600px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-grid { gap: 42px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  body.admin-bar .site-header { top: 46px; }
  .topbar__inner { min-height: 44px; }
  .topbar__inner > span { display: none; }
  .topbar__contact { width: 100%; justify-content: space-between; gap: 12px; }
  .brand__logo { width: 194px; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
  .language-switcher { min-width: 104px; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; padding: 14px 20px 22px; border-top: 1px solid var(--line); background: var(--white); box-shadow: 0 20px 30px rgba(10,31,50,.12); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 2px; }
  .primary-nav a { padding: 12px; }
  .nav-toggle[aria-expanded="true"] span { opacity: 0; }
  .nav-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }
  .about-grid, .content-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media__note { right: 16px; }
  .sidebar-card { position: static; }
  .cta-band { grid-template-columns: 1fr; }
  .document-grid, .application-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .factory-gallery { grid-template-columns: 1fr 1fr; }
  .factory-gallery img:first-child { grid-column: 1 / -1; height: 360px; }
  .factory-gallery img:not(:first-child) { height: 320px; }
}

@media (max-width: 640px) {
  .topbar__contact { justify-content: flex-end; }
  .topbar__contact a:first-child { display: none; }
  .site-header__inner { min-height: 72px; padding: 10px 0; flex-wrap: wrap; gap: 8px 10px; }
  .brand__logo { width: 154px; }
  .language-switcher { width: 100%; min-width: 0; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 68px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .hero { min-height: auto; }
  .hero__inner { padding: 76px 0; gap: 36px; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero__actions .btn { width: 100%; }
  .rfq-card { padding: 24px; }
  .product-grid, .document-grid, .application-grid, .contact-grid, .process-grid { grid-template-columns: 1fr; }
  .product-card__image { aspect-ratio: 4/3; }
  .about-media img { height: 300px; }
  .about-media__note { position: static; max-width: none; margin: -30px 16px 0; }
  .check-list { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 24px; }
  .cta-band__actions .btn { width: 100%; }
  .page-hero { padding: 76px 0 66px; }
  .content-card { padding: 22px; }
  .spec-table { display: block; overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .factory-gallery { grid-template-columns: 1fr; }
  .factory-gallery img:first-child, .factory-gallery img:not(:first-child) { grid-column: auto; height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
