/* 📱 Mobile styles (<=768px) */

body {
  padding: 0;
}

/* ==== HEADER ==== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #007bff, #0056cc);
  color: #fff;
  border-radius: 0;
  padding: 12px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  color: #003366;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

header.scrolled nav a {
  color: #003366;
}

/* logo + tên thương hiệu */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
}

.brand div {
  font-size: 14px;
  line-height: 1.2;
  color: #f9fbff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

header.scrolled .brand div {
  color: #003366;
  text-shadow: none;
}

/* ==== MENU HAMBURGER ==== */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 28px;
  height: 24px;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  background: var(--text);
  height: 3px;
  width: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ==== NAVIGATION ==== */
nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  display: none;
  flex-direction: column;
  text-align: center;
  padding: 10px 0;
  animation: slideDown 0.3s ease;
}

nav.show {
  display: flex;
}

@keyframes slideDown {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

nav a {
  padding: 12px;
  margin: 4px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.lang-btn {
  background: var(--accent);
  border: none;
  color: white;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  margin: 8px auto;
}

/* ==== HERO ==== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 360px;
  margin-top: 80px; /* 💡 FIX: thêm khoảng cách giữa header và hero */
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  z-index: 0;
  border-radius: var(--radius);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 60px 20px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-text h1 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 16px;
  margin-bottom: 20px;
}

.hero .btn {
  width: auto;
  padding: 12px 28px;
  font-size: 16px;
}

/* ==== SERVICES ==== */
.services-grid {
  grid-template-columns: 1fr;
}

.service-card {
  margin-bottom: 20px;
}

/* ==== ABOUT ==== */
#about {
  flex-direction: column;
  padding: 20px;
  text-align: center;
}

#about img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  filter: brightness(0.9);
}

/* ==== CONTACT ==== */
#contact {
  padding: 40px 20px;
}

.contact-info {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.contact-item {
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 14px;
  border-radius: var(--radius);
}

/* ==== COOKIE BANNER ==== */
#cookie-banner {
  flex-direction: column;
  gap: 10px;
  text-align: center;
  font-size: 14px;
  padding: 16px;
}

footer {
  font-size: 13px;
  padding: 10px;
  text-align: center;
}

/* ==== SIÊU NHỎ (<=480px) ==== */
@media (max-width: 480px) {
  .hero-text h1 {font-size: 24px;}
  .hero-text p {font-size: 15px;}
  .btn {width: 100%;padding: 12px;}
  .service-card img {width: 100px;height: 100px;}
  .brand img {height: 38px;}
}

/* Mượt mà */
img {max-width: 100%;height: auto;}
button, a {touch-action: manipulation;}
