/*
  style.css
  Theme: Financial Consulting in Argentina
  Design System: Corporate, Block Interface
  Color Scheme: Monochrome
  Animation: 3D Effects
*/

/* -------------------------------------------------------------------------- */
/*                                  VARIABLES                                 */
/* -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --primary-color: #1a1a1a; /* Dark Charcoal for primary actions */
  --primary-color-hover: #000000;
  --accent-color: #e0e0e0; /* Light gray for accents */
  --text-dark: #222222;
  --text-light: #f5f5f5;
  --text-muted: #7a7a7a;
  --background-light: #ffffff;
  --background-medium: #f9f9f9;
  --background-dark: #121212;
  --border-color: #e0e0e0;
  
  /* Typography */
  --font-family-headings: 'Poppins', sans-serif;
  --font-family-body: 'Work Sans', sans-serif;

  /* Spacing & Sizing */
  --navbar-height: 6rem;
  --section-padding: 5rem 1.5rem;
  --card-border-radius: 12px;
  
  /* Effects */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);
  --transition-speed: 0.3s ease-in-out;
}

/* -------------------------------------------------------------------------- */
/*                                GLOBAL STYLES                               */
/* -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  background-color: var(--background-light);
}

body {
  font-family: var(--font-family-body);
  color: var(--text-dark);
  background-color: var(--background-light);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden; /* Prevents horizontal scroll from animations */
}

/* Page transition styles for Barba.js */
.barba-leave-active,
.barba-enter-active {
  transition: opacity 0.5s ease;
}
.barba-leave-to,
.barba-enter-from {
  opacity: 0;
}

/* -------------------------------------------------------------------------- */
/*                                 TYPOGRAPHY                                 */
/* -------------------------------------------------------------------------- */

.title, .subtitle, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  color: var(--text-dark);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.title.is-1 { font-size: 3.5rem; }
.title.is-2 { font-size: 2.75rem; }
.title.is-3 { font-size: 2rem; }
.title.is-4 { font-size: 1.5rem; }

