/* ============================================
   ApsteQ Landing Pages — Shared Styles
   ============================================ */

/* CSS Variables matching Tailwind config */
:root {
  --tech-blue:    #2776EA;
  --deep-action:  #1A56DB;
  --pearl-gray:   #F9FAFB;
  --sky-tint:     #E7F0FD;
  --graphite:     #1F2933;
  --slate-custom: #4B5563;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--pearl-gray);
  color: var(--slate-custom);
}

/* ============================================
   Component Classes
   ============================================ */

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: var(--tech-blue);
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(39,118,234,.25);
  transition: background-color .3s, transform .2s, box-shadow .2s;
}
.cta-button:hover {
  background-color: var(--deep-action);
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(39,118,234,.3);
}
.cta-button:active { transform: scale(0.97); }

.form-input {
  width: 100%;
  padding: .75rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  font-size: 1rem;
  color: var(--graphite);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--tech-blue);
  box-shadow: 0 0 0 3px rgba(39,118,234,.15);
}
.form-input.error { border-color: #ef4444; }

.section-padding {
  padding: 5rem 1rem;
}
@media (min-width: 768px) {
  .section-padding { padding: 7rem 1.5rem; }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .section-title { font-size: 2.25rem; }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate-custom);
  line-height: 1.7;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Hand-drawn highlight
   ============================================ */
.hand-drawn-highlight {
  position: relative;
  z-index: 1;
}
.hand-drawn-highlight::after {
  content: '';
  position: absolute;
  left: -5px;
  right: -5px;
  bottom: 0;
  height: 60%;
  background-color: var(--sky-tint);
  z-index: -1;
  transform: rotate(-1deg);
  border-radius: 2px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.animate-fade-in-up {
  animation: fadeInUp .6s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0);     }
}
.animate-fade-in-left {
  animation: fadeInLeft .8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0);    }
}
.animate-fade-in-right {
  animation: fadeInRight .8s ease-out forwards;
  opacity: 0;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1);  }
}
.animate-scale-in {
  animation: scaleIn .4s ease-out forwards;
  opacity: 0;
}

@keyframes progressFill {
  from { width: 0%; }
  to   { width: 90%; }
}
.animate-progress-fill { animation: progressFill 1.5s cubic-bezier(.65,0,.35,1) forwards; }

@keyframes progressLoading {
  0%   { width: 0%; }
  100% { width: 100%; }
}
.animate-progress-loading { animation: progressLoading 3s linear forwards; }

@keyframes bounceSubtle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.animate-bounce-subtle { animation: bounceSubtle 2s ease-in-out infinite; }

@keyframes slideInBottom {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0);    }
}
.animate-slide-in-bottom { animation: slideInBottom .4s ease-out forwards; }

/* ============================================
   intl-tel-input overrides (phone field)
   ============================================ */
.iti { width: 100%; }
.iti__tel-input {
  width: 100% !important;
  padding: .75rem 1rem .75rem 5rem !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: .5rem !important;
  font-size: 1rem !important;
  color: var(--graphite) !important;
  outline: none !important;
  font-family: inherit !important;
  height: 3rem !important;
  transition: border-color .2s, box-shadow .2s !important;
}
.iti__tel-input:focus {
  border-color: var(--tech-blue) !important;
  box-shadow: 0 0 0 3px rgba(39,118,234,.15) !important;
}
.iti__tel-input.error { border-color: #ef4444 !important; }

/* pearl-gray variant (used in MistakesIndia form) */
.iti__tel-input.bg-pearl {
  background: var(--pearl-gray) !important;
}

/* ============================================
   Cal.com embed
   ============================================ */
.cal-embed-container iframe {
  width: 100% !important;
  border: none !important;
}

/* ============================================
   Custom scrollbar
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #bbb; }

/* ============================================
   FAQ accordion
   ============================================ */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] .chevron { transform: rotate(180deg); }

/* ============================================
   Lightbox
   ============================================ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  background: rgba(31,41,51,.95);
  padding: 1rem;
  cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: .5rem;
  box-shadow: 0 25px 50px rgba(0,0,0,.5);
  cursor: default;
}
