/*
  YPF Argentina Website Styles
  File: style.css
  Design: Glassmorphism, Eco-minimalism
  Author: AI Assistant
*/

/* ---------------------------------- */
/*          1. VARIABLES              */
/* ---------------------------------- */
:root {
  /* Tetradic Color Scheme */
  --primary-color: #007bff; /* YPF Blue */
  --secondary-color: #0D9488; /* Teal/Green */
  --accent-color-1: #FF9800; /* Orange */
  --accent-color-2: #E91E63; /* Pink/Magenta */
  
  /* Neutral Colors */
  --dark-color: #212529;
  --body-text-color: #333333;
  --light-color: #f8f9fa;
  --white-color: #FFFFFF;
  --border-color-light: rgba(255, 255, 255, 0.2);
  --border-color-dark: rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Spacing & Radius */
  --border-radius: 15px;
  --section-padding: 5rem 0;
}

/* ---------------------------------- */
/*          2. GLOBAL STYLES          */
/* ---------------------------------- */
body {
  font-family: var(--font-body);
  background-color: var(--white-color);
  color: var(--body-text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  color: var(--dark-color);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

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

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

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

section {
    padding: var(--section-padding);
    overflow: hidden;
}

/* ---------------------------------- */
/*       3. UTILITY & HELPERS         */
/* ---------------------------------- */
.static-page-container,
.privacy-content,
.terms-content {
    padding-top: 120px;
    padding-bottom: 60px;
}

.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    padding: 2rem;
}
.success-page-container h1 {
    color: var(--white-color);
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.success-page-container p {
    font-size: 1.2rem;
}
.success-page-container .btn {
    margin-top: 2rem;
    border-color: var(--white-color);
    background: transparent;
}
.success-page-container .btn:hover {
    background: var(--white-color);
    color: var(--primary-color);
}

/* ---------------------------------- */
/*         4. HEADER & NAV            */
/* ---------------------------------- */
.header .navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color-light);
  transition: all 0.3s ease;
}

.header .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--dark-color);
}

.header .nav-link {
  color: var(--dark-color) !important;
  font-weight: 600;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color 0.3s ease;
}

.header .nav-link::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-link:hover, .header .nav-link.active {
  color: var(--primary-color) !important;
}

.header .nav-link:hover::after {
  width: 80%;
}

.navbar-toggler {
    border-color: rgba(0,0,0,0.1);
    border-radius: 5px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(33, 37, 41, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ---------------------------------- */
/*           5. HERO SECTION          */
/* ---------------------------------- */
.hero-section {
  min-height: 100vh;
  color: var(--white-color);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--white-color);
}

.hero-subtitle {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 1rem auto 0;
  color: var(--white-color);
}

/* ---------------------------------- */
/*      6. BUTTONS & FORMS            */
/* ---------------------------------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  letter-spacing: 0.5px;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background-color: #0069d9;
  box-shadow: 0 7px 20px rgba(0, 123, 255, 0.4);
  color: var(--white-color);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.form-control {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--dark-color);
}
.form-control::placeholder {
    color: #6c757d;
}
.form-control:focus {
    background: var(--white-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* ---------------------------------- */
/*       7. CARDS (Glassmorphism)     */
/* ---------------------------------- */
.card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
}

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

.glass-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color-light);
}

.glass-card-dark {
  background: rgba(33, 37, 41, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color-light);
  color: var(--light-color);
}
.glass-card-dark .card-title, .glass-card-dark .card-text {
  color: var(--light-color);
}

.glass-card-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color-light);
}
.glass-card-form .form-control {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white-color);
}
.glass-card-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.glass-card-form .form-control:focus {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white-color);
    border-color: var(--white-color);
    box-shadow: none;
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.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-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure content area takes full width */
}
.card-body {
    padding: 1.5rem;
    text-align: center; /* Center text within the body */
}
.blog-card .card-body, .testimonial-card .card-body {
    text-align: left;
}

/* ---------------------------------- */
/*       8. SECTION SPECIFIC STYLES   */
/* ---------------------------------- */
#about .progress {
    height: 10px;
    border-radius: 5px;
}
#about .progress-bar {
    background-color: var(--primary-color);
}
#about .image-container {
    overflow: hidden;
}

#stories .carousel-item .card {
    background-color: transparent;
    border: none;
    box-shadow: none;
    align-items: stretch; /* Override global card alignment for this specific case */
}
#stories .carousel-item .card-body {
    text-align: left;
}
#stories .carousel-item .card-image img {
    object-fit: cover;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}
#stories .carousel-control-prev-icon,
#stories .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    padding: 20px;
}

.blog-card {
    align-items: stretch; /* Let content align naturally */
}
.blog-card .card-body {
    display: flex;
    flex-direction: column;
}
.blog-card .btn {
    margin-top: auto;
    align-self: flex-start; /* Align button to the left */
}
.blog-card .card-title {
    min-height: 56px;
}

#events .list-group-item {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color-dark);
}
.glass-card-light {
    background: rgba(255, 255, 255, 0.7);
}
#events .list-group-item h5 {
    color: var(--primary-color);
}

.resource-card {
    background: var(--light-color);
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: all 0.3s ease;
    height: 100%;
}
.resource-card:hover {
    background: var(--white-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}
.resource-card a:hover {
    text-decoration: none;
}
.resource-card .resource-title {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}
.resource-card .resource-description {
    color: var(--body-text-color);
    font-size: 0.9rem;
    margin: 0;
}

.accordion-item {
    background-color: transparent;
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color-dark);
}
.accordion-button {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    background-color: var(--white-color);
}
.accordion-button:not(.collapsed) {
    color: var(--white-color);
    background-color: var(--primary-color);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
.accordion-body {
    background: var(--white-color);
    padding: 1.5rem;
}

.contact-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.contact-section .section-title {
    color: var(--white-color);
}
.contact-section .section-title::after {
    background: var(--white-color);
}

/* ---------------------------------- */
/*           9. FOOTER                */
/* ---------------------------------- */
.footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.7);
}

.footer h6 {
  color: var(--white-color);
  font-family: var(--font-body);
  letter-spacing: 1px;
}

.footer p {
  font-size: 0.9rem;
}

.footer a.text-white {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.3s ease;
}

.footer a.text-white:hover {
  color: var(--white-color) !important;
  text-decoration: underline;
}

/* ---------------------------------- */
/*        10. RESPONSIVE DESIGN       */
/* ---------------------------------- */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  section {
      padding: 3rem 1rem;
  }
  .header .navbar {
    background: rgba(255, 255, 255, 0.9);
  }
  .navbar-collapse {
      background: var(--white-color);
      padding: 1rem;
      margin-top: 1rem;
      border-radius: var(--border-radius);
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  .header .nav-link {
      margin: 0.5rem 0;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  #stories .carousel-item .card {
      flex-direction: column;
  }
  #stories .carousel-item .card-image img {
      border-radius: var(--border-radius) var(--border-radius) 0 0;
      height: 300px;
  }
  .footer {
    text-align: center;
  }
  .footer .text-md-start {
    text-align: center !important;
  }
  .footer hr {
    margin: 1rem auto;
  }
}
.card-body {
    padding: 1.5rem;
    text-align: center;
    background: gray;
}