/* =============================================
   MITSUBISHI BÌNH PHƯỚC - LANDING PAGE
   Pure CSS3 | Flexbox & Grid | Responsive
   Brand: #E60000 (Red), #000 (Black), #FFF, #F5F5F5
   ============================================= */

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #e60000;
  --red-dark: #c00;
  --red-light: #ff1a1a;
  --black: #000000;
  --white: #ffffff;
  --gray-bg: #f5f5f5;
  --gray-100: #f0f0f0;
  --gray-200: #e0e0e0;
  --gray-300: #ccc;
  --gray-500: #888;
  --gray-700: #555;
  --gray-900: #222;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.07);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 70px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-desc {
  text-align: center;
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo-icon {
  height: 40px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__menu {
  display: flex;
  gap: 8px;
}

.header__link {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: 100px;
  transition: all var(--transition);
  position: relative;
}

.header__link:hover,
.header__link.active {
  color: var(--red);
  background: rgba(230, 0, 0, 0.06);
}

.header__hotline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--red);
  padding: 8px 16px;
  border-radius: 100px;
  border: 2px solid var(--red);
  transition: all var(--transition);
}

.header__hotline:hover {
  background: var(--red);
  color: var(--white);
}

.header__hotline:hover svg {
  stroke: var(--white);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.header__hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.header__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header__hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* === HERO === */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  margin-top: var(--header-h);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px;
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__title {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--red);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 100px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(230, 0, 0, 0.4);
}

.hero__cta:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(230, 0, 0, 0.5);
}

/* === PRODUCTS === */
.products {
  padding: 80px 0;
  background: var(--gray-bg);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__img {
  position: relative;
  background: var(--gray-100);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  overflow: hidden;
}

.product-card__img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.product-card:hover .product-card__img img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__body {
  padding: 20px;
}

.product-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.product-card__desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.spec-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 100px;
  border: 1px solid var(--gray-200);
  white-space: nowrap;
}

.product-card__price {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.product-card__price strong {
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 800;
}

.product-card__btn {
  display: block;
  text-align: center;
  padding: 10px;
  background: var(--gray-900);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.product-card__btn:hover {
  background: var(--red);
}

/* === PRICING TABLE === */
.pricing {
  padding: 80px 0;
  background: var(--white);
}

.pricing__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.pricing__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.pricing__table thead {
  background: var(--gray-900);
  color: var(--white);
}

.pricing__table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing__table td {
  padding: 14px 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gray-200);
}

.pricing__table tbody tr {
  transition: background var(--transition);
}

.pricing__table tbody tr:hover {
  background: var(--gray-bg);
}

.price-red {
  color: var(--red);
  font-weight: 700;
}

.table-btn {
  display: inline-block;
  padding: 6px 16px;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all var(--transition);
}

.table-btn:hover {
  background: var(--red-dark);
  transform: scale(1.05);
}

/* === PROMO === */
.promo {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--gray-900) 0%, #1a1a2e 100%);
  color: var(--white);
}

.promo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.promo__title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--white);
}

.promo__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.promo__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.promo__list li svg {
  flex-shrink: 0;
}

.promo__cta-wrap {
  text-align: center;
  flex-shrink: 0;
}

.promo__note {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  line-height: 1.6;
}

.promo__cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 100px;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(230, 0, 0, 0.4);
}

.promo__cta-btn:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(230, 0, 0, 0.5);
}

/* === CONTACT FORM === */
.contact-form {
  padding: 80px 0;
  background: var(--gray-bg);
}

.contact-form__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-form__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.contact-form__desc {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-form__benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
}

.benefit-icon {
  font-size: 1.3rem;
}

.contact-form__form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.required {
  color: var(--red);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  color: var(--gray-900);
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.form-group input.error {
  border-color: var(--red);
  background: #fff5f5;
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 4px;
}

.form-error.show {
  display: block;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--red);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.form-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.form-submit:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230, 0, 0, 0.3);
}

.form-submit:hover::after {
  transform: translateX(100%);
}

.form-submit:active {
  transform: scale(0.98);
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px 20px;
}

.form-success.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

.form-success p {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === FOOTER === */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer__contact li svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--red);
}

.footer__contact a:hover {
  color: var(--red);
}

.footer__hours li {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__map iframe {
  border-radius: var(--radius-sm);
}

.footer__bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* === FLOATING BUTTONS === */
.floating-btns {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.floating-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.floating-btn--zalo {
  background: #0068ff;
}

.floating-btn--phone {
  background: var(--red);
}

.floating-btn--chat {
  background: #25d366;
}

.floating-btn--tiktok {
  background: #010101;
}

/* Shake Animation */
.shake {
  animation: shakeAnim 1.5s ease-in-out infinite;
}

@keyframes shakeAnim {
  0%,
  100% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(-12deg);
  }
  20% {
    transform: rotate(12deg);
  }
  30% {
    transform: rotate(-10deg);
  }
  40% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-6deg);
  }
  60% {
    transform: rotate(6deg);
  }
  70% {
    transform: rotate(0);
  }
}

/* Pulse ring on phone */
.floating-btn--phone::before {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 992px) {
  .header__hotline span {
    display: none;
  }
  .header__hotline {
    padding: 10px;
    border: none;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo__inner {
    flex-direction: column;
    text-align: center;
  }
  .promo__list {
    align-items: center;
  }

  .contact-form__inner {
    grid-template-columns: 1fr;
  }
  .contact-form__info {
    text-align: center;
  }
  .contact-form__benefits {
    align-items: center;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 16px 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.35s ease;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
  }

  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .header__link {
    width: 90%;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
  }

  .hero {
    height: 450px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__cta {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
  .section-desc {
    font-size: 0.9rem;
    margin-bottom: 32px;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card__img {
    height: 150px;
    padding: 12px;
  }
  .product-card__body {
    padding: 14px;
  }
  .product-card__name {
    font-size: 1rem;
  }
  .product-card__desc {
    font-size: 0.78rem;
  }

  .contact-form__form {
    padding: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .floating-btns {
    bottom: 16px;
    right: 16px;
  }
  .floating-btn {
    width: 48px;
    height: 48px;
  }
  .floating-btn--phone::before {
    width: 48px;
    height: 48px;
  }
}

/* Small phone */
@media (max-width: 400px) {
  .products__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 380px;
  }
  .hero__title {
    font-size: 1.6rem;
  }

  .contact-form__form {
    padding: 20px 16px;
  }
}
