/* TeaSpace Frontend – charcoal + teal overlay on legacy Bootstrap theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --tf-bg: #0f1012;
  --tf-surface: #17181c;
  --tf-surface-2: #1e1f24;
  --tf-line: rgba(255, 255, 255, 0.08);
  --tf-text: #f3f3f5;
  --tf-muted: #a1a1aa;
  --tf-accent: #14b8a6;
  --tf-accent-2: #0d9488;
  --tf-radius: 14px;
  --tf-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --tf-font: "Plus Jakarta Sans", system-ui, sans-serif;
  --tf-motion: 240ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--tf-font) !important;
  background: var(--tf-bg) !important;
  color: var(--tf-text) !important;
  font-size: 16px;
  line-height: 1.55;
}

a { transition: color var(--tf-motion), opacity var(--tf-motion); }
a:focus-visible,
.btn:focus-visible,
.navbar-toggle:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.55);
  outline-offset: 2px;
}

/* Kill pink/purple brand leftovers */
.text-gredient1,
.text-gredient4,
.text-gredient7,
.text-gredient9,
h4.text-gredient1,
.counter {
  background: none !important;
  -webkit-text-fill-color: unset !important;
  color: var(--tf-accent) !important;
}

.text-shadow1 { text-shadow: none !important; }

.sectionTitle h2:after,
.sectionTitle h2::after {
  display: none !important;
  background: none !important;
}

#QsPrice,
.prices,
.tf-order-summary,
.pricing .prices {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.bg-gray,
.bg_white,
.bg-pattern,
.section-spacing.bg-gray,
.section-spacing.bg_white {
  background: transparent !important;
}

/* ===== Site header / navigation ===== */
.tf-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 12, 14, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tf-line);
}

.tf-util {
  border-bottom: 1px solid var(--tf-line);
  font-size: 0.8rem;
  color: var(--tf-muted);
}
.tf-util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
}
.tf-util-left,
.tf-util-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.tf-util a {
  color: var(--tf-muted) !important;
  text-decoration: none;
  font-weight: 600;
}
.tf-util a:hover { color: var(--tf-accent) !important; }
.tf-util i { margin-right: 0.35rem; color: var(--tf-accent); }

.tf-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 72px;
}
.tf-nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none !important;
}
.tf-nav-brand img {
  display: block;
  max-height: 44px;
  width: auto;
}
.tf-nav-brand span {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--tf-text);
}

.tf-nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex: 1;
}
.tf-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.tf-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: var(--tf-muted) !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: color var(--tf-motion), background var(--tf-motion);
}
.tf-nav-link:hover,
.tf-nav-link.is-active {
  color: var(--tf-text) !important;
  background: rgba(255, 255, 255, 0.05);
}
.tf-nav-link.is-active {
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.35);
  color: var(--tf-accent) !important;
}

.tf-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.tf-nav-ghost,
.tf-nav-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.05rem !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  margin: 0 !important;
}
.tf-nav-ghost {
  color: var(--tf-text) !important;
  border: 1px solid var(--tf-line) !important;
  background: transparent !important;
}
.tf-nav-ghost:hover {
  border-color: rgba(20, 184, 166, 0.45) !important;
  background: rgba(20, 184, 166, 0.08) !important;
}
.tf-nav-cta {
  background: linear-gradient(135deg, var(--tf-accent), var(--tf-accent-2)) !important;
  color: #042f2e !important;
  border: 0 !important;
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.22);
}
.tf-nav-cta:hover { opacity: 0.94; color: #042f2e !important; }

.tf-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--tf-line);
  background: rgba(255,255,255,0.03);
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.tf-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--tf-text);
  border-radius: 2px;
}

.tf-nav {
  position: relative;
}

@media (max-width: 991px) {
  .tf-nav-toggle { display: inline-flex; }
  .tf-nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    background: #121317;
    border-bottom: 1px solid var(--tf-line);
    box-shadow: var(--tf-shadow);
  }
  .tf-nav-menu.is-open { display: flex; }
  .tf-nav-links {
    flex-direction: column;
    align-items: stretch;
  }
  .tf-nav-link { width: 100%; }
  .tf-nav-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .tf-nav-ghost,
  .tf-nav-cta { width: 100%; }
  .tf-util-inner { min-height: 32px; font-size: 0.75rem; }
}

/* Buttons */
.btn,
.btn-primary,
.btn-xlg,
button.button-primary {
  border-radius: 999px !important;
  font-family: var(--tf-font) !important;
  font-weight: 700 !important;
  border: 0 !important;
  transition: transform var(--tf-motion), box-shadow var(--tf-motion), opacity var(--tf-motion);
}
.btn-primary,
.btn-xlg,
.btn.btn-primary {
  background: linear-gradient(135deg, var(--tf-accent), var(--tf-accent-2)) !important;
  color: #042f2e !important;
  box-shadow: 0 10px 28px rgba(20, 184, 166, 0.25);
  min-height: 48px;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}
