/*
  FinanzasAR Custom Stylesheet
  Theme: Servicios y aplicaciones para учёta de gastos en Argentina
  Design System: Modern with Biomorphic elements
  Color Scheme: Split-Complementary
  Animation Style: Drawn Animations (simulated with smooth transitions)
*/

/* -----------------------------------------------------------------------------
  1. CSS Variables & Root Styles
----------------------------------------------------------------------------- */
:root {
  /* Color Scheme */
  --primary-color: #17A2B8;      /* Teal */
  --primary-dark-color: #138496;
  --secondary-color: #FF6B6B;    /* Coral Red */
  --secondary-dark-color: #E55A5A;
  --accent-color: #FFAA4C;        /* Orange/Yellow */

  /* Neutral Colors */
  --text-dark: #222222;
  --text-medium: #343A40;
  --text-light: #6C757D;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --bg-dark-section: #0E5E6F;
  --text-on-dark: #f0f4f8;

  /* Fonts */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Transitions & Radii */
  --transition-fast: all 0.2s ease-in-out;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-md: 0.75rem; /* 12px */
  --border-radius-lg: 1.5rem;  /* 24px */
}

/* -----------------------------------------------------------------------------
  2. Global Styles & Typography
----------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-medium);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 800;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.05);
}

h2 {
  text-align: center;
}

p {
  line-height: 1.7;
}

a {
  color: var(--primary-color);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark-color);
}

section {
  padding: 5rem 0;
}

/* -----------------------------------------------------------------------------
  3. Header & Navigation
----------------------------------------------------------------------------- */
#header {
  transition: all 0.4s ease-out;
}

#header nav a {
  position: relative;
  padding-bottom: 5px;
  font-weight: 600;
}

#header nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease-in-out;
}

#header nav a:hover::after {
  width: 100%;
}


/* -----------------------------------------------------------------------------
  4. Buttons & Forms (Global Styles)
----------------------------------------------------------------------------- */
.btn, button, input[type='submit'] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px; /* pill shape */
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

.btn:hover, button:hover, input[type='submit']:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

/* Form inputs styling */
input[type="text"],
input[type="email"],
textarea {
  font-family: var(--font-body);
  background-color: #f0f4f8;
  border: 2px solid transparent;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.2);
}

/* -----------------------------------------------------------------------------
  5. Generic Card Styles
----------------------------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(149, 157, 165, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 32px rgba(149, 157, 165, 0.2);
}

.card .card-image {
  width: 100%;
  aspect-ratio: 16 / 10; /* Maintain aspect ratio */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.card .card-content {
  padding: 1.5rem;
  width: 100%;
}

/* Specifically for feature cards with padding around image */
#features .card .card-image {
  padding: 1.5rem 1.5rem 0 1.5rem;
}
#features .card .card-image img {
  border-radius: var(--border-radius-md);
}
#features .card .card-content {
  padding-top: 1rem;
}


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

/* Hero Section */
#hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero h1 {
  color: var(--bg-white);
}

#hero p {
  color: #e9ecef; /* slightly off-white */
}

/* Research Section */
#research {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#research h2, #research h3, #research p {
  color: var(--text-on-dark);
}
#research h3 {
  color: var(--accent-color);
}

/* Case Studies Progress Bar */
.progress-bar-container {
  width: 100%;
  background-color: #e9ecef;
  border-radius: 9999px;
  height: 0.75rem;
}
.progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary-color) 0%, #20C997 100%);
  transition: width 1s ease-in-out;
}

/* -----------------------------------------------------------------------------
  7. Footer
----------------------------------------------------------------------------- */
footer {
  background-color: var(--text-medium);
}
footer h3, footer h4 {
  color: var(--bg-white);
}
footer a {
  color: #adb5bd;
  text-decoration: none;
}
footer a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
footer .social-links a {
  padding: 0.5rem;
}

/* -----------------------------------------------------------------------------
  8. Static Pages (Success, Privacy, Terms)
----------------------------------------------------------------------------- */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background-color: var(--bg-light);
  padding: 2rem;
}

.success-page .success-card {
  background-color: var(--bg-white);
  padding: 3rem 4rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-width: 600px;
}

.success-page h1 {
  color: var(--primary-dark-color);
  margin-bottom: 1rem;
}

.success-page a {
  margin-top: 2rem;
  background-color: var(--secondary-color);
  color: var(--bg-white);
}
.success-page a:hover {
  background-color: var(--secondary-dark-color);
  color: var(--bg-white);
}

.static-page-content {
  padding-top: 120px; /* Offset for fixed header */
  padding-bottom: 60px;
  min-height: calc(100vh - 250px); /* Avoid content being hidden by footer */
}

.static-page-content h1 {
  margin-bottom: 2rem;
}
.static-page-content h2 {
  text-align: left;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* -----------------------------------------------------------------------------
  9. Utility & Helper Classes
----------------------------------------------------------------------------- */
.read-more-link {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  margin-top: 1rem;
}

.read-more-link::after {
  content: '→';
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform var(--transition-smooth);
}

.read-more-link:hover::after {
  transform: translateX(5px);
}

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