/* ============ Video Section ============ */
.video-section { position: relative; }
.video-container {
  position: relative; width: 100%; max-width: 960px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #000;
}
.video-container video {
  width: 100%; display: block; aspect-ratio: 16/9;
}
.video-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.3s;
}
.video-overlay.hidden { display: none; }
.video-overlay:hover { background: rgba(0,0,0,0.8); }
.video-play-btn {
  width: 80px; height: 80px; border-radius: 50%; background: var(--red);
  border: 4px solid #fff; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fff; transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 24px rgba(224, 27, 27, 0.5);
}
.video-overlay:hover .video-play-btn { transform: scale(1.1); box-shadow: 0 12px 32px rgba(224, 27, 27, 0.7); }
.video-play-btn::after { content: '▶'; margin-left: 4px; }
.video-info { color: #fff; text-align: center; margin-top: 20px; }
.video-info h3 { font-size: 1.3rem; margin-bottom: 8px; }
.video-info p { font-size: 0.85rem; color: #cbd0d6; }
.video-warning {
  background: rgba(255, 243, 205, 0.15); color: #ffc107; padding: 8px 16px;
  border-radius: 20px; font-size: 0.75rem; margin-top: 12px; font-weight: 600;
}

@media (max-width: 640px) {
  .video-play-btn { width: 64px; height: 64px; font-size: 1.6rem; }
  .video-info h3 { font-size: 1.1rem; }
}

/* ============ Base ============ */
:root {
  --red: #e01b1b;
  --red-dark: #b81212;
  --radius: 14px;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --card: #ffffff;
  --text: #1c1f24;
  --muted: #6b7280;
  --border: #e5e7eb;
  --header-bg: rgba(255, 255, 255, 0.92);
  --dark-block: #1c1f24;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  --gray: #6b7280;
  --light: #f6f7f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.section { padding: clamp(44px, 7vw, 72px) 0; }
.section-alt { background: var(--light); }

.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800; letter-spacing: -0.5px; }
.section-head p { color: var(--gray); margin-top: 8px; }
.accent { color: var(--red); }

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

/* ============ Topbar ============ */
.topbar { background: var(--dark-block); color: #cbd0d6; font-size: 0.75rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-links a { color: #cbd0d6; text-decoration: none; margin-left: 16px; letter-spacing: 0.5px; padding: 8px 4px; }
.topbar-links a:hover { color: #fff; }
.topbar-cta { background: var(--red); color: #fff !important; padding: 8px 14px !important; border-radius: 999px; }

/* ============ Language Switcher ============ */
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.topbar-actions .topbar-links a:first-child { margin-left: 0; }
.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15); color: #cbd0d6; cursor: pointer;
  padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-family: inherit;
  -webkit-tap-highlight-color: transparent; transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.14); }
.lang-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex-shrink: 0; display: block; }
.lang-code { font-weight: 700; letter-spacing: 0.5px; }
.lang-arrow { font-size: 0.55rem; opacity: 0.6; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); padding: 6px; min-width: 160px;
  display: none; flex-direction: column; gap: 2px;
}
.lang-dropdown.show { display: flex; }
.lang-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 7px;
  color: var(--text); text-decoration: none; font-size: 0.84rem; font-weight: 500;
  margin: 0; transition: background 0.15s;
}
.lang-dropdown a:hover { background: var(--bg-alt); }
.lang-dropdown a .lang-flag { width: 24px; height: 16px; }

/* Hide Google Translate default UI */
.goog-te-banner-frame { display: none !important; }
.goog-te-gadget { font-size: 0 !important; }
.goog-logo-link, .goog-te-gadget span { display: none !important; }
body { top: 0 !important; }
.goog-tooltip { display: none !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
.skiptranslate { display: none !important; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s, background 0.3s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-logo { height: 46px; width: auto; border-radius: 6px; }

.nav { display: flex; gap: 26px; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 6px 2px; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--red); transition: width 0.25s;
}
.nav a:hover::after { width: 100%; }
.nav-highlight { color: var(--red) !important; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.hamburger { 
  display: none; background: none; border: 0; cursor: pointer; 
  padding: 12px; -webkit-tap-highlight-color: transparent; min-width: 44px; min-height: 44px;
}
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  aspect-ratio: 1024 / 250; min-height: 220px; max-height: 480px; width: 100%;
  background: #1c1f24;
}
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease; transform: scale(1.04); will-change: opacity, transform;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); transition: opacity 1.2s ease, transform 7s linear; }

