/*
  FinansPro - Custom Stylesheet
  Design System: Retro / Hyperrealistic Textures
  Color Scheme: Bright
  Animation Style: Non-linear Movements
*/

/* ----------------------------------------------------------------
  1. CSS Variables
------------------------------------------------------------------- */
:root {
  --primary-color: #00A9A5; /* Bright Teal */
  --primary-color-dark: #008a86;
  --secondary-color: #F79256; /* Bright Orange */
  --accent-color-1: #FBD1A2; /* Light Peach */
  --accent-color-2: #7DCFB6; /* Seafoam Green */
  --text-color: #4a4a4a; /* Bulma's default dark grey */
  --heading-color: #222222; /* Darker for headings */
  --background-light: #f8f9fa; /* Very light grey */
  --white: #ffffff;
  --black: #000000;

  --font-family-headings: 'Poppins', sans-serif;
  --font-family-body: 'Work Sans', sans-serif;

  --border-radius-sharp: 8px;
  --border-radius-rounded: 50px;
  
  --transition-speed: 0.4s;
  --transition-timing: cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy non-linear */
  --transition-timing-smooth: ease-in-out;
}

/* ----------------------------------------------------------------
  2. Global Styles & Typography
------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  background-color: var(--white);
}

body {
  font-family: var(--font-family-body);
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.7;
  overflow-x: hidden; /* Prevent horizontal scroll from AOS */
}

/* Override Bulma for custom fonts */
.title {
  font-family: var(--font-family-headings);
  color: var(--heading-color) !important;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-family: var(--font-family-body);
  font-weight: 400;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  font-family: var(--font-family-headings);
  color: var(--heading-color);
}

a {
  color: var(--primary-color);
  transition: color var(--transition-speed) var(--transition-timing-smooth);
}

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

/* Pages like privacy/terms need top padding to not be obscured by fixed navbar */
body:has(main > section > .container > .content) main {
    padding-top: 5rem;
}


/* ----------------------------------------------------------------
  3. Header / Navbar
------------------------------------------------------------------- */
.navbar {
  transition: background-color var(--transition-speed) var(--transition-timing-smooth), box-shadow 0.3s ease;
}

.navbar.is-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-item, .navbar-link {
  font-family: var(--font-family-body);
  font-weight: 500;
  transition: color var(--transition-speed) var(--transition-timing-smooth);
}

.navbar.is-transparent .navbar-item,
.navbar.is-transparent .navbar-link {
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.navbar.is-transparent .navbar-item:hover,
.navbar.is-transparent .navbar-link:hover {
    background-color: transparent !important;
    color: var(--accent-color-1) !important;
}
.navbar.is-transparent .navbar-brand .navbar-item {
    color: var(--white) !important;
}

/* Change navbar burger color on transparent bg */
.navbar.is-transparent .navbar-burger {
    color: var(--white);
}

.navbar.is-scrolled .navbar-item,
.navbar.is-scrolled .navbar-link,
.navbar.is-light .navbar-item,
.navbar.is-light .navbar-link {
    color: var(--text-color);
}

.navbar.is-scrolled .navbar-brand .navbar-item,
.navbar.is-light .navbar-brand .navbar-item {
    color: var(--heading-color) !important;
}

/* Ensure mobile menu has a solid background */
.navbar-menu.is-active {
    background-color: var(--white);
}
.navbar-menu.is-active .navbar-item {
    color: var(--text-color) !important;
}


/* ----------------------------------------------------------------
  4. Buttons & Forms (Global)
------------------------------------------------------------------- */
.button.is-primary {
  background-color: var(--primary-color);
  border-color: transparent;
  transition: transform var(--transition-speed) var(--transition-timing), 
              background-color var(--transition-speed) var(--transition-timing-smooth), 
              box-shadow var(--transition-speed) var(--transition-timing-smooth);
}

.button.is-primary:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 169, 165, 0.3);
}