.btn-primary:hover,
.btn-xlg:hover {
  transform: translateY(-1px);
  color: #042f2e !important;
}
.btn-outline,
.tf-btn-ghost {
  background: transparent !important;
  border: 1px solid var(--tf-line) !important;
  color: var(--tf-text) !important;
  border-radius: 999px !important;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.tf-btn-ghost:hover {
  border-color: rgba(20, 184, 166, 0.5) !important;
  color: var(--tf-text) !important;
  text-decoration: none;
}

/* Hero – full-bleed, no empty media box */
.tf-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--tf-line);
  background: #0b0c0e;
}
.tf-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 70% 40%, rgba(20, 184, 166, 0.22), transparent 60%),
    radial-gradient(50% 45% at 15% 85%, rgba(13, 148, 136, 0.12), transparent 55%),
    linear-gradient(160deg, #0a0b0d 0%, #12141a 48%, #0b0c0e 100%);
  pointer-events: none;
  animation: tf-glow 8s ease-in-out infinite alternate;
}
.tf-hero-inner {
  position: relative;
  z-index: 1;
  padding: 5rem 0 5.5rem;
  max-width: 720px;
}
.tf-hero-logo {
  display: block;
  max-height: 72px;
  width: auto;
  margin: 0 0 1.5rem;
  animation: tf-rise 650ms ease both;
}
.tf-hero-title {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0 0 0.85rem;
  color: var(--tf-text);
  animation: tf-rise 700ms ease 60ms both;
}
.tf-hero-lead {
  font-size: 1.15rem;
  color: var(--tf-muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
  animation: tf-rise 700ms ease 120ms both;
}
.tf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: tf-rise 700ms ease 180ms both;
}
.tf-hero-motion { /* container hook */ }
@keyframes tf-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tf-glow {
  from { filter: saturate(1); }
  to { filter: saturate(1.15); }
}

/* Sections */
.tf-section {
  padding: 4.5rem 0;
  position: relative;
}
.tf-section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%), var(--tf-bg);
}
.tf-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  color: var(--tf-text);
}
.tf-section-sub {
  color: var(--tf-muted);
  margin: 0 0 2.25rem;
  max-width: 36rem;
}
.sectionTitle h2,
.sectionTitle h5,
.legal-page h1,
.sub_banner h4 {
  font-family: var(--tf-font) !important;
  color: var(--tf-text) !important;
  letter-spacing: -0.03em;
}

/* Feature grid – not card-heavy: soft surfaces */
.tf-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tf-feature {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius);
  background: rgba(255,255,255,0.02);
  transition: border-color var(--tf-motion), transform var(--tf-motion), background var(--tf-motion);
}
.tf-feature:hover {
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.06);
  transform: translateY(-2px);
}
.tf-feature i {
  font-size: 1.35rem;
  color: var(--tf-accent);
  margin-bottom: 0.85rem;
  display: inline-block;
}
.tf-feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--tf-text);
}
.tf-feature p {
  margin: 0;
  color: var(--tf-muted);
  font-size: 0.95rem;
}

/* Stats */
.tf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tf-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--tf-line);
  border-bottom: 1px solid var(--tf-line);
}
.tf-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--tf-accent);
  margin-bottom: 0.25rem;
}
.tf-stat span {
  color: var(--tf-muted);
  font-size: 0.9rem;
}

/* News */
.tf-news {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tf-news-item {
  padding: 1.35rem;
  border-radius: var(--tf-radius);
  border: 1px solid var(--tf-line);
  background: var(--tf-surface);
}
.tf-news-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: var(--tf-text);
}
.tf-news-item p {
  color: var(--tf-muted);
  margin: 0 0 1rem;
}
.tf-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--tf-muted);
  font-size: 0.8rem;
}
.tf-news-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Contact */
.sub_banner {
  background: linear-gradient(160deg, #121317, #0f1012) !important;
  min-height: 180px !important;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--tf-line);
}
.sub_banner h4 {
  font-size: 2rem !important;
  font-weight: 800 !important;
}
.contact_content .media,
.cause2choose .media {
  background: var(--tf-surface) !important;
  border: 1px solid var(--tf-line) !important;
  border-radius: var(--tf-radius) !important;
  box-shadow: none !important;
  padding: 1.25rem !important;
  color: var(--tf-text) !important;
}
.contact_content .media h4,
.cause2choose .media h4 {
  color: var(--tf-text) !important;
  font-weight: 700;
}
.contact_content .media p,
.cause2choose .media p {
  color: var(--tf-muted) !important;
}
.contact_content .media a,
.cause2choose .media a {
  color: var(--tf-accent) !important;
}
.we_support .media-body h4 {
  color: var(--tf-accent) !important;
}
.we_support .media-body p {
  color: var(--tf-muted) !important;
}

