:root {
  --bg: #f7f5f0;
  --bg-elevated: #ffffff;
  --ink: #1f2a22;
  --muted: #5c6b60;
  --line: #e3e0d6;
  --brand: #5f7f5a;
  --brand-dark: #4a6646;
  --brand-soft: #a3b89a;
  --navy: #1f2a22; /* warm moss ink (legacy token; not blue) */
  --trust: #3d4f3a;
  --trust-mid: #4f6550;
  --accent-soft: #eaf0e6;
  --hero-bg: linear-gradient(135deg, #5f7f5a 0%, #6f8f6a 55%, #8aa683 100%);
  --shadow: 0 12px 40px rgba(31, 42, 34, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.main {
  padding: 2rem 0 4rem;
}

.top-bar {
  background: var(--brand);
  color: #f4f7f2;
  font-size: 0.85rem;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
}

.top-bar a {
  color: #f4f7f2;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 76px;
  width: auto;
  max-width: min(340px, 62vw);
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-dark);
}

.site-nav .nav-cta {
  color: #fff !important;
  margin-left: 0.25rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--brand);
  color: #fff !important;
  border-color: var(--brand);
}

.btn.primary:hover {
  background: var(--brand-dark);
  color: #fff !important;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy) !important;
}

.btn.ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark) !important;
}

.btn.compact {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link.light {
  color: #f3e6c0;
}

.hero {
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
  background: var(--hero-bg);
  color: #eef3ea;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.75rem;
  align-items: center;
}

.hero .eyebrow {
  color: var(--brand-soft);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.15;
  margin: 0.35rem 0 1rem;
  color: #fff;
}

.hero .lead {
  font-size: 1.08rem;
  max-width: 38rem;
  color: #dce6d8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 1.5rem;
}

.center-actions {
  justify-content: center;
}

.hero .btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff !important;
}

.hero .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 5 / 4;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  max-width: 28rem;
}

.hero-stats li {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.25rem;
  color: #fff;
}

.hero-stats span {
  display: block;
  font-size: 0.78rem;
  color: #c8d4c4;
}

.section {
  margin: 3rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head.center {
  text-align: center;
}

.section-head.light .section-title,
.section-head.light p {
  color: #f4efe6;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.4rem;
  color: var(--navy);
}

.page-intro {
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 0.5rem;
}

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

.small {
  font-size: 0.875rem;
}

.center {
  text-align: center;
}

.prose h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.2rem 0 1rem;
  color: var(--navy);
}

.prose.wide {
  max-width: 48rem;
}

.prose.narrow {
  max-width: 40rem;
}

.factory-note {
  background: var(--accent-soft);
  border-left: 4px solid var(--brand);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* BTI-style category cards: title on photo */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 0.9rem 1rem;
  background: linear-gradient(transparent, rgba(20, 32, 24, 0.88));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

.spec-line {
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0.35rem 0 0.75rem;
}

.product-block {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-block.reverse {
  direction: rtl;
}

.product-block.reverse > * {
  direction: ltr;
}

.product-media img {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.85rem;
  margin: 0.2rem 0 0.35rem;
  color: var(--navy);
}

.product-copy ul {
  padding-left: 1.15rem;
  margin: 1rem 0 1.25rem;
}

.card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

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

.card h3 {
  margin-top: 0;
  color: var(--navy);
}

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

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.why-card ul {
  padding-left: 1.1rem;
}

.band,
.oem-band {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.trust-band {
  background: linear-gradient(160deg, var(--trust) 0%, var(--trust-mid) 100%);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  color: #f4efe6;
}

.trust-band .section-title {
  color: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.trust-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.1rem;
}

.trust-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.trust-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.trust-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.5rem 0 1.25rem;
}

.trust-certs span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f4efe6;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.factory-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.factory-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.home-inquiry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.home-inquiry-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.cta-band {
  text-align: center;
  background: var(--hero-bg);
  color: #eef3ea;
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
}

.cta-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: #dce6d8;
}

.cta-band .btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff !important;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-panel {
  margin-top: 2rem;
  max-width: 36rem;
}

.inquiry-form .field {
  margin-bottom: 1rem;
}

.inquiry-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: 2px solid rgba(95, 127, 90, 0.4);
  border-color: var(--brand);
}

.form-status {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--brand-dark);
}

.form-status.error,
.form-status.err {
  background: #fde8e4;
  color: #8a2a1a;
}

.form-status.ok {
  background: #e5f5ea;
  color: #1f6b3a;
}

.site-footer {
  background: var(--trust);
  color: #eef3ea;
  padding: 2.5rem 0 5.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #eef3ea;
}

.site-footer .muted {
  color: #b7c4b5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  height: 64px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 0.85rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.float-wa {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  background: #25d366;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(20, 90, 50, 0.35);
}

.float-wa:hover {
  background: #1ebe57;
  color: #fff !important;
}

@media (max-width: 920px) {
  .hero-split,
  .product-block,
  .product-block.reverse,
  .grid-2,
  .why-grid,
  .contact-cards,
  .footer-grid,
  .home-inquiry-grid,
  .trust-grid,
  .factory-strip {
    grid-template-columns: 1fr;
    direction: ltr;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.35rem;
  }

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

  .site-nav .nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .float-wa {
    left: 1rem;
    right: 1rem;
    text-align: center;
  }

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


/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.blog-card:hover {
  border-color: var(--brand-soft);
  transform: translateY(-2px);
  color: inherit;
}

.blog-card h2 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.25rem;
  color: var(--navy);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.blog-article {
  max-width: 720px;
}

.blog-article h1 {
  margin-top: 0.35rem;
}

.blog-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
  text-decoration: none;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
}

.faq-item h2,
.faq-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

/* Order process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.process-step {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  position: relative;
}

.process-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.process-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 1rem 0 0;
}

.about-toc a {
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 920px) {
  .blog-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }
  .logo-img {
    height: 56px;
  }
}


/* Batory-style home hero: photo + white card + trust pills */
.hero-banner {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  min-height: clamp(420px, 56vw, 560px);
  margin-bottom: 2.25rem;
  background:
    linear-gradient(90deg, rgba(247, 245, 240, 0.18) 0%, rgba(31, 42, 34, 0.12) 100%),
    var(--hero-image) center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.7fr);
  gap: 1.25rem;
  align-items: center;
  min-height: inherit;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.hero-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: 0 18px 50px rgba(31, 42, 34, 0.14);
  max-width: 34rem;
}

.hero-card h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  margin: 0.35rem 0 0.85rem;
  color: var(--ink);
}

.hero-card .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-card .hero-actions {
  margin: 1.25rem 0 0;
  align-items: center;
}

.hero-secondary {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
}

.hero-secondary:hover {
  text-decoration: underline;
}

.hero-pills {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-self: end;
  width: min(100%, 280px);
}

.hero-pill {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  box-shadow: 0 10px 28px rgba(31, 42, 34, 0.12);
  border-left: 4px solid var(--brand);
}

.hero-pill strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.hero-pill span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.home-simple {
  margin-top: 0.5rem;
}

.home-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
}

.home-chip:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

@media (max-width: 920px) {
  .hero-banner-inner {
    grid-template-columns: 1fr;
  }
  .hero-pills {
    width: 100%;
    justify-self: stretch;
  }
  .hero-pill {
    border-radius: var(--radius-sm);
  }
}
