/* theme/fujico/css/main.css */
@charset "UTF-8";

:root {
  --primary-color: #122f2a;
  --secondary-color: #ff5528;
  --primary-light: #4caf50;
  --secondary-light: #ffb74d;
  --dark-text: #333;
  --light-text: #fff;
  --menu-height: 80px;
  --topbar-height: 120px;
  --link-color: var(--secondary-color);
  --link-hover-color: #cc441f; /* darken màu secondary */
  --transition-speed: 0.3s;
  --font-1: "Roboto", sans-serif;
  --font-2: "Roboto", sans-serif;
}

/* ===== RESET & BASE STYLES ===== */
body {
  font-family: var(--font-2);
  transition: all var(--transition-speed) ease;
  color: var(--dark-text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-1);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  border-left: 8px solid var(--secondary-color);
  padding-left: 20px;
  margin-bottom: 30px;
  line-height: 1.3;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}
a:hover, a:focus {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* Utility Classes */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }

.btn-fujico {
  display: inline-flex;
  align-items: center;
  padding: 15px 15px;
  border-radius: 10px;
  background-color: var(--secondary-color);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-fujico i {
  margin-right: 8px;
  font-size: 1rem;
  color: #fff;
}
.btn-fujico:hover {
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
}

/* ===== HEADER STYLES ===== */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1030;
}

header .main-nav {
  padding: 0.5rem 0;
}

header .main-nav .navbar .navbar-brand {
  padding: 0;
}

header .main-nav .navbar #navbarNav .navbar-nav .nav-item {
  margin: 0 0.25rem;
}

header .main-nav .navbar #navbarNav .navbar-nav .nav-item .nav-link {
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  position: relative;
  transition: all 0.3s ease;
}

header .main-nav .navbar #navbarNav .navbar-nav .nav-item .nav-link:hover,
header .main-nav .navbar #navbarNav .navbar-nav .nav-item .nav-link.active {
  color: var(--primary-color);
}

/* Dropdown styles */
header .main-nav .navbar #navbarNav .navbar-nav .nav-item.dropdown .dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

header .main-nav .navbar #navbarNav .navbar-nav .nav-item.dropdown .dropdown-menu .dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

header .main-nav .navbar #navbarNav .navbar-nav .nav-item.dropdown .dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--secondary-color);
}

/* Scroll effect */
header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header.scrolled .main-nav {
  padding: 0.25rem 0;
}



/* Mobile styles */
@media (max-width: 768px) {
    /* Điều chỉnh logo */
    .navbar-brand {
        padding: 5px 0;
    }
    
    .navbar-brand img {
        height: 36px !important; /* Giảm kích thước logo */
        width: auto;
    }
    
    /* Điều chỉnh nút mobile menu */
    .navbar-toggler {
        padding: 4px 8px; /* Giảm padding */
        font-size: 16px; /* Giảm kích thước icon */
    }
    
    .navbar-toggler-icon {
        width: 1.2em; /* Giảm kích thước icon */
        height: 1.2em;
    }
}

/* Cho màn hình rất nhỏ (dưới 480px) */
@media (max-width: 480px) {
    .navbar-brand img {
        height: 30px !important; /* Logo nhỏ hơn nữa */
    }
    
    .navbar-toggler {
        padding: 3px 6px;
    }
}








/* Mobile menu */
.search-box-mobile {
  color: #333;
  font-size: 1.1rem;
  padding: 0.5rem;
  cursor: pointer;
}
.search-box-mobile:hover {
  color: var(--secondary-color);
}

/* ===== FOOTER STYLES ===== */
.fujico-footer {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: var(--primary-color);
  color: #ffffff;
  font-family: var(--font-2);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4em;
}

.fujico-footer__bg {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://fujicoelevator.com/image/home/footer.avif");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.1;
  z-index: -1;
}

.fujico-footer .container {
  position: relative;
  z-index: 2;
}

.fujico-footer a {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-2);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4em;
}
.fujico-footer a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

.fujico-footer h5 {
  color: #ffffff;
  font-weight: 700;
  position: relative;
  margin-bottom: 20px;
}

.fujico-footer h5::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
  margin-top: 8px;
}

.fujico-footer .logo-footer {
  max-width: 300px;
  margin-bottom: 15px;
}

.fujico-footer p {
  color: #d1d1d1;
  font-size: 14px;
}

.fujico-footer i {
  color: var(--secondary-color);
  margin-right: 10px;
}

.fujico-footer .fab {
  font-size: 18px;
  margin-right: 15px;
  transition: all 0.3s ease;
}
.fujico-footer .fab:hover {
  color: #ffffff;
  transform: scale(1.2);
}

.fujico-footer hr {
  border-top: 1px solid #334c45;
}

.fujico-footer .text-warning {
  color: var(--secondary-color) !important;
}

