/*
  STYLE.CSS
  Theme: Financial Consulting in Argentina
  Design System: Futuristic + Eco-minimalism
  Color Scheme: Triad
  Animation Style: 3D Effects
*/

/* -------------------------------------------------- */
/* 1. CSS Variables & Root Configuration
/* -------------------------------------------------- */
:root {
  /* Color Palette (Triad) */
  --color-primary: #1a2e39;       /* Dark Slate Blue */
  --color-secondary: #2ecc71;     /* Emerald Green */
  --color-tertiary: #3498db;      /* Bright Blue */
  --color-background: #f4f6f8;   /* Off-white */
  --color-light-text: #FFFFFF;
  --color-dark-text: #1a2e39;
  --color-gray-text: #6b7280;
  
  /* Derived Colors for States */
  --color-secondary-dark: #27ae60;
  --color-tertiary-dark: #2980b9;

  /* Fonts */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  /* Transitions */
  --transition-fast: all 0.2s ease-in-out;
  --transition-medium: all 0.4s ease-out;
}

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

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

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

h2 {
    text-align: center;
}

p {
  line-height: 1.7;
}

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

/* -------------------------------------------------- */
/* 3. Header & Navigation
/* -------------------------------------------------- */
#header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Add a subtle shadow when scrolling */
.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile Menu Transition */
#mobile-menu {
  transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out;
}


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

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


/* -------------------------------------------------- */
/* 5. Generic Components (Buttons, Cards, Forms)
/* -------------------------------------------------- */

/* --- Global Button Styles --- */
button, input[type="submit"], .btn {
  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-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-medium);
  transform: scale(1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

button:hover, input[type="submit"]:hover, .btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

/* --- Card Styles --- */
.card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

.card:hover {
  transform: perspective(1000px) rotateY(-5deg) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card .card-image {
  height: 224px; /* Fixed height for image container */
  width: 100%;
  overflow: hidden;
}

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

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

.card .card-content {
  padding: 1.5rem;
  flex-grow: 1;
  text-align: left; /* Content inside card can be left-aligned */
}

/* --- Form Input Styles --- */
#contact form input[type="text"],
#contact form input[type="email"],
#contact form textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: var(--transition-medium);
    color: var(--color-light-text);
}

#contact form input[type="text"]:focus,
#contact form input[type="email"]:focus,
#contact form textarea:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px var(--color-secondary);
    outline: none;
}

/* Placeholder text color */
#contact form ::placeholder {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

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

/* --- Resources Section --- */
#resources a:hover h3 {
    color: var(--color-tertiary-dark);
}

/* --- Contact Section Container (Glassmorphism) --- */
#contact .bg-slate-800\/50 {
    background: rgba(40, 58, 71, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------------- */
/* 7. Footer Styles
/* -------------------------------------------------- */
footer a {
  position: relative;
  padding-bottom: 2px;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-secondary);
  transition: width 0.3s ease-out;
}

footer a:hover::after {
  width: 100%;
}

/* -------------------------------------------------- */
/* 8. Static & Utility Pages
/* -------------------------------------------------- */

/* --- Content pages like Privacy & Terms --- */
.page-content {
  padding-top: 10rem; /* 80px for header + extra space */
  padding-bottom: 5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.page-content h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  text-align: left;
}

.page-content p, .page-content li {
  color: var(--color-gray-text);
  margin-bottom: 1rem;
}

.page-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

/* --- Success Page --- */
.success-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-primary), #2c3e50);
  color: var(--color-light-text);
}

.success-container h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.success-container p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.success-container .btn-home {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.success-container .btn-home:hover {
    background-color: var(--color-secondary-dark);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}