/* TeclaControl — Custom Styles
   Palette: Emerald Dark #0b7d27, Mid #059669, Light #4FA7D8
   Font: Inter via Google Fonts
   Stack: Bootstrap 5 + custom overrides
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --tc-navy:    #075f42;
  --tc-azure:   #0b7d27;
  --tc-cyan:    #4FA7D8;
  --tc-slate:   #272633;;
  --tc-muted:   #52796F;
  --tc-bg:      #272633;
  --tc-white:   #FFFFFF;
  --tc-border:  #ebf7f2;
  --tc-card-bg: #FFFFFF;
  --tc-grad:    linear-gradient(135deg, #0b7d27 0%, #4FA7D8 100%);
  --tc-grad-soft: linear-gradient(135deg, rgba(6,95,70,0.05) 0%, rgba(52,211,153,0.05) 100%);
}

/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--tc-bg);
  color: var(--tc-slate);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--tc-slate);
}

a { color: var(--tc-azure); text-decoration: none; }
a:hover { color: var(--tc-navy); }

/* ── Navbar ─────────────────────────────────────────────── */
.tc-navbar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tc-border);
  padding: 0.875rem 0;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.tc-navbar.scrolled {
  box-shadow: 0 2px 20px rgba(6,95,70,0.08);
}
.tc-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tc-slate) !important;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tc-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--tc-azure);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0;
}
.tc-navbar .nav-link {
  color: var(--tc-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.875rem !important;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.tc-navbar .nav-link:hover,
.tc-navbar .nav-link.active {
  color: var(--tc-navy) !important;
  background: rgba(6,95,70,0.06);
}
.btn-tc-primary {
  background: var(--tc-azure);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(6,95,70,0.25);
}
.btn-tc-primary:hover {
  background:var(--tc-bg);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6,95,70,0.35);
}
.btn-tc-outline {
  border: 2px solid var(--tc-navy);
  color: var(--tc-navy) !important;
  background: transparent;
  border-radius: 8px;
  padding: 0.55rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-tc-outline:hover {
  background: var(--tc-bg);
  color: #fff !important;
  transform: translateY(-1px);
}

/* ── Hero ───────────────────────────────────────────────── */
.tc-hero {
  min-height: calc(100vh - 65px);
  display: flex;
  align-items: center;
  background: var(--tc-white);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}
.tc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to_right, #80808012 1px, transparent 1px),
              linear-gradient(to bottom, #80808012 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}
.tc-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.tc-hero-blob-1 {
  width: 400px;
  height: 400px;
  background: rgba(6,95,70,0.12);
  top: -100px;
  right: -100px;
}
.tc-hero-blob-2 {
  width: 350px;
  height: 350px;
  background: rgba(52,211,153,0.10);
  bottom: -80px;
  left: -80px;
}
.tc-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--tc-slate);
}
.tc-hero h1 .gradient-text {
  background: var(--tc-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tc-hero .lead {
  font-size: 1.125rem;
  color: var(--tc-muted);
  line-height: 1.75;
  max-width: 540px;
}
.tc-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: var(--tc-navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.tc-badge-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tc-azure);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.tc-hero-visual {
  background: var(--tc-grad);
  border-radius: 20px;
  padding: 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tc-hero-visual::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.tc-stat-mini {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
}
.tc-stat-mini .number { font-size: 1.75rem; font-weight: 800; color: #fff; }
.tc-stat-mini .label  { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 500; }

/* ── Section shared ─────────────────────────────────────── */
section { padding: 5rem 0; }
.section-label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tc-bg);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tc-bg);
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--tc-bg);
  max-width: 540px;
  margin: 0 auto 3rem;
}

/* ── Trust Bar ──────────────────────────────────────────── */
.tc-trust {
  background: #fff;
  border-top: 1px solid var(--tc-border);
  border-bottom: 1px solid var(--tc-border);
  padding: 2rem 0;
}
.tc-trust p {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 1.5rem;
}
.trust-partner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  transition: opacity 0.3s;
  font-weight: 700;
  color: var(--tc-slate);
  font-size: 0.95rem;
}
.trust-partner:hover { opacity: 1; }
.trust-abbr {
  width: 34px;
  height: 34px;
  background: #F1F5F9;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--tc-navy);
}

/* ── Metrics ────────────────────────────────────────────── */
.tc-metrics { background: var(--tc-bg); }
.metric-card {
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(6,95,70,0.1);
}
.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--tc-grad-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
}
.metric-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--tc-azure);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.metric-label {
  font-size: 0.875rem;
  color: var(--tc-muted);
  font-weight: 500;
}

