@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #489623;
  --primary-light: #64c934;
  --primary-dark: #254d12;
  
  /* Backgrounds */
  --bg-page: #ffffff;
  --bg-alt: #f4fbf0;
  
  /* Text */
  --text-main: #4b5563;
  --text-heading: #111827;
  --text-muted: #6b7280;
  
  /* Floating Contacts */
  --zalo-blue: #0068FF;
  --messenger-blue: #0084FF;
  --hotline-red: #E53935;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  
  /* Border Radius */
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.text-center {
  text-align: center;
}

.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

/* Navbar */
.navbar {
  background-color: var(--bg-page);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--bg-alt);
}

/* Hero Section */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  background: linear-gradient(rgba(37, 77, 18, 0.7), rgba(37, 77, 18, 0.8)), url('assets/images/hero_banner.png') center/cover no-repeat;
}

.hero h1 {
  color: white;
  font-size: 56px;
  margin-bottom: 24px;
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-inline: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.card {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 24px;
}

.card-title {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.footer-title {
  color: white;
  font-size: 20px;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

/* Floating Contact Widget */
.floating-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9999;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.floating-btn.hotline { background-color: var(--hotline-red); }
.floating-btn.zalo { background-color: var(--zalo-blue); }
.floating-btn.messenger { background-color: var(--messenger-blue); }

.floating-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 70px;
  background: var(--text-heading);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.floating-btn:hover::before {
  opacity: 1;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-heading);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(72, 150, 35, 0.2);
}

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

/* Page Header */
.page-header {
  background-color: var(--bg-alt);
  padding: 80px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Navbar */
  .navbar .container {
    flex-direction: column;
    gap: 12px;
  }
  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
  }
  
  /* Typography */
  h1, h2, h3 {
    word-break: break-word;
  }
  .hero h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .hero p {
    font-size: 16px;
    margin-bottom: 24px;
  }
  .page-header h1 {
    font-size: 32px;
  }
  
  /* Layout */
  .section, .page-header {
    padding: 48px 0;
  }
  .hero {
    height: auto;
    padding: 80px 0;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  
  /* Floating Widget */
  .floating-widget {
    bottom: 16px;
    right: 16px;
    gap: 12px;
    transform: scale(0.85);
    transform-origin: bottom right;
  }
  .floating-btn::before {
    display: none; /* Hide tooltips on touch devices */
  }
}

