/*
Theme Name: XHC Signage
Theme URI: https://www.xhcsignage.com/
Author: XHC Signage
Author URI: https://www.xhcsignage.com/
Description: English B2B inquiry theme for custom banners, flags, large format printing, and outdoor advertising production.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: xhc-signage
*/

:root {
  --ink: #141414;
  --muted: #5b616b;
  --line: #e3e6ea;
  --soft: #f6f7f8;
  --paper: #ffffff;
  --accent: #e54532;
  --accent-2: #00a6b4;
  --accent-3: #f4b43f;
  --dark: #202326;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 12px;
}

.site-container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
  color: var(--ink);
}

.brand-logo-image {
  display: block;
  width: min(210px, 54vw);
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--paper);
  font-weight: 800;
}

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

.brand-tagline {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 18px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 700;
}

.site-nav .header-cta {
  min-height: 46px;
  padding-inline: 20px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 8px 18px rgba(229, 69, 50, 0.28);
}

.site-nav .header-cta:hover,
.site-nav .header-cta:focus {
  border-color: #c83122;
  background: #c83122;
  color: var(--paper);
  box-shadow: 0 10px 22px rgba(200, 49, 34, 0.34);
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--muted);
}

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--paper);
  background-color: #2a2d31;
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.77), rgba(0, 0, 0, 0.34) 52%, rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 84px 0 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 14px;
  padding: 3px 10px;
  border-left: 4px solid var(--accent-3);
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(680px, 100%);
  gap: 12px;
  margin-top: 42px;
}

.stat {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.section {
  padding: 76px 0;
}

.section.compact {
  padding: 54px 0;
}

.section.soft {
  background: var(--soft);
}

.section.dark {
  background: var(--dark);
  color: var(--paper);
}

.section.dark .section-lead,
.section.dark .muted {
  color: rgba(255, 255, 255, 0.74);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}

.section-header h2,
.content h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-lead,
.content .lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.product-grid,
.capability-grid,
.step-grid,
.spec-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.capability-card,
.step-card,
.spec-card,
.contact-card,
.notice,
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
}

.product-card .kicker,
.spec-card .kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card h3,
.capability-card h3,
.step-card h3,
.spec-card h3,
.contact-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.product-card p,
.capability-card p,
.step-card p,
.spec-card p,
.contact-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.product-card .text-link {
  margin-top: auto;
  padding-top: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-weight: 800;
}

.text-link::after {
  content: ">";
  font-size: 15px;
}

.capability-card,
.step-card,
.spec-card,
.contact-card {
  padding: 22px;
}

.step-card {
  position: relative;
  padding-top: 54px;
}

.step-number {
  position: absolute;
  left: 22px;
  top: 18px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.65fr);
  gap: 36px;
  align-items: start;
}

.check-list,
.plain-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

.cta-band {
  padding: 42px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.cta-band h2,
.cta-band p {
  margin: 0;
}

.cta-band p {
  max-width: 720px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  padding: 78px 0 52px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumb-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb-line a {
  color: var(--accent);
}

.spec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.45fr);
  gap: 28px;
}

.sidebar-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.sidebar-panel h3 {
  margin: 0;
}

.sidebar-panel p {
  color: var(--muted);
}

.form-card {
  padding: 28px;
  box-shadow: var(--shadow);
}

.rfq-status {
  margin-bottom: 20px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-weight: 800;
}

.rfq-status.success {
  background: #e8f6ef;
  color: #0d6b3c;
}

.rfq-status.error {
  background: #fff0ed;
  color: #a22a1d;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd5dc;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0, 166, 180, 0.18);
  border-color: var(--accent-2);
}

.form-help {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  background: #111213;
  color: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) repeat(3, minmax(160px, 0.4fr));
  gap: 30px;
  padding: 58px 0;
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 14px;
}

.footer-logo {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
}

