/* ============================================================
   NetSol Managed Backup — Style Sheet
   Mirrors rmm.netsol.co.th design language
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #0066cc;
  --blue-dark:   #004fa3;
  --blue-deeper: #0a2550;
  --blue-light:  #e8f2ff;
  --accent:      #00aa44;
  --gray-dark:   #333333;
  --gray-mid:    #666666;
  --gray-light:  #f5f7fa;
  --white:       #ffffff;
  --border:      #dde4ee;
  --shadow:      0 4px 20px rgba(0,0,0,.10);
  --radius:      8px;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--blue-deeper); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { color: var(--gray-mid); }

/* ---------- Layout helpers ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section-alt { background: var(--gray-light); }
.section-dark { background: var(--blue-deeper); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.80); }

.section-heading { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.section-heading h2 { margin-bottom: 12px; }
.section-heading p  { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .15s;
  cursor: pointer;
  border: none;
}
.btn-primary  { background: var(--blue); color: var(--white); }
.btn-primary:hover  { background: var(--blue-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover  { background: var(--white); color: var(--blue); transform: translateY(-1px); }
.btn-sm { padding: 9px 20px; font-size: .88rem; }

/* ---------- Header / Nav ---------- */
#header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 40px; width: auto; }
.logo-tagline {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-dark);
  white-space: nowrap;
}

nav { display: flex; align-items: center; gap: 4px; }

nav a.nav-link {
  color: var(--gray-dark);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
nav a.nav-link:hover,
nav a.nav-link.active { background: var(--blue-light); color: var(--blue); }

.lang-switcher {
  display: flex; align-items: center; gap: 6px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.lang-switcher a {
  font-size: .82rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  color: var(--gray-mid);
  transition: background .15s;
}
.lang-switcher a.active,
.lang-switcher a:hover { background: var(--blue); color: var(--white); }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: 8px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gray-dark); margin: 5px 0;
  transition: transform .3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex; align-items: center;
  background: var(--blue-deeper);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://webres.netsol.co.th/images/hero-backup.jpg');
  background-size: cover; background-position: center;
  opacity: .28;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.25);
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 span { color: #5fb3ff; }
.hero p  { color: rgba(255,255,255,.85); font-size: 1.12rem; margin-bottom: 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--blue); padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat-item {
  text-align: center;
  padding: 12px 24px;
  border-right: 1px solid rgba(255,255,255,.2);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--white); display: block; line-height: 1; }
.stat-lbl { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: 4px; display: block; }

/* ---------- Service cards grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: 8px; color: var(--blue-deeper); }
.card p   { font-size: .92rem; }

/* ---------- Feature row (image + text) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.feature-img img { width: 100%; height: auto; display: block; }
.feature-text h2 { margin-bottom: 16px; }
.feature-text p  { margin-bottom: 20px; }
.feature-text .btn { margin-top: 28px; }
.feature-list { list-style: none; }
.feature-list li {
  padding: 7px 0;
  padding-left: 26px;
  position: relative;
  font-size: .95rem;
  color: var(--gray-mid);
}
.feature-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Why backup / data-loss stats ---------- */
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.risk-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-top: 4px solid #5fb3ff;
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
}
.risk-pct {
  font-size: 3.5rem;
  font-weight: 800;
  color: #5fb3ff;
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}
.risk-card h3 { color: var(--white); margin-bottom: 10px; font-size: 1.1rem; }
.risk-card p  { color: rgba(255,255,255,.72) !important; font-size: .92rem; }

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
/* continuous connector line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 10px);
  right: calc(12.5% + 10px);
  height: 2px;
  background: linear-gradient(90deg, rgba(95,179,255,.6), rgba(95,179,255,.2));
  z-index: 0;
}
.step {
  text-align: center;
  padding: 32px 20px 28px;
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  transition: background .2s, border-color .2s;
}
.step:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(95,179,255,.4);
}
.step-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #0077ee, #5fb3ff);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px rgba(95,179,255,.15), 0 4px 16px rgba(0,119,238,.4);
}
.step h3 {
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: .01em;
}
.step p { color: rgba(255,255,255,.68); font-size: .88rem; line-height: 1.6; }

/* ---------- Pricing (single scalable price) ---------- */
.pricing-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
  overflow: hidden;
  border: 1px solid var(--border);
}
.pricing-single-left {
  background: var(--blue-deeper);
  padding: 52px 48px;
  color: var(--white);
}
.pricing-from-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
}
.pricing-from-amount {
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-from-amount span {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,.65);
}
.pricing-from-sub {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 24px;
}
.pricing-from-desc {
  font-size: .95rem;
  color: rgba(255,255,255,.80) !important;
  line-height: 1.65;
  margin-bottom: 32px;
}
.pricing-single-right {
  padding: 52px 48px;
}
.pricing-single-right h3 {
  font-size: 1.1rem;
  color: var(--blue-deeper);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .85rem;
}
.pricing-includes {
  list-style: none;
  margin: 24px 0 32px;
}
.pricing-includes li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}
.pricing-includes li:last-child { border-bottom: none; }
.pricing-includes li::before {
  content: '✓';
  position: absolute; left: 0;
  color: #5fb3ff;
  font-weight: 700;
  font-size: 1rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}
