/* Component Library & UI Widgets */

/* 1. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.32);
}

.btn--primary:hover {
  background: var(--accent-gradient-hover);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.btn--outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep);
}

.btn--white {
  background: #ffffff;
  color: var(--ink-heading);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  background: var(--bg-subtle);
  color: var(--accent-deep);
}

.btn--sm {
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn--lg {
  min-height: 3.35rem;
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

/* Icons */
.icon {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
  display: inline-block;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.icon--lg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon--dock {
  width: 1.35rem;
  height: 1.35rem;
}

/* Pulse Dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* 2. Gateway Cards */
.gateway {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .gateway {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gateway__item {
  position: relative;
  padding: 1.6rem 1.6rem 1.8rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 22rem;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.35s var(--ease);
}

.gateway__item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-border);
}

.gateway__media {
  position: relative;
  width: 100%;
  height: 9.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-dark);
}

.gateway__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gateway__item:hover .gateway__media img {
  transform: scale(1.08);
}

.gateway__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(9, 19, 34, 0.5) 100%);
  pointer-events: none;
}

.gateway__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--accent-deep);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease);
}

.gateway__item:hover .gateway__badge {
  transform: scale(1.08) rotate(4deg);
  background: var(--accent-gradient);
  color: #ffffff;
}

.gateway__item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
  color: var(--ink-heading);
}

.gateway__item p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.gateway__action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--accent-deep);
  transition: gap 0.2s var(--ease);
}

.gateway__item:hover .gateway__action {
  gap: 0.75rem;
  color: var(--accent);
}

/* Visual Showcase Card */
.visual-showcase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: #ffffff;
}

.visual-showcase img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.visual-showcase__caption {
  padding: 1.15rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.visual-showcase__title {
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--ink-heading);
}

.visual-showcase__tag {
  font-size: 0.76rem;
  font-weight: 750;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* 3. Hero Highlight Card */
.hero__panel-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
}

.hero__panel-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--accent-gradient);
}

.hero__panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.hero__panel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 750;
  color: var(--accent-deep);
}

.hero__panel-pill {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 0.76rem;
  font-weight: 750;
}

.hero__panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.hero__panel-stats strong {
  display: block;
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink-heading);
  line-height: 1.1;
}

.hero__panel-stats span {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
}

/* 4. Service Feature Cards */
.offer-list {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .offer-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.offer {
  padding: 2rem;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.3s var(--ease);
}

.offer:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
}

.offer__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.offer__icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offer h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  color: var(--ink-heading);
}

.offer p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.offer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.offer__tag {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  background: var(--bg-subtle);
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--ink-soft);
}

/* 5. Interactive Solution Scope & Cost Estimator */
.estimator-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 2.2rem;
  margin: 2rem 0;
}

.estimator-step-title {
  font-size: 0.95rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.estimator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.estimator-chip {
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.estimator-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.estimator-chip.is-selected {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.estimator-results {
  background: linear-gradient(135deg, #071626 0%, #0d2745 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .estimator-results {
    grid-template-columns: 1fr auto;
  }
}

.estimator-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.estimator-metric strong {
  display: block;
  font-size: 1.4rem;
  font-family: var(--font-display);
  color: #ffffff;
}

.estimator-metric span {
  font-size: 0.78rem;
  color: var(--ink-inverse-soft);
}

/* 6. Interactive FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 52rem;
  margin-inline: auto;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}

.faq-item.is-open {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-heading);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  background: var(--accent);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* 7. Founder & Leadership Card */
.founder-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 2.2rem;
  overflow: hidden;
}

.founder-card__badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.founder-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-soft);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
}

.founder-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.founder-card__photo-frame {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  padding: 4px;
  background: var(--accent-gradient);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-glow);
}

.founder-card__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
}

.founder-card__name {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
  color: var(--ink-heading);
}

.founder-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.founder-card__location {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.founder-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  margin-bottom: 1.25rem;
}

.founder-card__stats strong {
  display: block;
  font-size: 1.15rem;
  color: var(--ink-heading);
}

.founder-card__stats span {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

/* 8. Process Steps */
.step-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .step-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .step-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 1.85rem;
  position: relative;
  transition: all 0.3s var(--ease);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
}

.step-card__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--atmosphere-1);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.step-card p {
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0;
}

/* 9. Forms & Inputs */
.form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-heading);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: all 0.2s var(--ease);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.form-textarea {
  min-height: 7rem;
  resize: vertical;
}

/* 10. Floating Action Dock */
.float-dock {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.float-dock a {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  transition: all 0.3s var(--ease-bounce);
  position: relative;
}

.float-dock a:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.float-dock a[data-action="whatsapp"] {
  background: #25d366;
  color: #ffffff;
  border-color: transparent;
}

.float-dock a[data-action="call"] {
  background: var(--accent-gradient);
  color: #ffffff;
  border-color: transparent;
}

/* 11. Modal Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 22, 38, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  max-width: 32rem;
  width: 100%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-out);
}

.modal-overlay.is-active .modal-box {
  transform: scale(1);
}
