/*
  File: style.css
  Theme: Estaciones de Servicio en Argentina
  Design System: Creative
  Trend: Block Interface
  Color Scheme: Neutral
  Animation Style: Hand-drawn (simulated with creative transitions)
*/

/* ----------------------------------------------------------------
   1. CSS Variables (Root)
   ---------------------------------------------------------------- */
:root {
  /* Colors */
  --primary-color: #0D47A1; /* A deep, professional blue */
  --primary-color-dark: #002171;
  --accent-color: #FFC107; /* A warm amber, like station lights */
  --background-color: #F8F9FA; /* Off-white */
  --light-background-color: #FFFFFF;
  --text-color: #343A40;
  --heading-color: #212529;
  --white-color: #FFFFFF;
  --grey-color: #6C757D;
  --border-color: #DEE2E6;

  /* Typography */
  --font-family-headings: 'Roboto', sans-serif;
  --font-family-body: 'Lato', sans-serif;
  
  /* Spacing */
  --spacing-unit: 1rem;
  --container-width: 1140px;
  --container-padding: 1.5rem;
  
  /* Borders */
  --border-radius: 8px;
  --border-width: 1px;
}

/* ----------------------------------------------------------------
   2. Global & Base Styles
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

p {
  margin-bottom: var(--spacing-unit);
}

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

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

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

/* ----------------------------------------------------------------
   3. Layout & Helpers
   ---------------------------------------------------------------- */
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding: calc(var(--spacing-unit) * 4) 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-unit);
  color: var(--heading-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--grey-color);
  max-width: 700px;
  margin: 0 auto calc(var(--spacing-unit) * 3) auto;
}

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

.has-text-centered {
    text-align: center;
}

/* For multi-column layouts */
.columns {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.column {
  display: block;
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
  padding: 0.75rem;
}

/* Column sizes (simplified from a framework like Bulma) */
.is-two-thirds { flex: none; width: 66.6666%; }
.is-one-third { flex: none; width: 33.3333%; }
.is-one-quarter { flex: none; width: 25%; }
.is-vcentered { align-items: center; }
.is-centered { justify-content: center; }
.is-multiline { flex-wrap: wrap; }


/* ----------------------------------------------------------------
   4. Header & Navigation
   ---------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: top 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-text {
  font-family: var(--font-family-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-end {
  display: flex;
  gap: var(--spacing-unit);
}

.navbar-item {
  padding: 0.5rem 1rem;
  font-weight: 700;
  color: var(--text-color);
  position: relative;
  text-decoration: none;
}

.navbar-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-item:hover::after,
.navbar-item.is-active::after {
  width: 80%;
}

.navbar-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-burger {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  border: none;
  background: transparent;
}

.navbar-burger span {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background-color: var(--heading-color);
  transition: all 0.3s ease;
}

.navbar-burger span:nth-child(1) { top: 12px; }
.navbar-burger span:nth-child(2) { top: 19px; }
.navbar-burger span:nth-child(3) { top: 26px; }

/* ----------------------------------------------------------------
   5. Hero Section
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white-color);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--container-padding);
}

.hero-title {
  font-size: 3.5rem;
  color: var(--white-color);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--white-color);
  font-weight: 400;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
  margin-bottom: 2rem;
}


/* ----------------------------------------------------------------
   6. Global Component Styles
   ---------------------------------------------------------------- */

/* --- Buttons --- */
.button, button, input[type="submit"] {
  display: inline-block;
  font-family: var(--font-family-headings);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.8rem 2rem;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.button-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
}

.button-primary:hover {
  background-color: var(--primary-color-dark);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
  text-decoration: none;
}

/* --- Cards --- */
.card {
  background-color: var(--light-background-color);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1; /* Allows content to fill space */
  display: flex;
  flex-direction: column;
}

.card-title, .title.is-4, .title.is-5 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--heading-color);
}

