
/* =========================================================
   T2C AI NEXUS - Local Tailwind Replacement CSS
   ========================================================= */

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- BODY ---------- */
body {
  font-family: 'Inter', sans-serif;
  background-color: #FFFFFF;
  color: #1F2937;
  line-height: 1.5;
}

/* ---------- GLOBAL ANCHOR RESET ---------- */
/* STRONG reset: browser blue/purple must never appear anywhere */
a {
  color: inherit;
  text-decoration: none;
}
a:link {
  color: inherit !important;
  text-decoration: none !important;
}
a:visited {
  color: inherit !important;
  text-decoration: none !important;
}
a:link, a:visited {
  -webkit-text-decoration: none;
}

/* Nav links: white across all states — must beat browser defaults */
nav a {
  color: #ffffff !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
nav a:link {
  color: #ffffff !important;
  text-decoration: none !important;
}
nav a:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}
nav a:hover {
  color: #D1D5DB !important;
}

/* Active navigation link highlight (white bold text with white underline) */
nav a.active-page,
nav a.active-page:link,
nav a.active-page:visited,
nav a.active-page:hover {
  font-weight: 700 !important;
  color: #ffffff !important;
  border-bottom: 2px solid #ffffff !important;
  padding-bottom: 4px;
}

/* Body / paragraph links: brand accent, no underline by default */
p a,
p a:link,
p a:visited,
.content-link,
.content-link:link,
.content-link:visited {
  color: #1E3A8A;
  text-decoration: none;
}

p a:hover,
.content-link:hover {
  text-decoration: underline;
}

/* Footer links styling: readable high-contrast light gray to white on hover */
footer a,
footer a:link,
footer a:visited {
  color: #D1D5DB !important;
  text-decoration: none;
  transition: color 0.2s ease;
}


footer a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* Buttons / form elements: inherit font only */
button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- FORM INPUTS ---------- */
input[type="text"],
input[type="email"],
textarea {
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #1E3A8A;
  box-shadow: 0 0 0 3px rgba(30,58,138,0.12);
}

/* Custom checkbox and radio styling */
input[type="checkbox"],
input[type="radio"] {
  accent-color: #1E3A8A;
}

.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.cursor-pointer { cursor: pointer; }

