/**
* Template Name: DigitalCloudBytes
* Professional styles overhaul
*/

/* ===== Design Tokens ===== */
:root {
  --dcb-primary: #388DA8;
  --dcb-primary-dark: #2a7089;
  --dcb-dark: #2C3E50;
  --dcb-text: #333;
  --dcb-text-light: #6c757d;
  --dcb-bg-light: #f8f9fa;
  --dcb-radius: 8px;
  --dcb-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --dcb-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

/* ===== Global Typography ===== */
body {
  color: var(--dcb-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--dcb-dark);
}

.section-title h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--dcb-primary);
  border-radius: 2px;
}

.section-title p {
  color: var(--dcb-text-light);
  max-width: 600px;
  margin: 12px auto 0;
}

/* ===== Consistent Section Spacing ===== */
.section, section.section {
  padding: 70px 0;
}

.section.light-background {
  background-color: var(--dcb-bg-light);
}

/* ===== Custom Colors ===== */
.custom-button {
  background-color: var(--dcb-primary);
  border-color: var(--dcb-primary);
  border-radius: var(--dcb-radius);
  padding: 10px 28px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.custom-button:hover {
  background-color: var(--dcb-primary-dark);
  border-color: var(--dcb-primary-dark);
}

/* ===== Footer ===== */
.custom-footer {
  background-color: var(--dcb-dark);
  color: white;
  padding-top: 50px;
}
.custom-footer a { color: rgba(255,255,255,0.8); }
.custom-footer a:hover { color: white; }
.custom-footer .footer-contact p,
.custom-footer .footer-links h4,
.custom-footer .footer-links ul li a,
.custom-footer .copyright p,
.custom-footer .credits a { color: rgba(255,255,255,0.85); }
.custom-footer .footer-links h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.custom-footer .newsitename { font-size: 1.5em; color: white; }
.custom-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  transition: all 0.3s;
}
.custom-footer .social-links a:hover {
  background: var(--dcb-primary);
  transform: translateY(-2px);
}
.custom-footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.85rem;
}

/* ===== Header ===== */
#hero { background-color: var(--dcb-primary); }
.header-bg { background-color: var(--dcb-dark); }
.header-bg .navmenu > ul > li > a { color: rgba(255,255,255,0.9); font-weight: 500; }
.header-bg .navmenu > ul > li > a:hover { color: white; }
.header-bg .navmenu .bi-chevron-down { color: rgba(255,255,255,0.9); }
.header-bg .mobile-nav-toggle { color: white; }
.btn-getstarted-custom {
  background-color: var(--dcb-primary);
  color: white;
  border: 2px solid var(--dcb-primary);
  border-radius: 30px;
  padding: 8px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}
.btn-getstarted-custom:hover {
  background-color: white;
  color: var(--dcb-primary);
}
.sitename { color: white; font-weight: 700; }

/* ===== Hero ===== */
.hero-section { background-color: var(--dcb-primary); }
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.hero h1 span { color: white; }
.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.9;
}

/* ===== who-we-are label ===== */
.who-we-are {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dcb-primary);
}

/* ===== Client logos ===== */
.logo-size {
  width: 100%;
  height: 75px;
  object-fit: contain;
}

/* ===== Client logo strip (homepage) ===== */
.client-strip {
  padding: 40px 0;
  background: white;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.client-strip img {
  max-height: 45px;
  opacity: 0.5;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}
.client-strip img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Contact info alignment */
.contact-info-center { text-align: center; }

/* Trust badge strip */
.trust-strip {
  background-color: #2C3E50;
  color: white;
  padding: 18px 0;
}
.trust-strip .trust-item {
  text-align: center;
  padding: 8px 12px;
}
.trust-strip .trust-item i {
  font-size: 1.4rem;
  color: #388DA8;
  margin-bottom: 4px;
}
.trust-strip .trust-item .trust-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  display: block;
}
.trust-strip .trust-item .trust-label {
  font-size: 0.78rem;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mid-page CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #388DA8 0%, #2C3E50 100%);
  color: white;
  padding: 60px 0;
}
.cta-banner h2 {
  color: white;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 24px;
}
.cta-banner .btn-cta {
  background-color: white;
  color: #388DA8;
  border: none;
  padding: 12px 36px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s;
}
.cta-banner .btn-cta:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Stats banner for service pages */
.stats-banner {
  background-color: #388DA8;
  color: white;
  padding: 40px 0;
}
.stats-banner .stat-item {
  text-align: center;
  padding: 16px;
}
.stats-banner .stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}
.stats-banner .stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Animations & Polish ===== */

