/* ==========================================================================
   Capital Tech Remarketing — Stylesheet
   ========================================================================== */

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f5f7fa;
  padding-top: 110px;
}

/* ---------- Navbar ---------- */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid #e5e7eb;
}

#navbar.shrink {
  padding: 8px 25px;
}

#navbar .logo img {
  height: 120px;
  width: auto;
  display: block;
}

#navbar.shrink .logo img {
  height: 90px;
}

#navbar .menu a {
  margin-left: 25px;
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  transition: color 0.2s ease;
}

#navbar .menu a:hover {
  color: #2563eb;
}

/* Mobile hamburger menu */

.hamburger {
  display: none;
  cursor: pointer;
  width: 32px;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #0f172a;
  margin: 5px 0;
  border-radius: 5px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 70vh;
  min-height: 600px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: auto;
}

.cta {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

/* ---------- Layout sections ---------- */

section {
  scroll-margin-top: 120px;
  max-width: 1000px;
  margin: 20px auto;
  padding: 60px 20px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

h2 {
  color: #0f172a;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.cards,
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

#services .card {
  border-right: 4px solid #2563eb;
}

#trust .card {
  border-left: 4px solid #2563eb;
}

ul {
  padding-left: 20px;
}

/* ---------- About section ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  margin-top: 25px;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.highlight-card {
  background: #f8fafc;
  padding: 18px;
  border-radius: 10px;
  border-left: 4px solid #2563eb;
}

.highlight-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-box {
  background: #0f172a;
  color: white;
  padding: 25px;
  text-align: center;
  border-radius: 12px;
}

.stat-box h3 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.sub-title {
  margin-top: 50px;
  margin-bottom: 20px;
  text-align: center;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.step {
  text-align: center;
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
}

.step span {
  width: 50px;
  height: 50px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 10px;
}

/* ---------- Operational highlights / chart ---------- */

.stats {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
}

.counter-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.counter-number {
  font-size: 2rem;
  font-weight: bold;
  color: #2563eb;
}

.counter-label {
  margin-top: 8px;
  color: #64748b;
}



.chart-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.chart-inner {
  width: 800px;
  height: 420px;
}

.chart-tip {
  display: none;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ---------- Contact / form ---------- */

form {
  display: grid;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 100%;
}

button {
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Prevent mobile input zoom */
input,
textarea,
select,
button {
  font-size: 16px !important;
}

#formStatus {
  margin-top: 15px;
  font-weight: bold;
  display: none;
}

.success-message {
  color: #16a34a;
}

.error-message {
  color: #dc2626;
}

.input-error {
  border: 2px solid #dc2626 !important;
}

/* ---------- Digital business card ---------- */

.business-card-section {
  text-align: center;
  margin-bottom: 30px;
}

.card-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 5000;
}

.card-modal-content {
  max-width: 800px;
  margin: 80px auto;
  text-align: center;
  position: relative;
}

.close-card {
  color: white;
  font-size: 32px;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: -50px;
}

.flip-card {
  width: 700px;
  height: 400px;
  margin: auto;
  perspective: 1200px;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 30px;
}

.flip-card-front {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.flip-card-front hr {
  margin: 15px 0;
}

.card-logo img {
  height: 210px;
  width: auto;
}

.card-info {
  flex: 1;
}

.card-info h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.flip-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.qr-code {
  width: 180px;
  margin: 15px 0;
}

.whatsapp-btn {
  background: #25d366;
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 10px;
}

.flip-btn {
  margin-top: 20px;
}

.tagline {
  margin-top: 20px;
  color: #64748b;
}

/* ---------- Footer ---------- */

footer {
  background: #0f172a;
  color: white;
  text-align: center;
  padding: 30px 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 769px) {
  .chart-inner {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .chart-inner {
    height: 320px;
  }
}

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

  .counter-card {
    padding: 15px;
  }

  .counter-number {
    font-size: 1.4rem;
  }

  .chart-tip {
    display: block;
  }

  .about-grid,
  .about-stats,
  .process-steps,
  .about-highlights {
    grid-template-columns: 1fr;
  }

  #navbar {
    padding: 12px 20px;
  }

  #navbar .logo img {
    height: 45px;
  }

  .hamburger {
    display: block;
  }

  .menu {
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    width: 220px;
    display: none;
    flex-direction: column;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  }

  .menu.active {
    display: flex;
  }

  .menu a {
    margin: 0 !important;
    padding: 12px;
    border-bottom: 1px solid #eee;
  }
}

@media (max-width: 600px) {
  .flip-card {
    width: 90vw;
    height: 520px;
  }

  .flip-card-front {
    flex-direction: column;
  }

  .card-logo img {
    height: 150px;
  }
}

/* ---------- Privacy policy page ---------- */

.policy-hero {
  height: auto;
  min-height: 0;
  padding: 130px 20px 60px;
}

.policy-content h2 {
  margin-top: 35px;
  font-size: 1.3rem;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p,
.policy-content li {
  margin-bottom: 12px;
  color: #334155;
}

.policy-content ul {
  margin-bottom: 12px;
}

.policy-updated {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
}

.policy-link {
  color: #2563eb;
}

/* ---------- Consent notice under contact form ---------- */

.consent-notice {
  max-width: 500px;
  margin: 12px auto 0;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

/* ---------- Footer link ---------- */

footer a {
  color: #93c5fd;
}