/*
  File: style.css
  Project: YPF Argentina Website
  Design: Brutalism with Hyperrealistic Textures
*/

/* -------------------------------------------------------------------
 * ## 1. CSS Variables (Root)
 * ------------------------------------------------------------------- */

:root {
  /* Color Palette - Complementary Scheme */
  --primary-color: #0d47a1; /* Deep Blue (similar to YPF) */
  --primary-color-dark: #002171;
  --secondary-color: #ffab00; /* Amber/Orange (Complementary) */
  --secondary-color-dark: #c77c00;

  /* Neutral & Text Colors */
  --dark-color: #212121;
  --text-color: #333333;
  --text-color-light: #f5f5f5;
  --white-color: #ffffff;
  --light-bg-color: #f9f9f9;
  --border-color: #e0e0e0;
  --border-color-dark: #424242;

  /* Typography */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Source Sans Pro', sans-serif;
  
  /* Spacing */
  --section-padding: 6rem 1.5rem;
}

/* -------------------------------------------------------------------
 * ## 2. Global Styles & Reset
 * ------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
  background-color: var(--light-bg-color);
}

body {
  font-family: var(--font-secondary);
  color: var(--text-color);
  background-color: var(--white-color);
  line-height: 1.7;
  font-size: 1.1rem;
  overflow-x: hidden;
}

/* -------------------------------------------------------------------
 * ## 3. Typography
 * ------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: var(--font-primary);
  color: var(--dark-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.title {
  font-weight: 700;
}

.section-title {
  margin-bottom: 3rem !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

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

/* -------------------------------------------------------------------
 * ## 4. Layout & Helpers
 * ------------------------------------------------------------------- */

.section {
  padding: var(--section-padding);
}

.main-container {
  background-color: var(--white-color);
}

.reveal {
  visibility: hidden; /* Handled by ScrollReveal */
}

/* Ensure content on static pages isn't hidden by the fixed header */
.page-content-container {
    padding-top: 100px;
    padding-bottom: 4rem;
}

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

/* Background Texture & Parallax */
.section-textured,
.parallax-section {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.parallax-section {
    background-attachment: fixed;
}


/* -------------------------------------------------------------------
 * ## 5. Header / Navigation
 * ------------------------------------------------------------------- */

.header.is-fixed-top {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-item.logo {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--dark-color);
  letter-spacing: 1px;
}

.navbar-item {
  font-family: var(--font-secondary);
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.navbar-burger {
  color: var(--dark-color);
}

@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--white-color);
    box-shadow: 0 8px 16px rgba(10,10,10,.1);
    padding: .5rem 0;
  }
}

/* -------------------------------------------------------------------
 * ## 6. Hero Section
 * ------------------------------------------------------------------- */

#hero {
  position: relative;
  color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay for readability */
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

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

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

.hero-title {
  font-size: 4.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  font-family: var(--font-secondary);
}

/* -------------------------------------------------------------------
 * ## 7. General Components
 * ------------------------------------------------------------------- */

/* --- Buttons --- */
.button {
  font-family: var(--font-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px; /* Brutalist sharp edges */
  border-width: 2px;
  transition: all 0.3s ease-in-out;
  padding: 1.5em 2.5em;
}

.button:focus {
  box-shadow: none !important;
}

.button.is-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--dark-color);
}

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

.button.is-link.is-outlined {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.button.is-link.is-outlined:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* --- Cards --- */
.card {
  background-color: var(--white-color);
  border: 2px solid var(--border-color);
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.card .card-image {
  padding: 0;
  margin: 0;
}

.card .card-image img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.card .card-content {
  padding: 1.5rem;
  text-align: left;
  flex-grow: 1;
}

/* --- Forms --- */
.contact-form .label {
  color: var(--text-color-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.contact-form .input,
.contact-form .textarea {
  border-radius: 0;
  border: 2px solid var(--border-color-dark);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  box-shadow: none;
  transition: border-color 0.3s ease;
}

.contact-form .input::placeholder,
.contact-form .textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form .input:focus,
.contact-form .textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: none;
}

/* --- Accordion (FAQ) --- */
.accordion-item {
  border-bottom: 2px solid var(--border-color);
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 1rem;
  font-size: 1.2rem;
  font-family: var(--font-primary);
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.accordion-header::after {
  content: '+';
  position: absolute;
  right: 1rem;
  font-size: 2rem;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.accordion-header.active::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
}

/* --- Statistics Widget --- */
.widget {
  border: 4px solid var(--dark-color);
  padding: 1rem;
  margin-top: 0.5rem;
}

.statistic-number {
  font-family: var(--font-primary);
  font-size: 3rem !important;
  color: var(--primary-color);
}

/* --- UI Toggle Switch --- */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background-color: var(--primary-color);
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}


/* -------------------------------------------------------------------
 * ## 8. Section-Specific Styles
 * ------------------------------------------------------------------- */

/* Insights Section */
#insights {
  color: var(--white-color);
  position: relative;
}

#insights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 71, 161, 0.85); /* Primary color overlay */
    z-index: 1;
}

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

#insights .message {
  background-color: rgba(0,0,0,0.2);
  border: 2px solid var(--secondary-color);
  border-radius: 0;
}
#insights .message-body {
    border: none;
}
#insights .progress {
    border-radius: 0;
}

/* Blog & Contact Sections (Dark background) */
#blog, #contact {
    position: relative;
}
#blog::before, #contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 33, 33, 0.9); /* Dark overlay */
    z-index: 1;
}
#blog .container, #contact .container {
    position: relative;
    z-index: 2;
}

#blog .card {
    background-color: #313131;
    border-color: var(--border-color-dark);
}
#blog .card .title, #blog .card .content {
    color: var(--text-color-light);
}

/* External Links Section */
#external-links .button.is-outlined {
    border-color: var(--dark-color);
    color: var(--dark-color);
}
#external-links .button.is-outlined:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

/* -------------------------------------------------------------------
 * ## 9. Footer
 * ------------------------------------------------------------------- */

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

.footer .title {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer p {
  color: #bdbdbd;
}

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

.footer li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: #bdbdbd;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer .content.has-text-centered {
  margin-top: 3rem;
  border-top: 1px solid var(--border-color-dark);
  padding-top: 2rem;
}

/* -------------------------------------------------------------------
 * ## 10. Responsiveness (Media Queries)
 * ------------------------------------------------------------------- */

@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .hero-subtitle {
    font-size: 1.3rem;
  }
  .section {
    padding: 3rem 1.5rem;
  }
  .level-item {
    padding-bottom: 2rem;
  }
  .statistic-number {
      font-size: 2.5rem !important;
  }
  .footer {
      text-align: center;
  }
  .footer .column {
      margin-bottom: 2rem;
  }
}