/* ============================================
   SMO SOLUTIONS - style.css
   Màu thương hiệu: cam #F58220, xám đen #33363B
   ============================================ */
:root {
  --brand: #f58220;
  --brand-dark: #d96c0e;
  --dark: #33363b;
  --darker: #26282c;
  --text: #3d4045;
  --muted: #7a7f87;
  --line: #e6e8eb;
  --bg-soft: #f7f8f9;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(38, 40, 44, .08);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--darker);
  color: #c8cbd0;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.topbar a:hover { color: var(--brand); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; }
.brand .brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: .5px;
  line-height: 1.1;
}
.brand .brand-name span { color: var(--brand); }
.brand .brand-slogan {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .2px;
}

/* Nav */
.main-nav ul { display: flex; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 26px 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  letter-spacing: .3px;
  transition: color .2s;
}
.main-nav a:hover, .main-nav li.active > a { color: var(--brand); }

/* Dropdown */
.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border-top: 3px solid var(--brand);
  box-shadow: var(--shadow);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s;
}
.main-nav li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .dropdown a {
  padding: 11px 18px;
  text-transform: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.main-nav .dropdown li:last-child a { border-bottom: none; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--darker);
}
.hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
  background-size: cover;
  background-position: center;
}
.hero .slide.active { opacity: 1; position: relative; }
.hero .slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 22, 25, .75) 0%, rgba(20, 22, 25, .25) 70%);
}
.hero .slide-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 110px 20px;
  color: var(--white);
}
.hero h1, .hero .h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.hero h1 span { color: var(--brand); }
.hero p {
  font-size: 19px;
  color: #e3e5e8;
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active { background: var(--brand); border-color: var(--brand); }

/* Page banner (trang con) */
.page-banner {
  background: linear-gradient(90deg, rgba(20, 22, 25, .85), rgba(20, 22, 25, .55)), url("../img/sv-banner.svg") center/cover;
  color: var(--white);
  padding: 56px 0;
}
.page-banner h1 { font-size: 34px; text-transform: uppercase; }
.breadcrumb { font-size: 13px; color: #b8bcc2; margin-top: 6px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { margin: 0 8px; color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 13px 30px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn.btn-outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}
.btn.btn-outline:hover { background: var(--brand); color: var(--white); }
.btn.btn-sm { padding: 9px 22px; font-size: 12px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 {
  font-size: 30px;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand);
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-head p { color: var(--muted); margin-top: 14px; }

/* Grid */
.grid { display: grid; gap: 28px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(38, 40, 44, .14); }
.card .card-img { height: 210px; overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 19px; color: var(--dark); margin-bottom: 10px; }
.card h3 a:hover { color: var(--brand); }
.card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.card .card-more {
  margin-top: 18px;
  color: var(--brand);
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
}
.card .card-more:hover { color: var(--brand-dark); }
.card .card-date { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; display: block; }

/* ---------- About (home) ---------- */
.about-flex { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-flex h2 {
  font-size: 30px;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.about-flex h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand);
  border-radius: 2px;
  margin-top: 12px;
}
.about-flex p { margin-bottom: 14px; }
.about-flex .about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; }
.stat {
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px 10px;
}
.stat .num { font-size: 30px; font-weight: 800; color: var(--brand); }
.stat .label { font-size: 13px; color: var(--muted); }

/* ---------- Article / content page ---------- */
.content-page { max-width: 860px; margin: 0 auto; }
.content-page h2 { font-size: 24px; color: var(--dark); margin: 34px 0 14px; }
.content-page h3 { font-size: 19px; color: var(--dark); margin: 26px 0 10px; }
.content-page p { margin-bottom: 16px; }
.content-page ul { list-style: none; margin: 0 0 16px; }
.content-page ul li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
}
.content-page ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.content-page ol { margin: 0 0 16px 22px; }
.content-page ol li { margin-bottom: 8px; }
.content-page img { border-radius: var(--radius); margin: 10px auto 20px; box-shadow: var(--shadow); }
.content-page .article-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.content-page figure figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: -12px;
  margin-bottom: 20px;
}

