/* ============================================================
   TUNG LAM PHAT — Vietnamese sewing supplies SME template
   ============================================================ */

:root {
  --vn-red: #da251d;
  --vn-red-dark: #b81e17;
  --vn-gold: #ffcd00;
  --vn-teal: #00843d;
  --vn-teal-light: #e8f5ec;
  --bg: #f8f9fa;
  --white: #ffffff;
  --dark: #1a1a1a;
  --gray: #555555;
  --gray-light: #888888;
  --border: #dee2e6;
  --font: "Segoe UI", Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 15px; color: var(--dark); background: var(--bg); line-height: 1.6; }

a { color: var(--vn-red); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1180px, 94%); margin: 0 auto; }

/* ---------- Hotline bar (typical VN SME) ---------- */
.hotline-bar {
  background: var(--vn-red);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.hotline-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.hotline-bar a { color: #fff; font-weight: 700; }
.hotline-bar .hotline-num { font-size: 16px; font-weight: 800; letter-spacing: 0.02em; }
.hotline-bar .hotline-num:hover { color: var(--vn-gold); text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--vn-teal);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; flex-wrap: wrap; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-box {
  width: 50px; height: 50px; background: linear-gradient(135deg, var(--vn-red), var(--vn-red-dark));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; border-radius: 6px;
}
.logo-text { line-height: 1.25; }
.logo-name { font-size: 17px; font-weight: 800; color: var(--vn-red); display: block; text-transform: uppercase; letter-spacing: 0.02em; }
.logo-tag { font-size: 11px; color: var(--gray); font-weight: 600; }

.main-nav { display: flex; gap: 2px; }
.main-nav a {
  padding: 10px 14px; color: var(--dark); font-weight: 600; font-size: 14px; border-radius: 4px;
}
.main-nav a:hover { background: var(--vn-teal-light); color: var(--vn-teal); text-decoration: none; }

.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn-primary {
  background: var(--vn-teal); color: #fff; padding: 11px 20px; border-radius: 5px;
  font-weight: 700; font-size: 14px; border: none; cursor: pointer; white-space: nowrap;
  display: inline-block; text-decoration: none;
}
.btn-primary:hover { background: #006830; color: #fff; text-decoration: none; }

/* Language switch — top-right, prominent */
.lang-switch { position: relative; }
.lang-switch-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--white); border: 2px solid var(--vn-red);
  color: var(--vn-red); font-weight: 800; font-size: 14px;
  padding: 8px 14px; cursor: pointer; border-radius: 5px; min-width: 72px;
}
.lang-switch-btn:hover { background: #fff5f5; }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); right: 0;
  background: #fff; border: 2px solid var(--vn-red); border-radius: 5px;
  min-width: 190px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); overflow: hidden; z-index: 120;
}
.lang-dropdown.open { display: block; }
.lang-dropdown button {
  display: block; width: 100%; text-align: left; padding: 12px 16px;
  border: none; background: #fff; cursor: pointer; font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--border); color: var(--dark);
}
.lang-dropdown button:last-child { border-bottom: none; }
.lang-dropdown button:hover { background: var(--vn-teal-light); }
.lang-dropdown button.active { background: var(--vn-red); color: #fff; }
.lang-dropdown .lang-sub { display: block; font-size: 11px; font-weight: 400; opacity: 0.75; margin-top: 2px; }
.lang-dropdown button.active .lang-sub { color: rgba(255,255,255,0.85); }

.menu-toggle { display: none; background: var(--vn-red); color: #fff; border: none; padding: 10px 14px; font-size: 18px; cursor: pointer; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--vn-teal-light) 0%, var(--white) 60%);
  padding: 48px 0; border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-block; background: var(--vn-red); color: #fff;
  font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; color: var(--dark); line-height: 1.25; margin-bottom: 16px; }
.hero h1 span { color: var(--vn-red); }
.hero-lead { font-size: 15px; color: var(--gray); margin-bottom: 24px; max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline {
  background: transparent; color: var(--vn-teal); border: 2px solid var(--vn-teal);
  padding: 11px 20px; border-radius: 5px; font-weight: 700; font-size: 14px;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { background: var(--vn-teal); color: #fff; text-decoration: none; }

.hero-visual {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.hero-cat {
  background: var(--vn-teal-light); border-radius: 6px; padding: 20px 14px; text-align: center;
  font-weight: 700; font-size: 13px; color: var(--vn-teal);
}
.hero-cat .ico { font-size: 32px; display: block; margin-bottom: 8px; }

/* ---------- Promo strip ---------- */
.promo-strip { background: var(--vn-gold); color: var(--dark); text-align: center; padding: 10px 16px; font-weight: 700; font-size: 14px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--border); padding: 24px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.trust-item .ico { font-size: 28px; margin-bottom: 8px; }
.trust-item h4 { font-size: 14px; font-weight: 700; color: var(--vn-red); margin-bottom: 4px; }
.trust-item p { font-size: 12px; color: var(--gray-light); }

/* ---------- Sections ---------- */
section { padding: 48px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: 26px; font-weight: 800; color: var(--vn-red); margin-bottom: 10px; }
.section-head p { color: var(--gray); font-size: 15px; }
.section-head .line { width: 50px; height: 3px; background: var(--vn-teal); margin: 12px auto 0; border-radius: 2px; }

/* ---------- Products grid ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }
.product-img {
  height: 130px; background: linear-gradient(135deg, #fce4ec, #f3e5f5);
  display: grid; place-items: center; font-size: 48px; border-bottom: 1px solid var(--border);
}
.product-body { padding: 20px; }
.product-body h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.product-body p { font-size: 13px; color: var(--gray); line-height: 1.55; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.about-text p { color: var(--gray); margin-bottom: 14px; font-size: 15px; }
.about-facts { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.about-facts h3 { background: var(--vn-teal); color: #fff; padding: 14px 18px; font-size: 15px; font-weight: 700; }
.about-facts dl { padding: 0; }
.about-facts dt { font-weight: 700; font-size: 11px; color: var(--gray-light); text-transform: uppercase; padding: 12px 18px 4px; letter-spacing: 0.04em; }
.about-facts dd { padding: 0 18px 12px; font-size: 14px; border-bottom: 1px solid var(--border); }
.about-facts dd:last-child { border-bottom: none; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-item { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 22px 16px; text-align: center; }
.why-item .ico { font-size: 32px; margin-bottom: 10px; }
.why-item h4 { font-size: 14px; font-weight: 700; color: var(--vn-teal); margin-bottom: 6px; }
.why-item p { font-size: 12px; color: var(--gray); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; }
.contact-info { background: var(--vn-red); color: #fff; border-radius: 8px; padding: 28px; }
.contact-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--vn-gold); }
.contact-info ul { list-style: none; }
.contact-info li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 14px; }
.contact-info li:last-child { border-bottom: none; }
.contact-info a { color: var(--vn-gold); font-weight: 700; }
.contact-info .label { display: block; font-size: 11px; opacity: 0.8; text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.04em; }

.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--dark); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 5px;
  font-family: inherit; font-size: 14px; margin-bottom: 14px; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--vn-teal); }
.contact-form button { width: 100%; background: var(--vn-red); color: #fff; border: none; padding: 14px; font-weight: 700; font-size: 15px; border-radius: 5px; cursor: pointer; }
.contact-form button:hover { background: var(--vn-red-dark); }
.form-msg { margin-top: 10px; font-size: 13px; font-weight: 600; min-height: 1.2em; }

/* ---------- Footer (VN SME standard) ---------- */
.site-footer { background: var(--dark); color: #aaa; font-size: 13px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; padding: 40px 0; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; border-left: 3px solid var(--vn-red); padding-left: 10px; }
.footer-col p { font-size: 13px; line-height: 1.65; margin-bottom: 8px; }
.footer-col a { display: block; color: #999; padding: 4px 0; font-size: 13px; }
.footer-col a:hover { color: var(--vn-gold); }
.footer-bottom {
  border-top: 1px solid #333; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.mobile-open { display: flex; flex-direction: column; width: 100%; order: 10; background: var(--vn-teal-light); padding: 10px; border-radius: 6px; }
  .hero-visual { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .products-grid, .why-grid, .trust-grid, .footer-main, .hero-visual { grid-template-columns: 1fr; }
}
