/* ==============================
   Public pages CSS
   ============================== */

/* Body */
.public-body {
  background: #fff;
  color: #1e293b;
}

/* Container */
.pub-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================
   Header
   ============================== */
.public-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
}

.pub-header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.pub-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  text-decoration: none;
}

.pub-logo .logo-icon {
  font-size: 26px;
  color: #4f46e5;
}

.pub-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.pub-nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.pub-nav-link:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.pub-nav-link.active {
  background: #ede9fe;
  color: #4f46e5;
}

/* ==============================
   Main content
   ============================== */
.pub-main {
  min-height: calc(100vh - 64px - 68px);
}

/* ==============================
   Hero
   ============================== */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 100%);
  padding: 96px 0 80px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.hero-badge {
  display: inline-block;
  background: #ede9fe;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-ghost:hover {
  background: #f1f5f9;
}

/* ==============================
   Sections
   ============================== */
.pub-section {
  padding: 80px 0;
}

.bg-light {
  background: #f8fafc;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-sub {
  text-align: center;
  color: #64748b;
  font-size: 16px;
  margin-bottom: 48px;
}

/* ==============================
   Feature grid
   ============================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* ==============================
   Stats bar
   ============================== */
.stats-bar {
  background: #1e293b;
  padding: 48px 0;
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.stat-item span {
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==============================
   CTA section
   ============================== */
.cta-section {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.cta-inner {
  text-align: center;
  color: #fff;
}

.cta-inner h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-inner p {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 28px;
}

.cta-inner .btn-primary {
  background: #fff;
  color: #4f46e5;
  font-weight: 700;
  padding: 12px 28px;
  font-size: 15px;
}

.cta-inner .btn-primary:hover {
  background: #f1f5f9;
}

/* ==============================
   Footer
   ============================== */
.pub-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.pub-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

.pub-footer-links {
  display: flex;
  gap: 20px;
}

.pub-footer-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}

.pub-footer-links a:hover {
  color: #4f46e5;
}

/* ==============================
   Page hero (inner pages)
   ============================== */
.page-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 50%);
  padding: 64px 0 48px;
  border-bottom: 1px solid #e2e8f0;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.page-hero p {
  font-size: 17px;
  color: #64748b;
}

/* ==============================
   About page
   ============================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}

.about-text h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.about-text p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 16px;
}

.mt-section {
  margin-top: 36px !important;
}

.values-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.values-list li span {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

.values-list li p {
  margin: 0;
  color: #64748b;
}

.info-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.info-card h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.info-val {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.team-card {
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 16px;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 14px;
}

.team-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 13px;
  color: #64748b;
}

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

.contact-form-wrap h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.mb-4 {
  margin-bottom: 16px;
}

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

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.contact-info h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 3px;
}

.contact-item p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

.contact-card-tip {
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  border-radius: 12px;
  padding: 20px;
  margin-top: 32px;
}

.contact-card-tip strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.contact-card-tip p {
  font-size: 13px;
  color: #475569;
  margin-bottom: 0;
}

.mt-2 {
  margin-top: 8px;
}

/* Alert success */
.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 48px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .pub-nav {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
