/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.site-logo { height: 42px; }
.site-logo img { height: 100%; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.main-nav a {
  position: relative;
  font-weight: 700;
  font-size: .98rem;
  color: var(--color-blue-dark);
  padding: .3rem 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  transition: width .25s var(--ease);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .92rem;
  color: var(--color-blue-dark);
}

.header-phone svg { width: 18px; height: 18px; color: var(--color-orange); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--color-blue);
  background: transparent;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  right: 10px;
  left: 10px;
  height: 2px;
  background: var(--color-blue-dark);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-blue-dark);
  color: var(--color-white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21,48,58,.93), rgba(21,48,58,.86)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 48px);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  min-height: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--color-orange);
  margin-bottom: 1.2rem;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--color-orange);
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.3rem;
}

.hero-title span { color: var(--color-orange); }

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.78);
  max-width: 480px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.6rem;
}

.hero-specs {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 1.6rem;
}

.hero-spec b {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--color-white);
}

.hero-spec span {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
  border: 1px solid rgba(255,255,255,.25);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual .tag-code {
  position: absolute;
  bottom: 18px;
  inset-inline-start: 18px;
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: .82rem;
  padding: .4rem .8rem;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

/* ===== Brand strip ===== */
.brand-strip {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  padding: 1.6rem 0;
}

.brand-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
}

.brand-strip-label {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--color-ink-soft);
}

.brand-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .05em;
  color: var(--color-blue-dark);
  opacity: .85;
}

.brand-logo {
  height: 36px;
  width: auto;
  max-width: 100%;
  transition: transform .2s ease;
}

.brand-logo--square { height: 60px; }

.brand-logo:hover { transform: scale(1.04); }

@media (max-width: 767px) {
  .brand-strip .container { gap: 1.25rem 1.75rem; }
  .brand-strip-label { width: 100%; text-align: center; }
}

.footer-note { width: 100%; font-size: .78rem; opacity: .85; }

/* ===== Category grid ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cat-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.cat-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.cat-card:hover .cat-card-img img { transform: scale(1.06); }

.cat-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.cat-card-num {
  font-family: var(--font-mono);
  color: var(--color-orange);
  font-size: .85rem;
  font-weight: 700;
}

.cat-card-title {
  font-size: 1.15rem;
}

.cat-card-desc {
  color: var(--color-ink-soft);
  font-size: .9rem;
  flex: 1;
}

.cat-card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .9rem;
  color: var(--color-blue-dark);
  margin-top: .4rem;
}

.cat-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform .2s var(--ease);
}

.cat-card:hover .cat-card-link svg { transform: translateX(calc(-4px * var(--dir-sign, 1))); }

/* ===== Steps ===== */
.steps {
  background: var(--color-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--color-line);
}

.step {
  padding: 2.2rem 1.8rem;
  position: relative;
  border-inline-start: 1px solid var(--color-line);
}
.step:first-child { border-inline-start: none; }

.step-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  color: var(--color-line);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: .6rem;
  color: var(--color-blue-dark);
}

.step-desc {
  color: var(--color-ink-soft);
  font-size: .92rem;
}

/* ===== Product picks ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-blue);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.product-brand-badge {
  align-self: flex-start;
  background: var(--color-blue-dark);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .25rem .55rem;
}

.product-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}

.product-code {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--color-orange);
  font-weight: 700;
}

.product-name {
  font-size: 1rem;
  color: var(--color-blue-dark);
}

.product-meta {
  font-size: .85rem;
  color: var(--color-ink-soft);
  flex: 1;
}

.product-cta {
  margin-top: .6rem;
  width: 100%;
  justify-content: center;
}

/* ===== Why us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.why-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 63, 34, .12);
  color: var(--color-orange);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

.why-icon svg { width: 26px; height: 26px; }

.why-title { font-size: 1.05rem; color: var(--color-blue-dark); }
.why-desc { color: var(--color-ink-soft); font-size: .9rem; }

.why-grid--single {
  grid-template-columns: 1fr;
  max-width: 420px;
}

/* ===== CTA band ===== */
.cta-band {
  position: relative;
  background: var(--color-blue-dark);
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(214,63,34,.08) 0 2px, transparent 2px 26px);
}

.cta-band .container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.cta-band h2 {
  color: var(--color-white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 700px;
}

.cta-band p {
  color: rgba(255,255,255,.72);
  max-width: 560px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Footer ===== */
.site-footer {
  background: #FFFFFF;
  color: #4A555A;
  border-top: 1px solid #E5E7EA;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #E5E7EA;
}

.footer-logo { display: block; height: 90px; margin-bottom: 1.2rem; }
.footer-logo img { height: 100%; width: auto; }

.footer-desc {
  color: #4A555A;
  font-size: .92rem;
  max-width: 280px;
  margin-bottom: 1rem;
}

.footer-heading {
  font-family: var(--font-mono);
  color: #D63F22;
  font-size: .85rem;
  margin-bottom: 1.1rem;
}

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

.footer-links a {
  font-size: .94rem;
  color: #254C5B;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: #D63F22; }

.footer-contact { display: flex; flex-direction: column; gap: .8rem; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: #4A555A;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-orange);
  flex-shrink: 0;
  margin-top: .15rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
  color: #5F6B70;
}

/* ===== Mobile sticky bar ===== */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 90;
  background: var(--color-white);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -6px 20px -8px rgba(21,48,58,.2);
}

.mobile-bar .container {
  display: flex;
  gap: .8rem;
  padding: .7rem clamp(1.25rem, 4vw, 2.5rem);
}

.mobile-bar .btn { flex: 1; padding: .8rem 1rem; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; aspect-ratio: 5/4; }
  .steps-grid { grid-template-columns: 1fr; }
  .step { border-inline-start: none !important; border-bottom: 1px solid var(--color-line); }
  .step:last-child { border-bottom: none; }
}

@media (max-width: 860px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .mobile-bar { display: block; }
  body { padding-bottom: 68px; }

  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 0;
    box-shadow: var(--shadow-soft);
  }
  .main-nav.is-open a {
    padding: .9rem clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--color-line);
  }
  .main-nav.is-open a::after { display: none; }
}

