/*
  style.css
  Theme: Financial Consulting in Argentina
  Design System: Neomorphism, Block Interface
  Color Scheme: Split-Complementary
  Animation: Non-linear Movements
*/

/* 1. CSS Variables & Root Styles
-------------------------------------------------- */
:root {
  /* Color Palette (Split-Complementary) */
  --color-background: #e0e5ec;
  --color-text: #333333;
  --color-heading: #222222;
  --color-primary: #4a90e2; /* Blue */
  --color-accent-1: #f5a623; /* Orange */
  --color-accent-2: #50e3c2; /* Teal */
  --color-white: #ffffff;
  --color-shadow-light: #ffffff;
  --color-shadow-dark: #a3b1c6;

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

  /* Neomorphism Shadows */
  --shadow-neumorphism: 9px 9px 16px var(--color-shadow-dark), -9px -9px 16px var(--color-shadow-light);
  --shadow-neumorphism-inset: inset 5px 5px 10px var(--color-shadow-dark), inset -5px -5px 10px var(--color-shadow-light);
  --shadow-neumorphism-hover: 5px 5px 10px var(--color-shadow-dark), -5px -5px 10px var(--color-shadow-light);
  --shadow-neumorphism-active: inset 2px 2px 5px var(--color-shadow-dark), inset -2px -2px 5px var(--color-shadow-light);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

/* 2. Base & Typography Styles
-------------------------------------------------- */
body {
  background-color: var(--color-background);
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
  text-align: center;
}

h2 {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

a:hover {
  color: var(--color-accent-1);
}

p {
  margin-bottom: 1rem;
}

section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* 3. Global Components
-------------------------------------------------- */

/* Global Button Styles */
.neomorphism-button,
button[type="submit"] {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 12px;
  background-color: var(--color-background);
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-neumorphism-hover);
  transition: var(--transition-smooth);
  text-align: center;
}

.neomorphism-button:hover,
button[type="submit"]:hover {
  box-shadow: none;
}

.neomorphism-button:active,
button[type="submit"]:active {
  box-shadow: var(--shadow-neumorphism-active);
}

/* Card Styles */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.card .card-image {
  width: 100%;
  height: 250px; /* Fixed height for image containers */
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 15px; /* Match card rounding */
}

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

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

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

/* Form Input Styles */
input[type="text"],
input[type="email"],
textarea {
  background-color: var(--color-background);
  border: none;
  box-shadow: var(--shadow-neumorphism-inset);
  transition: var(--transition-smooth);
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  color: var(--color-text);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: #888;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  box-shadow: var(--shadow-neumorphism-inset), 0 0 0 2px var(--color-primary);
}


/* 4. Header & Navigation
-------------------------------------------------- */
#header {
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
  background-color: rgba(224, 229, 236, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#mobile-menu a {
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* 5. Section Specific Styles
-------------------------------------------------- */

/* Hero Section */
#hero {
    color: var(--color-white);
}

#hero h1, #hero p {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* Parallax Background */
[data-parallax-bg] {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Statistics Section */
#statistics [data-counter] {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-accent-2);
}

/* Success Stories (Carousel) */
[data-carousel] {
  position: relative;
}

/* Careers (Accordion) */
[data-accordion-item] button span:last-child {
    transition: transform 0.3s ease;
}
[data-accordion-item].open button span:last-child {
    transform: rotate(45deg);
}
[data-accordion-content] {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}


/* 6. Footer
-------------------------------------------------- */
footer {
  background-color: #d1d9e6;
  color: var(--color-text);
  box-shadow: inset 0 5px 15px -5px var(--color-shadow-dark);
}

footer h4 {
  color: var(--color-heading);
  text-align: inherit;
}

footer a {
  color: var(--color-text);
  font-weight: 500;
}

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


/* 7. Specific Page Styles
-------------------------------------------------- */

/* Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}
.success-page .neomorphism-card {
  max-width: 600px;
}
.success-page h1 {
    color: var(--color-accent-2);
}

/* Privacy & Terms Pages */
.legal-page-content {
    padding-top: 120px; /* Header height + buffer */
    padding-bottom: 60px;
}
.legal-page-content h1,
.legal-page-content h2 {
    text-align: left;
    margin-bottom: 1rem;
}
.legal-page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.legal-page-content p,
.legal-page-content li {
    font-size: 1.1rem;
    line-height: 1.7;
}


/* 8. Animation & Utility Classes
-------------------------------------------------- */
[data-animate-on-scroll] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

[data-animate-on-scroll].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Text Shadow for better readability on light backgrounds */
.text-shadow-dark {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* 9. Media Queries
-------------------------------------------------- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .legal-page-content {
    padding-top: 100px;
  }
}