/*
Theme Name: Workshop Solutions
Theme URI: https://example.com/workshop-solutions
Author: Your team
Description: A responsive, editable WordPress theme for automotive workshop equipment, resources, and project services.
Version: 2.0.0
Text Domain: workshop-solutions
*/

:root {
  --ink: #162028;
  --muted: #637078;
  --line: #d9dfdf;
  --paper: #f4f6f4;
  --white: #fff;
  --accent: #ff5b2e;
  --lime: #dff157;
  --dark: #10191f;
  --radius: 1.25rem;
  --page: min(1240px, calc(100vw - 3rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-width { width: var(--page); margin-inline: auto; }

.utility-bar { color: #e7ecea; background: var(--dark); font-size: .78rem; }
.utility-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.utility-links { display: flex; gap: 1.2rem; align-items: center; }
.utility-links a { text-decoration: underline; text-decoration-color: rgba(223, 241, 87, .6); text-underline-offset: 3px; }

.site-header { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; backdrop-filter: blur(16px); }
.nav-shell { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: 0 0 auto; font-weight: 800; letter-spacing: -.055em; font-size: 1.25rem; }
.brand > a { display: inline-flex; align-items: center; gap: .7rem; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--dark); border-radius: 50%; background: var(--lime); font-size: .85rem; letter-spacing: 0; }
.custom-logo-link img { max-height: 44px; width: auto; }
.primary-menu { display: flex; align-items: center; justify-content: flex-end; gap: 1.45rem; list-style: none; padding: 0; margin: 0; font-size: .92rem; font-weight: 700; }
.primary-menu a { transition: color .18s ease; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--accent); }
.menu-toggle { display: none; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: .5rem; padding: .5rem .65rem; cursor: pointer; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.12rem; font-weight: 800; font-size: .88rem; border: 1px solid transparent; border-radius: 100px; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--accent); }
.button-dark { color: var(--white); background: var(--dark); }
.button-outline { color: var(--white); background: transparent; border-color: rgba(255,255,255,.55); }
.arrow { font-size: 1.15em; line-height: 1; }

.hero { color: var(--white); background: var(--dark); overflow: hidden; }
.hero-grid { min-height: min(690px, calc(100vh - 120px)); display: grid; grid-template-columns: minmax(0, .98fr) minmax(320px, 1.02fr); align-items: stretch; }
.hero-copy { padding: clamp(5rem, 10vw, 9rem) clamp(1rem, 5vw, 5.2rem) clamp(4rem, 7vw, 6rem) 0; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 1.15rem; color: var(--lime); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { max-width: 690px; margin: 0; letter-spacing: -.065em; font-size: clamp(3rem, 6vw, 6.45rem); line-height: .92; }
.hero-text { max-width: 490px; margin: 1.75rem 0 2rem; color: #c1ccca; font-size: clamp(1rem, 1.35vw, 1.14rem); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-image { min-height: 400px; position: relative; isolation: isolate; }
.hero-image:before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--dark) 0%, transparent 25%), linear-gradient(0deg, rgba(16,25,31,.3), rgba(16,25,31,.04)); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-note { position: absolute; left: 9%; bottom: 8%; z-index: 2; max-width: 200px; padding: .85rem 1rem; color: var(--dark); background: var(--lime); font-weight: 800; font-size: .84rem; line-height: 1.25; }

.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.kicker { margin: 0 0 .75rem; color: var(--accent); font-weight: 800; letter-spacing: .09em; font-size: .75rem; text-transform: uppercase; }
h2 { max-width: 730px; margin: 0; letter-spacing: -.055em; font-size: clamp(2.25rem, 4.7vw, 4.55rem); line-height: .98; }
.text-link { flex: none; font-weight: 800; border-bottom: 1px solid currentColor; padding-bottom: .18rem; }
.text-link:hover { color: var(--accent); }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.category-card { min-height: 470px; display: flex; flex-direction: column; padding: 1.35rem; background: var(--white); overflow: hidden; position: relative; transition: background .2s ease; }
.category-card:hover { background: #fdfdf8; }
.category-number { margin: 0 0 auto; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: .75rem; }
.category-art { height: 172px; margin: 1rem -1.35rem 1.35rem; overflow: hidden; }
.category-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.category-card:hover .category-art img { transform: scale(1.05); }
.category-card h3 { margin: 0 0 .75rem; letter-spacing: -.04em; font-size: 1.42rem; line-height: 1; }
.category-card p { margin: 0 0 1.2rem; color: var(--muted); font-size: .87rem; }
.category-card .text-link { margin-top: auto; align-self: flex-start; font-size: .87rem; }

.capability { color: var(--white); background: var(--dark); }
.capability-grid { display: grid; grid-template-columns: 1fr 1.03fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; }
.capability-copy h2 { max-width: 560px; }
.capability-copy .kicker { color: var(--lime); }
.capability-copy > p { max-width: 540px; color: #b8c4c1; font-size: 1.08rem; }
.stat-list { margin: 2.1rem 0 0; padding: 0; border-top: 1px solid #435057; list-style: none; }
.stat-list li { display: grid; grid-template-columns: 74px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #435057; }
.stat-list strong { color: var(--lime); font-size: 1.65rem; letter-spacing: -.08em; line-height: 1; }
.stat-list span { color: #c2ccca; font-size: .86rem; }
.capability-image { min-height: 440px; position: relative; }
.capability-image img { width: 100%; height: 100%; object-fit: cover; }
.image-caption { position: absolute; right: 0; bottom: 0; padding: 1rem 1.15rem; max-width: 260px; color: var(--dark); background: var(--lime); font-size: .8rem; font-weight: 800; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.process-card { min-height: 315px; padding: 1.5rem; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); }
.process-card:nth-child(2) { background: var(--lime); }
.process-card:nth-child(3) { color: var(--white); background: var(--accent); }
.process-card__number { color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: .75rem; }
.process-card:nth-child(2) .process-card__number, .process-card:nth-child(3) .process-card__number { color: inherit; opacity: .7; }
.process-card h3 { margin: auto 0 .6rem; letter-spacing: -.045em; font-size: 1.7rem; line-height: 1; }
.process-card p { margin: 0; font-size: .9rem; opacity: .84; }

.projects { padding-bottom: 0; }
.project-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 410px; }
.project-image { min-height: 360px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 7vw, 6rem); background: var(--lime); }
.project-copy h2 { font-size: clamp(2.1rem, 4vw, 3.75rem); }
.project-copy p { max-width: 470px; }

.contact-band { color: var(--white); background: var(--accent); }
.contact-grid { display: flex; gap: 2rem; align-items: center; justify-content: space-between; }
.contact-grid h2 { max-width: 800px; }
.contact-grid .button { flex: none; color: var(--dark); background: var(--lime); }

.site-footer { color: #d6dfdd; background: var(--dark); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 3rem; padding: 4rem 0 3rem; }
.footer-title { margin: 0 0 1rem; color: var(--white); font-size: 1rem; }
.footer-copy { max-width: 390px; margin: 1rem 0; color: #aebdba; font-size: .9rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li + li { margin-top: .6rem; }
.footer-menu a:hover { color: var(--lime); }
.footer-meta { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid #3d4b51; color: #92a29f; font-size: .75rem; }

@media (max-width: 960px) {
  :root { --page: min(100% - 2.5rem, 1240px); }
  .nav-shell { min-height: 70px; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 0 1.25rem 1.25rem; background: var(--white); border-bottom: 1px solid var(--line); }
  .primary-navigation.is-open { display: block; }
  .primary-menu { display: block; }
  .primary-menu li { border-bottom: 1px solid var(--line); }
  .primary-menu a { display: block; padding: .85rem 0; }
  .hero-grid, .capability-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; }
  .hero-image { min-height: 390px; }
  .hero-image:before { background: linear-gradient(0deg, var(--dark) 0%, transparent 30%), linear-gradient(90deg, var(--dark) 0%, transparent 40%); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { min-height: 400px; }
}

@media (max-width: 640px) {
  :root { --page: min(100% - 2rem, 1240px); }
  .utility-inner { align-items: flex-start; padding: .65rem 0; flex-direction: column; gap: .25rem; }
  .utility-links { gap: .75rem; flex-wrap: wrap; }
  .site-header { position: relative; }
  .hero-grid { min-height: unset; }
  .hero-copy { padding-top: 4.5rem; padding-bottom: 3.5rem; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .hero-image { min-height: 300px; }
  .section-heading { display: block; }
  .section-heading .text-link { display: inline-block; margin-top: 1rem; }
  .category-grid, .process-grid, .project-wrap, .footer-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 350px; }
  .category-art { height: 155px; }
  .capability-image { min-height: 310px; }
  .contact-grid { align-items: flex-start; flex-direction: column; }
  .footer-grid { gap: 2rem; padding-top: 3rem; }
  .footer-meta { align-items: flex-start; flex-direction: column; }
}

/* Multi-page catalogue, resource and editorial templates. */
.screen-reader-text:focus { width: auto; height: auto; clip: auto; clip-path: none; top: .75rem; left: .75rem; z-index: 100; padding: .65rem .85rem; color: var(--white); background: var(--dark); }
.skip-link { position: fixed; }
.nav-actions { display: flex; align-items: center; gap: .75rem; order: 3; }
.primary-navigation { margin-left: auto; order: 2; }
.header-quote, .footer-cta { display: inline-flex; align-items: center; gap: .35rem; color: var(--dark); font-size: .84rem; font-weight: 800; white-space: nowrap; }
.header-quote { padding: .62rem .8rem; background: var(--lime); border-radius: 100px; }
.footer-cta { margin-top: .5rem; color: var(--lime); border-bottom: 1px solid currentColor; }

.archive-hero, .about-hero, .page-hero, .single-entry__header { color: var(--white); background: var(--dark); }
.archive-hero__inner { max-width: 870px; padding: clamp(5rem, 10vw, 8.5rem) 0 clamp(4.25rem, 7vw, 6.6rem); }
.archive-hero h1, .about-hero h1, .page-hero h1, .single-entry__header h1 { max-width: 980px; margin: 0; letter-spacing: -.065em; font-size: clamp(3rem, 6.8vw, 6.7rem); line-height: .91; }
.archive-hero__inner > p:last-child { max-width: 650px; margin: 1.5rem 0 0; color: #c1ccca; font-size: clamp(1rem, 1.55vw, 1.15rem); }
.archive-hero--paper { color: var(--ink); background: var(--lime); }
.archive-hero--paper .eyebrow { color: var(--accent); }
.archive-hero--paper .archive-hero__inner > p:last-child { color: #334036; }
.archive-section { min-height: 420px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.entry-card, .knowledge-card, .video-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.entry-card { display: flex; flex-direction: column; }
.entry-card__media { height: 242px; overflow: hidden; position: relative; background: #e6ebe8; }
.entry-card__media img, .knowledge-card__media img, .video-card__media > a > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.entry-card:hover .entry-card__media img, .knowledge-card:hover .knowledge-card__media img, .video-card:hover .video-card__media > a > img { transform: scale(1.045); }
.media-arrow { position: absolute; top: .8rem; right: .8rem; display: grid; width: 2.35rem; height: 2.35rem; place-items: center; color: var(--white); background: var(--dark); border-radius: 50%; font-weight: 800; }
.entry-card__body, .video-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.35rem; }
.entry-tag { margin: 0 0 .7rem; color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.entry-card h2, .knowledge-card h2, .video-card h2 { margin: 0; letter-spacing: -.045em; font-size: 1.55rem; line-height: 1.02; }
.entry-card h2 a:hover, .knowledge-card h2 a:hover, .video-card h2 a:hover { color: var(--accent); }
.entry-card__body > p:not(.entry-tag), .knowledge-card div > p:not(.entry-tag), .video-card__body > p:not(.entry-tag) { color: var(--muted); font-size: .9rem; }
.entry-card__body .text-link { margin-top: auto; font-size: .86rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 2rem; }
.filter-bar a { padding: .48rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 800; }
.filter-bar a:hover, .filter-bar .is-active { color: var(--white); background: var(--dark); border-color: var(--dark); }
.certificate-list { border-top: 1px solid var(--line); }
.certificate-card { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.certificate-card__number, .knowledge-card__number { color: var(--accent); font-family: ui-monospace, Consolas, monospace; font-size: .78rem; }
.certificate-card h2 { margin: 0; letter-spacing: -.045em; font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1; }
.certificate-card h2 a:hover { color: var(--accent); }
.certificate-card__copy > p:last-child { max-width: 700px; margin: .65rem 0 0; color: var(--muted); }

.knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.knowledge-card { min-height: 355px; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1rem; padding: 1.5rem; border: 0; }
.knowledge-card__media { display: block; height: 170px; margin: 0 0 1.25rem; overflow: hidden; }
.knowledge-card__media img { width: 100%; height: 100%; object-fit: cover; }
.knowledge-card .text-link { display: inline-block; margin-top: .8rem; font-size: .86rem; }
.video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-card__media { aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: var(--dark); }
.video-card__media > a { display: block; width: 100%; height: 100%; position: relative; }
.video-card__media iframe, .video-card__media .wp-video { width: 100%; height: 100%; border: 0; }
.play-button { position: absolute; top: 50%; left: 50%; display: grid; width: 4rem; height: 4rem; place-items: center; padding-left: .2rem; color: var(--dark); background: var(--lime); border-radius: 50%; transform: translate(-50%, -50%); }

.empty-state { max-width: 700px; padding: clamp(2rem, 5vw, 4rem); background: var(--white); border: 1px solid var(--line); }
.empty-state > span { color: var(--accent); font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
.empty-state h2 { margin-top: 1rem; font-size: clamp(1.85rem, 4vw, 3.2rem); }
.empty-state p { max-width: 510px; color: var(--muted); }
.navigation.pagination { display: flex; justify-content: center; margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.nav-links > * { display: inline-grid; min-width: 2.3rem; min-height: 2.3rem; place-items: center; padding: .3rem .55rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); font-size: .82rem; font-weight: 800; }
.nav-links .current, .nav-links a:hover { color: var(--white); background: var(--dark); border-color: var(--dark); }

.about-hero__grid { min-height: 575px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.about-hero__grid > div:first-child { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.about-hero__grid > div:first-child > p:last-child { max-width: 520px; margin: 1.5rem 0 0; color: #c1ccca; font-size: 1.05rem; }
.about-hero__media { height: 100%; min-height: 470px; }
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.about-story__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 9vw, 10rem); }
.about-story h2 { font-size: clamp(2.2rem, 4.4vw, 4.1rem); }
.about-capability { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.about-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #435057; }
.about-values article { min-height: 195px; padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid #435057; }
.about-values article + article { padding-left: 1.25rem; border-left: 1px solid #435057; }
.about-values span { color: var(--lime); font-family: ui-monospace, Consolas, monospace; font-size: .78rem; }
.about-values h3 { max-width: 250px; margin: 3.1rem 0 0; color: var(--white); letter-spacing: -.045em; font-size: 1.45rem; line-height: 1.05; }

.page-hero { min-height: 350px; display: flex; align-items: flex-end; padding: clamp(4.5rem, 8vw, 7rem) 0; }
.page-hero--image { background-image: linear-gradient(90deg, rgba(16,25,31,.88), rgba(16,25,31,.2)), var(--page-hero-image); background-position: center; background-size: cover; }
.single-entry__header { padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(3.5rem, 6vw, 5.5rem); }
.single-entry__date { margin: 1.25rem 0 0; color: #c1ccca; font-weight: 700; }
.single-entry__image { margin-top: clamp(-2rem, -4vw, -4.5rem); }
.single-entry__image img { width: 100%; max-height: 680px; object-fit: cover; }
.prose { color: var(--ink); font-size: 1.06rem; }
.prose--wide { max-width: 820px; }
.prose > * + * { margin-top: 1.3rem; }
.prose h2, .prose h3, .prose h4 { margin-top: 2.6rem; letter-spacing: -.045em; line-height: 1.04; }
.prose h2 { font-size: clamp(2rem, 3.6vw, 3.35rem); }
.prose h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.prose p, .prose li { color: #425057; }
.prose a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.prose img { width: auto; height: auto; }
.prose .wp-block-image img, .prose .wp-block-gallery img { width: 100%; }
.prose .wp-block-quote { margin: 2.2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--accent); background: var(--white); font-size: 1.3rem; }
.single-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 2rem; overflow: hidden; background: var(--dark); }
.single-video iframe, .single-video .wp-video { width: 100%; height: 100%; border: 0; }

@media (max-width: 1100px) {
  .primary-menu { gap: .9rem; font-size: .82rem; }
  .header-quote { display: none; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .primary-navigation { margin-left: 0; order: initial; }
  .nav-actions { order: initial; margin-left: auto; }
  .archive-hero__inner { padding-block: 4.5rem 4rem; }
  .about-hero__grid { grid-template-columns: 1fr; gap: 0; }
  .about-hero__grid > div:first-child { padding-bottom: 3rem; }
  .about-hero__media { min-height: 360px; }
}

@media (max-width: 640px) {
  .utility-links { font-size: .72rem; }
  .nav-shell { gap: 1rem; }
  .brand { font-size: 1.06rem; }
  .archive-hero h1, .about-hero h1, .page-hero h1, .single-entry__header h1 { font-size: clamp(2.65rem, 13vw, 4.1rem); }
  .archive-grid, .knowledge-grid, .video-grid { grid-template-columns: 1fr; }
  .entry-card__media { height: 230px; }
  .certificate-card { grid-template-columns: 1fr; gap: .7rem; padding-block: 1.5rem; }
  .certificate-card .text-link { justify-self: start; margin-top: .3rem; }
  .knowledge-card { min-height: 290px; }
  .about-story__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-values { grid-template-columns: 1fr; }
  .about-values article, .about-values article + article { min-height: 130px; padding: 1rem 0; border-left: 0; }
  .about-values h3 { margin-top: 1.4rem; }
  .page-hero { min-height: 280px; }
  .prose { font-size: 1rem; }
}