@media (max-width: 680px) {
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-logo { height: auto; max-width: 220px; }
  .footer-logo img { width: 100%; height: auto; }
  .footer-desc { margin-bottom: 1.5rem; }
  .footer-heading { margin-top: .5rem; }
  .site-footer { padding-bottom: calc(1.5rem + 80px); }
  .hero-specs { gap: 1.5rem; }
  .brand-strip .container { gap: 1.5rem 2.5rem; }
}

@media (max-width: 767px) {
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand .footer-logo { display: block; margin-inline: auto; }
  .footer-brand .footer-desc { margin-inline: auto; text-align: center; }
}

@media (max-width: 460px) {
  .product-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}

/* Social + contact page */
.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-links a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: var(--radius); }
.social-links a:hover { color: var(--color-orange); }
.social-links svg { width: 20px; height: 20px; }
a.footer-contact-item { color: inherit; text-decoration: none; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.contact-card { border: 1px solid var(--color-line); background: var(--color-white); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.contact-card h3 { color: var(--color-blue); }
.contact-card .social-links a { color: var(--color-blue); }
.contact-line { display: inline-flex; gap: .6rem; align-items: center; color: var(--color-ink); text-decoration: none; }
.contact-line svg { width: 18px; height: 18px; color: var(--color-orange); }
.contact-cta { margin-top: 2rem; text-align: center; }

/* ===== Language switch (AR | EN) ===== */
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-mono); font-size: .82rem; font-weight: 600; color: var(--color-ink-soft); direction: ltr; }
.lang-switch a { padding: .2rem .15rem; color: var(--color-blue-dark); }
.lang-switch a:hover { color: var(--color-orange); }
.lang-switch a.is-current { color: var(--color-orange); }
.main-nav .lang-switch a::after { display: none; }
.main-nav .lang-switch--nav { display: none; }
@media (max-width: 860px) {
  .header-actions .lang-switch { display: none; }
  .main-nav.is-open .lang-switch--nav { display: flex; padding: .9rem clamp(1.25rem, 4vw, 2.5rem); }
  .main-nav.is-open .lang-switch--nav a { padding: .2rem .35rem; border-bottom: none; }
}

/* ===== Code search (home) ===== */
.code-search__form { position: relative; max-width: 720px; }
.code-search__row { display: flex; gap: .6rem; flex-wrap: wrap; }
.code-search__input {
  flex: 1 1 260px; min-width: 0;
  font-family: var(--font-mono); font-size: 1.2rem; direction: ltr; text-align: start;
  padding: 1rem 1.2rem; border: 2px solid var(--color-line); border-radius: var(--radius);
  background: var(--color-white); color: var(--color-ink);
}
.code-search__input:focus { outline: none; border-color: var(--color-orange); }
.code-search__list {
  position: absolute; inset-inline: 0; top: 100%; margin: .35rem 0 0; padding: 0; list-style: none;
  background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); z-index: 20; max-height: 70vh; overflow-y: auto;
}
.code-search__list[hidden], .code-search__none[hidden] { display: none; }
.code-search__link {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem;
  padding: .75rem 1rem; direction: ltr; border-bottom: 1px solid var(--color-line);
}
.code-search__item:last-child .code-search__link { border-bottom: none; }
.code-search__item:hover .code-search__link, .code-search__item.is-active .code-search__link { background: var(--color-paper); }
.code-search__code { font-family: var(--font-mono); font-weight: 700; color: var(--color-orange); }
.code-search__name { color: var(--color-ink); }
.code-search__brand { font-family: var(--font-mono); font-size: .75rem; color: var(--color-ink-soft); margin-inline-start: auto; }
.code-search__none { margin-top: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.code-search__none p { font-weight: 700; color: var(--color-blue-dark); }

/* Contact map */
.map-embed { margin-top: 2rem; border: 1px solid var(--color-line); overflow: hidden; background: var(--color-white); }
.map-embed-frame { display: block; width: 100%; height: 360px; border: 0; }
.map-embed-frame[hidden] { display: none; }
.map-embed-fallback { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; text-align: center; }
.map-embed-fallback[hidden] { display: none; }
.map-actions { margin-top: 1rem; }
@media (max-width: 640px) {
  .map-embed-frame, .map-embed-fallback { height: 280px; min-height: 280px; }
}