.pricing-table tr {
  border-bottom: 1px solid var(--border);
}
.pricing-table tr:last-child { border-bottom: none; }
.pricing-table td {
  padding: 14px 0;
  vertical-align: middle;
}
.pricing-table td strong {
  display: block;
  color: var(--blue-deeper);
  font-size: .95rem;
  margin-bottom: 2px;
}
.pricing-table td span {
  font-size: .82rem;
  color: var(--gray-mid);
}
.pricing-table .price-col {
  text-align: right;
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  padding-left: 16px;
}
.pricing-table .price-col em {
  font-style: normal;
  font-size: .75rem;
  font-weight: 400;
  color: var(--gray-mid);
  display: block;
}
.pricing-table-contact .price-col a {
  font-size: .9rem;
  font-weight: 600;
  background: var(--blue-light);
  color: var(--blue);
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-table-contact .price-col a:hover { background: var(--blue); color: var(--white); }
.pricing-table-note {
  font-size: .8rem;
  color: var(--gray-mid);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .pricing-single { grid-template-columns: 1fr; }
  .pricing-single-left, .pricing-single-right { padding: 36px 28px; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none; border: none;
  text-align: left;
  padding: 20px 40px 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-deeper);
  cursor: pointer;
  position: relative;
  display: block;
}
.faq-q::after {
  content: '+';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--blue);
  transition: transform .25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }
.faq-a p { font-size: .95rem; }

/* ---------- Contact form ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p  { margin-bottom: 24px; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px;
}
.contact-detail-icon { font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.contact-detail p { margin: 0; font-size: .92rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--blue-deeper); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .93rem;
  color: var(--gray-dark);
  transition: border-color .2s;
  outline: none;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit-wrap { margin-top: 4px; }
#form-message {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .92rem;
  font-weight: 500;
  display: none;
}
#form-message.success { background: #e6f9ee; color: #1a7a3c; border: 1px solid #a3d9b6; display: block; }
#form-message.error   { background: #fde8e8; color: #b01c1c; border: 1px solid #f5b0b0; display: block; }

/* ---------- Footer ---------- */
footer {
  background: oklch(0.15 0.07 260);
  color: rgba(255,255,255,.75);
  padding: 0;
}
.footer-accent {
  height: 4px;
  background: linear-gradient(90deg, oklch(0.52 0.18 256), oklch(0.68 0.17 252));
}
.footer-inner { padding: 24px 32px; }
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.footer-left img { height: 40px; width: auto; flex-shrink: 0; }
.footer-info .footer-company {
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  display: block;
  margin-bottom: 2px;
}
.footer-info .footer-address {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
}
.footer-phone a {
  color: var(--white);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s;
}
.footer-phone a:hover { color: rgba(255,255,255,.75); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 16px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.55); }
.footer-lang { display: flex; gap: 0; }
.footer-lang a {
  padding: 4px 10px;
  border-radius: 0;
  font-size: .8rem;
  font-weight: 400;
  color: rgba(255,255,255,.6);
  background: transparent;
  transition: background .15s, color .15s;
}
.footer-lang a.active { background: rgba(255,255,255,.15); color: var(--white); font-weight: 600; }
.footer-lang a:hover { color: var(--white); }

/* ---------- Stats source citation ---------- */
.risk-source {
  text-align: center;
  margin-top: 36px;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.risk-source a {
  color: rgba(255,255,255,.55);
  text-decoration: underline;
  transition: color .15s;
}
.risk-source a:hover { color: rgba(255,255,255,.85); }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .footer-main { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-phone { align-self: flex-start; }
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.reverse { direction: ltr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .risk-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); padding: 16px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
  nav.open { display: flex; }
  nav a.nav-link { padding: 12px 16px; border-radius: 6px; }
  .lang-switcher { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; margin-left: 0; }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.2); }
  .stat-item:last-child { border-bottom: none; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 52px 0; }
}
