/*
Theme Name: Nexora FoodTech Showcase
Theme URI: https://foodmachinery.xin/
Author: Nexora FoodTech
Description: A multilingual single-page business theme for an international food machinery company.
Version: 1.8.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nexora-foodtech
*/

:root {
  --navy: #071628;
  --amber: #f2a23a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--navy);
  color: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body[dir="rtl"] { font-family: Tahoma, Arial, sans-serif; }

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 10px;
  background: #fff;
  color: var(--navy);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 76px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 22, 40, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.site-nav { display: flex; gap: clamp(16px, 2vw, 32px); }
.site-nav a { color: #c8d4df; font-size: 13px; text-decoration: none; }
.site-nav a:hover { color: var(--amber); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid var(--amber);
  border-radius: 3px;
  color: var(--amber);
  font: 800 21px Georgia, serif;
  transform: skew(-8deg);
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: .16em;
}

.brand small {
  margin-top: 2px;
  color: #9eb0c3;
  font-size: 8px;
}

.language select {
  min-width: 126px;
  padding: 8px 32px 8px 11px;
  border: 1px solid #50657a;
  border-radius: 4px;
  background: #102a44;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.language select:hover,
.language select:focus {
  border-color: var(--amber);
  outline: 2px solid transparent;
}

.language option {
  background: #fff;
  color: #102033;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image { object-fit: cover; }

.hero-overlay {
  background: linear-gradient(90deg, rgba(4, 15, 28, .97), rgba(4, 15, 28, .78) 40%, rgba(4, 15, 28, .08) 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 88vw);
  margin: 76px 0 0 7vw;
}

body[dir="rtl"] .hero-content {
  margin-right: 7vw;
  margin-left: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: #f5b865;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
}

h1 {
  max-width: 700px;
  margin: 0 0 24px;
  font: 500 clamp(44px, 6vw, 84px)/1.02 Georgia, serif;
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: #d6e0e9;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
}

.button {
  display: inline-flex;
  padding: 14px 20px;
  border-radius: 3px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
}

.button-primary {
  background: var(--amber);
  color: #17202a;
}

.button-secondary { border: 1px solid rgba(255, 255, 255, .45); }

.button:hover { transform: translateY(-2px); }
.button-primary:hover { background: #ffc06d; }
.button-secondary:hover { background: #fff; color: var(--navy); }

.section { padding: 110px 7vw; background: #0a1c30; }
.section-light { background: #f3f1eb; color: #132235; }
.section-accent { background: #102a44; }
.section-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; max-width: 1280px; margin: auto; }
.section-heading { max-width: 1280px; margin: 0 auto 48px; }
.section-kicker { margin: 0 0 14px; color: #d98825; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h2 { margin: 0; font: 500 clamp(34px, 4.5vw, 64px)/1.12 Georgia, serif; }
.section-copy { color: #46576a; font-size: 18px; line-height: 1.9; }
.section-copy p:first-child { margin-top: 0; }
.about-highlight { margin-top: 28px; padding: 22px 24px; border-left: 5px solid var(--amber); background: #fff1dc; color: #203d59; font-weight: 700; box-shadow: 0 8px 22px rgba(24,48,70,.08); }
body[dir="rtl"] .about-highlight { border-right: 5px solid var(--amber); border-left: 0; }
.section-intro { max-width: 720px; color: #647184; line-height: 1.8; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1280px; margin: auto; }
.card { overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #0d2238; }
.card img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.card-body { min-height: 230px; padding: 28px; }
.card span { color: var(--amber); font: 700 13px Georgia, serif; }
.card h3, .advantage-grid h3, .case-list h3 { margin: 42px 0 12px; font-size: 20px; }
.card p, .advantage-grid p { margin: 0; color: #aebdca; line-height: 1.7; }
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1280px; margin: auto; border-top: 1px solid rgba(255,255,255,.18); }
.advantage-grid article { padding: 34px 28px; border-right: 1px solid rgba(255,255,255,.14); }
.advantage-grid article:last-child { border-right: 0; }
.advantage-grid strong { color: var(--amber); font: 500 36px Georgia, serif; }
.advantage-grid h3 { margin-top: 28px; }
.case-list { max-width: 1280px; margin: auto; }
.case-list article { display: grid; grid-template-columns: 180px 1fr; gap: 36px; padding: 34px 0; border-top: 1px solid #cfd3d5; }
.case-list article:last-child { border-bottom: 1px solid #cfd3d5; }
.case-tag { color: #b36a15; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.case-list h3 { margin: 0 0 10px; font-size: 25px; }
.case-list p { margin: 0; color: #59697a; line-height: 1.7; }
.contact-section { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 7vw; }
.contact-section p:not(.section-kicker) { max-width: 680px; color: #afbecb; line-height: 1.8; }
.warehouse-panel { max-width: 680px; margin-top: 26px; padding: 22px 24px; border: 1px solid rgba(242,162,58,.5); background: rgba(242,162,58,.09); }
.warehouse-panel strong { display: block; color: var(--amber); font-size: 16px; }
.warehouse-panel p { margin: 10px 0 0; color: #fff !important; }
.inquiry-form { padding: 30px; border: 1px solid rgba(255,255,255,.16); background: #0d2238; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inquiry-form label { display: block; margin-bottom: 14px; color: #c8d5df; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.inquiry-form input, .inquiry-form textarea { width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid #50657a; border-radius: 2px; background: #071628; color: #fff; font: inherit; }
.inquiry-form textarea { resize: vertical; }
.inquiry-form input:focus, .inquiry-form textarea:focus { border-color: var(--amber); outline: 2px solid transparent; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.inquiry-form button { border: 0; cursor: pointer; font: inherit; }
.inquiry-form .button-secondary { background: transparent; border: 1px solid rgba(255,255,255,.45); }
.form-note { margin: 14px 0 0 !important; color: #8296a8 !important; font-size: 11px; }
.site-footer { display: flex; justify-content: space-between; padding: 24px 7vw; background: #050f1c; color: #7f93a6; font-size: 12px; letter-spacing: .08em; }
.footer-languages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
.footer-languages a { color: #aebdca; text-decoration: none; }
.footer-languages a:hover { color: var(--amber); }
.chat-dock { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: grid; gap: 10px; }
.chat-link { display: flex; align-items: center; gap: 10px; min-width: 174px; padding: 10px 14px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .2s, box-shadow .2s; }
.chat-link:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.34); }
.chat-link svg, .zalo-icon { width: 28px; height: 28px; flex: 0 0 28px; }
.chat-link svg { fill: currentColor; }
.chat-whatsapp { background: #1fa855; }
.chat-zalo { background: #0877df; }
.zalo-icon { display: grid; place-items: center; border-radius: 50%; background: #fff; color: #0877df; font-size: 9px; font-weight: 900; letter-spacing: -.04em; }
body[dir="rtl"] .chat-dock { right: auto; left: 20px; }

a:focus-visible,
select:focus-visible {
  outline: 3px solid #ffd38e;
  outline-offset: 3px;
}

@media (max-width: 580px) {
  .site-header { padding: 0 16px; }
  .brand strong { font-size: 13px; }
  .language select { min-width: 104px; max-width: 112px; font-size: 12px; }
  .hero-content { margin-left: 6vw; }
  body[dir="rtl"] .hero-content { margin-right: 6vw; margin-left: 0; }
  h1 { font-size: 43px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 980px) {
  .site-nav { display: none; }
  .card-grid, .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .section-grid, .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .section { padding: 76px 22px; }
  .card-grid, .advantage-grid { grid-template-columns: 1fr; }
  .advantage-grid article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .case-list article { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { flex-direction: column; gap: 12px; }
  .footer-languages { justify-content: flex-start; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .about-highlight { padding: 18px; }
  .chat-dock { right: 14px; bottom: 14px; display: flex; }
  body[dir="rtl"] .chat-dock { right: auto; left: 14px; }
  .chat-link { min-width: 0; width: 48px; height: 48px; padding: 10px; justify-content: center; }
  .chat-link > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
