/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  --primary-color: #0A2463; /* Deep Blue */
  --secondary-color: #1c3faa; /* Lighter Deep Blue */
  --accent-color: #FF8811; /* Bright Orange */
  --accent-color-dark: #E07000; /* Darker Orange for hover/active */
  
  --text-light: #FFFFFF;
  --text-medium-light: #f0f0f0;
  --text-dark: #333333;
  --text-darker: #222222;
  --text-muted-light: rgba(255, 255, 255, 0.7);
  --text-muted-dark: #6c757d;

  --bg-body: #EBF4FF; /* Very light blue, almost white, for overall page background */
  --bg-glass-light: rgba(255, 255, 255, 0.2);
  --bg-glass-light-input: rgba(255, 255, 255, 0.4);
  --bg-glass-dark: rgba(10, 36, 99, 0.3); /* Darker glass for footer or contrast elements */
  --border-glass-light: rgba(255, 255, 255, 0.3);
  --border-glass-dark: rgba(255, 255, 255, 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.17);

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --default-padding-y: 4rem; /* py-5 in Bootstrap is 3rem, this is a bit more for sections */
  --navbar-height: 70px; /* Adjust based on actual navbar height */

  --border-radius-soft: 8px;
  --border-radius-medium: 15px;
  --border-radius-round: 50px;

  --transition-speed: 0.3s;
  --transition-easing: ease-in-out;
}

/*--------------------------------------------------------------
# Base Styles
--------------------------------------------------------------*/
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-body);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-easing);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-darker);
  margin-bottom: 0.75em;
  font-weight: 500;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; font-weight: 700; } /* Section Title */
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  font-size: 1rem; /* Nunito default */
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.oswald-font { font-family: var(--font-heading) !important; }
.nunito-font { font-family: var(--font-body) !important; }

.text-light-on-dark { color: var(--text-light) !important; }
.text-light-on-dark h1, .text-light-on-dark h2, .text-light-on-dark h3, .text-light-on-dark h4, .text-light-on-dark h5, .text-light-on-dark p {
  color: var(--text-light) !important;
}
.text-dark-on-light { color: var(--text-dark) !important; }
.text-dark-on-light h1, .text-dark-on-light h2, .text-dark-on-light h3, .text-dark-on-light h4, .text-dark-on-light h5, .text-dark-on-light p {
  color: var(--text-darker) !important; /* Ensure headings are slightly darker */
}
.text-dark-on-light a { color: var(--primary-color); }
.text-dark-on-light a:hover { color: var(--secondary-color); }


.section-title {
  text-align: center;
  margin-bottom: 2.5rem; /* 40px */
  padding-bottom: 1rem;
  position: relative;
  font-weight: 700;
  color: var(--text-darker);
}

.section-title::after {
  content: '';
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Glassmorphism Base Effect */
.glass-effect, .glass-effect-dark, .glass-input {
  background: var(--bg-glass-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius-medium);
  border: 1px solid var(--border-glass-light);
  box-shadow: var(--shadow-glass);
  padding: 1.5rem; /* Default padding for glass elements */
  transition: box-shadow var(--transition-speed) var(--transition-easing), transform var(--transition-speed) var(--transition-easing);
}

.glass-effect-dark {
  background: var(--bg-glass-dark);
  border: 1px solid var(--border-glass-dark);
  color: var(--text-light);
}
.glass-effect-dark h1, .glass-effect-dark h2, .glass-effect-dark h3, .glass-effect-dark h4, .glass-effect-dark h5, .glass-effect-dark p {
    color: var(--text-light);
}
.glass-effect-dark a {
    color: var(--accent-color);
}
.glass-effect-dark a:hover {
    color: var(--text-medium-light);
}

.bg-light-glass {
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle distinction from page bg */
    padding-top: var(--default-padding-y);
    padding-bottom: var(--default-padding-y);
}

section {
    padding-top: var(--default-padding-y);
    padding-bottom: var(--default-padding-y);
    overflow: hidden; /* For ScrollReveal if elements come from outside */
}

/*--------------------------------------------------------------
# Header / Navbar
--------------------------------------------------------------*/
header.sticky-top {
  height: var(--navbar-height);
  z-index: 997;
}

header .navbar {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.15) !important; /* Lighter glass for header */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

header .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color) !important;
  font-size: 1.8rem;
}