/* Legal pages */
#content,
.content-row,
.legal-page {
  background: transparent !important;
  color: var(--tf-text) !important;
}
.legal-page {
  padding: 2.5rem 0 4rem;
  max-width: 860px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.legal-page p,
.legal-page li,
.legal-page strong {
  color: var(--tf-muted);
}
.legal-page a { color: var(--tf-accent) !important; }
.white-box {
  background: var(--tf-surface) !important;
  border: 1px solid var(--tf-line) !important;
  border-radius: var(--tf-radius) !important;
  padding: 1.25rem !important;
  margin-bottom: 1rem;
  color: var(--tf-muted);
}

/* Order page */
#qsSlider,
#QsPrice,
#QsControls {
  color: var(--tf-text);
}
.pricing .sectionTitle h2,
.pricing .sectionTitle h5 {
  color: var(--tf-text) !important;
}
.slider {
  background: rgba(255,255,255,0.12) !important;
}
.slider::-webkit-slider-thumb {
  background: var(--tf-accent) !important;
}
.form-control {
  background: rgba(0,0,0,0.35) !important;
  border: 1px solid var(--tf-line) !important;
  color: var(--tf-text) !important;
  border-radius: 10px !important;
  min-height: 44px;
}

/* Footer */
footer.row,
.footer-main,
.copyright_line,
.subscriber {
  background: #0c0d10 !important;
  color: var(--tf-muted) !important;
}
.footer-main {
  border-top: 1px solid var(--tf-line);
  padding-top: 2.5rem !important;
  padding-bottom: 1.5rem !important;
}
.footer-main h4 {
  color: var(--tf-text) !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-main a,
.copyright_line a {
  color: var(--tf-muted) !important;
}
.footer-main a:hover { color: var(--tf-accent) !important; }
.footer-main ul { list-style: none; padding: 0; }
.footer-main ul li { margin-bottom: 0.45rem; }
.social_icos .nav li a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.15);
  color: var(--tf-accent) !important;
  margin: 0 0.25rem;
}
.social_icos .nav li a:hover {
  background: var(--tf-accent);
  color: #042f2e !important;
}
.clients.bg_white {
  background: transparent !important;
  border-top: 1px solid var(--tf-line);
  padding: 1.5rem 0 !important;
}
.copyright_line {
  border-top: 1px solid var(--tf-line);
  padding: 1.25rem 0 2rem !important;
  font-size: 0.85rem;
}
.copyright_line b { color: var(--tf-muted); font-weight: 500; }

#back-to-top {
  background: var(--tf-accent) !important;
  color: #042f2e !important;
  border-radius: 999px !important;
}

/* Order page */
.tf-page-hero {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--tf-line);
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(20, 184, 166, 0.12), transparent 60%),
    var(--tf-bg);
}
.tf-page-hero .tf-section-sub { margin-bottom: 0; }

.tf-order-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.75rem;
}
.tf-order-config,
.tf-order-summary-card {
  background: var(--tf-surface);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius);
  padding: 1.5rem;
  box-shadow: var(--tf-shadow);
}
.tf-order-field { margin-bottom: 1.5rem; }
.tf-order-field:last-child { margin-bottom: 0; }
.tf-order-field label,
.tf-order-label-row label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--tf-muted);
  margin-bottom: 0.65rem;
}
.tf-order-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.tf-order-live {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--tf-accent);
  letter-spacing: -0.03em;
}
.tf-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  outline: none;
}
.tf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tf-accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
}
.tf-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--tf-accent);
  cursor: pointer;
}
.tf-range-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--tf-muted);
}
.tf-order-summary-card h2 {
  margin: 0 0 1.1rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tf-text);
}
.tf-order-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--tf-line);
  color: var(--tf-muted);
}
.tf-order-row strong {
  color: var(--tf-text);
  font-size: 1.15rem;
  font-weight: 800;
}
.tf-order-row small {
  font-weight: 600;
  color: var(--tf-muted);
  font-size: 0.8rem;
}
.tf-order-note {
  margin: 0.85rem 0 1.15rem;
  font-size: 0.85rem;
  color: var(--tf-muted);
}
.tf-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  color: var(--tf-muted);
  font-size: 0.92rem;
  cursor: pointer;
}
.tf-check input {
  margin-top: 0.2rem;
  accent-color: var(--tf-accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .tf-order-grid { grid-template-columns: 1fr; }
}

/* Order page */
.tf-order-panel {
  background: var(--tf-surface);
  border: 1px solid var(--tf-line);
  border-radius: var(--tf-radius);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--tf-shadow);
}
.tf-order-summary h5,
#QsControls .title {
  color: var(--tf-muted) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
}
.tf-order-summary .doller,
.tf-order-summary [data-slots] {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--tf-text) !important;
  letter-spacing: -0.03em;
}

@media (max-width: 991px) {
  .tf-features,
  .tf-news { grid-template-columns: 1fr 1fr; }
  .tf-stats { grid-template-columns: 1fr 1fr; }
  .tf-hero-logo { max-height: 56px; }
}
@media (max-width: 640px) {
  .tf-features,
  .tf-news,
  .tf-stats { grid-template-columns: 1fr; }
  .tf-hero { min-height: auto; }
  .tf-hero-inner { padding: 3.5rem 0 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tf-hero-motion,
  .tf-feature,
  .btn { animation: none !important; transition: none !important; }
}
