/* ============================================================
   CorpTechPro – site.css
   Brand palette:
     Primary Blue  #0066F5
     Primary Navy  #001F4D
     Charcoal      #26313D
     Near Black    #050914
     White         #FFFFFF
   ============================================================ */

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Fluid type scale: 15px @ 375px → 20px @ 1440px.
     All rem values in the sheet scale proportionally with viewport. */
  font-size: clamp(15px, 0.85vw + 11.8px, 20px);
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #26313d;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  font-size: 1rem; /* inherits fluid scale from html */
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
}

a {
  color: #0066f5;
}
a:hover {
  color: #0050c0;
  text-decoration: underline;
}

/* ---------- Navbar ---------- */
.navbar-ctp {
  background-color: #001f4d;
  border: none;
  border-radius: 0;
  min-height: 64px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar-ctp .navbar-brand {
  padding: 10px 15px;
}

.navbar-ctp .navbar-brand img {
  height: 44px;
  width: auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  padding: 3px 10px;
}

.navbar-ctp .navbar-nav > li > a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 22px 14px;
  transition: color 0.15s;
}

.navbar-ctp .navbar-nav > li > a:hover,
.navbar-ctp .navbar-nav > li > a:focus {
  color: #ffffff;
  background: transparent;
}

.navbar-ctp .navbar-nav > li.active > a {
  color: #ffffff;
  border-bottom: 3px solid #0066f5;
  background: transparent;
}

.navbar-ctp .cta-nav-btn {
  margin: 14px 0 14px 10px;
  background: #0066f5;
  color: #fff !important;
  border-radius: 4px;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  transition: background 0.15s;
}

.navbar-ctp .cta-nav-btn:hover {
  background: #0050c0 !important;
  color: #fff !important;
}

/* mobile hamburger */
.navbar-ctp .navbar-toggle {
  border-color: rgba(255, 255, 255, 0.3);
  margin-top: 15px;
}
.navbar-ctp .navbar-toggle .icon-bar {
  background-color: #fff;
}
.navbar-ctp .navbar-collapse {
  background-color: #001f4d;
}

/* ---------- Sections shared ---------- */
.section-pad {
  padding-top: 90px;
  padding-bottom: 90px;
}

.section-title {
  font-size: clamp(1.8rem, 1rem + 2.2vw, 3.2rem);
  color: #050914;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1.35rem;
  color: #26313d;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* ---------- Hero ---------- */
#hero {
  background: linear-gradient(135deg, #001f4d 0%, #003080 60%, #0066f5 100%);
  padding-top: 140px;
  padding-bottom: 100px;
  color: #fff;
  min-height: 560px;
}

#hero h1 {
  font-size: clamp(2rem, 1.2rem + 2.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

#hero p.lead {
  font-size: 1.35rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 560px;
}

.btn-ctp-primary {
  background: #0066f5;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
  display: inline-block;
  text-decoration: none;
}

.btn-ctp-primary:hover {
  background: #0050c0;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-ctp-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
  display: inline-block;
  text-decoration: none;
  margin-left: 12px;
}

.btn-ctp-outline:hover {
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

#hero .hero-logo {
  max-width: 280px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 8px 18px;
  display: block;
}

#hero .hero-phone-img {
  max-width: 260px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

/* ---------- Problem Strip ---------- */
#problem {
  background: #f7f9fc;
  border-top: 3px solid #0066f5;
}

.problem-item {
  padding: 20px 24px;
  text-align: center;
}

.problem-item .problem-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 16px;
}

.problem-item h4 {
  font-size: 1.2rem;
  color: #050914;
  margin-bottom: 8px;
}

.problem-item p {
  font-size: 1.1rem;
  color: #26313d;
  margin: 0;
}

/* ---------- How It Works ---------- */
#how-it-works {
  background: #fff;
}

.step-card {
  text-align: center;
  padding: 24px 20px;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0066f5;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 52px;
  margin: 0 auto 16px;
}

.step-card h4 {
  color: #050914;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 1.1rem;
  color: #26313d;
  margin: 0;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
}

.step-connector-line {
  width: 60px;
  height: 2px;
  background: #0066f5;
  opacity: 0.4;
}

/* ---------- Features ---------- */
#features {
  background: #f7f9fc;
}

.feature-card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  margin-bottom: 24px;
  border-left: 4px solid #0066f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-card h4 {
  color: #050914;
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 1.1rem;
  color: #26313d;
  margin: 0;
}

.feature-card .feature-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 14px;
}

/* ---------- Modules ---------- */
#modules {
  background: #001f4d;
  color: #fff;
}

#modules .section-title {
  color: #fff;
}
#modules .section-sub {
  color: rgba(255, 255, 255, 0.75);
}

.module-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 28px 22px;
  margin-bottom: 24px;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.module-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #0066f5;
}

.module-card .module-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 14px;
}

.module-card h4 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.module-card p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.module-card .badge-addon {
  display: inline-block;
  background: #0066f5;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- ERP Compatibility ---------- */
#erp {
  background: #fff;
}

.erp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f4ff;
  border: 1px solid #c7d8fc;
  border-radius: 6px;
  padding: 12px 20px;
  margin: 8px;
  font-weight: 600;
  color: #001f4d;
  font-size: 1.1rem;
}

.erp-badge .erp-dot {
  width: 10px;
  height: 10px;
  background: #0066f5;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Trust / Stats ---------- */
#trust {
  background: #f7f9fc;
}

.stat-box {
  text-align: center;
  padding: 24px 16px;
}