header .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--primary-color) !important;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  padding: 0.5rem 0.8rem !important;
  transition: color var(--transition-speed) var(--transition-easing), background-color var(--transition-speed) var(--transition-easing);
  border-radius: var(--border-radius-soft);
}

header .nav-link:hover,
header .nav-link.active {
  color: var(--accent-color) !important;
  background-color: rgba(10, 36, 99, 0.05);
}

.navbar-toggler {
  border-color: rgba(10, 36, 99, 0.5) !important;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(10, 36, 99, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  min-height: 90vh; /* As per HTML */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0; /* Remove default section padding */
}

/* The overlay is an inline style in HTML, this ensures text readability if it wasn't */
#hero::before {
  content: "";
  /* background: rgba(10, 36, 99, 0.6);  This is in HTML, keeping for reference */
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}

#hero .hero-content {
  position: relative;
  z-index: 1;
}

#hero .hero-content h1 {
  margin: 0 0 20px 0;
  font-size: 3.5rem; /* Larger for Hero */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-light); /* Explicitly white */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero .hero-content p {
  color: var(--text-medium-light); /* Explicitly light */
  margin-bottom: 30px;
  font-size: 1.3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  #hero .hero-content h1 {
    font-size: 2.5rem;
  }
  #hero .hero-content p {
    font-size: 1.1rem;
  }
}

/*--------------------------------------------------------------
# Global Button Styles
--------------------------------------------------------------*/
.btn, button, input[type="submit"], input[type="button"] {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--border-radius-soft);
  transition: all var(--transition-speed) var(--transition-easing);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary, button.btn-primary, input[type="submit"].btn-primary { /* Covers buttons with FinanzasArg theme colors */
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--text-light);
}

.btn-primary:hover, button.btn-primary:hover, input[type="submit"].btn-primary:hover {
  background-color: var(--accent-color-dark);
  border-color: var(--accent-color-dark);
  color: var(--text-light);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

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

/* Morphing Button Specific Style */
.morph-button {
  border-radius: var(--border-radius-round); /* Start with rounder */
}

.morph-button:hover {
  /* For a subtle morph: slightly change border-radius or add a subtle transform */
  /* border-radius: var(--border-radius-soft); */ /* Example: morph to less round */
  box-shadow: 0 6px 20px rgba(var(--accent-color), 0.4);
}

.btn-link {
    font-weight: 600;
    text-transform: none;
    padding: 0;
    border: none;
    background: none;
}
.btn-link.text-dark-on-light {
    color: var(--primary-color) !important;
}
.btn-link.text-dark-on-light:hover {
    color: var(--accent-color) !important;
}

.btn-link .arrow, .arrow { /* For "Read More ->" type links */
  display: inline-block;
  transition: transform var(--transition-speed) var(--transition-easing);
}
.btn-link:hover .arrow, a:hover .arrow {
  transform: translateX(5px);
}


/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/
.card.glass-effect {
  display: flex; /* For STROGO rule */
  flex-direction: column; /* For STROGO rule */
  /* align-items: center; /* This centers card-image and card-content blocks, but text inside card-content should be handled by card-content itself */
  text-align: center; /* For STROGO rule - centers inline/inline-block content like text & images if not full width */
  height: 100%; /* Make cards in a row equal height */
  overflow: hidden; /* Ensure content stays within rounded borders */
}

.card .card-image { /* STROGO: Wrapper for image */
  width: 100%; /* Take full width of card */
  /* align-items: center and text-align: center on parent (.card) handles image centering if it's not 100% width */
}

.card .image-container { /* This is the specific div name from HTML */
  width: 100%;
  height: 200px; /* STROGO: Fixed height for card images */
  overflow: hidden;
  border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0; /* Top corners rounded */
  margin-bottom: 0; /* Remove default margin if img is direct child of card-image */
}

.card .image-container img, .card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* STROGO: cover, don't distort */
  transition: transform var(--transition-speed) var(--transition-easing);
}

