/* ============================================================
   TIERRA ALTA SISTEMAS DE PRODUCCIÓN S.A.
   Sistema de Diseño CSS — Vanilla (Zero Dependencies)
   ============================================================ */

/* ---------- @font-face: Poppins local fallback ---------- */
/* Se usa la familia del sistema como fallback robusto.
   Si en el futuro se agregan archivos WOFF2 locales,
   se activan estas reglas descomentando y apuntando al path.  */
/*
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins/Poppins-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins/Poppins-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
*/

/* ======================== VARIABLES ======================== */
:root {
  /* --- Colores corporativos --- */
  --ta-green-primary: #026B03;
  --ta-green-accent: #08a50a;
  --ta-green-light: #e8f5e9;
  --ta-green-dark: #014a02;
  --ta-dark: #1a1a2e;
  --ta-dark-alt: #16213e;
  --ta-dark-surface: #23272b;
  --ta-white: #ffffff;
  --ta-off-white: #f8f9fa;
  --ta-gray: #6c757d;
  --ta-gray-light: #dee2e6;
  --ta-gray-dark: #343a40;
  --ta-text: #212529;
  --ta-text-light: #555;
  --ta-overlay: rgba(0, 0, 0, 0.55);

  /* --- Tipografía --- */
  --ta-font-family: 'Poppins', -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ta-font-size-base: 1rem;
  --ta-line-height: 1.7;

  /* --- Espaciado --- */
  --ta-space-xs: 0.25rem;
  --ta-space-sm: 0.5rem;
  --ta-space-md: 1rem;
  --ta-space-lg: 2rem;
  --ta-space-xl: 3rem;
  --ta-space-2xl: 5rem;

  /* --- Bordes y Sombras --- */
  --ta-radius: 8px;
  --ta-radius-lg: 16px;
  --ta-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  --ta-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);

  /* --- Transiciones --- */
  --ta-transition: 0.3s ease;

  /* --- Container --- */
  --ta-container-max: 1500px;
}

/* ======================== RESET ======================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ta-font-family);
  font-size: var(--ta-font-size-base);
  line-height: var(--ta-line-height);
  color: var(--ta-text);
  background-color: var(--ta-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ta-green-primary);
  text-decoration: none;
  transition: color var(--ta-transition);
}

a:hover {
  color: var(--ta-green-accent);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--ta-text);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

h5 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--ta-text-light);
}

/* ======================== UTILIDADES ======================== */
.texto-resaltado-verde {
  color: #000a03;
  /* Tu verde actual */
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(2, 80, 15, 0.8);
  /* Esto le da la nitidez */
  -webkit-font-smoothing: antialiased;
  /* Suaviza los bordes para mayor nitidez */
  -moz-osx-font-smoothing: grayscale;
}

/* Usamos un nombre de clase muy específico para no chocar con otros estilos */
.ajuste-fortaleza-especifico {
  display: block;
  /* Para que se comporte como un bloque independiente */
  position: relative;
  /* Permite moverlo sin afectar el flujo del diseño */
  bottom: 5px;
  /* AJUSTA ESTE NÚMERO: más alto para bajarlo, negativo para subirlo */
}

.titulo-asesoria-ajuste {
  margin-top: 5px !important;
  /* Controla la distancia desde la perspectiva del segundo texto */
}


.ta-container {
  width: 100%;
  max-width: var(--ta-container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

.ta-section {
  padding-block: var(--ta-space-2xl);
}

.ta-text-center {
  text-align: center;
}

.ta-text-white {
  color: var(--ta-white);
}

.ta-grid {
  display: grid;
  gap: var(--ta-space-lg);
}

.ta-flex {
  display: flex;
  gap: var(--ta-space-md);
}

.ta-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* subheading verde */
.ta-subheading {
  display: inline-block;
  color: var(--ta-green-accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--ta-space-sm);
}

.ta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--ta-radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--ta-transition);
}

