/*
  File: style.css
  Project: ArgOil Invest - Inversiones en Petróleo en Argentina
  Design System: Corporativo
  Trend: Искривленные сетки (Curved Grids)
  Color Scheme: Аналоговая (Analogous)
  Animation Style: Рисованные анимации (Hand-drawn animations)
*/

/* ---------------------------------- */
/* 1. CSS Variables & Root Setup
/* ---------------------------------- */
:root {
  /* Analogous Color Scheme */
  --color-primary: #007EA7;       /* Strong, corporate blue */
  --color-secondary: #00A896;     /* Complementary teal/green */
  --color-accent: #A3F7B5;         /* Light, bright accent green for highlights */
  
  /* Neutral & Background Colors */
  --color-background-light: #F8F9FA;
  --color-background-dark: #212529;
  --color-text-dark: #343a40;
  --color-text-light: #FFFFFF;
  --color-text-muted: #6c757d;

  /* Fonts */
  --font-primary: 'Oswald', sans-serif;
  --font-secondary: 'Nunito', sans-serif;

  /* UI Elements */
  --border-radius: 8px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

/* ---------------------------------- */
/* 2. Global & Base Styles
/* ---------------------------------- */
html {
  scroll-behavior: smooth;
  background-color: var(--color-background-light);
  overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

body {
  font-family: var(--font-secondary);
  color: var(--color-text-dark);
  line-height: 1.7;
  font-size: 16px;
}

/* Headings & Text Formatting */
h1, h2, h3, h4, h5, h6, .title, .subtitle, .font-oswald {
  font-family: var(--font-primary);
}

.font-nunito {
  font-family: var(--font-secondary);
}

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

.section-title-dark {
  color: var(--color-text-dark) !important;
  text-shadow: none;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin-bottom: 3rem !important;
  font-weight: 700;
}

.section-title-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 2px;
  animation: wiggle 5s ease-in-out infinite;
}

/* General Link Styles */
a {
  color: var(--color-primary);
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--color-secondary);
}

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

/* Buttons */
.button.is-primary {
  background-color: var(--color-primary);
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius);
  border: 2px solid transparent;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--shadow-sm);
}

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

.button.is-primary:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.button-interaction {
  position: relative;
}

.button-interaction::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 2px solid var(--color-primary);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.9, 0.8);
  transition: all var(--transition-speed) ease-out;
}

.button-interaction:hover::after {
  opacity: 0.7;
  transform: scale(1.05, 1.1);
}

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

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.card .card-image {
  margin: 0;
  width: 100%;
}

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

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

/* Forms */
.form-container {
  padding: 2.5rem;
  background-color: var(--color-text-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.input, .textarea, .select select {
  border-radius: var(--border-radius);
  border: 1px solid #dbdbdb;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  font-family: var(--font-secondary);
}

.input:focus, .textarea:focus, .select select:focus,
.input.is-focused, .textarea.is-focused, .select select.is-focused {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.125em rgba(0, 126, 167, 0.25);
}

/* ---------------------------------- */
/* 4. Layout & Section Styles
/* ---------------------------------- */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}

/* Curved Sections Effect */
.section-curved-bottom {
  position: relative;
  z-index: 1;
  padding-bottom: 120px;
}

.section-curved-bottom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: inherit;
  clip-path: ellipse(80% 100% at 50% 100%);
  transform: scaleX(-1); /* Invert to curve upwards */
}

.section-curved-top {
  position: relative;
  z-index: 1;
  padding-top: 120px;
}

.section-curved-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: inherit;
  clip-path: ellipse(80% 100% at 50% 0%);
}

.has-background-light {
    background-color: var(--color-background-light) !important;
}

/* Header & Navbar */
.navbar.is-fixed-top {
  background-color: rgba(33, 37, 41, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-item, .navbar-link {
  font-family: var(--font-primary);
  transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

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

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

#hero .background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

#hero .hero-body .container {
  position: relative;
  z-index: 2;
}

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

/* Insights Section (Stat Widgets) */
.stat-widget {
  text-align: center;
  padding: 2rem;
  border-left: 5px solid var(--color-primary);
  background: var(--color-text-light);
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.stat-widget:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.stat-widget .stat-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Testimonials Section */
.testimonial-card {
  background: linear-gradient(135deg, var(--color-background-light), #fff);
  box-shadow: var(--shadow-md);
  text-align: left;
}

.testimonial-card .media {
  align-items: center;
  margin-bottom: 1rem;
}

.testimonial-card .content {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* External Resources Section */
.resource-link a {
  display: block;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--color-text-dark);
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, border-left-color var(--transition-speed) ease;
  border-left: 4px solid transparent;
  border-radius: var(--border-radius);
}

.resource-link a:hover {
  background-color: #fff;
  border-left-color: var(--color-secondary);
  transform: translateX(5px);
}

/* Footer */
.footer {
  background-color: var(--color-background-dark);
  color: var(--color-text-light);
  padding: 4rem 1.5rem 2rem;
}

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

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

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

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

.footer .footer-links li a {
  padding: 0.3rem 0;
  display: inline-block;
  position: relative;
  text-decoration: none;
}

.footer .footer-links li a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  transform-origin: bottom right;
  transition: transform var(--transition-speed) ease-out;
}

.footer .footer-links li a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ---------------------------------- */
/* 5. Animations & Keyframes
/* ---------------------------------- */
@keyframes wiggle {
  0%, 100% { transform: translateX(-50%) skewX(0deg); }
  25% { transform: translateX(-45%) skewX(4deg); }
  75% { transform: translateX(-55%) skewX(-4deg); }
}

/* Scroll Animation Setup */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* ---------------------------------- */
/* 6. Static & Specific Page Styles
/* ---------------------------------- */

/* For pages like privacy.html, terms.html */
.static-page-content {
  padding-top: 100px;
  padding-bottom: 4rem;
  min-height: 80vh;
}

.static-page-content .content h1,
.static-page-content .content h2,
.static-page-content .content h3 {
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* For success.html page */
.success-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background-color: var(--color-background-light);
}

.success-box {
  background: var(--color-text-light);
  padding: 3rem 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  max-width: 600px;
  text-align: center;
}

.success-box .icon {
  color: var(--color-secondary);
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

/* ---------------------------------- */
/* 7. Responsive Design
/* ---------------------------------- */
@media screen and (max-width: 768px) {
  .title.is-1 { font-size: 2.5rem; }
  .title.is-2 { font-size: 2rem; }
  .title.is-3 { font-size: 1.75rem; }

  .section {
    padding: 3rem 1.5rem;
  }
  
  .section-curved-bottom, .section-curved-top {
      clip-path: none;
      padding-top: 3rem;
      padding-bottom: 3rem;
      margin: 0;
  }
  .section-curved-bottom::after, .section-curved-top::before {
      display: none;
  }

  .footer .columns {
      text-align: center;
  }
}