/* Hotline float */
.hotline-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  transition: all 0.3s ease;
}

.hotline-float img {
  width: 100%;
  height: auto;
  max-width: 220px;
  display: block;
  border-radius: 5px;
}

/* Animations */
@keyframes imgBounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.ImgBounce {
  animation: imgBounce 4s ease-in-out infinite;
}

/* ===== RESPONSIVE (Mobile Menu & Footer) ===== */
@media (max-width: 991.98px) {
  header .main-nav #navbarNav {
    padding: 1rem 0;
    background-color: #fff;
    margin-top: 0.5rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }
  
  header .main-nav #navbarNav .navbar-nav .nav-item {
    margin: 0;
  }
  
  header .main-nav #navbarNav .navbar-nav .nav-item .nav-link {
    padding: 0.75rem 1.5rem;
  }
  
  header .main-nav #navbarNav .navbar-nav .nav-item.dropdown .dropdown-menu {
    box-shadow: none;
    border-left: 3px solid var(--secondary-color);
  }
  
  .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin-top: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    border: none;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  .hotline-float {
    bottom: 15px;
    left: 15px;
    padding: 8px;
  }
  .hotline-float img {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .hotline-float {
    bottom: 10px;
    left: 10px;
    padding: 5px;
  }
  .hotline-float img {
    max-width: 100px;
  }
}

@media (min-width: 992px) {
  .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }
  
  .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* CSS Variables for easy theming */
:root {
    --primary-dark: #0a2e26;
    --primary-soft: #1a4a3a;
    --accent-gold: #c8a86b;
    --accent-soft: #dbb88c;
    --gray-light: #f8f9fa;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --border-radius: 16px;
}

/* ===== MOBILE VERSION - Elegant bottom bar ===== */
.hotline-mobile {
    display: none;
    position: fixed;
    bottom: 9px;
    left: 16px;
    right: 16px;
    z-index: 9999;
}

.hotline-mobile-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hotline-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.2s ease;
    gap: 8px;
}

.hotline-item:active {
    background: rgba(26, 74, 58, 0.05);
}

.hotline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotline-icon i {
    font-size: 16px;
    color: var(--accent-gold);
}

.hotline-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.hotline-name {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    letter-spacing: 0.3px;
}

.hotline-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}

.hotline-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
}

/* ===== DESKTOP VERSION - Minimal floating cards ===== */
.hotline-desktop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hotline-card {
    text-decoration: none;
    display: block;
}

.hotline-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 10px 18px 10px 14px;
    border-radius: 100px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hotline-card:hover .hotline-card-content {
    transform: translateX(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    background: white;
}

.hotline-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hotline-card:hover .hotline-card-icon {
    transform: scale(1.05);
}

.hotline-card-icon i {
    font-size: 20px;
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.hotline-card:hover .hotline-card-icon i {
    transform: rotate(8deg);
}

.hotline-card-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.hotline-card-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}

.hotline-card-name {
    font-size: 12px;
    font-weight: 500;
    color: #868e96;
    letter-spacing: 0.3px;
}

/* Subtle pulse animation for first card */
.hotline-desktop .hotline-card:first-child .hotline-card-content {
    animation: subtlePulse 3s infinite;
}

@keyframes subtlePulse {
    0% {
        box-shadow: 0 6px 20px rgba(26, 74, 58, 0.08);
    }
    50% {
        box-shadow: 0 8px 24px rgba(26, 74, 58, 0.15);
    }
    100% {
        box-shadow: 0 6px 20px rgba(26, 74, 58, 0.08);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
    .hotline-desktop {
        display: none;
    }
    
    .hotline-mobile {
        display: block;
    }
    
    body {
        padding-bottom: 90px;
    }
}

@media (min-width: 768px) {
    .hotline-mobile {
        display: none;
    }
    
    .hotline-desktop {
        display: flex;
    }
}

/* Small mobile devices */
@media (max-width: 380px) {
    .hotline-mobile-container {
        padding: 2px;
    }
    
    .hotline-icon {
        width: 32px;
        height: 32px;
    }
    
    .hotline-icon i {
        font-size: 14px;
    }
    
    .hotline-number {
        font-size: 12px;
    }
    
    .hotline-name {
        font-size: 10px;
    }
    
    .hotline-item {
        padding: 6px 4px;
        gap: 4px;
    }
}

/* iPhone X+ safe area support */
@supports (padding: max(0px)) {
    .hotline-mobile {
        left: max(16px, env(safe-area-inset-left));
        right: max(16px, env(safe-area-inset-right));
        bottom: max(9px, env(safe-area-inset-bottom));
    }
    
    .hotline-desktop {
        right: max(30px, env(safe-area-inset-right));
        bottom: max(30px, env(safe-area-inset-bottom));
    }
}

/* Remove old styles if any */
.hotline-float, .ImgBounce {
    /* Kept for compatibility */
}