.ta-btn-primary {
  background: var(--ta-green-primary);
  color: var(--ta-white);
}

.ta-btn-primary:hover {
  background: var(--ta-green-accent);
  color: var(--ta-white);
  transform: translateY(-2px);
  box-shadow: var(--ta-shadow);
}

/* ====================== PRE-LOADER ====================== */
.ta-preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ta-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s, visibility 0.4s;
}

.ta-preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.ta-preloader svg {
  width: 48px;
  height: 48px;
  animation: ta-spin 1s linear infinite;
}

@keyframes ta-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ======================== NAVBAR ======================== */
.ta-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: background var(--ta-transition), box-shadow var(--ta-transition);
}

.ta-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ta-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

/* -- Brand -- */
.ta-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ta-text);
}

.ta-brand img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.ta-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.ta-brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ta-text);
}

.ta-brand-sub {
  font-size: 0.72rem;
  color: var(--ta-green-primary);
  font-weight: 500;
}

/* -- Nav Links -- */
.ta-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.ta-nav-links a {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ta-text);
  border-radius: var(--ta-radius);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--ta-transition), background var(--ta-transition);
}

.ta-nav-links a:hover,
.ta-nav-links a.active {
  color: var(--ta-green-primary);
  background: var(--ta-green-light);
}

.ta-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--ta-green-primary);
  border-radius: 2px;
}

/* -- Dropdown -- */
.ta-dropdown {
  position: relative;
}

.ta-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: var(--ta-white);
  border-radius: var(--ta-radius);
  box-shadow: var(--ta-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--ta-transition);
  z-index: 100;
  padding: 0.5rem 0;
}

.ta-dropdown:hover .ta-dropdown-menu,
.ta-dropdown.open .ta-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ta-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ta-text);
  min-height: 44px;
}

.ta-dropdown-menu a:hover {
  background: var(--ta-green-light);
  color: var(--ta-green-primary);
}

/* -- Hamburger -- */
.ta-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 1001;
}

.ta-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ta-text);
  border-radius: 2px;
  transition: all var(--ta-transition);
}

.ta-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.ta-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.ta-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
@media (max-width: 768px) {
  .ta-hamburger {
    display: flex;
  }

  .ta-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    background: var(--ta-white);
    box-shadow: var(--ta-shadow-lg);
    transition: right var(--ta-transition);
    z-index: 999;
    gap: 0.25rem;
  }

  .ta-nav-links.open {
    right: 0;
  }

  .ta-nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .ta-dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 1rem;
    display: none;
  }

  .ta-dropdown.open .ta-dropdown-menu {
    display: block;
  }
}

.ta-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

.ta-nav-overlay.show {
  display: block;
}

/* ======================== HERO ======================== */
.ta-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  margin-top: 70px;
}

/* --- Hero image responsive adjustments --- */
/* TA_principal.png is 1551×656 (panoramic ~2.36:1).
   Strategy: on tall/narrow viewports reduce hero height so cover
   doesn't over-crop; on landscape/wide viewports the native ratio
   is close to the container so cover works naturally. */

/* Small phones — portrait (≤480px) */
@media (max-width: 480px) {
  .ta-hero {
    min-height: 60vh;
    background-position: 55% center;
    background-size: cover;
  }

  /* 1. Espaciado: separa el contenido del navbar (arriba) y del borde inferior (abajo) */
  .ta-hero .ta-container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  /* 2. Botones en horizontal con ajuste automático */
  .ta-hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    width: 100%;
  }

  .ta-hero-actions .ta-btn-hero-v2 {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.7rem 0.8rem;
    font-size: 0.78rem;
    text-align: center;
    white-space: nowrap;
  }
}

/* Phones landscape / phablets (481–768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .ta-hero {
    min-height: 65vh;
    background-position: center center;
    background-size: cover;
  }
}

/* Tablets portrait & landscape (769–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .ta-hero {
    min-height: 75vh;
    background-position: center center;
    background-size: cover;
  }
}

/* Standard desktops (1025–1600px) — best match for the image ratio */
@media (min-width: 1025px) and (max-width: 1600px) {
  .ta-hero {
    min-height: 100vh;
    background-position: center center;
    background-size: cover;
  }
}