.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: 0.95rem; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; min-height: 44px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(224, 27, 27, 0.35); }
.btn-primary:hover { background: var(--red-dark); }
.btn-primary:active { background: var(--red-dark); box-shadow: 0 4px 12px rgba(224, 27, 27, 0.25); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.45); transition: background 0.25s, transform 0.25s;
  padding: 10px; -webkit-tap-highlight-color: transparent;
}
.hero-dots button.is-active { background: var(--red); transform: scale(1.3); }

/* ============ Cards ============ */
.section-cards { padding-top: 56px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s, background 0.3s; will-change: transform;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
@media (hover: none) { .card:hover { transform: none; } }
.card-img { height: 150px; width: 100%; object-fit: cover; }
.card-img-contain { object-fit: contain; background: #fff; padding: 8px; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.02rem; margin-bottom: 8px; }
.card-body p { color: var(--gray); font-size: 0.86rem; }
.card-link { display: inline-block; margin-top: 12px; color: var(--red); font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.card-notice .notice-list { list-style: none; }
.card-notice .notice-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 0.82rem; }
.card-notice .notice-list a { color: var(--text); text-decoration: none; }
.card-notice .notice-list a:hover { color: var(--red); }
.card-notice .notice-list span { color: var(--gray); white-space: nowrap; }
.card-notice .mt { margin-top: 18px; }
.card-notice .phone { color: var(--red); font-weight: 800; font-size: 1.25rem; margin-top: 4px; }
.card-notice .muted { color: var(--gray); font-size: 0.82rem; }

/* ============ Products ============ */
.product {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: transform 0.25s, box-shadow 0.25s, background 0.3s;
  display: block; text-decoration: none; color: inherit; will-change: transform;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product img { height: 210px; width: 100%; object-fit: contain; background: #fff; padding: 12px; transition: transform 0.4s; }
.product:hover img { transform: scale(1.05); }
@media (hover: none) { .product:hover { transform: none; } .product:hover img { transform: none; } }
.product-body { padding: 20px; }
.product-body h3 { margin-bottom: 6px; font-size: 1.05rem; }
.product-body p { color: var(--gray); font-size: 0.88rem; }

/* Casting Foundry grid (homepage card) */
#foundry .foundry-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 3px; height: 210px; overflow: hidden; background: #fff;
}
#foundry .foundry-grid img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  padding: 0; background: #fff;
}
#foundry.product:hover img { transform: none; }

/* Casting Foundry Gallery (products page) */
.foundry-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 20px; }
.foundry-gallery figure {
  overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-alt); transition: transform 0.25s, box-shadow 0.25s;
}
.foundry-gallery img {
  width: 100%; height: 200px; object-fit: cover; object-position: center;
  display: block; transition: transform 0.4s;
}
.foundry-gallery figure:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.foundry-gallery figure:hover img { transform: scale(1.06); }
@media (max-width: 900px) { .foundry-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .foundry-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ============ Stats ============ */
.section-stats { background: linear-gradient(135deg, var(--dark-block) 0%, #2a2f38 100%); color: #fff; padding: 56px 0; }
.stat { text-align: center; }
.stat strong { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--red); display: block; }
.stat span { color: #b8bec7; font-size: 0.9rem; }

/* ============ Gallery ============ */
.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 6px;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  flex: 0 0 260px; height: 190px; object-fit: contain; background: #fff;
  border: 1px solid var(--border); padding: 10px; border-radius: var(--radius);
  transition: transform 0.3s;
}
.gallery img:hover { transform: scale(1.03); }
.gal-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); cursor: pointer;
  background: var(--card); box-shadow: var(--shadow); font-size: 1.4rem; color: var(--text);
  display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent; min-width: 44px; min-height: 44px;
}
.gal-btn:hover { background: var(--red); color: #fff; }
.gal-btn:active { transform: translateY(-50%) scale(0.95); }
.gal-btn.prev { left: -14px; }
.gal-btn.next { right: -14px; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.contact-info h3 { margin-bottom: 14px; }
.contact-info ul { list-style: none; margin-bottom: 22px; }
.contact-info li { padding: 7px 0; font-size: 0.92rem; color: var(--gray); }
.contact-info li strong { color: var(--text); display: inline-block; width: 84px; }
.contact-form { display: grid; gap: 12px; }
.contact-form input, .contact-form textarea {
  padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.92rem; background: var(--card); color: var(--text); resize: vertical;
  min-height: 44px; -webkit-appearance: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
.contact-map { border-radius: var(--radius); overflow: hidden; min-height: 380px; box-shadow: var(--shadow); }

/* ============ Page Banner (sub pages) ============ */
.page-banner {
  position: relative; background-size: cover; background-position: center;
  padding: clamp(40px, 8vw, 80px) 0;
}
.page-banner-overlay { position: absolute; inset: 0; background: rgba(10, 12, 16, 0.55); }
.page-banner-content { position: relative; z-index: 1; color: #fff; }
.page-banner-content h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.page-banner-content p { color: #d5d9de; font-size: 0.85rem; margin-top: 4px; }

/* ============ Products Detail Page ============ */
.products-layout { display: grid; grid-template-columns: 230px 1fr; gap: 36px; align-items: start; }

.side-nav {
  position: sticky; top: 94px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 2px;
}
.side-nav h3 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted); margin: 12px 0 6px;
}
.side-nav h3:first-child { margin-top: 0; }
.side-link {
  color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; transition: background 0.2s, color 0.2s;
}
.side-link:hover { background: var(--bg-alt); color: var(--red); }
.side-link.active { background: var(--red); color: #fff; }

.pd-item { margin-bottom: 56px; scroll-margin-top: 100px; }
.pd-item:last-child { margin-bottom: 0; }
.pd-title {
  font-size: 1.3rem; font-weight: 800; padding-bottom: 10px; margin-bottom: 20px;
  border-bottom: 3px solid var(--red);
}
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.pd-main {
  width: 100%; height: 300px; object-fit: contain; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 12px;
}
.pd-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.pd-thumbs img {
  width: 68px; height: 68px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid var(--border); transition: border-color 0.2s, transform 0.2s;
  background: #fff;
}
.pd-thumbs img:hover { transform: scale(1.06); }
.pd-thumbs img.active { border-color: var(--red); }

.pd-spec { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.pd-spec th, .pd-spec td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.pd-spec th { width: 130px; background: var(--bg-alt); font-weight: 700; white-space: nowrap; }
.pd-spec td { color: var(--muted); }

/* ============ About Us Page ============ */
.ab-banner { width: 100%; height: 130px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.ab-text p { margin-bottom: 14px; font-size: 0.92rem; color: var(--muted); text-align: justify; }
.ab-text p strong { color: var(--text); }
.ab-sign { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; }
.ab-sign span { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.5px; }
.ab-sign img { height: 44px; width: auto; background: #fff; border-radius: 6px; padding: 4px 10px; }
.ab-org { width: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.ab-map { width: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 24px; }
.ab-machines { width: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 22px; }
.ab-intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: start; }
.ab-intro-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.ab-sub {
  font-size: 1rem; font-weight: 800; margin: 22px 0 12px; padding-bottom: 6px;
  border-bottom: 2px solid var(--red); display: inline-block;
}

/* Timeline */
.tl { display: grid; gap: 0; }
.tl-year {
  display: grid; grid-template-columns: 80px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px dashed var(--border);
}
.tl-year strong { color: var(--red); font-size: 1.15rem; font-weight: 800; }
.tl-year ul { list-style: none; }
.tl-year li { font-size: 0.9rem; color: var(--muted); padding: 3px 0; }
.tl-year li span { display: inline-block; width: 44px; font-weight: 700; color: var(--text); }

/* Clients */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.client-grid figure { text-align: center; }
.client-grid img {
  width: 100%; height: 56px; object-fit: contain; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; padding: 6px;
}
.client-grid figcaption { font-size: 0.72rem; font-weight: 600; margin-top: 5px; color: var(--muted); }

/* Gallery Page Grid */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gal-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
  content-visibility: auto; contain-intrinsic-size: 0 280px;
}
.gal-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.gal-item img { 
  width: 100%; height: 200px; object-fit: cover; 
  background: var(--bg-alt); image-rendering: auto;
}
.gal-item figcaption { padding: 12px 14px; font-size: 0.8rem; font-weight: 600; text-align: center; }

/* ============ Catalog Grid ============ */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.catalog-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.catalog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.catalog-icon { font-size: 3rem; margin-bottom: 8px; }
.catalog-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.catalog-desc { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.5; min-height: 40px; }
.catalog-size { 
  font-size: 0.75rem; font-weight: 700; color: var(--red); 
  background: var(--bg-alt); padding: 4px 12px; border-radius: 20px; 
}
.catalog-warning { background: #fff3cd; color: #856404; }
.catalog-card .btn { margin-top: 8px; width: 100%; min-height: 44px; }

@media (max-width: 900px) {
  .products-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .side-nav h3 { width: 100%; margin: 6px 0 2px; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-main { height: 240px; }
  .ab-intro-grid { grid-template-columns: 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .gal-grid { grid-template-columns: 1fr; }
  .tl-year { grid-template-columns: 56px 1fr; }
}

/* ============ Our Clients ============ */
.clients-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px;
}
.client-logo {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  aspect-ratio: 8 / 5; padding: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.client-logo:hover {
  box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--red);
}
.client-logo img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 640px) {
  .clients-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
}

/* ============ Footer ============ */
.footer { background: var(--dark-block); color: #b8bec7; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 36px; padding: 52px 20px; }
.footer-brand img { height: 52px; width: auto; border-radius: 6px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; max-width: 320px; }
.footer-links h4 { color: #fff; margin-bottom: 12px; font-size: 0.95rem; }
.footer-links a, .footer-links span { display: block; color: #b8bec7; text-decoration: none; font-size: 0.88rem; padding: 4px 0; }
.footer-links a:hover { color: var(--red); }
.footer-clock {
  display: inline-block; margin: 6px 0 2px; padding: 3px 10px;
  font-size: 0.78rem; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px; font-variant-numeric: tabular-nums; letter-spacing: 0.3px;
}
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 0; font-size: 0.8rem; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom-inner .visitor-stats { color: #b8bec7; }
.footer-bottom-inner .visitor-stats strong { color: #fff; font-weight: 700; }

@media (max-width: 640px) {
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ============ To Top ============ */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px;
  background: var(--red); color: #fff; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; text-decoration: none; font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(224, 27, 27, 0.4); opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s; transform: translateY(10px); z-index: 90;
  -webkit-tap-highlight-color: transparent; min-width: 44px; min-height: 44px;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:active { transform: scale(0.9); }

/* ============ Reveal Animation ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .nav a { font-size: 0.86rem; }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--card); flex-direction: column; gap: 0; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 15px 22px; border-bottom: 1px solid var(--border); }
  .nav a::after { display: none; }
  .hamburger { display: block; }
}

@media (max-width: 640px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .topbar-inner span { display: none; }
  .topbar-actions { gap: 10px; }
  .lang-code, .lang-arrow { display: none; }
  .lang-btn { padding: 4px 8px; }
  .header-inner { height: 64px; }
  .brand-logo { height: 38px; }
  .nav { top: 64px; }
  .nav a { padding: 18px 22px; }
  .hero { min-height: 150px; }
  .hero-dots { bottom: 10px; }
  .gallery img { flex: 0 0 210px; height: 160px; }
  .gal-btn { width: 40px; height: 40px; min-width: 44px; min-height: 44px; }
  .gal-btn.prev { left: -6px; }
  .gal-btn.next { right: -6px; }
  .contact-map { min-height: 260px; }
  .to-top { width: 44px; height: 44px; right: 14px; bottom: 14px; }
  .card-img { height: 170px; }
  .btn { min-height: 48px; font-size: 1rem; }
}

@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .btn { padding: 11px 20px; font-size: 0.88rem; }
}
