/* ===== Watch Guard — Main Stylesheet ===== */
:root {
  --bg-deep: #111318;
  --bg-card: #181B22;
  --bg-card-alt: #1E222B;
  --bg-footer: #0C0D13;
  --primary: #4D8FD0;
  --primary-hover: #5DA0E0;
  --accent: #E08C5A;
  --accent-hover: #EAA06F;
  --surface: #F4F1EC;
  --surface-alt: #EAE6E0;
  --text-on-dark: #E2DFD9;
  --text-on-light: #1A1B1F;
  --text-muted: #8B909A;
  --text-muted-light: #A8ADB5;
  --border-dark: #2A2E38;
  --border-light: #E0DBD4;
  --success: #5EA87A;
  --warning: #D4A34A;
  --error: #D45A5A;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 2px 12px rgba(0,0,0,0.18);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-on-dark);
  background-color: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

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

h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION (.navbar class only — never bare nav selector) ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17,19,24,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
  transition: background-color var(--transition);
}
.navbar.scrolled {
  background-color: var(--bg-deep);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar .logo {
  font-size: 1.4em;
  font-weight: 800;
  color: var(--surface);
  letter-spacing: -0.02em;
}
.navbar .logo span { color: var(--accent); }
.navbar .nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.navbar .nav-links a {
  color: var(--text-muted-light);
  font-size: 0.95em;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.navbar .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.navbar .nav-links a:hover { color: var(--surface); }
.navbar .nav-links a:hover::after { width: 100%; }
.navbar .nav-links .btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.navbar .nav-links .btn-nav:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}
.navbar .nav-links .btn-nav::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--surface);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .navbar .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border-dark);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
  }
  .navbar .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--bg-deep) 0%, #161A25 40%, #1A1F2E 100%);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(77,143,208,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(224,140,90,0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(77,143,208,0.12);
  color: var(--primary);
  font-size: 0.85em;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(77,143,208,0.2);
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}
.hero-section h1 {
  font-size: 3.2em;
  font-weight: 800;
  color: var(--surface);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero-section h1 span { color: var(--accent); }
.hero-section .hero-text {
  color: var(--text-muted-light);
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(224,140,90,0.25);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(224,140,90,0.35); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--surface);
  border: 2px solid var(--border-dark);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-card .stat-row {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
}
.hero-card .stat h3 {
  font-size: 2em;
  color: var(--accent);
  font-weight: 700;
}
.hero-card .stat p {
  font-size: 0.85em;
  color: var(--text-muted);
  margin-top: 4px;
}
.hero-card .card-divider {
  height: 1px;
  background: var(--border-dark);
  margin: 20px 0;
}
.hero-card .feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-card .feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-on-dark);
  font-size: 0.95em;
}
.hero-card .feature-list li .check-icon {
  width: 20px;
  height: 20px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-card .feature-list li .check-icon::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

@media (max-width: 900px) {
  .hero-section .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-section h1 { font-size: 2.2em; }
  .hero-section .hero-text { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-visual { justify-content: center; }
  .hero-section::before { width: 300px; height: 300px; top: -20%; right: -20%; }
  .hero-section::after { width: 200px; height: 200px; }
}

/* ===== SECTION COMMON ===== */
section { padding: 100px 0; }
.section-label {
  display: inline-block;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.4em;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--surface);
}
.section-subtitle {
  color: var(--text-muted-light);
  font-size: 1.1em;
  max-width: 640px;
  margin-bottom: 50px;
}

/* ===== SERVICES SECTION (.services-section class — never bare #services) ===== */
.services-section {
  background: var(--bg-card);
}
.services-section .section-header { text-align: center; margin-bottom: 60px; }
.services-section .section-header .section-subtitle { margin: 0 auto 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6em;
}
.service-icon.blue { background: rgba(77,143,208,0.15); color: var(--primary); }
.service-icon.orange { background: rgba(224,140,90,0.15); color: var(--accent); }
.service-icon.green { background: rgba(94,168,122,0.15); color: var(--success); }
.service-card h3 { font-size: 1.2em; margin-bottom: 12px; color: var(--surface); }
.service-card p { color: var(--text-muted); font-size: 0.95em; line-height: 1.7; }

@media (max-width: 820px) {
  .services-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ===== ABOUT SECTION (.about-section class) ===== */
.about-section {
  background: var(--bg-deep);
}
.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-dark);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image .about-icon {
  font-size: 5em;
  color: #314E6D;
}
.about-image .about-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9em;
  box-shadow: 0 8px 24px rgba(224,140,90,0.3);
}
.about-content p {
  color: var(--text-muted-light);
  margin-bottom: 18px;
  font-size: 1em;
  line-height: 1.8;
}
.about-stats { display: flex; gap: 32px; margin-top: 28px; }
.about-stats .astat h3 { font-size: 1.8em; color: var(--accent); }
.about-stats .astat p { font-size: 0.85em; color: var(--text-muted); margin: 0; }

