/* ============ Theme variables (extracted from Softvanta brand) ============ */
:root {
  --primary: #6D28D9;
  --primary-dark: #5B21B6;
  --secondary: #9333EA;
  --lavender: #C4B5FD;
  --lavender-soft: #EDE9FE;
  --navy: #0F172A;
  --slate: #334155;
  --slate-soft: #64748B;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(109, 40, 217, 0.10);
  --shadow-lg: 0 16px 48px rgba(109, 40, 217, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--light);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============ Top alert banner ============ */
.alert-banner {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.alert-banner strong {
  font-weight: 700;
}

.alert-banner .alert-price {
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
  font-weight: 600;
}

/* ============ Layout ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

main {
  padding: 56px 0 96px;
}

/* ============ Hero / page header ============ */
.hero {
  text-align: center;
  margin-bottom: 56px;
}

.hero-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--slate-soft);
  max-width: 620px;
  margin: 0 auto;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero-sub {
  margin-top: 24px;
}

.hero-sub h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-sub h2 .accent {
  color: var(--primary);
}

/* ============ Projects showcase (phone screenshots) ============ */
.projects-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 64px;
  padding: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.projects-row::-webkit-scrollbar {
  display: none;
}

.phone-frame {
  flex: 0 0 auto;
  width: clamp(140px, 18vw, 200px);
  aspect-ratio: 9 / 19;
  border-radius: 22px;
  overflow: hidden;
  background: var(--lavender-soft);
  border: 1px solid #E5E7EB;
  scroll-snap-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.phone-frame:hover {
  transform: translateY(-4px);
  border-color: var(--lavender);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ Services grid ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 18px;
  border: 1px solid #E5E7EB;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--lavender);
  transform: translateY(-2px);
}

.service-card .service-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.service-card .service-icon svg {
  width: 22px;
  height: 22px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--lavender-soft);
  color: var(--primary);
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

/* Per-card icon color variations (still on-brand) */
.service-card:nth-child(2) .service-icon { background: #F3E8FF; color: var(--secondary); }
.service-card:nth-child(3) .service-icon { background: #E0E7FF; color: #4F46E5; }
.service-card:nth-child(4) .service-icon { background: #FCE7F3; color: #C026D3; }
.service-card:nth-child(5) .service-icon { background: #DBEAFE; color: #3B82F6; }
.service-card:nth-child(6) .service-icon { background: #DCFCE7; color: #16A34A; }
.service-card:nth-child(7) .service-icon { background: #FEF3C7; color: #D97706; }

.service-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
  line-height: 1.3;
}

.service-card p {
  color: var(--slate-soft);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-actions .btn {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 6px;
  flex: 1;
  min-width: 0;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--lavender);
}

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

.btn-ghost {
  background: transparent;
  color: var(--slate);
  padding: 10px 14px;
}

.btn-ghost:hover {
  color: var(--primary);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
}

/* ============ Floating WhatsApp button ============ */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-fab svg {
  width: 30px;
  height: 30px;
}

/* ============ Service detail page ============ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-soft);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 28px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--primary);
}

.detail-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: center;
}

.detail-header .service-icon {
  width: 72px;
  height: 72px;
}

.detail-header .service-icon svg {
  width: 36px;
  height: 36px;
}

.detail-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.detail-header .lead {
  color: var(--slate-soft);
  font-size: 17px;
  max-width: 700px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.price-alert {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--lavender-soft);
  border: 1px solid var(--lavender);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  font-size: 14.5px;
  font-weight: 500;
  max-width: 100%;
}

.price-alert-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.price-alert-icon svg {
  width: 100%;
  height: 100%;
}

.price-alert-text strong {
  color: var(--primary);
  font-weight: 700;
  font-size: 15.5px;
  margin: 0 2px;
}

.price-alert-note {
  color: var(--slate-soft);
  font-weight: 400;
}

@media (max-width: 480px) {
  .price-alert { display: flex; align-items: flex-start; }
  .price-alert-note { display: block; margin-top: 2px; }
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--navy);
}

.examples-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.example-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--lavender-soft);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.example-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.example-thumb .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.info-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(109, 40, 217, 0.06);
}

.info-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.info-card p {
  font-size: 14px;
  color: var(--slate-soft);
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--slate);
}

.feature-list .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lavender-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

/* ============ Contact page ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-intro h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.contact-intro p {
  color: var(--slate-soft);
  margin-bottom: 28px;
  font-size: 16px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid rgba(109, 40, 217, 0.08);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.channel:hover {
  border-color: var(--primary);
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon svg {
  width: 22px;
  height: 22px;
}

.channel-icon.whatsapp { background: #DCFCE7; color: var(--whatsapp-dark); }
.channel-icon.email { background: var(--lavender-soft); color: var(--primary); }

.channel-text .label {
  font-size: 12px;
  color: var(--slate-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.channel-text .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(109, 40, 217, 0.06);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--slate);
}

.form-group label .req {
  color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  background: var(--light);
  color: var(--navy);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

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

.form-toast {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--lavender-soft);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.form-toast.show {
  display: block;
}

/* ============ Footer ============ */
footer {
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
  color: var(--slate-soft);
  border-top: 1px solid #E2E8F0;
}

/* ============ Responsive: tablet ============ */
@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .examples-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============ Responsive: mobile ============ */
@media (max-width: 640px) {
  main {
    padding: 36px 0 80px;
  }
  .container {
    padding: 0 18px;
  }
  .alert-banner {
    font-size: 13px;
    padding: 11px 14px;
  }
  .alert-banner .alert-price {
    display: inline-block;
    margin-top: 2px;
  }
  .projects-row {
    gap: 10px;
    padding: 4px 18px;
    margin-left: -18px;
    margin-right: -18px;
    margin-bottom: 48px;
    justify-content: flex-start;
  }
  .phone-frame {
    width: 130px;
    border-radius: 8px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .service-card {
    padding: 14px;
    border-radius: 10px;
  }
  .service-card .service-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
  }
  .service-card .service-icon svg {
    width: 18px;
    height: 18px;
  }
  .service-card h3 {
    font-size: 14px;
  }
  .service-card p {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .card-actions {
    flex-direction: column;
    gap: 6px;
  }
  .card-actions .btn {
    width: 100%;
    padding: 7px 10px;
    font-size: 11.5px;
  }
  .examples-gallery {
    grid-template-columns: 1fr;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form {
    padding: 24px;
  }
  .whatsapp-fab {
    width: 54px;
    height: 54px;
    right: 18px;
    bottom: 18px;
  }
  .whatsapp-fab svg {
    width: 26px;
    height: 26px;
  }
  .card-actions .btn {
    flex: 1;
  }
}