.section-title {
  margin-bottom: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

p, .content {
  font-family: var(--font-family-body);
  font-size: 1.1rem;
}

/* -------------------------------------------------------------------------- */
/*                                  COMPONENTS                                */
/* -------------------------------------------------------------------------- */

/* ----- Buttons ----- */
.button {
  font-family: var(--font-family-headings);
  font-weight: 600;
  border-radius: var(--card-border-radius);
  transition: all var(--transition-speed);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1.5rem 2.5rem;
  height: auto;
}

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

.button.is-primary:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* ----- Cards ----- */
.card {
  background-color: var(--background-light);
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px) rotateX(5deg) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.card .card-image img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.card .card-content {
  padding: 2rem;
  flex-grow: 1; /* Allows content to fill space */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card .card-content .title {
  margin-bottom: 1rem;
}

/* ----- Form Elements ----- */
.input, .textarea {
  border-radius: var(--card-border-radius);
  border: 2px solid var(--border-color);
  box-shadow: none;
  transition: all var(--transition-speed);
  padding: 1.2rem;
  font-family: var(--font-family-body);
}

.input:focus, .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.125em rgba(26, 26, 26, 0.25);
}

.label {
    font-family: var(--font-family-headings);
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/*                                   HEADER                                   */
/* -------------------------------------------------------------------------- */

.navbar {
  height: var(--navbar-height);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--background-light);
}

.navbar .logo-text {
  font-family: var(--font-family-headings);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-item {
  font-family: var(--font-family-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  transition: color var(--transition-speed);
}

.navbar-item:hover, .navbar-item:focus {
  background-color: transparent !important;
  color: var(--primary-color) !important;
}

.navbar-burger {
    height: var(--navbar-height);
    width: var(--navbar-height);
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--background-light);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
        padding: 0.5rem 0;
    }
}


/* -------------------------------------------------------------------------- */
/*                                    SECTIONS                                */
/* -------------------------------------------------------------------------- */

.section {
  padding: var(--section-padding);
}

/* ----- Hero Section ----- */
#hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */
  color: var(--text-light);
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

#hero .hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

#hero .title, #hero .subtitle {
  color: var(--text-light);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* ----- About Us Section ----- */
.progress-indicators .progress {
    height: 12px;
    border-radius: 6px;
}
.progress-indicators .progress.is-dark::-webkit-progress-value {
    background-color: var(--primary-color);
}
.progress-indicators .progress.is-dark::-moz-progress-bar {
    background-color: var(--primary-color);
}
.image-3d-effect img {
    border-radius: var(--card-border-radius);
    transition: transform var(--transition-speed);
}
.image-3d-effect:hover img {
    transform: scale(1.05) perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

/* ----- Services Section ----- */
#services.has-background-light {
    background-color: var(--background-medium);
}

/* ----- Success Stories Section ----- */
.testimonial-item {
    border-radius: var(--card-border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}
.testimonial-item .is-rounded {
    border: 3px solid var(--accent-color);
}
.testimonial-item strong {
    font-family: var(--font-family-body);
    font-size: 1.2rem;
    line-height: 1.6;
}
.testimonial-item small {
    font-family: var(--font-family-headings);
    color: var(--text-muted);
}

/* ----- Case Studies Section ----- */
#case-studies.has-background-light {
    background-color: var(--background-medium);
}
.case-study-card {
    perspective: 1000px;
}
.case-study-card .card-image {
    overflow: hidden;
    border-top-left-radius: var(--card-border-radius);
    border-top-right-radius: var(--card-border-radius);
}

/* ----- Resources Section ----- */
#resources.has-background-light {
    background-color: var(--background-medium);
}
.resource-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-left: 5px solid var(--primary-color);
    border-radius: var(--card-border-radius);
    transition: all var(--transition-speed);
}
.resource-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}
.resource-item h4 a {
    color: var(--primary-color);
    font-weight: 600;
}
.resource-item p {
    color: var(--text-muted);
    font-size: 1rem;
}


/* ----- Contact Section ----- */
#contact .card {
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
#contact .card:hover {
    transform: none; /* Disable 3D effect for form card */
    box-shadow: var(--shadow-hover);
}

/* -------------------------------------------------------------------------- */
/*                                    FOOTER                                  */
/* -------------------------------------------------------------------------- */

.footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 4rem 1.5rem 3rem;
}

.footer .title {
  color: var(--text-light);
}

.footer a {
  color: var(--accent-color);
  transition: color var(--transition-speed);
}

.footer a:hover {
  color: var(--background-light);
}

.footer ul {
  list-style: none;
  margin: 0;
}

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

.footer .content p {
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/*                              STATIC PAGES                                  */
/* -------------------------------------------------------------------------- */

/* ----- Success Page ----- */
.success-page-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.success-content {
  background: var(--background-light);
  padding: 4rem;
  border-radius: var(--card-border-radius);
  box-shadow: var(--shadow-hover);
}

/* ----- Privacy & Terms Pages ----- */
.static-page-container {
    padding-top: calc(var(--navbar-height) + 3rem); /* Navbar height + extra space */
    padding-bottom: 3rem;
}
.static-page-container .title {
    margin-bottom: 2rem;
}

/* -------------------------------------------------------------------------- */
/*                                 ANIMATIONS                                 */
/* -------------------------------------------------------------------------- */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated icons placeholder */
.animated-icon {
  width: 50px;
  height: 50px;
}

/* -------------------------------------------------------------------------- */
/*                              RESPONSIVE DESIGN                             */
/* -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1.5rem;
  }
  .section-title {
    margin-bottom: 2rem;
  }
  .title.is-1 { font-size: 2.5rem; }
  .title.is-2 { font-size: 2rem; }

  #hero .hero-body {
    padding: 2rem;
  }

  .columns {
    flex-direction: column;
  }
  
  .footer .columns {
      text-align: center;
  }
}