/* Large monitors (1601px+) */
@media (min-width: 1601px) {
  .ta-hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center top;
  }
}

/* 2K+ screens — cap height to avoid extreme vertical stretch */
@media (min-width: 2000px) {
  .ta-hero {
    background-size: cover;
    background-position: center center;
    max-height: 1100px;
    min-height: 900px;
  }
}

/* 4K screens — tighter cap */
@media (min-width: 2560px) {
  .ta-hero {
    max-height: 1200px;
    min-height: 1000px;
    background-size: cover;
    background-position: center center;
  }
}

/* Landscape phones (short viewport) — image ratio matches naturally */
@media (max-height: 500px) and (orientation: landscape) {
  .ta-hero {
    min-height: 100vh;
    background-position: center center;
    background-size: cover;
  }
}

.ta-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(0, 0, 0, 0.1) 0%, rgba(26, 26, 46, 0.80) 100%);
  z-index: 1;
}

.ta-hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: var(--ta-white);
}

.ta-hero-content h1 {
  color: var(--ta-white);
  margin-bottom: 1rem;
}

.ta-hero-content h2 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.ta-hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Hero for sub-pages (shorter) */
.ta-hero-mini {
  min-height: 40vh;
  margin-top: 70px;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.ta-hero-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 58, 46, 0.4) 50%, rgba(26, 26, 46, 0.45) 100%);
  z-index: 1;
}

.ta-hero-mini .ta-hero-content {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.ta-hero-actions {
  display: flex;
  gap: var(--ta-space-md);
  flex-wrap: wrap;
}


/* ===================== SERVICES CARDS ===================== */
.ta-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--ta-space-lg);
}

.ta-service-card {
  background: var(--ta-white);
  border-radius: var(--ta-radius-lg);
  padding: var(--ta-space-xl) var(--ta-space-lg);
  text-align: center;
  box-shadow: var(--ta-shadow);
  transition: transform var(--ta-transition), box-shadow var(--ta-transition);
  border: 1px solid var(--ta-gray-light);
}

.ta-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ta-shadow-lg);
}

.ta-service-card-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--ta-space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ta-service-card-icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.ta-service-card h3 {
  margin-bottom: var(--ta-space-sm);
  font-size: 1.15rem;
}

/* ============= VIDEO / ABOUT SECTION (Split) ============= */
.ta-split {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  gap: var(--ta-space-xl);
  align-items: center;
}

.ta-split-alt {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--ta-space-xl);
  align-items: center;
}

@media (max-width: 768px) {

  .ta-split,
  .ta-split-alt {
    grid-template-columns: 1fr;
  }
}

.ta-video-box {
  position: relative;
  border-radius: var(--ta-radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.ta-video-box img,
.ta-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ta-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.30);
  transition: background var(--ta-transition);
}

.ta-play-btn:hover {
  background: rgba(0, 0, 0, 0.45);
}

.ta-play-btn svg {
  width: 64px;
  height: 64px;
  fill: var(--ta-white);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* ======================== TABS ======================== */
.ta-tabs {
  margin-top: var(--ta-space-lg);
}

.ta-tab-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--ta-gray-light);
  margin-bottom: var(--ta-space-md);
  overflow-x: auto;
}

.ta-tab-btn {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ta-gray);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  transition: all var(--ta-transition);
}

.ta-tab-btn:hover {
  color: var(--ta-green-primary);
}

.ta-tab-btn.active {
  color: var(--ta-green-primary);
  border-bottom-color: var(--ta-green-primary);
}

.ta-tab-panel {
  display: none;
  padding: var(--ta-space-md);
  background: var(--ta-off-white);
  border-radius: var(--ta-radius);
  animation: ta-fadeIn 0.3s ease;
}

