/* ===================================================
   INOX TOAN PHAT - Main Stylesheet
   Brand: Red #C71A1C | Blue #0D3B66 | Gray #A7A9AC
   Font: Roboto (Vietnamese subset)
   =================================================== */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* VARIABLES */
:root {
  --red:      #C71A1C;
  --red-dark: #a31517;
  --blue:     #0D3B66;
  --blue-mid: #174d84;
  --gray-l:   #A7A9AC;
  --gray-d:   #7A7C82;
  --white:    #FFFFFF;
  --off:      #F5F6F7;
  --surface:  #EEF0F3;
  --text:     #1A1A1A;
  --muted:    #555555;
  --border:   #DDE0E5;
}

body {
  font-family: 'Roboto', 'Noto Sans', Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

.logo-link { display: flex; align-items: center; }
.logo-img  { height: 52px; width: auto; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--blue);
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
  font-family: 'Roboto', sans-serif;
}

.nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--blue);
  cursor: pointer;
  padding: 0.25rem;
}

/* HERO */
.hero {
  min-height: 100vh;
  padding-top: 72px;
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  padding: 0;
  max-width: 100%;
}

.hero-content {
  padding: 5rem 4rem 5rem 5%;
  background:
    /* grid lines */
    repeating-linear-gradient(90deg, rgba(13,59,102,0.04) 0, rgba(13,59,102,0.04) 1px, transparent 1px, transparent 72px),
    repeating-linear-gradient(0deg,  rgba(13,59,102,0.04) 0, rgba(13,59,102,0.04) 1px, transparent 1px, transparent 72px),
    /* blue glow top-right */
    radial-gradient(ellipse 60% 50% at 95% 10%, rgba(13,59,102,0.07) 0%, transparent 70%),
    /* red glow bottom-left */
    radial-gradient(ellipse 50% 40% at 5% 90%, rgba(199,26,28,0.06) 0%, transparent 65%),
    #FFFFFF;
  position: relative;
  z-index: 1;
}

/* Geometric accent — circle top right */
.hero-content::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: transparent;
  border: 40px solid rgba(13,59,102,0.05);
  pointer-events: none;
}

/* Geometric accent — small circle bottom */
.hero-content::after {
  content: '';
  position: absolute;
  bottom: 40px;
  left: 40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid rgba(199,26,28,0.1);
  pointer-events: none;
}

.hero-aside {
  background: var(--blue);
  padding: 5rem 5% 5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  position: relative;
  z-index: 0;
}

.hero-aside-logo {
  width: 160px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.hero-aside-copy {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-aside-copy > p {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.hero-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-feature-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hfi-icon {
  width: 36px;
  height: 36px;
  background: rgba(199,26,28,0.2);
  border: 1px solid rgba(199,26,28,0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: #ff8080;
}

.hfi-icon svg {
  width: 24px;
  height: 24px;
}

.hero-feature-item div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-feature-item strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

.hero-feature-item span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(199,26,28,0.3);
  padding: 0.35rem 0.9rem;
}

.hero-tag::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--red);
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.hero-title-line {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(3.8rem, 6.5vw, 6rem);
  letter-spacing: 2px;
  display: block;
  text-transform: uppercase;
}

.hero-title-line--blue { color: var(--blue); }
.hero-title-line--red  { color: var(--red);  }

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
  font-family: 'Roboto', sans-serif;
}

.btn-primary:hover { background: var(--red-dark); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  padding: 0.85rem 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--blue);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
  font-family: 'Roboto', sans-serif;
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--gray-d);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* SECTION BASE */
section { padding: 5rem 5%; }

.sec-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.sec-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--blue);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.sec-title em { color: var(--red); font-style: normal; }

.divider {
  width: 44px; height: 3px;
  background: var(--red);
  margin: 0.9rem 0 1.2rem;
}

.sec-sub {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 520px;
}

/* SERVICES */
.services { background: var(--off); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.svc-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: 6px;
  border-top: 3px solid var(--blue);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13,59,102,0.12);
}

.svc-num {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(13,59,102,0.18);
  line-height: 1;
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-family: 'Montserrat', sans-serif;
}

.svc-icon { font-size: 1.8rem; margin-bottom: 0.9rem; }

.svc-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.svc-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.svc-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  transition: gap 0.2s;
}

.svc-arrow:hover { gap: 0.7rem; }

/* PRODUCTS */
.products { background: var(--white); }

.products-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.product-list { display: flex; flex-direction: column; }

.prod-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.prod-item:first-child { border-top: 1px solid var(--border); }

.prod-item.active .prod-name { color: var(--red); }
.prod-item.active .prod-dot  { background: var(--red); width: 24px; }

.prod-name {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray-d);
  transition: color 0.2s;
}

.prod-dot {
  width: 8px; height: 2px;
  background: var(--border);
  transition: all 0.2s;
  flex-shrink: 0;
}

.prod-showcase {
  background: var(--off);
  padding: 2.5rem;
  border-radius: 6px;
  border-top: 3px solid var(--red);
}

