/* ============================================================
   GREENFIX24H — Global Stylesheet
   Mobile-first, Google Ads optimized
   ============================================================ */

/* ---------- 1. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:   #0D47A1;
  --blue-main:   #1565C0;
  --blue-light:  #1E88E5;
  --blue-pale:   #E3F2FD;
  --orange:      #F57C00;
  --orange-dark: #E65100;
  --green-badge: #2E7D32;
  --text-dark:   #1A1A2E;
  --text-mid:    #37474F;
  --text-light:  #607D8B;
  --white:       #FFFFFF;
  --gray-bg:     #F5F7FA;
  --gray-border: #E0E0E0;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.16);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --transition:  .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- 2. TYPOGRAPHY ---------- */
h1 { font-size: clamp(1.75rem, 5vw, 2.8rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; line-height: 1.4; }
h4 { font-size: 1rem; font-weight: 600; }
p  { font-size: .95rem; color: var(--text-mid); }

.section-title {
  text-align: center;
  margin-bottom: .5rem;
  color: var(--blue-dark);
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: .95rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 3. LAYOUT HELPERS ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section    { padding: 4rem 0; }
.section-alt { background: var(--gray-bg); }

.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.25rem; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(245,124,0,.35);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,124,0,.45); }

.btn-secondary {
  background: var(--white);
  color: var(--blue-dark);
  border: 2px solid var(--blue-dark);
}
.btn-secondary:hover { background: var(--blue-pale); }

.btn-zalo {
  background: #0068FF;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,104,255,.35);
}
.btn-zalo:hover { background: #0052CC; transform: translateY(-2px); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- 5. HEADER / NAVBAR ---------- */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: var(--shadow-md); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue-dark);
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--blue-dark);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}
.logo span.green { color: #2E7D32; }

.nav-menu {
  display: none;
  gap: .25rem;
}
.nav-menu a {
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--blue-main); background: var(--blue-pale); }

.nav-cta { display: none; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  padding: 1rem;
  gap: .25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}
.mobile-menu a:hover { background: var(--blue-pale); color: var(--blue-main); }
.mobile-menu .mobile-cta {
  margin-top: .5rem;
  background: var(--orange);
  color: var(--white);
  text-align: center;
  border-radius: 50px;
  font-weight: 700;
  padding: .85rem;
}

@media (min-width: 768px) {
  .nav-menu { display: flex; }
  .nav-cta  { display: flex; gap: .5rem; }
  .hamburger { display: none; }
}

/* ---------- 6. HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1565C0 60%, #1E88E5 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center top;
  opacity: .25;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,71,161,.85) 0%, rgba(21,101,192,.7) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
  padding: 3rem 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero h1 span { color: #FFD54F; }
.hero-sub {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.hero-stat {
  color: var(--white);
  text-align: center;
}
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: #FFD54F; }
.hero-stat span   { font-size: .8rem; opacity: .85; }

/* ---------- 7. TRUST BAR ---------- */
.trust-bar {
  background: var(--blue-dark);
  padding: 1rem 0;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem 2rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-size: .88rem;
  font-weight: 600;
}
.trust-item .icon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ---------- 8. SERVICE CARDS ---------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-border);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-light); }
.service-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
}
.service-card-body { padding: 1.25rem; }
.service-card-icon {
  width: 48px; height: 48px;
  background: var(--blue-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: .75rem;
}
.service-card h3 { color: var(--blue-dark); margin-bottom: .4rem; font-size: 1rem; }
.service-card p  { font-size: .88rem; margin-bottom: 1rem; }
.service-card .price-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-size: .82rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}
.service-card a {
  color: var(--blue-main);
  font-size: .88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: var(--transition);
}
.service-card a:hover { color: var(--orange); }