.ta-tab-panel.active {
  display: block;
}

@keyframes ta-fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== SECTION ALT ==================== */
.ta-section-alt {
  background: var(--ta-off-white);
}

/* Green text highlight */
.ta-highlight {
  background: linear-gradient(135deg, var(--ta-green-primary) 0%, var(--ta-green-accent) 50%, var(--ta-green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pill badge */
.ta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 100px;
  border: 1px solid var(--ta-green-primary);
  color: var(--ta-green-primary);
  background: var(--ta-green-light);
  margin-bottom: var(--ta-space-sm);
}

.ta-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--ta-green-primary);
  border-radius: 50%;
  animation: ta-pulse 2s ease infinite;
}

@keyframes ta-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

/* ==================== STATS COUNTER ==================== */
.ta-hero-stats {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: var(--ta-space-xl);
  padding-top: var(--ta-space-xl);
  border-top: 1px solid var(--ta-gray-light);
}

.ta-hero-stats.ta-stats-relocated {
  justify-content: space-between;
  margin-top: var(--ta-space-xl);
  border-top: 1px solid var(--ta-gray-light);
  padding-top: var(--ta-space-xl);
  gap: 0.5rem;
  width: 100%;
}

.ta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
}

.ta-stat-number {
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--ta-green-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ta-stat-label {
  font-size: clamp(0.55rem, 1.2vw, 0.7rem);
  color: var(--ta-text-light);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ==================== FLIP CARDS ==================== */
.ta-flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--ta-space-lg);
}

.ta-flip-card {
  perspective: 1000px;
  height: 400px;
}

.ta-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.ta-flip-card:hover .ta-flip-card-inner {
  transform: rotateY(180deg);
}

.ta-flip-card-front,
.ta-flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--ta-radius-lg);
  overflow: hidden;
}

.ta-flip-card-front {
  background: var(--ta-dark-surface);
}

.ta-flip-card-front video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ta-flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, var(--ta-green-primary), var(--ta-green-dark));
  color: var(--ta-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--ta-space-lg);
}

.ta-flip-card-back h4 {
  color: var(--ta-white);
  font-size: 1.05rem;
  margin-bottom: var(--ta-space-md);
}

.ta-flip-card-back ul {
  padding-left: 0;
}

.ta-flip-card-back li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.ta-flip-card-back li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ta-green-light);
  font-weight: 700;
}

/* Touch devices: show back on tap */
@media (hover: none) {
  .ta-flip-card:active .ta-flip-card-inner {
    transform: rotateY(180deg);
  }

  .ta-flip-card-back {
    cursor: pointer;
  }
}

/* ======================== NEWS ======================== */
.ta-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--ta-space-lg);
}

.ta-news-card {
  background: var(--ta-white);
  border-radius: var(--ta-radius-lg);
  overflow: hidden;
  box-shadow: var(--ta-shadow);
  transition: transform var(--ta-transition), box-shadow var(--ta-transition);
  border: 1px solid var(--ta-gray-light);
}

.ta-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ta-shadow-lg);
}

.ta-news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.ta-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ta-news-card:hover .ta-news-card-img img {
  transform: scale(1.05);
}

.ta-news-card-body {
  padding: var(--ta-space-lg);
}

.ta-news-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 20px;
  margin-bottom: var(--ta-space-sm);
}

.ta-news-tag-news {
  background: var(--ta-green-light);
  color: var(--ta-green-primary);
}

.ta-news-tag-event {
  background: #e3f2fd;
  color: #1565c0;
}

.ta-news-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: var(--ta-space-sm);
  line-height: 1.4;
}

.ta-news-card-body p {
  font-size: 0.92rem;
  color: var(--ta-text-light);
  line-height: 1.6;
}

.ta-news-date {
  font-size: 0.82rem;
  color: var(--ta-gray);
  margin-top: var(--ta-space-sm);
}

/* ===================== ABOUT PAGE ===================== */
.ta-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--ta-space-xl);
  align-items: center;
}

