/* ========================================
   SILVERLINE TEAMS - Main Stylesheet
   Modern, Responsive, cPanel-ready
======================================== */

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

:root {
  --primary: #1a56db;
  --primary-dark: #1242b0;
  --primary-light: #e8f0fe;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --gradient: linear-gradient(135deg, #1a56db 0%, #3b82f6 50%, #60a5fa 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 86, 219, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* === Top Bar === */
.top-bar {
  background: var(--navy);
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--gray-300);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-left a,
.top-bar-left span {
  color: var(--gray-300);
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-left a:hover {
  color: var(--accent-light);
}

.top-bar-right {
  display: flex;
  gap: 12px;
}

.top-bar-right a {
  color: var(--gray-300);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.top-bar-right a:hover {
  background: var(--primary);
  color: var(--white);
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo img {
  height: 45px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(26, 86, 219, 0.6) 100%);
  z-index: 1;
}

.hero-vector {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 500px;
  opacity: 0.15;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
  padding: 80px 0;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.2rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 .text-gradient {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(90deg, #60a5fa, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Section Headers === */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

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

/* === Industries === */
.industries-section {
  background: var(--gray-50);
}

/* === Services Grid === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--primary);
}

.service-card:hover .service-icon {
  background: var(--gradient);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.93rem;
  margin-bottom: 16px;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  gap: 10px;
}

/* === Optimize Section === */
.optimize-section {
  background: var(--gray-50);
}

.optimize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.optimize-images {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.opt-img-1 {
  width: 55%;
  border-radius: var(--radius-lg);
}

.opt-img-2 {
  width: 40%;
  border-radius: var(--radius-lg);
}

.optimize-content h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.optimize-content > p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.optimize-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.opt-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.opt-feature img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.opt-feature h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.opt-feature p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* === About Section === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  width: 100%;
}

.about-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  opacity: 0.5;
}

.about-content h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.about-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 16px;
}

.about-content p {
  margin-bottom: 14px;
  color: var(--text);
}

.about-content .btn {
  margin-top: 10px;
}

/* === Checklist Section === */
.checklist-section {
  background: var(--gray-50);
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.checklist-content h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.checklist-content > p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.checklist {
  list-style: none;
  margin-bottom: 30px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-weight: 500;
  color: var(--navy);
}

.checklist li i {
  color: var(--primary);
  font-size: 1.1rem;
}

.checklist-cta h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--navy);
}

.checklist-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.checklist-buttons .btn-outline {
  color: var(--primary);
  border-color: var(--primary);
}

.checklist-buttons .btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.checklist-image img {
  border-radius: var(--radius-lg);
  width: 100%;
}

/* === Stats Section === */
.stats-section {
  background: var(--gradient);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  color: var(--white);
  padding: 30px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.9;
}

.stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  display: inline;
}

.stat-suffix {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 6px;
}

/* === CTA Section === */
.cta-section {
  background: var(--navy);
  text-align: center;
}

.cta-content h2 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--gray-300);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* === Page Hero (sub pages) === */
.page-hero {
  background: var(--gradient);
  padding: 80px 0 60px;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.breadcrumb {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.85);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb span {
  margin: 0 6px;
}

/* === Services Detail Page === */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

.service-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

.sd-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--primary);
}

.service-detail-card:hover .sd-icon {
  background: var(--gradient);
  color: var(--white);
}

.service-detail-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-detail-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.services-cta {
  text-align: center;
  padding-top: 20px;
}

.services-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* === About Page === */
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-page-images {
  position: relative;
}

.about-page-images img:first-child {
  border-radius: var(--radius-lg);
  width: 100%;
}

.about-accent-img {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  opacity: 0.5;
}

.about-page-content h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.about-page-content .lead {
  font-weight: 500;
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.about-page-content p {
  margin-bottom: 14px;
}

/* === Offer Grid === */
.offer-section {
  background: var(--gray-50);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.offer-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.offer-card h4 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.offer-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 30px;
}

.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.cc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.contact-card a {
  color: var(--primary);
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.contact-form-wrapper h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  transition: var(--transition);
  background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
  background: var(--white);
}

.contact-form .btn {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success i {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 16px;
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-light);
}

/* === Footer === */
.site-footer {
  background: var(--navy);
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

.footer-shape {
  position: absolute;
  opacity: 0.05;
  pointer-events: none;
}

.footer-shape-1 {
  top: 0;
  left: 0;
  width: 200px;
}

.footer-shape-2 {
  bottom: 0;
  right: 0;
  width: 300px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 40px;
  margin-bottom: 16px;
}

.footer-about p {
  color: var(--gray-300);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-accent {
  color: var(--accent-light);
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--gray-300);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-300);
  font-size: 0.85rem;
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .services-grid,
  .services-detail-grid,
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    z-index: 999;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-content {
    padding: 60px 0;
  }

  .hero {
    min-height: 480px;
  }

  .section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .services-grid,
  .services-detail-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .optimize-grid,
  .about-grid,
  .checklist-grid,
  .about-page-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

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

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
  }

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

  .contact-form-wrapper {
    padding: 24px;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .top-bar-left {
    gap: 10px;
    font-size: 0.75rem;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

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

  .top-bar-inner {
    flex-direction: column;
    gap: 6px;
  }
}
