/* ================================================
   SECTIONS.CSS — All Section Component Styles
   ANTC Website · Aytas Nextgen Tech Consultancy
   ================================================ */

/* ---------- SHARED CARD BASE ---------- */
.card-base {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s var(--ease);
}

/* ---------- ABOUT / PAIN POINTS ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.25rem;
  align-items: center;
  margin-top: 3.5rem;
}

.pain-items {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

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

.p-icon {
  width: 42px;
  height: 42px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.p-icon.green-icon {
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.2);
}

.p-text h4 {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--ghost);
}

.p-text p {
  font-size: 0.84rem;
  color: var(--grey);
  line-height: 1.65;
}

/* Architect card */
.arch-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.arch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(56, 189, 248, 0.07),
    transparent 70%
  );
}

.arch-emoji {
  font-size: 4.5rem;
  display: block;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.25));
}

.note-box {
  background: rgba(168, 85, 247, 0.09);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  color: #d8b4fe;
  margin-top: 1rem;
  font-style: italic;
}

.arch-rows {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.arch-row {
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- COST ENGINEERING ---------- */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}

.cost-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.cost-card:hover {
  border-color: rgba(52, 211, 153, 0.35);
  transform: translateY(-4px);
}

.cost-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--sky));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.cost-card:hover::after {
  opacity: 1;
}

.cost-saving-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1rem;
}

.cost-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.cost-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ghost);
  margin-bottom: 0.5rem;
}

.cost-desc {
  font-size: 0.84rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.cost-detail {
  font-size: 0.76rem;
  color: rgba(52, 211, 153, 0.65);
  font-style: italic;
  border-left: 2px solid rgba(52, 211, 153, 0.2);
  padding-left: 0.7rem;
}

/* Cost total bar */
.cost-total {
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cost-total-label {
  font-size: 0.88rem;
  color: var(--grey);
}

.cost-total-label strong {
  display: block;
  font-size: 1.1rem;
  color: var(--ghost);
  margin-bottom: 0.15rem;
}

.cost-total-amount {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--green);
}

.cost-total-sub {
  font-size: 0.75rem;
  color: rgba(52, 211, 153, 0.6);
  text-align: right;
}

/* ---------- PROCESS ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.process-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.process-step:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-4px);
}

.process-step::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--purple));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.process-step:hover::after {
  opacity: 1;
}

.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(56, 189, 248, 0.1);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.step-emoji {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
  display: block;
}

.step-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.45rem;
  color: var(--ghost);
}

.step-desc {
  font-size: 0.84rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 0.65rem;
}

.step-funny {
  font-size: 0.76rem;
  color: rgba(168, 85, 247, 0.65);
  font-style: italic;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}

.svc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s var(--ease);
}

.svc-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.svc-icon {
  font-size: 1.9rem;
  margin-bottom: 0.85rem;
  display: block;
}

.svc-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: var(--ghost);
}

.svc-desc {
  font-size: 0.84rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 0.7rem;
}

.svc-quip {
  font-size: 0.76rem;
  color: rgba(56, 189, 248, 0.55);
  font-style: italic;
  border-left: 2px solid rgba(56, 189, 248, 0.2);
  padding-left: 0.7rem;
}

/* ---------- VALUES ---------- */
.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}

.val-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  text-align: center;
  transition: all 0.3s var(--ease);
}

.val-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-3px);
}

.val-emoji {
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
  display: block;
}

.val-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ghost);
  margin-bottom: 0.45rem;
}

.val-desc {
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ---------- TESTIMONIALS ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.testi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--purple));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.testi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.35);
}

.testi-card:hover::before {
  opacity: 1;
}

.testi-qmark {
  font-size: 3rem;
  line-height: 1;
  color: rgba(56, 189, 248, 0.18);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  margin-bottom: -0.5rem;
}

.testi-stars {
  color: #fbbf24;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 0.1rem;
}

.testi-text {
  font-size: 0.88rem;
  color: var(--ghost);
  line-height: 1.78;
  font-style: italic;
  flex: 1;
}

.testi-savings {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.testi-saving-tag {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--green);
}

.testi-foot {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.testi-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.18),
    rgba(168, 85, 247, 0.18)
  );
  border: 2px solid rgba(56, 189, 248, 0.22);
}

.testi-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ghost);
}
.testi-role {
  font-size: 0.75rem;
  color: var(--grey);
}
.testi-branch {
  font-size: 0.71rem;
  color: rgba(148, 163, 184, 0.6);
}

.testi-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.71rem;
  color: var(--sky);
  text-decoration: none;
  margin-top: 0.18rem;
  transition: opacity 0.2s;
}

.testi-link:hover {
  opacity: 0.7;
}
.testi-link::after {
  content: "↗";
  font-size: 0.62rem;
}