/* Card hover lift */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Service item hover */
.service-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Button hover effects */
.btn-primary.custom-button {
  transition: all 0.3s ease;
}
.btn-primary.custom-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56,141,168,0.4);
}

/* Read-more link arrow animation */
.read-more i {
  transition: transform 0.3s ease;
}
.read-more:hover i {
  transform: translateX(5px);
}

/* Nav link underline animation */
.navmenu > ul > li > a {
  position: relative;
  transition: color 0.3s ease;
}
.navmenu > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease, left 0.3s ease;
}
.navmenu > ul > li > a:hover::after {
  width: 100%;
  left: 0;
}

/* Smooth icon pulse on trust strip */
.trust-item i {
  transition: transform 0.3s ease;
}
.trust-item:hover i {
  transform: scale(1.2);
}

/* Featured service icon bounce */
.featured-services .icon {
  transition: transform 0.3s ease;
}
.featured-services .service-item:hover .icon {
  transform: scale(1.15);
}

/* Pricing item hover */
.pricing-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Stats banner number animation */
.stat-item {
  transition: transform 0.3s ease;
}
.stat-item:hover {
  transform: scale(1.05);
}

/* Info item hover (contact page) */
.info-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-item:hover {
  transform: translateY(-4px);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* ===== Mobile Responsiveness ===== */

/* Trust strip on mobile */
@media (max-width: 768px) {
  .trust-strip .row {
    flex-wrap: wrap;
  }
  .trust-strip .trust-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 10px 8px;
  }
  .trust-strip .trust-number {
    font-size: 1rem;
  }
  .trust-strip .trust-label {
    font-size: 0.65rem;
  }

  /* Hero text sizing */
  .hero h1 {
    font-size: 1.6rem !important;
  }
  .hero p {
    font-size: 0.9rem !important;
    padding: 0 10px;
  }

  /* Stats banner stacking */
  .stats-banner .stat-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
  .stats-banner .stat-item:last-child {
    border-bottom: none;
  }

  /* CTA banner text */
  .cta-banner h2 {
    font-size: 1.5rem;
  }
  .cta-banner p {
    font-size: 0.95rem;
    padding: 0 10px;
  }

  /* Footer columns stack */
  .footer-top .col-lg-3 {
    text-align: center;
  }
  .footer-top .social-links {
    justify-content: center;
    display: flex;
  }

  /* Impact section numbers */
  .section#impact .display-4 {
    font-size: 2.5rem;
  }

  /* Contact form and map stacking */
  .contact iframe {
    min-height: 250px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .trust-strip .trust-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .trust-strip .trust-item:last-child {
    border-bottom: none;
  }

  .hero h1 {
    font-size: 1.3rem !important;
  }

  .btn-get-started, .btn-cta {
    font-size: 0.85rem;
    padding: 10px 24px !important;
  }
}

/* Hero variants per service */
.hero-cloud     { background: linear-gradient(135deg, #388DA8 0%, #1a6b82 100%); }
.hero-training  { background: linear-gradient(135deg, #2C7DA0 0%, #2C3E50 100%); }
.hero-managed   { background: linear-gradient(135deg, #3498db 0%, #2C3E50 100%); }
.hero-websites  { background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%); }
.hero-digitize  { background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%); }
.hero-consult   { background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); }
.hero-annotate  { background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%); }
.hero-training-program { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.hero-casestudies { background: linear-gradient(135deg, #34495e 0%, #2C3E50 100%); }
.hero-privacy   { background: linear-gradient(135deg, #7f8c8d 0%, #606060 100%); }
