/*
================================================================================
|                                                                              |
|  CSS Stylesheet for FinanArg - Financial Consulting in Argentina             |
|  Design System: Neumorphism & Biomorphic Design                              |
|  Color Scheme: Neutral                                                       |
|  Author: AI Assistant                                                        |
|                                                                              |
================================================================================
*/

/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Oswald:wght@500;700&display=swap');

/*=============== CSS VARIABLES ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /* Neutral Color Palette for Neumorphism */
  --bg-color: #e0e5ec;
  --text-color: #3f4a5f;
  --text-color-light: #8690a0;
  --title-color: #2c3647;
  --white-color: #FFFFFF;

  /* Neumorphism shadows */
  --light-shadow: #ffffff;
  --dark-shadow: #a3b1c6;
  --neumorphic-shadow: 6px 6px 12px var(--dark-shadow), -6px -6px 12px var(--light-shadow);
  --neumorphic-inset-shadow: inset 6px 6px 12px var(--dark-shadow), inset -6px -6px 12px var(--light-shadow);

  /* Accent color */
  --primary-color: #4a90e2;
  --primary-color-alt: #357abd;

  /*========== Font and typography ==========*/
  --body-font: 'Nunito', sans-serif;
  --title-font: 'Oswald', sans-serif;

  --biggest-font-size: 2.75rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: .875rem;
  --smaller-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-bold: 700;

  /*========== z-index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1.125rem;
    --small-font-size: .938rem;
    --smaller-font-size: .875rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-bold);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 4.5rem 0 2rem;
}

.section__title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--title-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main {
  overflow-x: hidden; /* For animations */
}

/*=============== HEADER & NAV ===============*/
.header {
  width: 100%;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: background-color 0.4s, box-shadow 0.4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--title-font);
  font-size: var(--h3-font-size);
  color: var(--white-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  transition: color 0.4s;
}

.nav__toggle,
.nav__close {
  font-size: 1.5rem;
  color: var(--white-color);
  cursor: pointer;
}

/* Scrolled header style */
.scroll-header {
  background-color: var(--bg-color);
  box-shadow: var(--neumorphic-shadow);
}