.card:hover .image-container img, .card:hover .card-image img {
  transform: scale(1.05);
}

.card .card-content {
  padding: 1.5rem; /* Bootstrap's card-body is 1rem, this is a bit more */
  flex-grow: 1; /* Allows content to fill available space */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Pushes button to bottom if card-content is flex container */
  text-align: left; /* Default text align for card content. Override with .text-center if needed */
}
.card.text-center .card-content { /* If card has .text-center, apply to content too */
    text-align: center;
}

.card .card-title {
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.card .card-text {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.card .card-text.small {
    font-size: 0.85rem;
    color: var(--text-muted-dark);
}
.card .btn, .card button { /* Ensure buttons in cards are full width or as designed */
  margin-top: auto; /* Pushes button to the bottom of the card-content if it's the last element */
}


/*--------------------------------------------------------------
# Form Inputs (Glassmorphism)
--------------------------------------------------------------*/
.form-control.glass-input {
  background: var(--bg-glass-light-input);
  border: 1px solid var(--border-glass-light);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--text-darker);
  padding: 0.75rem 1rem; /* Bootstrap default is .375rem .75rem */
  font-size: 1rem;
  border-radius: var(--border-radius-soft);
}
.form-control.glass-input:focus {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color), 0.25);
  color: var(--text-darker);
}
.form-control.glass-input::placeholder {
  color: var(--text-muted-dark);
  opacity: 0.7;
}
.form-label {
    font-weight: 600;
    color: var(--text-dark); /* Ensure label color on light glass forms */
}

/*--------------------------------------------------------------
# Specific Sections Styling
--------------------------------------------------------------*/

/* Statistics Section */
#statistics .glass-effect {
  text-align: center;
}
#statistics h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
#statistics p {
  font-size: 0.95rem;
}

/* Success Stories / Asymmetric Balance */
#success-stories .row, #careers .row {
  align-items: center; /* Vertically align items in the row */
}
#success-stories img, #careers img {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
#success-stories img:hover, #careers img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Behind the Scenes - Team */
#behind-the-scenes .img-fluid.rounded-circle {
  border: 4px solid var(--border-glass-light);
  box-shadow: var(--shadow-glass);
  width: 150px; /* Override default if needed */
  height: 150px;
  object-fit: cover;
  margin: 0 auto 1rem auto; /* Center block images */
}
#behind-the-scenes .carousel-item img {
  border-radius: var(--border-radius-medium);
}

/* Pricing Section */
#pricing .card.border-primary { /* Highlighted plan */
  border-width: 2px !important;
  border-color: var(--accent-color) !important; /* Use accent for highlight */
  box-shadow: 0 0 25px rgba(var(--accent-color), 0.3);
}
#pricing .card .badge { /* Popular badge */
  position: absolute;
  top: -15px;
  right: 20px;
  font-size: 0.9rem;
  padding: 0.5em 1em;
  background-color: var(--accent-color) !important;
  color: var(--text-light) !important;
}
#pricing .list-unstyled li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border-glass-light);
}
#pricing .list-unstyled li:last-child {
  border-bottom: none;
}

/* Testimonials */
#testimonials .carousel-item .card {
  padding: 2rem; /* More padding for testimonial content */
  box-shadow: none; /* Can have a lighter shadow if needed */
}
#testimonials .carousel-item img.rounded-circle {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin: 0 auto 1.5rem auto;
  border: 3px solid var(--accent-color);
}
#testimonials .carousel-indicators button {
  background-color: var(--primary-color);
  opacity: 0.5;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}
#testimonials .carousel-indicators button.active {
  opacity: 1;
  background-color: var(--accent-color);
}

