/* HONOR WORLD - shared styles (standalone site)
   Keep this file self-contained; no dependency on the reference folder.
*/

:root {
  --primary: #1a3a63;
  --secondary: #2b5d9c;
  --accent: #ff6b35;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --border: #e0e6ed;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius: 14px;

  --container: 1200px;
  --gutter: 20px;
  --nav-h: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 84px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--secondary);
  max-width: 860px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(43, 93, 156, 0.1);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #e05a2a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.28);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2rem;
  }
}

/* Top navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-weight: 600;
  color: var(--dark);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a[data-active="true"] {
  color: var(--accent);
}

.nav-links a[data-active="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.lang button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--secondary);
  padding: 6px 8px;
}

.lang button[aria-pressed="true"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  margin: 4px 0;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 14px var(--gutter);
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links[data-open="true"] {
    display: flex;
  }
}

/* Page header */
.page-header {
  padding-top: calc(var(--nav-h) + 70px);
  padding-bottom: 70px;
  color: #fff;
  text-align: center;
}

.page-header .kicker {
  display: inline-flex;
  margin-bottom: 14px;
}

.page-header h1 {
  font-size: 3rem;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.page-header p {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.2rem;
  opacity: 0.95;
}

@media (max-width: 720px) {
  .page-header h1 {
    font-size: 2.2rem;
  }
}

/* Footer */
.footer {
  background: #0f2542;
  color: rgba(255, 255, 255, 0.92);
  padding: 48px 0 20px;
}

.footer a {
  color: rgba(255, 255, 255, 0.92);
}

.footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer .title {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 10px;
}

.footer .muted {
  color: rgba(255, 255, 255, 0.75);
}

.footer ul {
  list-style: none;
}

.footer li {
  padding: 6px 0;
}

.footer .bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

@media (max-width: 920px) {
  .footer .cols {
    grid-template-columns: 1fr;
  }
}

/* Home hero */
.hero {
  min-height: 92vh;
  padding-top: var(--nav-h);
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(rgba(26, 58, 99, 0.82), rgba(26, 58, 99, 0.92)),
    url("https://images.unsplash.com/photo-1556155092-490a1ba16284?q=80&w=2200&auto=format&fit=crop") center/cover no-repeat;
}

.hero .badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero .inner {
  padding: 44px var(--gutter) 56px;
  max-width: 1100px;
  text-align: center;
}

.hero h1 {
  font-size: 3.6rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.4rem;
  max-width: 880px;
  margin: 0 auto 26px;
  opacity: 0.95;
}

.hero .cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero .highlights {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hero .highlight {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 18px 16px;
  backdrop-filter: blur(10px);
}

.hero .highlight strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.hero .highlight span {
  display: block;
  opacity: 0.9;
  font-size: 0.98rem;
}

@media (max-width: 920px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero .highlights {
    grid-template-columns: 1fr;
  }
}

/* Product cards */
.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card .media {
  height: 200px;
  overflow: hidden;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.product-card .media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-card .body {
  padding: 18px 18px 16px;
  background: var(--light);
  border-top: 1px solid var(--border);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-card .meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--gray);
  font-weight: 600;
  font-size: 0.95rem;
}

.product-card .meta .hs {
  color: var(--secondary);
  background: rgba(43, 93, 156, 0.1);
  padding: 4px 8px;
  border-radius: 999px;
}

.product-card .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

/* Filter bar */
.filterbar {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.filterbar .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.filterbar label {
  display: block;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.filterbar select,
.filterbar input {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
}

.filterbar .view {
  display: inline-flex;
  gap: 8px;
  align-items: end;
}

.filterbar .view button {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
  color: var(--primary);
}

.filterbar .view button[aria-pressed="true"] {
  border-color: rgba(255, 107, 53, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

@media (max-width: 920px) {
  .filterbar .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filterbar .view {
    justify-content: flex-end;
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .filterbar .row {
    grid-template-columns: 1fr;
  }
  .filterbar .view {
    justify-content: flex-start;
  }
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.table th,
.table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table th {
  background: rgba(26, 58, 99, 0.06);
  color: var(--primary);
  font-weight: 900;
}

.table tr:last-child td {
  border-bottom: none;
}

/* Form */
.form {
  padding: 18px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  font-weight: 800;
  color: var(--primary);
}

.required-mark {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--accent);
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.22);
  position: relative;
  top: -3px;
}

.field input,
.field select,
.field textarea {
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.note {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Inquiry form helpers */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 20px;
  font-size: 0.98rem;
  font-weight: 800;
}

.form-status[data-type="success"] {
  color: var(--secondary);
}

.form-status[data-type="error"] {
  color: var(--accent);
}

/* Product color showcase */
.color-board {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.color-swatch-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  box-shadow: none;
}

.color-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}

.color-name {
  font-weight: 900;
  color: var(--primary);
}

/* Contact map (static image + marker) */
.map-wrap {
  position: relative;
  width: 100%;
  height: 240px;
}

.map-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.map-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: var(--accent);
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -64%);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.map-pin:focus-visible::before {
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22), 0 0 0 4px rgba(255, 107, 53, 0.18);
}

.map-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  background: rgba(26, 58, 99, 0.95);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.map-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid rgba(26, 58, 99, 0.95);
}

.map-pin:hover .map-tooltip,
.map-pin:focus-visible .map-tooltip {
  opacity: 1;
}

/* Utility */
.spacer-8 { height: 8px; }
.spacer-16 { height: 16px; }
.spacer-24 { height: 24px; }

.page {
  padding-top: var(--nav-h);
}