@media (max-width: 820px) {
  .about-section .container { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 16/9; }
  .about-stats { flex-wrap: wrap; gap: 24px; }
}

/* ===== INDUSTRIES SECTION (.industries-section class) ===== */
.industries-section {
  background: var(--bg-card);
}
.industries-section .section-header { text-align: center; margin-bottom: 60px; }
.industries-section .section-header .section-subtitle { margin: 0 auto 0; }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.industry-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: border-color var(--transition);
}
.industry-card:hover { border-color: var(--primary); }
.industry-card .ind-icon {
  font-size: 2em;
  margin-bottom: 12px;
}
.industry-card h4 {
  font-size: 0.95em;
  color: var(--surface);
  margin-bottom: 8px;
}
.industry-card p {
  font-size: 0.82em;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .industries-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}

/* ===== PROCESS SECTION (.process-section class) ===== */
.process-section {
  background: var(--bg-deep);
}
.process-section .section-header { text-align: center; margin-bottom: 60px; }
.process-section .section-header .section-subtitle { margin: 0 auto 0; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step .step-number {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  font-weight: 800;
  margin: 0 auto 16px;
  background: var(--bg-card-alt);
  color: var(--accent);
  border: 2px solid var(--border-dark);
}
.process-step .step-number.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.process-step h4 { color: var(--surface); margin-bottom: 8px; font-size: 1.05em; }
.process-step p { color: var(--text-muted); font-size: 0.88em; line-height: 1.6; }

@media (max-width: 900px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .process-steps { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}

/* ===== TESTIMONIALS SECTION (.testimonials-section class) ===== */
.testimonials-section {
  background: var(--bg-card);
}
.testimonials-section .section-header { text-align: center; margin-bottom: 60px; }
.testimonials-section .section-header .section-subtitle { margin: 0 auto 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
}
.testimonial-card .quote-mark {
  font-size: 3em;
  line-height: 0.5;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.testimonial-card p {
  color: var(--text-muted-light);
  font-size: 0.93em;
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card .author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85em;
}
.testimonial-card .author-info strong {
  display: block;
  color: var(--surface);
  font-size: 0.9em;
}
.testimonial-card .author-info span {
  color: var(--text-muted);
  font-size: 0.78em;
}

@media (max-width: 820px) {
  .testimonials-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ===== CTA SECTION (.cta-section class) ===== */
.cta-section {
  background: linear-gradient(135deg, #151B28 0%, #1C2234 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(77,143,208,0.06) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: 2.4em;
  color: var(--surface);
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--text-muted-light);
  font-size: 1.1em;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-section .btn { display: inline-flex; }

/* ===== CONTACT SECTION (.contact-section class) ===== */
.contact-section {
  background: var(--bg-deep);
}
.contact-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h2 {
  font-size: 2em;
  color: var(--surface);
  margin-bottom: 16px;
}
.contact-info > p {
  color: var(--text-muted-light);
  margin-bottom: 32px;
  line-height: 1.7;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--text-muted-light);
  font-size: 0.95em;
}
.contact-detail .detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  flex-shrink: 0;
}
.contact-detail .detail-icon.email-bg { background: rgba(77,143,208,0.15); color: var(--primary); }
.contact-detail .detail-icon.phone-bg { background: rgba(224,140,90,0.15); color: var(--accent); }
.contact-detail .detail-icon.location-bg { background: rgba(94,168,122,0.15); color: var(--success); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  color: var(--text-muted-light);
  font-size: 0.88em;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--text-on-dark);
  font-size: 1em;
  font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-status {
  margin-top: 16px;
  font-size: 0.9em;
  padding: 10px 16px;
  border-radius: 6px;
  display: none;
}
.form-status.success { display: block; background: rgba(94,168,122,0.15); color: var(--success); border: 1px solid rgba(94,168,122,0.3); }
.form-status.error { display: block; background: rgba(212,90,90,0.15); color: var(--error); border: 1px solid rgba(212,90,90,0.3); }

@media (max-width: 820px) {
  .contact-section .container { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-dark);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}
.footer-brand .logo {
  font-size: 1.5em;
  font-weight: 800;
  color: var(--surface);
  margin-bottom: 12px;
  display: inline-block;
}
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { color: var(--text-muted); font-size: 0.9em; line-height: 1.7; max-width: 340px; }
.footer-links h4 {
  color: var(--surface);
  font-size: 0.95em;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
  color: var(--text-muted);
  font-size: 0.9em;
  transition: color var(--transition);
}
.footer-links ul li a:hover { color: var(--surface); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  color: var(--text-muted);
  font-size: 0.82em;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===== SCROLL REVEAL ===== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