/* ---------- 9. WHY US ---------- */
.why-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1rem;
}
.why-icon.blue  { background: var(--blue-pale); }
.why-icon.orange{ background: #FFF3E0; }
.why-icon.green { background: #E8F5E9; }
.why-card h3 { color: var(--blue-dark); margin-bottom: .5rem; }

/* ---------- 10. GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: rgba(13,71,161,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
  color: var(--white); font-size: 1.5rem;
}
.gallery-item:hover .overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  color: var(--white); font-size: 2rem; cursor: pointer;
  background: rgba(255,255,255,.1); border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ---------- 11. PROCESS ---------- */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .process-steps {
    flex-direction: row;
    align-items: flex-start;
  }
}
.process-step {
  flex: 1;
  text-align: center;
  position: relative;
}
.process-step::after {
  content: '→';
  position: absolute;
  right: -1rem; top: 1.5rem;
  font-size: 1.5rem;
  color: var(--blue-light);
  display: none;
}
@media (min-width: 768px) { .process-step:not(:last-child)::after { display: block; } }

.step-num {
  width: 60px; height: 60px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 16px rgba(13,71,161,.3);
}
.process-step h3 { color: var(--blue-dark); margin-bottom: .4rem; }

/* ---------- 12. AREA COVERAGE ---------- */
.area-section { background: var(--blue-dark); }
.area-section .section-title { color: var(--white); }
.area-section .section-subtitle { color: rgba(255,255,255,.75); }

.area-group { margin-bottom: 1.5rem; }
.area-group-title {
  color: #FFD54F;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.area-tag {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  padding: .3rem .7rem;
  border-radius: 50px;
  transition: var(--transition);
  cursor: default;
}
.area-tag:hover { background: rgba(255,255,255,.2); color: var(--white); }

/* ---------- 13. CONTACT FORM ---------- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text-dark);
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-main);
  box-shadow: 0 0 0 3px rgba(21,101,192,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; padding: 1rem; font-size: 1rem; }

/* ---------- 14. FOOTER ---------- */
footer {
  background: #0A1628;
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .9rem; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { font-size: .88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact li {
  display: flex; align-items: flex-start;
  gap: .6rem; font-size: .88rem; margin-bottom: .6rem;
}
.footer-contact .icon { font-size: 1rem; margin-top: .1rem; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--blue-main); color: var(--white); }

/* ---------- 15. STICKY CTA ---------- */
.sticky-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: flex-end;
}
.sticky-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  color: var(--white);
}
.sticky-btn.call { background: var(--orange); }
.sticky-btn.zalo { background: #0068FF; }
.sticky-btn:hover { transform: scale(1.05); }
.sticky-btn .label { display: none; }
@media (min-width: 480px) { .sticky-btn .label { display: inline; } }

/* ---------- 16. PAGE HERO (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 100%);
  padding: 3.5rem 0;
  text-align: center;
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: .5rem; }
.page-hero p  { color: rgba(255,255,255,.8); font-size: 1rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .75rem;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- 17. PRICE TABLE ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table thead { background: var(--blue-dark); color: var(--white); }
.price-table th { padding: 1rem 1.25rem; text-align: left; font-size: .9rem; }
.price-table td { padding: .9rem 1.25rem; font-size: .9rem; border-bottom: 1px solid var(--gray-border); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:nth-child(even) { background: var(--gray-bg); }
.price-table tbody tr:hover { background: var(--blue-pale); }
.price-from { color: var(--blue-dark); font-weight: 700; }
.price-note { font-size: .8rem; color: var(--text-light); }

/* ---------- 18. BADGE / LABEL ---------- */
.badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
}
.badge-blue   { background: var(--blue-pale); color: var(--blue-dark); }
.badge-orange { background: #FFF3E0; color: var(--orange-dark); }
.badge-green  { background: #E8F5E9; color: var(--green-badge); }

/* ---------- 19. REVIEW STARS ---------- */
.stars { color: #FFC107; font-size: 1rem; letter-spacing: .05em; }

/* ---------- 20. SCROLL ANIMATION ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- 21. BACK TO TOP ---------- */
#back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 40px; height: 40px;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  z-index: 998;
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--blue-light); }

/* ---------- 22. VAT BADGE ---------- */
.vat-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: linear-gradient(135deg, #1B5E20, #2E7D32);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 50px;
  letter-spacing: .03em;
}

/* ---------- 23. UTILITY ---------- */
.text-center { text-align: center; }
.text-blue   { color: var(--blue-dark); }
.text-orange { color: var(--orange); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
