/*
==================================================
  style.css
  Theme: Business Training in Colombia
  Design System: Neumorphism & Skewed Grids
  Color Scheme: Tetradic
  Animation Style: Drawn Animations
==================================================
*/

/* 
--------------------------------------------------
  1. CSS Variables & Root Styles
--------------------------------------------------
*/

:root {
  /* Tetradic Color Scheme */
  --color-bg: #F0F2F5; /* Light, slightly cool background for Neumorphism */
  --color-primary: #0D63A5; /* Professional Blue */
  --color-secondary: #E87A00; /* Vibrant Orange Accent */
  --color-accent1: #5D3A9B; /* Deep Purple */
  --color-accent2: #008450; /* Strong Green */
  
  /* Text Colors */
  --color-text: #33373D;
  --color-text-light: #FFFFFF;
  --color-headings: #22252A;

  /* Neumorphism Shadow Colors */
  --shadow-color-light: #FFFFFF;
  --shadow-color-dark: #D1D9E6;

  /* Typography */
  --font-headings: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Layout */
  --header-height: 80px;
  --border-radius: 15px;
}

/* 
--------------------------------------------------
  2. Base & Typography
--------------------------------------------------
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--color-headings);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 
--------------------------------------------------
  3. Layout & Utility Classes
--------------------------------------------------
*/

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-light {
  background-color: #FAFBFC;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--color-headings);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
  color: #555;
}

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

/* For ScrollReveal.js */
.reveal {
  visibility: hidden;
}

/* 
--------------------------------------------------
  4. Global Components (Buttons, Cards, Forms)
--------------------------------------------------
*/

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 5px 5px 10px var(--shadow-color-dark), -5px -5px 10px var(--shadow-color-light);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 15px var(--shadow-color-dark), -8px -8px 15px var(--shadow-color-light);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: inset 4px 4px 8px var(--shadow-color-dark), inset -4px -4px 8px var(--shadow-color-light);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn-primary:hover {
  background-color: #0B5894; /* Darker primary */
  color: var(--color-text-light);
}

.btn-secondary {
  background-color: var(--color-bg);
  color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-bg);
  color: var(--color-secondary);
}

/* --- Cards --- */
.card {
  background-color: var(--color-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 8px 8px 16px var(--shadow-color-dark), -8px -8px 16px var(--shadow-color-light);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%; /* For equal height cards in a grid */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 12px 12px 24px var(--shadow-color-dark), -12px -12px 24px var(--shadow-color-light);
}

.card-image {
  margin-bottom: 1.5rem;
  width: 100%;
  height: 200px; /* Fixed height for image containers */
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: inset 4px 4px 8px var(--shadow-color-dark), inset -4px -4px 8px var(--shadow-color-light);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area without distortion */
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}

.card-content h3 {
  margin-bottom: 0.75rem;
}

/* 
--------------------------------------------------
  5. Header & Navigation
--------------------------------------------------
*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header-logo {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}
.header-logo strong {
    color: var(--color-secondary);
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.cta-button-nav {
  padding: 10px 20px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.cta-button-nav:hover {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}
.cta-button-nav:hover::after {
  width: 0;
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.burger-menu span {
  width: 2rem;
  height: 0.25rem;
  background: var(--color-primary);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-nav {
  display: none;
}

/* 
--------------------------------------------------
  6. Section Styles
--------------------------------------------------
*/

/* --- Hero Section --- */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(13, 99, 165, 0.7), rgba(93, 58, 155, 0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  color: var(--color-text-light);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
}

/* --- Skewed Grid Layout --- */
.skewed-grid {
  transform: skewY(-3deg);
  margin: 3rem 0;
}

.skewed-grid > * {
  transform: skewY(3deg);
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

/* --- Process Section --- */
.process-wrapper {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  text-align: center;
}

.process-step {
  max-width: 350px;
}

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}
.pricing-card {
    padding: 2.5rem 2rem;
    position: relative;
}
.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--color-primary);
}
.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-headings);
    color: var(--color-primary);
}
.pricing-card .period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text);
}
.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    flex-grow: 1;
}
.pricing-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--shadow-color-dark);
}
.pricing-card li:last-child {
    border-bottom: none;
}

/* --- Pricing Toggle --- */
.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    font-weight: 600;
}
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg);
    box-shadow: inset 3px 3px 6px var(--shadow-color-dark), inset -3px -3px 6px var(--shadow-color-light);
    transition: .4s;
    border-radius: 34px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    box-shadow: 2px 2px 4px var(--shadow-color-dark);
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--color-primary);
    box-shadow: none;
}
input:checked + .slider:before {
    transform: translateX(26px);
}

/* --- Customer Stories --- */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
}
.testimonial-card .card-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-top: -50px; /* Pulls avatar up */
    border: 5px solid var(--color-bg);
}
.testimonial-card blockquote p {
    font-style: italic;
    font-size: 1.1rem;
    margin: 1.5rem 0;
}
.testimonial-card cite {
    font-weight: 600;
    color: var(--color-primary);
}