.prod-visual {
  width: 100%; height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.prod-svg {
  width: 100%;
  height: 100%;
  max-width: 280px;
  max-height: 180px;
}

.prod-img {
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: none;
}

.prod-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.prod-detail {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.prod-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(13,59,102,0.25);
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  background: rgba(13,59,102,0.04);
}

/* WHY US */
.whyus { background: var(--blue); }

.whyus .sec-label { color: var(--gray-l); }
.whyus .sec-title { color: var(--white); }
.whyus .sec-title em { color: var(--red); }
.whyus .divider { background: var(--red); }

.whyus-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.whyus-inner > div > p {
  color: rgba(255,255,255,0.92);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.why-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.feat-box {
  padding: 1.25rem;
  border-left: 3px solid var(--red);
  background: rgba(255,255,255,0.1);
  border-radius: 0 4px 4px 0;
}

.feat-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.feat-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
}

.visual-panel {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 2.25rem;
  border-radius: 8px;
}

.visual-panel .sec-label { color: rgba(255,255,255,0.7); }

.cert-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.1);
  margin-bottom: 0.75rem;
  border-left: 2px solid var(--red);
  border-radius: 0 4px 4px 0;
}

.cert-icon { font-size: 1.2rem; color: var(--red); flex-shrink: 0; }

.cert-name {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}

.cert-sub { font-size: 0.75rem; color: rgba(255,255,255,0.75); margin-top: 2px; }

.cta-box {
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: rgba(199,26,28,0.12);
  border: 1px solid rgba(199,26,28,0.3);
  border-radius: 4px;
}

.cta-box strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.cta-box span { font-size: 0.8rem; color: rgba(255,255,255,0.88); }

/* CONTACT */
.contact { background: var(--off); padding: 5rem 5%; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.contact-panel .sec-title { color: var(--blue); }
.contact-panel .sec-title em { color: var(--red); }

.section-intro {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.info-row { display: flex; gap: 1rem; align-items: flex-start; }

.info-ico {
  width: 38px; height: 38px;
  border: 1.5px solid var(--red);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  background: rgba(199,26,28,0.04);
}

.info-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.info-val { font-size: 0.9rem; color: var(--text); line-height: 1.5; }
.info-val a { color: var(--blue); font-weight: 500; }
.info-val a:hover { color: var(--red); }

.contact-cta-card {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 6px;
}

.contact-cta-card strong { font-size: 1rem; font-weight: 800; display: block; margin-bottom: 0.4rem; }
.contact-cta-card div:last-child { font-size: 0.82rem; opacity: 0.75; line-height: 1.55; }

.contact-form-panel { display: flex; flex-direction: column; justify-content: flex-start; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

input, textarea, select {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: 'Roboto', sans-serif;
  width: 100%;
  outline: none;
  border-radius: 4px;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus { border-color: var(--blue); }
input::placeholder, textarea::placeholder { color: var(--gray-l); }
textarea { resize: vertical; min-height: 110px; }

.form-submit {
  background: var(--red);
  color: var(--white);
  padding: 0.9rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  width: 100%;
  border-radius: 4px;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--red-dark); }

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(13,59,102,0.08);
  border-left: 3px solid var(--blue);
  border-radius: 0 4px 4px 0;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 600;
}

.contact-map-section {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  margin-top: 1rem;
}

.contact-map-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}

.location-panel { display: flex; flex-direction: column; gap: 1rem; }

.location-card {
  background: var(--white);
  padding: 1.25rem;
  border-left: 3px solid var(--red);
  border-radius: 0 4px 4px 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.location-card .card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.location-card a { color: var(--blue); font-weight: 600; }
.location-card a:hover { color: var(--red); }

.location-note {
  font-size: 0.82rem;
  color: var(--gray-d);
  line-height: 1.6;
  padding: 1rem;
  background: rgba(13,59,102,0.04);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.map-frame-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.map-frame { width: 100%; height: 420px; border: none; display: block; }

/* FLOATING BUTTONS */
.fab-group {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 300;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.fab-zalo {
  background: #0068FF;
  padding: 0;
  overflow: hidden;
}

.fab-zalo svg rect {
  rx: 50%;
}

.fab-top {
  background: var(--red);
  color: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s, box-shadow 0.2s;
}

.fab-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* FOOTER */
footer {
  background: var(--blue);
  padding: 1.75rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo { font-size: 1.2rem; font-weight: 900; color: var(--white); letter-spacing: 2px; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-aside { clip-path: none; padding: 3rem 5%; }
  .hero-content { padding: 4rem 5% 2rem; }
  .whyus-inner { grid-template-columns: 1fr; }
  .products-layout { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-map-grid { grid-template-columns: 1fr; }
  .map-frame { height: 300px; }
}

@media (max-width: 640px) {
  section { padding: 3.5rem 1.25rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--red);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 199;
  }
  .nav-menu.open .nav-links a { padding: 0.75rem 0; font-size: 0.9rem; }
  .form-row { grid-template-columns: 1fr; }
  .why-feats { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}