.button.is-primary.is-rounded, .button.is-rounded {
    border-radius: var(--border-radius-rounded);
}

.button.is-large {
    font-size: 1.3rem;
    padding: 1.5em 2.5em;
}

/* Form Styles */
.input.is-rounded, .textarea.is-rounded {
    border-radius: var(--border-radius-rounded);
}
.input, .textarea {
    border-radius: var(--border-radius-sharp);
    border: 2px solid #dbdbdb;
    transition: all var(--transition-speed) var(--transition-timing-smooth);
    font-family: var(--font-family-body);
}

.input:focus, .textarea:focus,
.input:active, .textarea:active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 169, 165, 0.25);
}

.label {
    font-family: var(--font-family-headings);
    font-weight: 600;
    color: var(--heading-color);
}

/* ----------------------------------------------------------------
  5. Section Specific Styles
------------------------------------------------------------------- */

/* Hero Section */
#hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

#hero .title {
  color: var(--white) !important;
  font-size: 3.5rem;
  font-weight: 700;
}

#hero .subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  max-width: 700px;
  margin: 0 auto;
}

/* Statistics Section */
#statistics .progress {
    height: 12px;
    border-radius: var(--border-radius-rounded);
}
#statistics .progress.is-primary::-webkit-progress-value { background-color: var(--primary-color); }
#statistics .progress.is-primary::-moz-progress-bar { background-color: var(--primary-color); }
#statistics .progress.is-info::-webkit-progress-value { background-color: var(--secondary-color); }
#statistics .progress.is-info::-moz-progress-bar { background-color: var(--secondary-color); }
#statistics .progress.is-success::-webkit-progress-value { background-color: var(--accent-color-2); }
#statistics .progress.is-success::-moz-progress-bar { background-color: var(--accent-color-2); }
#statistics .progress.is-warning::-webkit-progress-value { background-color: var(--accent-color-1); }
#statistics .progress.is-warning::-moz-progress-bar { background-color: var(--accent-color-1); }

/* Generic Section Styling */
.section {
    padding: 4rem 1.5rem;
}

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

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

/* Card Styles */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--border-radius-sharp);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-speed) var(--transition-timing-smooth), 
              box-shadow var(--transition-speed) var(--transition-timing-smooth);
  overflow: hidden; /* Ensures rounded corners apply to image */
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card .card-image {
  text-align: center;
  height: 250px; 
  flex-shrink: 0;
}

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

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

.card .card-content .title, 
.card .card-content .subtitle {
  margin-bottom: 1rem;
}

/* "Read more" links */
.card-content a.button {
    margin-top: auto; /* Pushes the button to the bottom of the card */
    align-self: flex-start; /* Aligns button to the left */
}

a.button.is-link.is-light {
    background-color: #eef6ff;
    color: var(--primary-color);
    font-weight: 600;
}
a.button.is-link.is-light:hover {
    background-color: #e1ecfa;
}

/* Box Styles (for Testimonials, Insights, etc.) */
.box {
    border-radius: var(--border-radius-sharp);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) var(--transition-timing-smooth), 
                box-shadow var(--transition-speed) var(--transition-timing-smooth);
    background-color: var(--white);
}

.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

#testimonials .box .image img {
    border: 3px solid var(--accent-color-1);
}

/* External Resources Section */
#external-resources .box {
    background-color: var(--white);
}

#external-resources .box a {
    text-decoration: none;
    color: var(--heading-color);
}
#external-resources .box a:hover {
    color: var(--primary-color);
}


/* Footer */
.footer {
  background-color: var(--heading-color);
  color: rgba(255, 255, 255, 0.7);
}

.footer .title {
  color: var(--white) !important;
  text-shadow: none;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

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

/* ----------------------------------------------------------------
  7. Responsive Overrides
------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  #hero .title {
    font-size: 2.5rem;
  }
  .section {
      padding: 3rem 1rem;
  }
}