/*
  File: style.css
  Project: Inversiones en Estaciones de Servicio en Argentina
  Design System: Brutalism with Block-style UI
  Color Scheme: Analogous
*/

/* ---------------------------------- */
/*          1. CSS Variables          */
/* ---------------------------------- */
:root {
  /* Analogous Color Palette */
  --color-primary: #003D5B;      /* Dark Blue */
  --color-secondary: #007991;    /* Teal */
  --color-accent: #E1D5A7;       /* Sand/Gold */
  --color-background: #f0f2f5;   /* Light Gray */
  
  /* Text Colors */
  --color-text-dark: #1a202c;    /* Very Dark Blue/Gray for headings */
  --color-text-body: #333333;    /* Dark Gray for body text */
  --color-text-light: #ffffff;   /* White */
  --color-text-muted: #6b7280;   /* Muted Gray */

  /* Border & Shadow */
  --color-border-brutalist: #1a202c;
  --color-shadow-brutalist: #1a202c;
  --color-shadow-brutalist-hover: #4a5568;

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

/* ---------------------------------- */
/*      2. General & Base Styles      */
/* ---------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-background);
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* Links */
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Sections */
section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

/* ---------------------------------- */
/*         3. Utility Classes         */
/* ---------------------------------- */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.text-shadow-strong {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* For static pages like privacy.html & terms.html */
.static-page-content {
  padding-top: 120px; /* Offset for sticky header */
  padding-bottom: 60px;
  min-height: calc(100vh - 150px); /* Ensure content doesn't get cut off by footer */
}
.static-page-content h1, .static-page-content h2 {
    border-bottom: 2px solid var(--color-text-dark);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ---------------------------------- */
/*        4. Component Styles         */
/* ---------------------------------- */

/* Header & Navigation */
header nav a {
  position: relative;
  text-decoration: none;
}

header nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: -5px;
  left: 0;
  background-color: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Brutalist UI Components */
.brutalist-block {
  background-color: var(--color-text-light);
  border: 3px solid var(--color-border-brutalist);
  box-shadow: 8px 8px 0 var(--color-shadow-brutalist);
  transition: all 0.2s ease-in-out;
}
.brutalist-block:hover {
  box-shadow: 4px 4px 0 var(--color-shadow-brutalist-hover);
  transform: translate(4px, 4px);
}

.brutalist-button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  border: 3px solid var(--color-border-brutalist);
  box-shadow: 4px 4px 0 var(--color-shadow-brutalist);
  transition: all 0.2s ease-in-out;
  text-decoration: none !important; /* Override link underline */
}
.brutalist-button:hover,
.brutalist-button:focus {
  box-shadow: 2px 2px 0 var(--color-shadow-brutalist-hover);
  transform: translate(2px, 2px);
  outline: none;
}
.brutalist-button:active {
  box-shadow: 0 0 0 var(--color-shadow-brutalist-hover);
  transform: translate(4px, 4px);
}

.brutalist-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  border: 3px solid var(--color-border-brutalist);
  transition: all 0.2s ease-in-out;
  background-color: #fafafa;
}
.brutalist-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(0, 121, 145, 0.3);
  outline: none;
}

/* Cards (for process, insights, etc.) */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  overflow: hidden; /* To contain hover effects */
}
.card-image {
  width: 100%;
  padding-top: 66.66%; /* 3:2 aspect ratio */
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-image img {
  transform: scale(1.05);
}
.card-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero Section */
#hero h1 {
  color: var(--color-text-light);
}
#hero p {
  color: #e2e8f0; /* Slightly off-white for better readability */
}

/* Footer */
footer {
  background-color: var(--color-text-dark);
  color: var(--color-text-muted);
}
footer h4 {
  color: var(--color-text-light);
}
footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--color-text-light);
  text-decoration: underline;
}
footer .social-links a {
  display: inline-block;
  margin-right: 1rem;
  font-size: 1.5rem;
}

/* ---------------------------------- */
/*       5. Page-Specific Styles      */
/* ---------------------------------- */

/* success.html */
body.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background-color: var(--color-background);
}
.success-container {
  max-width: 600px;
  padding: 3rem;
}
.success-container h1 {
  color: var(--color-primary);
}
.success-container .brutalist-button {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}


/* ---------------------------------- */
/*       6. Responsive Overrides      */
/* ---------------------------------- */
@media (max-width: 1024px) {
  .parallax-bg {
    background-attachment: scroll; /* Parallax can be jittery on mobile/tablet */
  }
}

@media (max-width: 768px) {
  section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .brutalist-block {
    box-shadow: 6px 6px 0 var(--color-shadow-brutalist);
  }
  .brutalist-block:hover {
    box-shadow: 3px 3px 0 var(--color-shadow-brutalist-hover);
    transform: translate(3px, 3px);
  }

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