/* --- Team Cards --- */
.team-card {
    text-align: center;
    align-items: center;
}
.team-card .card-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-top: 1.5rem;
    border: 4px solid var(--light-background-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.team-card .card-image img.is-rounded {
    border-radius: 50%;
}

/* --- Forms --- */
.contact-form .label {
  font-weight: 700;
  color: var(--heading-color);
  display: block;
  margin-bottom: 0.5rem;
}

.contact-form .input, .contact-form .textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--light-background-color);
  font-family: var(--font-family-body);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .input:focus, .contact-form .textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.2);
}

.contact-form .field {
  margin-bottom: 1.5rem;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.checkbox input {
    margin-right: 0.5rem;
}

/* ----------------------------------------------------------------
   7. Section-Specific Styles
   ---------------------------------------------------------------- */

/* --- History Section --- */
#historia .image-container img {
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* --- Press Section --- */
#prensa .press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2rem;
  filter: grayscale(100%);
  opacity: 0.7;
}

#prensa .press-logos img {
  max-height: 40px;
  width: auto;
}

#prensa .press-quote {
  margin-top: 2.5rem;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--grey-color);
}

#prensa .press-quote cite {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: var(--text-color);
}

/* --- Resources Section --- */
.resource-list ul {
  list-style: none;
  padding: 0;
}

.resource-list li {
  background-color: var(--light-background-color);
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.resource-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.resource-list a {
  display: block;
  padding: 1rem 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

/* ----------------------------------------------------------------
   8. Footer
   ---------------------------------------------------------------- */
.footer {
  background-color: var(--heading-color);
  color: rgba(255, 255, 255, 0.8);
  padding: calc(var(--spacing-unit) * 3) 0;
}

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

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

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

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

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

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

.footer .copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

/* ----------------------------------------------------------------
   9. Page-Specific Styles
   ---------------------------------------------------------------- */

/* --- Success Page --- */
.success-page-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--container-padding);
}

.success-content {
  background-color: var(--light-background-color);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  max-width: 600px;
}

/* --- Static Pages (Privacy, Terms) --- */
.static-page-content {
    padding-top: 120px; /* Offset for fixed header */
    padding-bottom: 60px;
}

.static-page-content .container h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.static-page-content .container h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}


/* ----------------------------------------------------------------
   10. Responsive Design (Media Queries)
   ---------------------------------------------------------------- */

/* --- Tablets and smaller desktops --- */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }

  .columns .column.is-two-thirds,
  .columns .column.is-one-third,
  .columns .column.is-one-quarter {
    flex: none;
    width: 50%;
  }

  /* Make history section stack */
  #historia .columns {
      flex-direction: column-reverse;
  }
  #historia .column.is-two-thirds {
      width: 100%;
      margin-top: 2rem;
  }
}


/* --- Mobile devices --- */
@media (max-width: 768px) {
  html {
      font-size: 15px;
  }
  
  .hero-title {
      font-size: 2.5rem;
  }
  .hero-subtitle {
      font-size: 1.2rem;
  }
  
  /* Navbar Burger Logic */
  .navbar-burger {
    display: block;
    z-index: 1001; /* Above menu */
  }
  
  .navbar-burger.is-active span:nth-child(1) {
    transform: translateX(-50%) translateY(7px) rotate(45deg);
  }
  .navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .navbar-burger.is-active span:nth-child(3) {
    transform: translateX(-50%) translateY(-7px) rotate(-45deg);
  }

  .navbar-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--light-background-color);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding-top: 80px;
  }

  .navbar-menu.is-active {
    transform: translateX(0);
  }
  
  .navbar-end {
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }
  
  .navbar-item {
      font-size: 1.5rem;
      padding: 1rem;
      width: 100%;
      text-align: center;
  }

  /* Columns stack on mobile */
  .columns .column,
  .columns .column.is-two-thirds,
  .columns .column.is-one-third,
  .columns .column.is-one-quarter {
    width: 100%;
    flex: none;
  }
  
  .footer .columns {
      text-align: center;
  }

  .footer .column {
      margin-bottom: 2rem;
  }
}