.border-gray-300 { border: 1px solid #D1D5DB; }

/* Field-level validation error message */
.field-err {
  display: none;
  color: #DC2626;
  font-size: 0.78rem;
  margin-top: 4px;
}


/* ---------- BRAND COLORS ---------- */
.bg-brand-black { background-color: #0A0A0A; }
.bg-brand-accent { background-color: #1E3A8A; }
.hover\:bg-brand-accent-light:hover { background-color: #2563EB; }

.text-brand-accent { color: #1E3A8A; }

.border-brand-accent {
  border-color: #1E3A8A;
}

/* ---------- BACKGROUNDS ---------- */
.bg-white { background-color: #FFFFFF; }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-gray-100 { background-color: #F3F4F6; }
.bg-gray-900 { background-color: #111827; }

.bg-blue-50 { background-color: #EFF6FF; }
.bg-green-50 { background-color: #ECFDF5; }
.bg-yellow-50 { background-color: #FEFCE8; }

/* ---------- TEXT COLORS ---------- */
.text-white { color: #FFFFFF; }
a.text-white:link, a.text-white:visited { color: #FFFFFF !important; }

.text-gray-300 { color: #D1D5DB; }
a.text-gray-300:link, a.text-gray-300:visited { color: #D1D5DB !important; }

.text-gray-400 { color: #9CA3AF; }
a.text-gray-400:link, a.text-gray-400:visited { color: #9CA3AF !important; }

.text-gray-500 { color: #6B7280; }
a.text-gray-500:link, a.text-gray-500:visited { color: #6B7280 !important; }

.text-gray-600 { color: #4B5563; }
a.text-gray-600:link, a.text-gray-600:visited { color: #4B5563 !important; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1F2937; }
.text-gray-900 { color: #111827; }

.text-green-600 { color: #059669; }

/* ---------- TYPOGRAPHY ---------- */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-7xl {
  font-size: 4.5rem;
  line-height: 1;
}

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.tracking-tight {
  letter-spacing: -0.025em;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ---------- WIDTHS ---------- */
.w-full { width: 100%; }
.w-48 { width: 12rem; }

.min-w-full {
  min-width: 100%;
}

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }

/* ---------- HEIGHT ---------- */
.min-h-screen {
  min-height: 100vh;
}

/* ---------- MARGIN ---------- */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

/* ---------- PADDING ---------- */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-10 { padding: 2.5rem; }

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* ---------- FLEX ---------- */
.flex { display: flex; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.block { display: block; }
.hidden { display: none; }

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* ---------- GRID ---------- */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* ---------- GAP ---------- */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

.gap-x-4 {
  column-gap: 1rem;
}

.gap-y-1 {
  row-gap: 0.25rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ---------- BORDERS ---------- */
.border {
  border: 1px solid #E5E7EB;
}

.border-gray-100 {
  border-color: #F3F4F6;
}

.border-gray-400 {
  border-color: #9CA3AF;
}

.border-gray-500 {
  border-color: #6B7280;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* ---------- TABLE DIVIDERS ---------- */
.divide-y > * + * {
  border-top: 1px solid #E5E7EB;
}

.divide-gray-200 > * + * {
  border-color: #E5E7EB;
}

/* ---------- SHADOWS ---------- */
.shadow-sm {
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.shadow-md {
  box-shadow:
    0 4px 6px rgba(0,0,0,0.1),
    0 2px 4px rgba(0,0,0,0.06);
}

/* ---------- POSITION ---------- */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-50 {
  z-index: 50;
}

/* ---------- OVERFLOW ---------- */
.overflow-x-auto {
  overflow-x: auto;
}

/* ---------- HOVER ---------- */
.hover\:underline:hover {
  text-decoration: underline;
}

.hover\:text-white:hover {
  color: #FFFFFF;
}

.hover\:text-gray-300:hover {
  color: #D1D5DB;
}

.hover\:bg-gray-100:hover {
  background-color: #F3F4F6;
}

.hover\:border-white:hover {
  border-color: #FFFFFF;
}

/* ---------- DROPDOWN NAV ---------- */
/* Services dropdown - works with pure CSS, no Tailwind JIT needed */
.nav-dropdown {
  position: relative;
  display: inline-block;
  /* Keep padding so the hover area extends below the text */
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: color 0.2s ease;
  pointer-events: auto;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;        /* flush to bottom of the nav-dropdown, no gap */
  left: 0;
  padding-top: 8px; /* visual breathing room via padding, NOT a gap */
  background: transparent;
  z-index: 200;
  min-width: 220px;
}

/* The actual visible card is a child of the menu wrapper */
.nav-dropdown-menu-inner {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28), 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid #E5E7EB;
  animation: dropdownFade 0.15s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 18px;
  color: #1F2937 !important;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  border-bottom: 1px solid #F3F4F6;
  white-space: nowrap;
}

/* Fix: beat nav a:link specificity for dropdown items */
.nav-dropdown-menu-inner a:link,
.nav-dropdown-menu-inner a:visited {
  color: #1F2937 !important;
  text-decoration: none !important;
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu-inner a:hover {
  background: #EFF6FF;
  color: #1E3A8A !important;
}

/* ---------- ORDER (grid/flex column ordering) ---------- */
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }

/* ---------- CONTACT BUTTON ---------- */
.contactbtn {
  background-color: #1E3A8A;
  border: none;
  padding: 12px 32px;
  color: #ffffff;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 1rem;
}
.contactbtn:hover {
  background-color: #2563EB;
}

/* ---------- FORM STATUS COLORS ---------- */
.text-red-600 { color: #DC2626; }
.text-green-600 { color: #059669; }

/* ---------- MOBILE NAV ---------- */
/* Hamburger button — visible only on mobile */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate to X when open */
.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown panel */
.mobile-nav-menu {
  display: none;
  flex-direction: column;
  width: 100%;
  background: #0A0A0A;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 0;
  animation: mobileMenuSlide 0.2s ease;
}

.mobile-nav-menu.open {
  display: flex;
}

@keyframes mobileMenuSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav-menu a {
  display: block;
  padding: 12px 24px;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s ease;
}

.mobile-nav-menu a:link,
.mobile-nav-menu a:visited {
  color: #ffffff !important;
}

.mobile-nav-menu a:hover {
  background: rgba(255,255,255,0.07);
  color: #D1D5DB !important;
}

.mobile-nav-menu a.active-page {
  color: #ffffff !important;
  font-weight: 700;
  border-left: 3px solid #2563EB;
  padding-left: 21px;
}

/* Mobile services sub-items — slightly indented */
.mobile-nav-submenu {
  display: none;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
}

.mobile-nav-submenu.open {
  display: flex;
}

.mobile-nav-submenu a {
  padding-left: 40px;
  font-size: 0.875rem;
  color: #D1D5DB !important;
}

.mobile-services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s ease;
  user-select: none;
}

.mobile-services-toggle:hover {
  background: rgba(255,255,255,0.07);
}

.mobile-services-toggle .arrow {
  transition: transform 0.25s ease;
  font-size: 0.75rem;
}

.mobile-services-toggle.open .arrow {
  transform: rotate(180deg);
}



/* ---------- GROUP HOVER ---------- */
.group:hover .group-hover\:block {
  display: block;
}

/* ---------- CARD EFFECT ---------- */
.card-hover {
  transition: all 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -12px rgba(0,0,0,0.1);
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 640px) {

  .sm\:inline {
    display: inline;
  }

  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {

  /* Hide mobile hamburger on desktop */
  .mobile-menu-btn { display: none; }
  .mobile-nav-menu { display: none !important; }

  .md\:flex {
    display: flex;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .md\:text-lg {
    font-size: 1.125rem;
  }

  .md\:text-2xl {
    font-size: 1.5rem;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
  }

  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .md\:text-7xl {
    font-size: 4.5rem;
  }

  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }

  .md\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1024px) {

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:px-24 {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}