/* Service detail two-col row */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-row img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; }
.service-row h2 { font-size: 24px; color: var(--dark); margin-bottom: 12px; text-transform: uppercase; }
.service-row h2 span { color: var(--brand); }
.service-row ul { margin-top: 8px; }
.service-row ul li { padding-left: 26px; position: relative; margin-bottom: 7px; font-size: 15px; }
.service-row ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.service-row.reverse .sr-img { order: 2; }

/* ---------- About page ---------- */
.intro-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.intro-grid h2 { font-size: 30px; color: var(--dark); text-transform: uppercase; margin-bottom: 18px; }
.intro-grid h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--brand);
  border-radius: 2px;
  margin-top: 12px;
}
.intro-grid p { margin-bottom: 14px; }
.intro-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.intro-stats .stat { padding: 30px 14px; border-bottom: 3px solid var(--brand); }
.since-badge {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 30px;
  padding: 7px 18px;
  margin-bottom: 16px;
}
.since-badge span { color: var(--brand); }

.icon-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.icon-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--brand);
}
.icon-tile .ic {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(245, 130, 32, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.icon-tile h3 { font-size: 16px; color: var(--dark); margin-bottom: 6px; }
.icon-tile p { font-size: 13.5px; color: var(--muted); }

.milestones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.milestone {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  border-top: 4px solid var(--brand);
}
.milestone .year { font-size: 26px; font-weight: 800; color: var(--brand); margin-bottom: 8px; }
.milestone h3 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.milestone p { font-size: 14.5px; color: var(--muted); }

@media (max-width: 992px) {
  .intro-grid { grid-template-columns: 1fr; }
  .milestones { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-info .ci-item {
  display: flex;
  gap: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.contact-info .ci-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.contact-info h3 { font-size: 16px; color: var(--dark); }
.contact-info p { font-size: 14.5px; color: var(--muted); }
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-size: 13.5px; font-weight: 600; color: var(--dark); display: block; margin-bottom: 5px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.map-embed {
  margin-top: 46px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  color: var(--white);
  padding: 44px 0;
}
.cta-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-strip h2 { font-size: 26px; text-transform: uppercase; }
.cta-strip p { opacity: .92; }
.cta-strip .btn { background: var(--white); color: var(--brand); }
.cta-strip .btn:hover { background: var(--darker); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: #b6bac0; font-size: 14.5px; }
.footer-main { padding: 56px 0 40px; }
.footer-main .grid { gap: 40px; }
@media (min-width: 993px) {
  .footer-main .grid.cols-3 { grid-template-columns: 1.5fr 1fr 1.1fr; }
}
.site-footer h3 {
  color: var(--white);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 18px;
}
.site-footer h3::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin-top: 8px;
}
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--brand); }
.site-footer .f-contact li { display: flex; gap: 10px; }
.site-footer .f-contact b { color: #dfe1e4; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.newsletter-form { display: flex; margin-top: 6px; }
.newsletter-form input {
  flex: 1;
  border: none;
  border-radius: 30px 0 0 30px;
  padding: 11px 16px;
  font-size: 14px;
  min-width: 0;
}
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  border: none;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  padding: 0 20px;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
}
.newsletter-form button:hover { background: var(--brand-dark); }
.footer-bottom {
  border-top: 1px solid #3a3d42;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #8d9198;
}

/* ---------- Back to top ---------- */
#backtop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 90;
  box-shadow: var(--shadow);
}
#backtop.show { opacity: 1; visibility: visible; }
#backtop:hover { background: var(--brand-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .about-flex, .contact-grid, .service-row { grid-template-columns: 1fr; }
  .service-row.reverse .sr-img { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }
  .hero .slide-inner { padding: 80px 20px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    max-height: calc(100vh - 106px);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 22px; border-bottom: 1px solid var(--line); }
  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    border-radius: 0;
    background: var(--bg-soft);
  }
  .main-nav .dropdown a { padding-left: 40px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 16px; }
  .section { padding: 52px 0; }
  .page-banner h1 { font-size: 26px; }
  .topbar .container { justify-content: center; }
}
