/* =============================================
   SmartClean Systems – Main Stylesheet
   ============================================= */

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

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

body {
  font-family: 'Barlow', sans-serif;
  color: #1a2744;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* --- CSS Variables --- */
:root {
  --blue-dark:    #0c2d6b;
  --blue-mid:     #1d4ed8;
  --blue-bright:  #2A83D8;
  --blue-light:   #dbeafe;
  --blue-pale:    #eff6ff;
  --white:        #ffffff;
  --text-dark:    #0f1f3d;
  --text-body:    #334155;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(13,41,108,0.10);
  --shadow-lg:    0 8px 40px rgba(13,41,108,0.14);
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --transition:   0.22s ease;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--blue-mid);
  color: #fff;
  border-color: var(--blue-mid);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29,78,216,0.35);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue-mid);
  border-color: var(--blue-mid);
}
.btn-outline-blue:hover {
  background: var(--blue-pale);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-full { width: 100%; justify-content: center; }

/* --- Section Shared --- */
.section { padding: 80px 0; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-mid);
  text-align: center;
  margin-bottom: 10px;
}
.section-label.light { color: #93c5fd; }

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.1;
}
.section-title.light { color: #fff; }

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--blue-mid);
  border-radius: 2px;
  margin: 16px auto 48px;
}
.section-divider.light { background: #60a5fa; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(12,45,107,0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon svg { flex-shrink: 0; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-smart {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.01em;
}

.logo-clean { color: var(--blue-bright); }

.logo-icon svg {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.logo-systems {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue-mid);
  margin-top: 1px;
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Nav */
.main-nav { margin-left: auto; }

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-mid);
  background: var(--blue-pale);
}

.btn-quote {
  margin-left: 8px;
  flex-shrink: 0;
  font-size: 0.85rem;
  padding: 9px 18px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  margin-top: 70px;
  background: linear-gradient(135deg, #0c2d6b 0%, #1a4fa0 55%, #1e5dbf 100%);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(42,131,216,0.25) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(30,93,191,0.3) 0%, transparent 40%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 24px 64px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(42,131,216,0.25);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 40px;
  border: 1px solid rgba(147,197,253,0.3);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-highlight {
  display: block;
  color: #60a5fa;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Hero illustration */
.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(4px);
  width: 100%;
  max-width: 400px;
}

.hero-illustration {
  width: 100%;
  height: auto;
}

/* Hero stats bar */
.hero-stats {
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 2;
}

.hero-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 24px;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
  gap: 3px;
}

.stat-item strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-item span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* =============================================
   SERVICES
   ============================================= */
.services { background: #f8faff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: default;
}

.service-card:hover {
  border-color: var(--blue-bright);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   BEFORE & AFTER
   ============================================= */
.before-after { background: #fff; }

.ba-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.ba-pair {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.ba-pair:hover { box-shadow: var(--shadow-md); }

.ba-img {
  position: relative;
  overflow: hidden;
}

.ba-placeholder {
  width: 100%;
  aspect-ratio: 1 / 0.75;
  overflow: hidden;
}

.ba-placeholder svg { width: 100%; height: 100%; }

.ba-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
}

.before .ba-label {
  background: #1e293b;
  color: #fff;
}

.after .ba-label {
  background: var(--blue-mid);
  color: #fff;
}

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

/* =============================================
   WHY CHOOSE US
   ============================================= */
.why-us {
  background: linear-gradient(135deg, #0c2d6b 0%, #1a4fa0 100%);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.why-card {
  text-align: center;
  padding: 8px 12px;
}

.why-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}

.why-icon svg { width: 100%; height: 100%; }

.why-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

/* =============================================
   CONTACT CTA
   ============================================= */
.contact-cta {
  background: var(--blue-pale);
  padding: 80px 0;
}

.cta-header {
  text-align: center;
  margin-bottom: 44px;
}

.cta-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.cta-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.cta-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}

.cta-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.cta-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-mid);
}

.cta-info-item > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.cta-info-item strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  word-break: break-all;
}

.cta-info-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-md);
  max-width: 820px;
  margin: 0 auto;
}

.contact-form-wrap h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 28px;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { margin-bottom: 20px; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-success.show { display: flex; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #071427;
  padding-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-top: 14px;
}

.footer-links h4,
.footer-service-area h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 16px;
}

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

.footer-links ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links ul li a:hover { color: #fff; }

.footer-service-area p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.footer-bottom {
  padding: 18px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-bottom a:hover { color: #fff; }

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-mid);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(29,78,216,0.4);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  transform: translateY(12px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* =============================================
   MOBILE NAV OVERLAY
   ============================================= */
@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .hamburger { display: flex; }

  .btn-quote { display: none; }

  .header-inner { gap: 16px; }
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Small Tablet */
@media (max-width: 768px) {
  .section { padding: 60px 0; }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 56px 24px 48px;
    text-align: center;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }

  .hero-actions { justify-content: center; }

  .hero-image-wrap { display: none; }

  .hero-stats-inner { gap: 0; }
  .stat-item { padding: 0 20px; }
  .stat-divider { display: none; }
  .hero-stats-inner { justify-content: space-around; }

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

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

  .cta-info-grid { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .contact-form-wrap { padding: 28px 24px; }
}

/* Mobile */
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service-card { padding: 20px 14px 18px; }

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

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

  .form-row { grid-template-columns: 1fr; }

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

  .hero-stats-inner { flex-wrap: wrap; gap: 12px; padding: 16px 24px; }
  .stat-item { padding: 0 12px; }

  .footer-bottom .container { flex-direction: column; text-align: center; }

  .back-to-top { bottom: 16px; right: 16px; }
}

@media (max-width: 380px) {
  .services-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