.footer-logo-image {
  display: block;
  width: min(170px, 62vw);
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

.footer-inner p,
.footer-inner li,
.footer-inner a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.content {
  max-width: 850px;
}

.notice {
  padding: 18px;
  background: #fffaf0;
}

.muted {
  color: var(--muted);
}

@media (max-width: 980px) {
  .header-inner,
  .site-nav,
  .site-nav ul {
    align-items: flex-start;
  }

  .header-inner {
    flex-direction: column;
    min-height: auto;
    padding: 16px 0;
    gap: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding: 70px 0 76px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 48px;
    line-height: 1.03;
  }

  .section-header h2,
  .content h2 {
    font-size: 34px;
  }

  .section-header,
  .split,
  .product-detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .capability-grid,
  .step-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-container,
  .hero-content {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
  }

  .header-inner {
    gap: 10px;
    padding: 10px 0 12px;
  }

  .brand {
    justify-content: center;
    width: 100%;
    min-width: 0;
  }

  .brand-logo-image {
    width: min(166px, 58vw);
    max-height: 40px;
  }

  .site-nav,
  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .site-nav li {
    min-width: 0;
  }

  .site-nav a {
    justify-content: center;
    min-height: 36px;
    padding: 6px 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    font-size: 12.5px;
    line-height: 1.2;
    text-align: center;
  }

  .site-nav a:hover,
  .site-nav a:focus {
    border-color: rgba(229, 69, 50, 0.34);
    background: #fff7f5;
    color: #c83122;
  }

  .site-nav .button,
  .hero-actions .button,
  .section-actions .button {
    width: 100%;
  }

  .site-nav .header-cta {
    min-height: 42px;
    background: var(--accent);
    color: var(--paper);
  }

  .site-nav .header-cta:hover,
  .site-nav .header-cta:focus {
    background: #c83122;
    color: var(--paper);
  }

  .button,
  .wp-block-button__link {
    min-height: 46px;
    padding: 12px 14px;
  }

  .hero {
    min-height: auto;
    background-position: center top;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.58) 66%, rgba(0, 0, 0, 0.42));
  }

  .hero-content {
    padding: 46px 0 38px;
  }

  .eyebrow {
    min-height: 24px;
    margin-bottom: 10px;
    padding: 2px 8px;
    font-size: 11px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 32px;
    line-height: 1.06;
  }

  .section-header h2,
  .content h2 {
    font-size: 26px;
    line-height: 1.12;
  }

  .hero p,
  .page-hero p,
  .section-lead,
  .content .lead {
    font-size: 16px;
  }

  .hero p,
  .page-hero p {
    margin-top: 14px;
  }

  .hero-actions,
  .section-actions {
    margin-top: 22px;
  }

  .hero-stats,
  .product-grid,
  .capability-grid,
  .step-grid,
  .spec-grid,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-stats {
    margin-top: 24px;
  }

  .stat {
    padding: 13px 14px;
  }

  .stat strong {
    font-size: 20px;
  }

  .section {
    padding: 44px 0;
  }

  .section.compact {
    padding: 38px 0;
  }

  .section-header {
    gap: 18px;
    margin-bottom: 24px;
  }

  .split,
  .product-detail-grid {
    gap: 24px;
  }

  .product-card,
  .capability-card,
  .step-card,
  .spec-card,
  .contact-card,
  .notice,
  .form-card,
  .sidebar-panel {
    padding: 18px;
  }

  .product-card h3,
  .capability-card h3,
  .step-card h3,
  .spec-card h3,
  .contact-card h3 {
    font-size: 19px;
  }

  .product-card p,
  .capability-card p,
  .step-card p,
  .spec-card p,
  .contact-card p {
    margin-top: 8px;
  }

  .product-card .text-link {
    padding-top: 14px;
  }

  .step-card {
    padding-top: 50px;
  }

  .step-number {
    top: 16px;
    left: 18px;
  }

  .page-hero {
    padding: 42px 0 32px;
  }

  .breadcrumb-line {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .cta-band {
    padding: 24px 18px;
  }

  .form-card {
    box-shadow: none;
  }

  .form-grid {
    gap: 13px;
  }

  .field {
    gap: 6px;
  }

  input,
  select,
  textarea {
    min-height: 48px;
    padding: 11px 12px;
  }

  textarea {
    min-height: 112px;
  }

  .rfq-status {
    margin-bottom: 16px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .footer-inner {
    gap: 20px;
    padding: 40px 0;
  }

  .footer-bottom {
    padding: 16px 0;
  }
}
