/* ============================================
   Caspio Landing Pages - Shared Stylesheet
   ============================================ */

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

html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { font-family: 'Lato', sans-serif; color: #484848; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --- Icomoon Icons Font --- */
@font-face {
  font-family: 'icomoon';
  src: url('../fonts/icomoon/icomoon.woff') format('woff'),
       url('../fonts/icomoon/icomoon.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'icomoon-logos';
  src: url('../fonts/icomoon-logos/icomoon.woff') format('woff'),
       url('../fonts/icomoon-logos/icomoon.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}

[class^="icon-"], [class*=" icon-"] {
  font-family: 'icomoon' !important;
  speak: never; font-style: normal; font-weight: normal;
  font-variant: normal; text-transform: none; line-height: 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.icon-caspio-logo { font-family: 'icomoon' !important; }
.icon-caspio-logo::before { content: "\e905"; }
.icon-quote::before { content: "\e90a"; }
.icon-hand-shake::before { content: "\e91e"; }
.icon-bulb-small-light::before { content: "\e91c"; }
.icon-app-user-chat::before { content: "\e906"; }
.icon-laptop-apps-cog::before { content: "\e913"; }
.icon-cog::before { content: "\e90b"; }
.icon-scale-grow::before { content: "\e91b"; }
.icon-checklist1::before { content: "\e909"; }
.icon-team-admin::before { content: "\e920"; }

/* --- Hero Section --- */
.hero {
  position: relative;
  background: #015178 url('../img/shared/hero-banner.jpg') right center / cover no-repeat;
  padding: 0;
  min-height: 520px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgb(1, 81, 120) 0%, rgba(8, 108, 147, 0.9) 35%, rgba(14, 128, 166, 0) 75%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; padding: 30px 20px 60px; }

.hero-navbar { padding: 20px 0 40px; }
.hero-logo {
  display: block;
  width: 135px;
  height: 42px;
}

.hero h1 {
  font-size: 55px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  max-width: 600px;
}
.hero h2 {
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 25px;
}

/* --- Buttons (consistent Lato font) --- */
.btn {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  padding: 10px 35px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: filter 0.3s ease;
}
.btn:hover { filter: brightness(0.85); }

.btn-primary {
  background: #FF7610;
  color: #fff;
}
.btn-primary:hover { color: #fff; }

.hero .no-cc {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-top: 8px;
}
.hero .consultation-link {
  display: inline-block;
  color: rgba(255,255,255,0.95);
  font-size: 15px;
  margin-top: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.hero .consultation-link:hover { color: #fff; border-bottom-color: #fff; }
.hero .consultation-link { border-bottom-color: rgba(255,255,255,0.6); }

/* --- Section shared --- */
.section { padding: 55px 0; text-align: center; }
.section h3 {
  font-size: 30px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}
.section p.subtitle {
  max-width: 960px;
  margin: 0 auto 30px;
  color: #555;
  font-size: 16px;
}

/* --- Social Proof Bar --- */
.social-proof { padding: 30px 0; text-align: center; background: #fff; }
.social-proof img { margin: 0 auto; }
.social-proof .desktop-only { width: 100%; aspect-ratio: 900 / 60; }
.social-proof .mobile-only { display: none; aspect-ratio: 350 / 180; }

/* --- Feature Bullets Section --- */
.features-section { padding: 50px 0 60px; }
.features-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
.features-content { flex: 1; }
.features-image { flex: 1; text-align: center; }
.features-image > img { aspect-ratio: 1000 / 467; }

.feature-list { margin: 20px 0 0 0; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 5px 0;
}
.feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #0e80a6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.feature-icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}
.feature-item strong {
  color: #015178;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.feature-item span {
  color: #484848;
  font-size: 15px;
  line-height: 1.5;
}

.features-image .signin-text {
  text-align: center;
  color: #555;
  font-size: 15px;
  margin-top: 15px;
}
.features-image .image-cta {
  text-align: center;
  margin-top: 20px;
}
.features-image .image-cta .no-cc {
  display: block;
  color: #666;
  font-size: 13px;
  margin-top: 8px;
}
.features-image .image-cta .consultation-link {
  display: inline-block;
  color: #0e80a6;
  font-size: 15px;
  margin-top: 10px;
  border-bottom: 1px solid rgba(14,128,166,0.3);
}
.features-image .image-cta .consultation-link:hover { border-bottom-color: #0e80a6; }

/* --- Client Logos --- */
.clients-section { padding: 50px 0; text-align: center; background: #f8f9fa; }
.clients-section h3 { margin-bottom: 25px; }
.clients-section img { margin: 0 auto; }
.clients-section .desktop-only { aspect-ratio: 900 / 80; }
.clients-section .mobile-only { display: none; aspect-ratio: 350 / 200; }

/* --- Use Cases --- */
.usecases-section { padding: 55px 0; text-align: center; }
.uc-diagram { margin: 30px auto 0; max-width: 700px; aspect-ratio: 1 / 1; }
.uc-mobile { display: none; }

.uc-cards { display: none; }

/* --- Testimonials --- */
.testimonials-section { padding: 55px 0; text-align: center; background: #f8f9fa; }
.testimonial-grid {
  display: flex;
  gap: 25px;
  margin-top: 30px;
}
.testimonial-card {
  flex: 1;
  background: #fff;
  border-radius: 4px;
  padding: 30px 25px;
  text-align: left;
  position: relative;
}
.testimonial-card.set-one { border-left: 4px solid #FF7610; }
.testimonial-card.set-two { border-left: 4px solid #0e80a6; }
.testimonial-card.set-three { border-left: 4px solid #5cb85c; }

.testimonial-card .quote-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}
.set-one .quote-icon { color: #FF7610; }
.set-two .quote-icon { color: #0e80a6; }
.set-three .quote-icon { color: #5cb85c; }
.testimonial-card blockquote {
  font-size: 15px;
  color: #484848;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-person p {
  font-size: 14px;
  line-height: 1.4;
  color: #666;
}
.testimonial-person p:first-child {
  font-weight: 700;
  color: #333;
}

/* --- Bottom CTA --- */
.bottom-cta-section {
  position: relative;
  padding: 55px 0 0;
  text-align: center;
  background: linear-gradient(135deg, #015178 0%, #0e80a6 100%);
  color: #fff;
  overflow: hidden;
}
.bottom-cta-section h3 {
  color: #fff;
  margin-bottom: 25px;
}
.bottom-cta-section .no-cc {
  display: block;
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  margin-top: 8px;
}
.bottom-cta-section .consultation-link {
  display: block;
  color: rgba(255,255,255,0.95);
  font-size: 15px;
  margin-top: 12px;
  border-bottom: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,0.4);
}
.bottom-cta-section .consultation-link:hover { color: #fff; text-decoration-color: #fff; }

/* --- Multiple Apps Image (anchored to bottom of blue section) --- */
.multi-apps {
  display: block;
  margin: 40px auto 0;
  margin-bottom: -4px; /* remove gap at bottom edge */
  aspect-ratio: 1821 / 471;
}

/* --- Footer --- */
.footer {
  background: #1a2b3c;
  color: rgba(255,255,255,0.85);
  padding: 35px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left { font-size: 13px; }
.footer-left .copyright { margin-bottom: 8px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-right img { max-width: 340px; }

/* --- Sticky Mobile CTA --- */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #015178;
  padding: 10px 20px;
  text-align: center;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.sticky-mobile-cta .btn-sticky {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 17px;
}
.sticky-mobile-cta .sticky-sub {
  display: block;
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero { min-height: 420px; }
  .hero h1 { font-size: 38px; }
  .features-grid { flex-direction: column; }
  .testimonial-grid { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-right { text-align: center; }
}
@media (max-width: 767px) {
  .hero { min-height: 380px; background-image: url('../img/shared/hero-banner-mobile.jpg'); }
  .hero h1 { font-size: 30px; }
  .hero h2 { font-size: 18px; }
  .section h3 { font-size: 24px; }
  .social-proof .desktop-only { display: none; }
  .social-proof .mobile-only { display: block; }
  .clients-section .desktop-only { display: none; }
  .clients-section .mobile-only { display: block; }
  .uc-diagram { display: none; }
  .uc-mobile { display: block; margin: 20px auto 0; max-width: 400px; }
  .uc-cards { display: block; margin-top: 25px; }
  .uc-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 12px;
    text-align: left;
  }
  .uc-card h4 { font-size: 17px; color: #015178; margin-bottom: 6px; }
  .uc-card .uc-icon { font-size: 28px; color: #0e80a6; margin-bottom: 8px; }
  .uc-card p { font-size: 14px; color: #666; line-height: 1.5; }
  .sticky-mobile-cta { display: block; }
  .footer { padding-bottom: 90px; }
}
