/* =========================================================================
   Tati Software — Home & page-specific styles
   ========================================================================= */

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) var(--space-section);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(28, 214, 254, 0.16), transparent 60%),
    radial-gradient(55% 60% at 12% 20%, rgba(1, 103, 225, 0.14), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1.4rem; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 34ch;
  margin-bottom: 2rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  margin-top: 2rem;
}

.hero-partner-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 1.4rem;
}
.hero-partner-badges img {
  height: 88px;
  width: auto;
  object-fit: contain;
  display: none;
}
.hero-partner-badges .badge-on-light { display: var(--logo-light); }
.hero-partner-badges .badge-on-dark  { display: var(--logo-dark); }

/* ---- Proposal form card ---- */
.proposal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.proposal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.proposal-card h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.proposal-card .proposal-intro { margin-bottom: 1.4rem; font-size: 0.98rem; }

/* Phone + country-code group inside proposal card.
   Using grid (not flex) because browsers ignore min-width:0 on <select>. */
.proposal-card .phone-group {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.5rem;
}
.proposal-card .phone-group .cc-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.proposal-card .phone-group .cc-wrap::after {
  content: "";
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--primary);
  pointer-events: none;
}
.proposal-card .phone-group .cc-wrap select {
  width: 130%;
  height: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.2rem 0.9rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  -webkit-appearance: none;
  appearance: none;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.proposal-card .phone-group .cc-wrap select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(1, 103, 225, 0.14);
}
.proposal-card .phone-group input { width: 100%; }
.proposal-card .field select { font-family: inherit; font-size: 0.95rem; padding: 0.9rem 2.2rem 0.9rem 1.1rem; border-radius: var(--radius-md); border: 1.5px solid var(--border-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230167e1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 1rem center; -webkit-appearance:none; appearance:none; color:var(--text); width:100%; cursor:pointer; transition: border-color var(--transition), box-shadow var(--transition); }
.proposal-card .field select:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 4px rgba(1,103,225,0.14); }
@media (max-width: 480px) { .proposal-card .phone-group { grid-template-columns: 1fr; } }

/* ---- Section: clients / certs bands ---- */
.logo-band { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.logo-band__label {
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

/* ---- Stat / CTA band ---- */
.cta-band {
  background: var(--brand-gradient);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4rem);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255, 255, 255, 0.92); margin-top: 0.6rem; max-width: 46ch; }

/* ---- Inner page hero ---- */
.page-hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 85% 0%, rgba(28, 214, 254, 0.14), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.breadcrumbs a:hover { color: var(--primary); }
.page-hero h1 { max-width: 18ch; margin-bottom: 1rem; }
.page-hero p { font-size: 1.15rem; max-width: 60ch; }

/* ---- Feature list (inner pages) ---- */
.feature-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  height: 100%;
}
.feature-item .icon-chip { width: 46px; height: 46px; font-size: 1.2rem; border-radius: var(--radius-sm); }
.feature-item h4 { margin-bottom: 0.35rem; }
.feature-item p { font-size: 0.96rem; }

/* ---- Process steps ---- */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  counter-reset: step;
}
.step {
  flex: 1 1 160px;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: var(--surface);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}
.step p { color: var(--text); font-weight: 500; margin: 0; }

/* ---- Prose (blog detail) ---- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose p, .prose li { color: var(--text); line-height: 1.8; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img { border-radius: var(--radius-md); margin-block: 1.5rem; }
.prose a { color: var(--primary); text-decoration: underline; }
.legal-prose { padding-bottom: 2rem; }
.prose blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.2rem;
  font-style: italic;
  color: var(--text-muted);
}
.prose code {
  background: var(--surface-2);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.92em;
}
.prose pre {
  background: var(--surface-invert);
  color: var(--text-on-dark);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; display: block; }

/* ---- Service / AWS hero breadcrumbs & locked service chip ---- */
.service-hero .breadcrumbs { font-size: 0.83rem; }
.service-hero .breadcrumbs a { color: var(--primary); }
.service-hero .breadcrumbs span { color: var(--text-muted); }

.service-lock-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--primary);
  background: rgba(1, 103, 225, 0.06);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: not-allowed;
  user-select: none;
}
.service-lock-chip i:first-child { color: var(--primary); font-size: 1.1rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sub { max-width: 48ch; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