/* --- Behind the Scenes (Gallery) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.gallery-item img {
    border-radius: var(--border-radius);
    box-shadow: 5px 5px 10px var(--shadow-color-dark), -5px -5px 10px var(--shadow-color-light);
    transition: transform 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.03);
}

/* --- Insights Section --- */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}
.read-more {
    font-weight: 600;
    color: var(--color-secondary);
    margin-top: auto; /* Pushes to the bottom */
}
.read-more:hover {
    text-decoration: underline;
}

/* --- Events Section --- */
.event-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}
.event-item {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 5px 5px 10px var(--shadow-color-dark), -5px -5px 10px var(--shadow-color-light);
    margin-bottom: 1.5rem;
}
.event-date {
    flex-shrink: 0;
    text-align: center;
    background: var(--color-primary);
    color: var(--color-text-light);
    border-radius: 10px;
    padding: 1rem;
    font-weight: 700;
}
.event-date span {
    display: block;
    font-size: 2rem;
    line-height: 1;
}
.event-details {
    flex-grow: 1;
}
.event-details h3 {
    margin-bottom: 0.5rem;
}
.event-details p {
    margin-bottom: 0;
}

/* --- Research (Stats) Section --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-widget {
    padding: 2rem;
}
.stat-number {
    font-size: 4rem;
    font-weight: 700;
    font-family: var(--font-headings);
    color: var(--color-primary);
    line-height: 1;
}
.stat-label {
    font-size: 1.1rem;
    color: var(--color-text);
}

/* --- External Resources Section --- */
.resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}
.resource-card {
    display: block;
    padding: 1.5rem;
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    box-shadow: 5px 5px 10px var(--shadow-color-dark), -5px -5px 10px var(--shadow-color-light);
    transition: all 0.3s ease;
    color: var(--color-text);
}
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 15px var(--shadow-color-dark), -8px -8px 15px var(--shadow-color-light);
    color: var(--color-primary);
}
.resource-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.resource-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.resource-source {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-accent1);
}

/* --- Contact Form --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}
.form-group {
    position: relative;
    margin-bottom: 2rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: var(--color-bg);
    box-shadow: inset 4px 4px 8px var(--shadow-color-dark), inset -4px -4px 8px var(--shadow-color-light);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: inset 2px 2px 4px var(--shadow-color-dark), inset -2px -2px 4px var(--shadow-color-light),
                2px 2px 5px var(--shadow-color-dark), -2px -2px 5px var(--shadow-color-light);
}
.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -25px;
    left: 5px;
    font-size: 0.8rem;
    color: var(--color-primary);
}
.contact-form .btn {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 2rem auto 0 auto;
}

/* 
--------------------------------------------------
  7. Footer
--------------------------------------------------
*/
.footer {
  background-color: #2a2e34;
  color: #a9b3c1;
  padding: 60px 0 20px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  display: inline-block;
}
.footer-logo strong {
    color: var(--color-secondary);
}

.footer-col h4 {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: #a9b3c1;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 20px;
  font-size: 0.85rem;
}

/* 
--------------------------------------------------
  8. Page-Specific Styles
--------------------------------------------------
*/

/* --- Privacy, Terms Pages --- */
.static-page-content {
    padding: calc(var(--header-height) + 40px) 0 60px 0;
}
.static-page-content .container h1 {
    margin-bottom: 2rem;
}
.static-page-content .container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* --- Success Page --- */
.success-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--color-bg);
}

.success-card {
    max-width: 600px;
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: var(--color-bg);
    box-shadow: 10px 10px 20px var(--shadow-color-dark), -10px -10px 20px var(--shadow-color-light);
}

.success-card h1 {
    color: var(--color-accent2);
}

/* 
--------------------------------------------------
  9. Responsive Media Queries
--------------------------------------------------
*/
@media (max-width: 992px) {
  h1, .hero-title { font-size: 3rem; }
  h2 { font-size: 2rem; }
  
  .process-wrapper {
      flex-direction: column;
      align-items: center;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .mobile-nav {
    display: block;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-bg);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform 0.4s ease-in-out;
  }
  
  .mobile-nav.active {
    transform: translateY(0);
  }
  
  .mobile-nav ul {
    list-style: none;
    padding: 1rem 0;
  }
  
  .mobile-nav li a {
    display: block;
    padding: 1rem 2rem;
    color: var(--color-text);
    font-weight: 600;
  }
  .mobile-nav li a:hover {
      background-color: #e9ecef;
  }

  h1, .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }

  .section {
    padding: 60px 0;
  }

  .skewed-grid {
      transform: skewY(0);
  }
  .skewed-grid > * {
      transform: skewY(0);
  }

  .event-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }

  .stories-grid,
  .resources-list {
      grid-template-columns: 1fr;
  }
}