/*
Theme Name: YES Accessory B2B
Theme URI: https://www.yesaccessory.com/
Author: YES ACCESSORY
Description: Modern B2B WordPress homepage theme for YES ACCESSORY phone cases, screen protectors, OEM/ODM and wholesale mobile accessories.
Version: 1.1.0
Text Domain: yes-accessory-b2b
*/

:root {
  --accent: #1268ff;
  --accent-dark: #0b46c4;
  --orange: #ff7a1a;
  --ink: #101114;
  --text: #25282d;
  --muted: #686f7a;
  --line: #e6e8ec;
  --soft: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(16, 17, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: MiSans, "MiSans VF", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

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

.container,
.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.top-bar {
  color: #ffffff;
  background: #101114;
}

.top-bar p {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}

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

.nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  color: #17191d;
  font-size: 13px;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  padding: 28px 0;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
  content: "";
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.button,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.button-primary,
.nav-cta {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(18, 104, 255, 0.18);
}

.button-primary:hover,
.nav-cta:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: #b9c0ca;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-section {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 52px;
  align-items: center;
  min-height: 620px;
  padding: 62px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--ink);
}

.hero-copy h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(42px, 5.5vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin: 22px 0 30px;
  color: #383d45;
  font-size: 18px;
  font-weight: 650;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  position: absolute;
  inset: 12% -8% auto auto;
  width: 220px;
  height: 220px;
  border: 26px solid rgba(18, 104, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.hero-media img {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: 72px 0;
  scroll-margin-top: 112px;
}

.section-soft {
  width: 100%;
  padding-right: max(20px, calc((100vw - 1180px) / 2));
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2,
.arrival-copy h2,
.cta-copy h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.arrival-copy p,
.cta-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.split-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link,
.category-card a,
.blog-card a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.text-link::after,
.category-card a::after,
.blog-card a::after {
  content: " ->";
}

.category-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card,
.product-card,
.feature-block,
.blog-card,
.inquiry-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.category-card {
  overflow: hidden;
}

.category-card img {
  width: 100%;
  aspect-ratio: 1.08 / 1;
  object-fit: contain;
  padding: 24px;
  background: #f6f8fb;
}

.card-body {
  padding: 20px;
}

.category-card h3,
.product-card h3,
.feature-block h3,
.advantage-grid h3,
.blog-card h3 {
  margin: 0 0 9px;
  font-size: 16px;
  line-height: 1.25;
}

.category-card p,
.product-card p,
.feature-block p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  padding: 18px;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: contain;
  padding: 18px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.quote-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: #ffffff;
  background: #101114;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 950;
}

.quote-link:hover {
  background: var(--accent);
}

.new-arrivals {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 36px;
  align-items: center;
}

.arrival-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.arrival-panel span {
  min-height: 84px;
  padding: 18px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  font-weight: 950;
}

.feature-block {
  min-height: 200px;
  padding: 24px;
}

.feature-block span,
.advantage-grid span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: var(--accent);
  background: rgba(18, 104, 255, 0.09);
  border: 1px solid rgba(18, 104, 255, 0.16);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 950;
}

.center-action {
  margin-top: 30px;
  text-align: center;
}

.why-section {
  padding: 74px 0;
  color: #ffffff;
  background: #101114;
  scroll-margin-top: 112px;
}

.why-section .section-heading h2,
.why-section .advantage-grid h3 {
  color: #ffffff;
}

.why-section .eyebrow {
  color: #7db0ff;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.advantage-grid article {
  min-height: 178px;
  padding: 26px 20px;
  background: #15171c;
}

.advantage-grid span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.advantage-grid h3 {
  margin: 0;
  font-size: 16px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  overflow: hidden;
}

.blog-card img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  background: #f3f5f8;
}

.blog-card div {
  padding: 20px;
}

.blog-card h3 {
  min-height: 64px;
}

.final-cta {
  padding: 74px 0;
  background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
  scroll-margin-top: 112px;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.82fr);
  gap: 44px;
  align-items: start;
}

.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.inquiry-form label {
  display: grid;
  gap: 7px;
  color: #30343a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.inquiry-form .full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #c9ced7;
  border-radius: 5px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(18, 104, 255, 0.16);
  border-color: var(--accent);
}

.form-note {
  grid-column: 1 / -1;
  min-height: 20px;
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.footer {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 34px;
  padding: 40px max(20px, calc((100vw - 1180px) / 2));
  color: #d8dde5;
  background: #101114;
}

.footer img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer p,
.footer span {
  margin: 12px 0 0;
  color: #aeb5c0;
  font-size: 13px;
}

.footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 13px;
  text-transform: uppercase;
}

.footer a,
.footer span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.footer a:hover {
  color: #ffffff;
}

@media (max-width: 1040px) {
  .nav {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 13px 18px;
  }

  .nav-links a::after {
    display: none;
  }

  .hero-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .category-grid,
  .feature-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .advantage-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 720px) {
  .container,
  .section {
    width: min(100% - 28px, 1180px);
  }

  .top-bar p {
    width: min(100% - 28px, 1180px);
    font-size: 11px;
  }

  .nav {
    width: min(100% - 28px, 1180px);
    min-height: 68px;
    gap: 12px;
  }

  .brand span {
    font-size: 13px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .hero-grid {
    gap: 30px;
    padding: 42px 0;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section,
  .section-soft,
  .why-section,
  .final-cta {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .split-heading,
  .new-arrivals {
    display: grid;
    grid-template-columns: 1fr;
  }

  .category-grid,
  .product-grid,
  .feature-grid,
  .blog-grid,
  .arrival-panel,
  .advantage-grid,
  .footer,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .inquiry-form .full {
    grid-column: auto;
  }

  .blog-card h3 {
    min-height: auto;
  }
}