/* ---------- TEAM / ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-top: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  text-align: center;
}

.stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--sky);
}

.stat-label {
  font-size: 0.73rem;
  color: var(--grey);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.team-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s var(--ease);
}

.team-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
}

.t-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.av-sky {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.av-purple {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.av-grey {
  background: rgba(148, 163, 184, 0.07);
  border: 1px dashed rgba(148, 163, 184, 0.22);
}

.t-info h4 {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ghost);
}
.t-info p {
  font-size: 0.78rem;
  color: var(--grey);
  line-height: 1.5;
}
.t-funny {
  font-size: 0.71rem;
  color: rgba(168, 85, 247, 0.65);
  font-style: italic;
}

/* ---------- PRODUCTS ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  border-radius: 100px;
  padding: 0.22rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-badge.sky-badge {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--sky);
}

.product-badge.purple-badge {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.22);
  color: #d8b4fe;
}

.products-note {
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.products-note-icon {
  font-size: 1.5rem;
}

.products-note h4 {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ghost);
  margin-bottom: 0.2rem;
}

.products-note p {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.65;
}

/* ---------- CONTACT ---------- */
.contact-wrap {
  position: relative;
  overflow: hidden;
}

.contact-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 50% 100%,
    rgba(168, 85, 247, 0.05),
    transparent 70%
  );
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem;
}

.fg {
  margin-bottom: 1.35rem;
}

.fg label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fg input,
.fg textarea,
.fg select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  color: var(--ghost);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
  border-color: var(--sky);
}

.fg textarea {
  resize: vertical;
  min-height: 90px;
}
.fg select option {
  background: var(--card);
}

.urgency-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.urgency-lbl {
  font-size: 0.74rem;
  color: var(--grey);
  white-space: nowrap;
}

input[type="range"] {
  flex: 1;
  accent-color: var(--sky);
}

.uval {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sky);
  min-width: 18px;
  text-align: right;
}

.submit-btn {
  width: 100%;
  background: var(--sky);
  color: var(--midnight);
  padding: 0.95rem;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: inherit;
}

.submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.28);
}

.submit-success {
  display: none;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
  margin-top: 1rem;
}

.submit-success .se {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.4rem;
}

.submit-success h4 {
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.submit-success p {
  font-size: 0.82rem;
  color: var(--grey);
}

.contact-pts {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cp {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.cp-icon {
  font-size: 1.1rem;
  margin-top: 2px;
}
.cp h5 {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ghost);
  margin-bottom: 0.18rem;
}
.cp p {
  font-size: 0.8rem;
  color: var(--grey);
}

.quote-box {
  margin-top: 2.25rem;
  background: var(--card);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: 14px;
  padding: 1.4rem;
}

.quote-box p {
  font-size: 0.83rem;
  color: #d8b4fe;
  font-style: italic;
  line-height: 1.7;
}
.quote-box small {
  font-size: 0.74rem;
  color: var(--grey);
  margin-top: 0.6rem;
  display: block;
}

/* ------------------------------------------------
   SECTION BACKGROUND HELPERS
   Used by components instead of inline styles
   ------------------------------------------------ */
.section-dark-grad {
  background: linear-gradient(180deg, var(--midnight), #080f1c);
}
.section-darker {
  background: #080f1c;
}
.section-mid {
  background: var(--midnight);
}
.team-body {
  color: var(--grey);
  font-size: 0.87rem;
  margin-top: 0.9rem;
  line-height: 1.75;
}

/* ================================================
   CONTACT FORM — Error state + submit loading
   ================================================ */
.submit-error {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 0.85rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.6;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ================================================
   RESPONSIVE SECTION OVERRIDES
   (supplements animations.css breakpoints)
   ================================================ */

@media (max-width: 768px) {
  /* Ticker — slow down on mobile */
  .ticker {
    animation-duration: 24s;
  }

  /* About arch-card — reduce oversized emoji */
  .arch-emoji {
    font-size: 3.5rem;
  }

  /* Team section heading alignment */
  .about-grid > div:first-child {
    order: 2;
  }
  .about-grid > div:last-child {
    order: 1;
  }

  /* Cost total label centering */
  .cost-total-label {
    text-align: center;
  }

  /* Contact points — tighten */
  .contact-pts {
    margin-top: 1.5rem;
    gap: 0.9rem;
  }
  .quote-box {
    margin-top: 1.5rem;
  }

  /* Products note text */
  .products-note h4 {
    font-size: 0.88rem;
  }
  .products-note p {
    font-size: 0.78rem;
  }

  /* Testi foot stacking for long names */
  .testi-foot {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  /* Ticker pause on very small screens — avoids jitter */
  .ticker-wrap {
    padding: 0.5rem 0;
  }

  /* Pain items — tighter gap */
  .pain-items {
    gap: 1rem;
  }
  .pain-item {
    gap: 0.75rem;
  }

  /* Note box font */
  .note-box {
    font-size: 0.74rem;
  }

  /* Urgency slider labels — hide emoji on tiny screens */
  .urgency-lbl {
    font-size: 0.68rem;
  }

  /* Footer watermarks — hide on very small to avoid overflow */
  .footer-wm-left,
  .footer-wm-right {
    display: none;
  }
}