/* ── Services ───────────────────────────────────────────── */
.tc-services { background: #fff; }
.service-card {
  background: #fff;
  border: 1.5px solid var(--tc-border);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,95,70,0.03) 0%, rgba(52,211,153,0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: var(--tc-azure);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(6,95,70,0.12), 0 0 0 1px rgba(5,150,105,0.15);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--tc-azure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  color: #fff;
}
.service-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--tc-slate);
}
.service-card p {
  font-size: 0.875rem;
  color: var(--tc-muted);
  line-height: 1.65;
  margin: 0;
}
.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tc-azure);
  margin-top: 1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s;
}
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ── Portfolio ──────────────────────────────────────────── */
.tc-portfolio { background: var(--tc-bg); }
.portfolio-card {
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(6,95,70,0.12);
}
.portfolio-thumb {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay a {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.portfolio-overlay a:hover {
  background: #fff;
  color: var(--tc-navy);
}
.portfolio-body { padding: 1.5rem; }
.portfolio-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tc-azure);
  margin-bottom: 0.5rem;
}
.portfolio-body h5 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.portfolio-body p  { font-size: 0.85rem; color: var(--tc-muted); margin-bottom: 1rem; }
.chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: #EFF6FF;
  color: var(--tc-navy);
  border: 1px solid #BFDBFE;
  margin: 0.15rem;
}

/* ── Solutions / Values ─────────────────────────────────── */
.tc-solutions { background:#FFFFFF; }
.value-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 14px;
  transition: background 0.2s;
  margin-bottom: 0.5rem;
}
.value-item:hover {   border: 1.5px solid var(--tc-border); }
.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tc-grad-soft);
  border: 1px solid rgba(6,95,70,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.value-item h6 { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.value-item p  { font-size: 0.85rem; color: var(--tc-muted); margin: 0; }

/* ── About ──────────────────────────────────────────────── */
.tc-about { background: var(--tc-white); }
.about-visual {
  background: var(--tc-grad);
  border-radius: 20px;
  padding: 3rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.about-visual::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.about-visual h3 { font-size: 1.75rem; font-weight: 800; color: #fff; }
.about-visual p  { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.about-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
  margin: 0.2rem;
}
.value-pill {
  background: #fff;
  border: 1px solid var(--tc-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.value-pill:hover { border-color: var(--tc-azure); transform: translateY(-3px); }
.value-pill .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.value-pill .name { font-size: 0.85rem; font-weight: 700; color: var(--tc-slate); }

/* ── CTA Strip ──────────────────────────────────────────── */
.tc-cta {
  background: var(--tc-grad);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.tc-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tc-cta h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; color: #fff; }
.tc-cta p  { color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.btn-tc-white {
  background: #fff;
  color: var(--tc-navy) !important;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-tc-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.btn-tc-ghost-white {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-tc-ghost-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ── Contact ────────────────────────────────────────────── */
.tc-contact { background: #fff; }
.contact-form-wrap {
  background: var(--tc-white);
  border: 1px solid var(--tc-border);
  border-radius: 20px;
  padding: 2.5rem;
}
.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--tc-slate);
  margin-bottom: 0.4rem;
}
.form-control, .form-select {
  border: 1.5px solid var(--tc-border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  background: #fff;
  color: var(--tc-slate);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--tc-azure);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
  outline: none;
}
.form-control.is-invalid { border-color: #EF4444; }
.invalid-feedback { font-size: 0.8rem; color: #EF4444; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--tc-grad-soft);
  border: 1px solid rgba(6,95,70,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h6 { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.15rem; }
.contact-info-item p  { font-size: 0.85rem; color: var(--tc-muted); margin: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.tc-footer {
  background: var(--tc-slate);
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,0.65);
}
.tc-footer .tc-brand { color: #fff !important; }
.tc-footer-title {
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.tc-footer-link {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.tc-footer-link:hover { color: #fff; }
.tc-footer hr { border-color: rgba(255,255,255,0.08); margin: 2rem 0 1.5rem; }
.tc-footer p  { font-size: 0.8rem; margin: 0; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
  margin-right: 0.4rem;
}
.social-btn:hover { background: var(--tc-azure); color: #fff; }

/* ── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  background: var(--tc-grad);
  padding: 4rem 0 3rem;
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.page-hero p  { color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }
.breadcrumb-item a { color: rgba(255,255,255,0.65); }
.breadcrumb-item.active { color: rgba(255,255,255,0.9); }

/* ── Alert messages ─────────────────────────────────────── */
.alert-tc-success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #0b7d27;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-tc-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Utilities ──────────────────────────────────────────── */
.text-gradient {
  background: var(--tc-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-grad { background: var(--tc-grad); }
.rounded-xl { border-radius: 16px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 767px) {
  section { padding: 3.5rem 0; }
  .tc-hero { padding: 3rem 0; min-height: auto; }
  .tc-hero h1 { font-size: 2.1rem; }
  .metric-number { font-size: 2rem; }
  .about-visual { min-height: 260px; }
}
