/* LIFA Global Trade – Premium B2B Website */

:root {
  /* Brand Colors */
  --color-primary: #0F1E36;
  --color-primary-dark: #07111E;
  --color-secondary: #132B4A;
  --color-accent: #C9A84C;
  --color-accent-light: #E2C47A;
  --color-accent-muted: #BFA15A;

  /* Backgrounds */
  --color-cream: #F4F0E5;
  --color-offwhite: #F8FAFD;
  --color-white: #FFFFFF;

  /* Text */
  --color-text-dark: #182033;
  --color-text-light: #F4F1E8;
  --color-text-muted: #6B7D98;

  /* Social Colors */
  --color-whatsapp: #25D366;
  --color-wechat: #07C160;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Typography */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-light);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(125deg, rgba(15, 30, 54, 0.98), rgba(7, 17, 30, 0.95) 58%, rgba(19, 43, 74, 0.96));
  backdrop-filter: blur(24px) saturate(170%) brightness(1.02);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  box-shadow: 0 14px 44px -22px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 16px 48px -20px rgba(0, 0, 0, 0.4);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--spacing-lg);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: -0.5px;
}

nav {
  display: flex;
  gap: 3rem;
  align-items: center;
}

nav a {
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-primary);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 8px;
  min-width: 250px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 1001;
  margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
  max-height: 500px;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  color: var(--color-text-light);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: rgba(201, 168, 76, 0.1);
  color: var(--color-accent-light);
}

.cta-button {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: var(--color-primary);
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.2);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

.cta-button:active {
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1100;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: 8rem var(--spacing-lg) 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--spacing-lg);
}

.hero p {
  font-size: var(--text-lg);
  margin-bottom: var(--spacing-xl);
  color: rgba(244, 240, 229, 0.9);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 30, 54, 0.7) 0%, rgba(15, 30, 54, 0.5) 100%);
  pointer-events: none;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 550px;
  overflow: hidden;
  background: var(--color-primary);
  margin: 0;
  padding: 0;
}

.slider-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.slider-item.active {
  opacity: 1;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 30, 54, 0.7) 0%, rgba(15, 30, 54, 0.5) 100%);
  z-index: 1;
}

.slider-item .container {
  position: relative;
  z-index: 2;
}

.slider-item .hero-content {
  max-width: 700px;
  color: white;
}

.slider-item h1 {
  color: white;
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 6vw, 3rem);
  line-height: 1.2;
}

.slider-item p {
  color: rgba(244, 240, 229, 0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 20;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  width: 40px;
  border-radius: 6px;
}

/* Section Spacing */
section {
  padding: 4rem var(--spacing-lg);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Card Layouts */
.card {
  background: var(--color-white);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 12px 32px rgba(15, 30, 54, 0.08);
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.service-card {
  background: var(--color-offwhite);
  border-left: 4px solid var(--color-accent);
  padding: 2.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.service-card:hover {
  background: var(--color-cream);
  transform: translateX(8px);
}

.service-card h3 {
  margin-bottom: 1rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-accent), transparent);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  border: 3px solid var(--color-white);
  border-radius: 50%;
  top: 0;
}

.timeline-content {
  width: 45%;
  margin-left: 2.5%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: 2.5%;
  text-align: right;
}

.timeline-content h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Forms */
form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-primary);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(15, 30, 54, 0.2);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background: var(--color-primary-dark);
  color: var(--color-text-light);
  padding: 4rem var(--spacing-lg) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.footer-section h4 {
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul a {
  color: rgba(244, 240, 229, 0.8);
  transition: color 0.3s ease;
}

.footer-section ul a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  font-size: 0.9rem;
  color: rgba(244, 240, 229, 0.6);
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 1200;
  flex-direction: column-reverse;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  position: relative;
}

.float-btn-whatsapp {
  background: linear-gradient(135deg, #2ed573 0%, #25D366 50%, #1abc9c 100%);
}

.float-btn-wechat {
  background: linear-gradient(135deg, #09B981 0%, #07C160 50%, #059669 100%);
}

.float-btn:hover {
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.float-btn:active {
  transform: translateY(-3px) scale(1.05);
}

.float-btn svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* FAQ Accordion */
.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(15, 30, 54, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.accordion-header {
  background: var(--color-offwhite);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.accordion-header:hover {
  background: var(--color-cream);
}

.accordion-header.active {
  background: var(--color-accent);
  color: var(--color-primary);
}

.accordion-toggle {
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--color-white);
  border-top: 1px solid rgba(15, 30, 54, 0.1);
}

.accordion-body.active {
  max-height: 500px;
  padding: 1.5rem;
}

.accordion-body p {
  color: var(--color-text-muted);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--color-white);
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.modal-close:hover {
  color: var(--color-primary);
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
  h2 { font-size: clamp(1.25rem, 3.5vw, 1.75rem); }

  .section-title {
    margin-bottom: 2rem;
  }

  section {
    padding: 2.5rem var(--spacing-md);
  }
}

/* Tablet Breakpoints */
@media (max-width: 1024px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item::before {
    left: 20px;
  }

  .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px;
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Breakpoints */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .header-content {
    padding: 1rem var(--spacing-md);
  }

  nav {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 100%;
    flex-direction: column;
    background: var(--color-primary);
    padding: 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    gap: 0;
  }

  nav.active {
    right: 0;
  }

  nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  }

  nav a::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    max-height: 0;
    border: none;
  }

  .dropdown-menu.active {
    max-height: 500px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 4rem var(--spacing-md) 3rem;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .cta-button {
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
  }

  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .floating-buttons {
    bottom: 1rem;
    right: 1rem;
    gap: 0.75rem;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .hero-slider {
    height: 300px;
  }

  .slider-dots {
    bottom: 1rem;
    gap: 0.5rem;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }

  .slider-dot.active {
    width: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  h1 { font-size: clamp(1.25rem, 5vw, 1.75rem); }
  h2 { font-size: clamp(1.1rem, 3vw, 1.5rem); }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .header-content {
    padding: 0.75rem var(--spacing-sm);
  }

  nav {
    padding: 1.5rem;
  }

  section {
    padding: 2rem var(--spacing-sm);
  }

  .hero {
    padding: 2.5rem var(--spacing-sm) 2rem;
  }

  .card,
  .service-card {
    padding: 1.5rem;
  }

  .floating-buttons {
    bottom: 1rem;
    right: 0.75rem;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }

  .hero-slider {
    height: 250px;
  }

  .slider-item h1 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
  }

  .slider-item p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .slider-dots {
    bottom: 0.75rem;
  }

  .slider-dot.active {
    width: 28px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-light {
  color: var(--color-text-light);
}

.text-accent {
  color: var(--color-accent);
}

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.py-2 { padding: var(--spacing-md) 0; }
.py-3 { padding: var(--spacing-lg) 0; }
.py-4 { padding: var(--spacing-xl) 0; }

.opacity-75 { opacity: 0.75; }
.opacity-50 { opacity: 0.5; }