/* External Resources */
#external-resources .list-group-item {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
#external-resources .list-group-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 2;
}
#external-resources .list-group-item h5 {
    color: var(--primary-color);
}
#external-resources .list-group-item p {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  padding: var(--default-padding-y) 0;
  font-size: 0.9rem;
}
footer.glass-effect-dark {
  background: var(--primary-color); /* Solid dark blue, not glass, for contrast */
  /* If glass needed: background: var(--bg-glass-dark); */
  color: var(--text-muted-light);
}
footer h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light); /* Override default h5 color */
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 30px;
  background-color: var(--accent-color);
}
footer p, footer ul li {
  color: var(--text-muted-light);
}
footer .list-unstyled li {
  margin-bottom: 0.75rem;
}
footer .footer-link {
  color: var(--text-muted-light);
  transition: color var(--transition-speed) var(--transition-easing);
  display: inline-block; /* For better hover interaction */
}
footer .footer-link:hover {
  color: var(--accent-color);
  text-decoration: none; /* Remove underline for footer links on hover for cleaner look */
}
footer hr {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
footer .small {
    font-size: 0.85rem;
}

/* Social media links in footer - text based */
footer .list-unstyled a[target="_blank"]::after {
  /* Optional: add an external link icon, but spec says text-only */
  /* content: " \f35d"; font-family: "Font Awesome 5 Free"; font-weight: 900; */
}


/*--------------------------------------------------------------
# Page Specific Styles (Privacy, Terms, Success)
--------------------------------------------------------------*/
.main-content-page { /* For privacy.html, terms.html */
  padding-top: calc(var(--navbar-height) + var(--default-padding-y)); /* Space for fixed navbar + section padding */
  padding-bottom: var(--default-padding-y);
  min-height: calc(100vh - var(--navbar-height) - 140px); /* 140px approx footer height, adjust if needed */
}
.main-content-page .container {
    max-width: 800px; /* Constrain width for readability */
}
.main-content-page h1 {
    margin-bottom: 2rem;
    text-align: center;
}
.main-content-page h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}


.success-page-container { /* For success.html */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--primary-color); /* Match hero overlay or a theme color */
  color: var(--text-light);
  padding: 2rem;
}
.success-page-container .glass-effect {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    max-width: 600px;
}
.success-page-container h1 {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.success-page-container p {
  font-size: 1.2rem;
  color: var(--text-medium-light);
  margin-bottom: 2rem;
}
.success-page-container .btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-light);
}
.success-page-container .btn:hover {
    background-color: var(--accent-color-dark);
    border-color: var(--accent-color-dark);
}

/*--------------------------------------------------------------
# Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; } /* Section Title */
  
  header .navbar-nav {
    background-color: rgba(255, 255, 255, 0.9); /* Solid BG for mobile menu */
    border-radius: var(--border-radius-medium);
    margin-top: 10px;
    padding: 10px 0;
    box-shadow: var(--shadow-glass);
  }
  header .nav-link {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 0.8rem 1rem !important;
  }
  .section-title {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --default-padding-y: 3rem;
  }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; } /* Section Title */
  h3 { font-size: 1.5rem; }
  
  .btn, button, input[type="submit"], input[type="button"] {
    padding: 10px 25px;
    font-size: 0.85rem;
  }
  
  #hero .hero-content h1 { font-size: 2.8rem; }
  #hero .hero-content p { font-size: 1.1rem; }
  
  /* Make asymmetric layouts stack on mobile */
  #success-stories .row > div[class*="order-md"], 
  #careers .row > div[class*="order-md"] {
    order: 0 !important; /* Reset order for stacking */
    text-align: center;
    margin-bottom: 1.5rem;
  }
   #success-stories .row img, #careers .row img {
     max-width: 80%;
     margin-left: auto;
     margin-right: auto;
   }
}

@media (max-width: 576px) {
    #hero .hero-content h1 { font-size: 2.2rem; }
    #hero .hero-content p { font-size: 1rem; }
    .card .image-container {
        height: 180px; /* Slightly smaller on very small screens */
    }
    .main-content-page {
        padding-top: calc(var(--navbar-height) + 2rem);
    }
}