.scroll-header .nav__logo,
.scroll-header .nav__toggle {
  color: var(--title-color);
  text-shadow: none;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(224, 229, 236, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: right 0.4s ease-in-out;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4rem;
  gap: 2rem;
}

.nav__link {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-medium);
  transition: color 0.3s;
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__link-button {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(74, 144, 226, 0.4);
  transition: all 0.3s;
}

.nav__link-button:hover {
  background-color: var(--primary-color-alt);
  color: var(--white-color);
  box-shadow: 0 6px 15px rgba(74, 144, 226, 0.5);
  transform: translateY(-2px);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: var(--title-color);
}

/* Show menu */
.show-menu {
  right: 0;
}

/*=============== BUTTONS (GLOBAL) ===============*/
.button {
  display: inline-block;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: var(--font-medium);
  font-family: var(--title-font);
  border: none;
  cursor: pointer;
  box-shadow: var(--neumorphic-shadow);
  transition: all 0.3s ease-in-out;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 10px 10px 20px var(--dark-shadow), -10px -10px 20px var(--light-shadow);
}

.button:active {
  box-shadow: var(--neumorphic-inset-shadow);
  transform: translateY(1px);
}

.button--flex {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.button--hero {
  background-color: var(--primary-color);
  color: var(--white-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.button--hero:hover {
  background-color: var(--primary-color-alt);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/*=============== HERO ===============*/
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white-color);
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: var(--biggest-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero__description {
  font-size: var(--h3-font-size);
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--white-color);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/*=============== CARDS (GLOBAL) ===============*/
.card {
  background-color: var(--bg-color);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: var(--neumorphic-shadow);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* For equal height cards in a grid */
}

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

.card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--neumorphic-inset-shadow);
}

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

.card:hover .card-image img {
  transform: scale(1.05);
}

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

.card__title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.5rem;
}

.card__description {
  font-size: var(--normal-font-size);
  color: var(--text-color-light);
  line-height: 1.6;
}

/*=============== MISSION ===============*/
.mission__container {
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.mission__image-container {
  border-radius: 70% 30% 65% 35% / 60% 70% 30% 40%;
  overflow: hidden;
  box-shadow: var(--neumorphic-shadow);
}

.mission__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission__data {
  text-align: left;
}

.mission__subtitle {
  margin-bottom: 1rem;
  font-size: var(--h1-font-size);
}

.mission__description {
  margin-bottom: 1rem;
  line-height: 1.7;
}

/*=============== PROJECTS / NEWS ===============*/
.projects__container, .news__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card__date {
    display: block;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 0.5rem;
}

.card__link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: var(--font-bold);
    font-family: var(--title-font);
    transition: color 0.3s;
}

.card__link:hover {
    color: var(--primary-color-alt);
    text-decoration: underline;
}

/*=============== TESTIMONIALS (TIMELINE) ===============*/
.testimonials__container {
  max-width: 768px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 4px;
  background-color: var(--bg-color);
  box-shadow: var(--neumorphic-inset-shadow);
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 50px;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 1rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 0 3px var(--primary-color);
  z-index: 1;
}

.timeline__content {
  text-align: left;
  padding: 1.5rem;
}

.timeline__text {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.timeline__author {
  font-weight: var(--font-bold);
  color: var(--title-color);
}

/*=============== EXTERNAL RESOURCES ===============*/
.resources__container {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.resource-card {
    text-align: left;
    display: block;
}

.resource-card__title {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.resource-card__description {
    margin-bottom: 1rem;
}

.resource-card__url {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    font-weight: bold;
}

/*=============== FAQ ===============*/
.faq__container {
  max-width: 768px;
  margin: 0 auto;
}

.faq__item {
  background-color: var(--bg-color);
  box-shadow: var(--neumorphic-shadow);
  border-radius: 15px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--h3-font-size);
  font-family: var(--title-font);
  color: var(--title-color);
}

.faq__icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq__answer p {
  padding: 0 1.5rem 1.5rem;
  line-height: 1.6;
  color: var(--text-color-light);
}

/* Active FAQ item */
.faq__item.active .faq__answer {
  max-height: 300px;
}

.faq__item.active .faq__icon {
  transform: rotate(45deg);
}

/*=============== CONTACT ===============*/
.contact__container {
  max-width: 600px;
  margin: 0 auto;
}

.contact__form {
  display: grid;
  gap: 1.5rem;
}

.contact__content {
  position: relative;
  height: 55px;
  border-radius: 15px;
  box-shadow: var(--neumorphic-inset-shadow);
}

.contact__content.contact__content--textarea {
    height: 11rem;
}

.contact__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem 1.5rem 1rem;
  background: none;
  border: none;
  outline: none;
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border-radius: 15px;
}

textarea.contact__input {
    resize: none;
}

.contact__label {
  position: absolute;
  left: 1.5rem;
  top: 1rem;
  color: var(--text-color-light);
  font-size: var(--normal-font-size);
  transition: 0.3s;
  pointer-events: none;
}

.contact__input:focus + .contact__label,
.contact__input:valid + .contact__label {
  top: .5rem;
  font-size: var(--smaller-font-size);
  color: var(--primary-color);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--title-color);
  color: #c4cddb;
  padding: 4rem 0 2rem;
}

.footer__container {
  row-gap: 2rem;
}

.footer__title {
  font-size: var(--h1-font-size);
  color: var(--white-color);
  margin-bottom: .25rem;
}

.footer__description {
  font-size: var(--normal-font-size);
}

.footer__content {
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.footer__subtitle {
  font-size: var(--h3-font-size);
  color: var(--white-color);
  margin-bottom: 1rem;
}

.footer__link {
  color: #c4cddb;
  transition: color .3s;
}

.footer__link:hover {
  color: var(--white-color);
  text-decoration: underline;
}

.footer__item {
  margin-bottom: .5rem;
}

.footer__copy {
  margin-top: 4.5rem;
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/*=============== OTHER PAGES (SUCCESS, PRIVACY, TERMS) ===============*/
body.success-page, body.static-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.success-page main, body.static-page main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.success-content, .static-page-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.success-content {
    align-items: center;
    text-align: center;
}

.static-page-content {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
}

.success-content h1, .static-page .section__title {
    font-size: 2.5rem;
    color: var(--title-color);
    margin-bottom: 1rem;
}

.success-content p, .static-page p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.static-page h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.success-content .button {
    margin-top: 1rem;
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .footer__content {
    grid-template-columns: 1fr;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .mission__container {
    grid-template-columns: 0.8fr 1fr;
  }
  .footer__content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__toggle, .nav__close {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    gap: 2.5rem;
    padding-top: 0;
  }
  .nav__menu {
    width: auto;
  }
  .nav__link {
    color: var(--white-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
  }
  .scroll-header .nav__link {
    color: var(--text-color);
    text-shadow: none;
  }
  .scroll-header .nav__link:hover {
    color: var(--primary-color);
  }
  .scroll-header .nav__link-button {
      background-color: var(--primary-color);
      color: var(--white-color);
  }
   .scroll-header .nav__link-button:hover {
      background-color: var(--primary-color-alt);
  }
  .timeline::before {
    left: 50%;
    margin-left: -2px;
  }
  .timeline__item {
    width: 50%;
    padding-left: 0;
    padding-right: 50px;
    margin-bottom: 0;
  }
  .timeline__item:not(:last-child) {
      margin-bottom: 3rem;
  }
  .timeline__item:nth-child(even) {
    align-self: flex-end;
    transform: translateX(100%);
    padding-left: 50px;
    padding-right: 0;
  }
  .timeline__item::before {
    left: calc(100% - 8px);
  }
  .timeline__item:nth-child(even)::before {
    left: -8px;
  }
  .footer__container {
    grid-template-columns: 1fr 2fr;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  .section {
    padding: 6rem 0 2rem;
  }
  .section__title {
    margin-bottom: 3.5rem;
  }
  .mission__container {
      gap: 5rem;
  }
  .footer__container {
    grid-template-columns: .5fr 1.5fr;
    column-gap: 3rem;
  }
  .footer__content {
    grid-template-columns: repeat(3, max-content);
    column-gap: 4rem;
  }
}