/* ============================================================
   RUIXIANG GARMENT — Corporate Site Styles
   Palette: mint #CDF3EE · wave #59A8D4→#33A4B6 · ink #123E5C
            gold #C9A96E · body #334E60
   ============================================================ */

:root {
  --mint: #cdf3ee;
  --pale: #e9f8f5;
  --blue: #59a8d4;
  --teal: #33a4b6;
  --ink: #123e5c;
  --ink-deep: #0e324a;
  --gold: #c9a96e;
  --body: #334e60;
  --muted: #5f7686;
  --white: #ffffff;
  --line: rgba(18, 62, 92, 0.14);
  --shadow: 0 10px 30px rgba(18, 62, 92, 0.08);
  --shadow-hover: 0 18px 42px rgba(18, 62, 92, 0.14);
  --radius-card: 16px;
  --radius-img: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--body);
  background: var(--mint);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Language-specific visibility: zh-only elements hidden on EN site */
html[data-lang="en"] .lang-zh {
  display: none !important;
}

html[data-lang="zh"] .lang-en {
  display: none !important;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(18, 62, 92, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__seal {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 6px 16px rgba(9, 40, 60, 0.18);
  flex-shrink: 0;
}

.brand__seal img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__en {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  transition: color 0.35s var(--ease);
}

.brand__sub {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.35s var(--ease);
}

.site-header.is-scrolled .brand__en {
  color: var(--ink);
}

.site-header.is-scrolled .brand__sub {
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.site-header .nav-link:hover {
  color: #fff;
}

.site-header.is-scrolled .nav-link {
  color: var(--ink);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active {
  color: var(--teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.lang-switch__btn {
  padding: 3px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-switch__btn.is-on {
  background: #fff;
  color: var(--ink);
}

.lang-switch__sep {
  opacity: 0.6;
}

.site-header.is-scrolled .lang-switch {
  background: rgba(18, 62, 92, 0.05);
  border-color: var(--line);
  color: var(--ink);
}

.site-header.is-scrolled .lang-switch__btn {
  color: var(--muted);
}

.site-header.is-scrolled .lang-switch__btn.is-on {
  background: var(--ink);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease),
    background 0.35s var(--ease);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--ink);
}

.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);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 30px rgba(18, 62, 92, 0.1);
  padding: 14px 24px 26px;
  transform-origin: top;
  animation: menuDrop 0.3s var(--ease);
}

.mobile-menu[hidden] {
  display: none !important;
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu__link {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid rgba(18, 62, 92, 0.07);
}

.mobile-menu__link:last-child {
  border-bottom: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  background: var(--mint);
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.wave-line {
  animation: waveDrift 14s ease-in-out infinite alternate;
}

.wave-line--thin {
  animation-duration: 20s;
}

@keyframes waveDrift {
  from {
    transform: translateX(-24px);
  }
  to {
    transform: translateX(24px);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  width: 100%;
  padding-top: calc(var(--header-h) + 86px);
  padding-bottom: 90px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.hero-title__en {
  font-size: clamp(38px, 6.2vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero-title__zh {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  order: -1;
}

.hero-sub {
  max-width: 620px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 30px;
}

.hero-values {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 40px;
}

.hero-values li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.hero-values strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.hero-values span {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.hero-values__dot {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}

.btn--primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(9, 40, 60, 0.2);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(9, 40, 60, 0.26);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.btn--block {
  width: 100%;
}

/* Solid variant used inside light sections (forms etc.) */
.inquiry-form .btn--primary,
.section .btn--solid {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px rgba(18, 62, 92, 0.22);
}

.inquiry-form .btn--primary:hover {
  background: var(--teal);
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section {
  padding: 104px 0;
}

.section--mint {
  background: var(--mint);
}

.section--white {
  background: #fff;
}

.section--pale {
  background: var(--pale);
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(89, 168, 212, 0.95), rgba(51, 164, 182, 0.95));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(51, 164, 182, 0.22);
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.section-title__en {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.section-title__zh {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  color: var(--ink);
  opacity: 0.82;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.section-rule {
  display: block;
  width: 52px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 3px;
  background: var(--gold);
}

/* ============================================================
   ABOUT — stats
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 64px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 34px 20px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.stat-card__num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-card__num small {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
  margin-left: 2px;
}

.stat-card__label {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.stat-card__zh {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

/* About content */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-text__h {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--body);
  margin-bottom: 16px;
}

.about-points {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.about-points li {
  position: relative;
  padding-left: 26px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  aspect-ratio: 640 / 315;
  object-fit: cover;
  border-radius: var(--radius-img);
  box-shadow: var(--shadow);
}

.about-media figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.about-media figcaption .lang-zh {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

/* ============================================================
   FACTORY — gallery
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.gallery-card__imgwrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 640 / 315;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.gallery-card__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 26px 18px 14px;
  background: linear-gradient(to top, rgba(14, 50, 74, 0.82), rgba(14, 50, 74, 0));
  color: #fff;
}

.gallery-card__label strong {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.gallery-card__label span {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-category {
  margin-bottom: 76px;
}

.product-category:last-child {
  margin-bottom: 0;
}

.category-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.category-head__bar {
  width: 6px;
  height: 30px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--teal));
}

.category-head__title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.category-head__zh {
  font-size: 17px;
  font-weight: 700;
  color: var(--muted);
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.category-head__rule {
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}

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

.product-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

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

.product-card__imgwrap {
  border-radius: var(--radius-img);
  overflow: hidden;
  background: #fff;
}

.product-card img {
  width: 100%;
  aspect-ratio: 790 / 501;
  object-fit: contain;
  transition: transform 0.55s var(--ease);
}

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

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 40px 38px;
  box-shadow: var(--shadow);
}

.contact-info__h {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.contact-info__zh {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 2px;
  margin-bottom: 26px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.contact-list {
  display: grid;
  gap: 20px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: baseline;
}

/* Multi-value stacked row (label on top, phone list below) */
.contact-list__item--stacked {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-phones a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  width: fit-content;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-phones a:hover {
  color: var(--teal);
  transform: translateX(3px);
}

.contact-phone-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--teal);
}

.contact-email a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  width: fit-content;
  max-width: 100%;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-email a:hover {
  color: var(--teal);
  transform: translateX(3px);
}

.contact-mail-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--teal);
}

/* Address row with pin icon */
.contact-address {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.65;
}

.contact-pin-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--teal);
}

/* View on Google Maps button */
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  align-self: flex-start;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--blue), var(--teal));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px rgba(51, 164, 182, 0.28);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.map-btn__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.map-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(120deg, #d8b87e, var(--gold));
  box-shadow: 0 15px 30px rgba(201, 169, 110, 0.38);
}

/* Embedded map */
.contact-map {
  margin-top: 32px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  line-height: 0;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

.contact-list__k {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.contact-list__v {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.contact-list__v a:hover {
  color: var(--teal);
}

.contact-note {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.inquiry-form {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 40px 38px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(18, 62, 92, 0.16);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9bb0bd;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(51, 164, 182, 0.14);
}

.field-error {
  display: none;
  font-size: 13px;
  font-weight: 600;
  color: #c0453f;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #c0453f;
}

.field.is-invalid .field-error {
  display: block;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(51, 164, 182, 0.12);
  border: 1px solid rgba(51, 164, 182, 0.4);
  color: var(--ink-deep);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
}

.form-success[hidden] {
  display: none !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-deep) 100%);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.brand__seal--footer {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  margin-bottom: 18px;
}

.footer-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 12px;
}

.footer-intro {
  font-size: 14px;
  line-height: 1.8;
  max-width: 380px;
}

.footer-nav h4,
.footer-contact h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-nav {
  display: grid;
  gap: 11px;
  align-content: start;
}

.footer-nav a {
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-contact {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 14.5px;
}

.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-phones a {
  font-size: 14.5px;
  transition: color 0.25s var(--ease);
}

.footer-phones a:hover {
  color: var(--gold);
}

.footer-contact a {
  transition: color 0.25s var(--ease);
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  padding-bottom: 22px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  letter-spacing: 0.03em;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(9, 33, 48, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: lbFade 0.3s var(--ease);
}

/* The hidden attribute must win over display:flex so the overlay is truly removed */
.lightbox[hidden] {
  display: none !important;
}

@keyframes lbFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox__figure {
  max-width: min(1040px, 92vw);
  margin: 0;
  animation: lbZoom 0.35s var(--ease);
}

@keyframes lbZoom {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox__figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox__figure figcaption {
  margin-top: 16px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wave-line {
    animation: none;
  }
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (max-width: 1023px) {
  .section {
    padding: 80px 0;
  }

  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-media {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — mobile
   ============================================================ */
@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .brand__text {
    display: none;
  }

  .hero-inner {
    padding-top: calc(var(--header-h) + 44px);
    padding-bottom: 56px;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
  }

  .hero-title {
    margin-bottom: 14px;
  }

  .hero-sub {
    margin-bottom: 22px;
  }

  .hero-values {
    gap: 8px 12px;
    margin-bottom: 28px;
  }

  .hero-values strong {
    font-size: 15px;
  }

  .hero-values span {
    font-size: 13px;
  }

  .btn {
    padding: 13px 26px;
    font-size: 14.5px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 44px;
  }

  .stat-card {
    padding: 26px 12px 22px;
  }

  .stat-card__num {
    font-size: 32px;
  }

  .stat-card__num small {
    font-size: 14px;
  }

  .stat-card__label {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  .product-card {
    padding: 8px;
    border-radius: 14px;
  }

  .product-category {
    margin-bottom: 52px;
  }

  .contact-info,
  .inquiry-form {
    padding: 28px 22px;
  }

  .contact-list li {
    grid-template-columns: 78px 1fr;
  }

  .contact-map {
    margin-top: 24px;
    border-radius: 14px;
  }

  .contact-map iframe {
    height: 320px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 36px;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox__close {
    top: 14px;
    right: 14px;
  }
}