@media (max-width: 768px) {
  .ta-about-grid {
    grid-template-columns: 1fr;
  }
}

.ta-about-img {
  border-radius: var(--ta-radius-lg);
  overflow: hidden;
  box-shadow: var(--ta-shadow-lg);
}

.ta-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.ta-justified {
  text-align: justify;
}

/* ======================== FOOTER ======================== */
.ta-footer {
  background: var(--ta-dark-surface);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--ta-space-2xl) 0 var(--ta-space-lg);
}

.ta-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--ta-space-xl);
  margin-bottom: var(--ta-space-xl);
}

.ta-footer h3 {
  color: var(--ta-white);
  font-size: 1.2rem;
  margin-bottom: var(--ta-space-md);
}

.ta-footer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  line-height: 1.7;
}

.ta-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: var(--ta-space-md);
}

.ta-footer-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ta-white);
}

.ta-footer-brand-sub {
  font-size: 0.85rem;
  color: var(--ta-green-accent);
  font-weight: 500;
}

/* Social icons */
.ta-social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--ta-space-md);
}

.ta-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ta-green-primary);
  color: var(--ta-white);
  border-radius: 50%;
  font-size: 1.1rem;
  transition: all var(--ta-transition);
}

.ta-social a:hover {
  background: var(--ta-green-accent);
  transform: translateY(-2px);
  color: var(--ta-white);
}

.ta-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Footer contact list */
.ta-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.ta-footer-contact li svg {
  width: 18px;
  height: 18px;
  fill: var(--ta-green-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.ta-footer-contact a {
  color: rgba(255, 255, 255, 0.85);
}

.ta-footer-contact a:hover {
  color: var(--ta-green-accent);
}

.ta-footer-bottom {
  text-align: center;
  padding-top: var(--ta-space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}

/* ================== SCROLL ANIMATIONS ================== */
.ta-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ta-reveal2 {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ta-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.ta-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ta-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.ta-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ta-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .ta-reveal,
  .ta-reveal-left,
  .ta-reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ta-flip-card-inner {
    transition: none;
  }

  .ta-preloader {
    transition: none;
  }
}

/* ================== FOCUS / A11Y ================== */
:focus-visible {
  outline: 3px solid var(--ta-green-accent);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ============== SECTION HEADINGS ============== */
.ta-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--ta-space-xl);
}

.ta-section-header h2 {
  margin-bottom: var(--ta-space-sm);
}

/* ============== RESPONSIVE BREAKPOINTS ============== */

/* 480px+ */
@media (min-width: 480px) {
  .ta-container {
    padding-inline: 1.5rem;
  }
}

/* 768px+ Tablet */
@media (min-width: 768px) {
  .ta-container {
    padding-inline: 2rem;
  }
}

/* 1024px+ Desktop */
@media (min-width: 1024px) {
  .ta-section {
    padding-block: 6rem;
  }
}

/* 1440px+ Large */
@media (min-width: 1440px) {
  :root {
    --ta-container-max: 1320px;
  }
}

/* ================== TA-V2 HERO BUTTONS ================== */
.ta-btn-hero-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 2rem;
  border-radius: var(--ta-radius, 8px);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.ta-btn-hero-v2-primary {
  background: linear-gradient(135deg, #026B03 0%, #0abf0d 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(10, 191, 13, 0.4);
  border: none;
}

.ta-btn-hero-v2-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(10, 191, 13, 0.6);
  color: #ffffff;
}

.ta-btn-hero-v2-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ta-btn-hero-v2-ghost:hover {
  border-color: #0abf0d;
  background: rgba(10, 191, 13, 0.15);
  color: #0abf0d !important;
}

/* ============== PRINT ============== */
@media print {

  .ta-navbar,
  .ta-preloader,
  .ta-play-btn {
    display: none;
  }

  .ta-hero {
    min-height: auto;
    padding: 2rem 0;
  }

  body {
    color: #000;
    background: #fff;
  }
}