.stat-box .stat-number {
  font-size: 2.6rem;
  font-weight: 700;
  color: #0066f5;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-box .stat-label {
  font-size: 1.05rem;
  color: #26313d;
}

/* ---------- Pricing ---------- */
#pricing {
  background: #fff;
}

.pricing-card {
  border: 2px solid #e0e7f0;
  border-radius: 10px;
  padding: 36px 30px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}

.pricing-card:hover {
  box-shadow: 0 8px 32px rgba(0, 102, 245, 0.12);
  border-color: #0066f5;
}

.pricing-card.featured {
  border-color: #0066f5;
  box-shadow: 0 8px 32px rgba(0, 102, 245, 0.18);
}

.pricing-card .featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #0066f5;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  color: #050914;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.pricing-card .price-amount {
  font-size: 2.8rem;
  font-weight: 700;
  color: #0066f5;
  line-height: 1;
  margin: 16px 0 4px;
}

.pricing-card .price-note {
  font-size: 0.95rem;
  color: #26313d;
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}

.pricing-card ul li {
  padding: 6px 0;
  font-size: 1.05rem;
  color: #26313d;
  border-bottom: 1px solid #f0f4f8;
}

.pricing-card ul li::before {
  content: "✓ ";
  color: #0066f5;
  font-weight: 700;
}

.sma-note {
  background: #f0f4ff;
  border-left: 4px solid #0066f5;
  border-radius: 4px;
  padding: 16px 20px;
  margin-top: 32px;
  font-size: 1.05rem;
  color: #001f4d;
  text-align: left;
}

/* ---------- FAQ ---------- */
#faq {
  background: #f7f9fc;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #050914;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: #f7f9fc;
}

.faq-question .faq-chevron {
  font-size: 0.7rem;
  color: #0066f5;
  transition: transform 0.2s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 1.1rem;
  color: #26313d;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ---------- Contact ---------- */
#contact {
  background: linear-gradient(135deg, #001f4d 0%, #003080 100%);
  color: #fff;
}

#contact .section-title {
  color: #fff;
}
#contact .section-sub {
  color: rgba(255, 255, 255, 0.75);
}

.contact-form {
  background: #fff;
  border-radius: 10px;
  padding: 36px 32px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  font-size: 1rem;
  font-weight: 600;
  color: #050914;
  margin-bottom: 4px;
  display: block;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d0dbe8;
  border-radius: 5px;
  font-size: 1.05rem;
  color: #050914;
  margin-bottom: 18px;
  transition: border-color 0.15s;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #0066f5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 245, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

/* honeypot – visually hidden */
.hp-field {
  display: none !important;
}

.contact-form .btn-submit {
  width: 100%;
  background: #0066f5;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 13px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.contact-form .btn-submit:hover {
  background: #0050c0;
}
.contact-form .btn-submit:disabled {
  background: #6c99e8;
  cursor: not-allowed;
}

#form-status {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  min-height: 20px;
}

#form-status.success {
  color: #1a8f3f;
}
#form-status.error {
  color: #c0392b;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: #050914;
  color: rgba(255, 255, 255, 0.55);
  padding: 32px 0;
  font-size: 1rem;
  text-align: center;
}

footer.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}
footer.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

footer.site-footer .footer-logo {
  height: 36px;
  margin-bottom: 16px;
  opacity: 0.85;
}

/* ---------- Sign-in section ---------- */
#login {
  padding: 80px 0 60px;
  background: #fff;
}

#login h2 {
  color: #050914;
  margin-bottom: 24px;
}

/* ---------- Utilities ---------- */
.text-blue {
  color: #0066f5;
}
.text-navy {
  color: #001f4d;
}
.bg-navy {
  background-color: #001f4d;
}
.bg-blue {
  background-color: #0066f5;
}
.divider {
  border: none;
  border-top: 1px solid #e0e7f0;
  margin: 0;
}

/* ---------- Cookie Banner ---------- */
#cookieConsentBanner {
  background-color: #f9f9f9;
  padding: 10px;
  text-align: center;
  border-top: 1px solid #d3d3d3;
  z-index: 1040;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

#cookieConsentBanner p {
  font-size: 0.85rem;
  margin: 5px 0;
  line-height: 1.4;
}
#cookieConsentBanner .btn {
  margin-top: 4px;
}

@media (max-width: 768px) {
  #cookieConsentBanner p {
    font-size: 0.75rem;
  }
  #hero h1 {
    font-size: clamp(1.75rem, 5vw + 0.5rem, 2.4rem);
  }
  .section-title {
    font-size: clamp(1.5rem, 4vw + 0.5rem, 2rem);
  }
  .pricing-card {
    padding: 28px 18px;
  }
  .contact-form {
    padding: 24px 18px;
  }
  .btn-ctp-outline {
    margin-left: 0;
    margin-top: 12px;
    display: block;
    text-align: center;
  }
}

/* ---------- Section spacer for fixed navbar ---------- */

/* Equal-height card rows — eliminates Bootstrap 3 float gaps */
#features .container > .row,
#modules .container > .row {
  display: flex;
  flex-wrap: wrap;
}
#features .container > .row > .col-md-4,
#modules .container > .row > .col-md-4 {
  display: flex;
  flex-direction: column;
}
#features .feature-card,
#modules .module-card {
  flex: 1;
}

.anchor-offset {
  display: block;
  height: 64px;
  margin-top: -64px;
  visibility: hidden;
  pointer-events: none;
}

/* Trust stats — flex centering so 5 items align on all viewport sizes */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
