/*
  Theme: Financial Consulting
  Design System: Brutalism with Volumetric UI elements
  Color Scheme: Split-Complementary
  Animation Style: Morphing
  Fonts: Manrope (Headings), Rubik (Body)
*/

/* ---------------------------------- */
/*          CSS Variables             */
/* ---------------------------------- */
:root {
  /* Color Palette (Split-Complementary: Blue, Yellow-Orange, Red-Orange) */
  --primary-color: #1e40af; /* Tailwind blue-800 */
  --primary-dark: #1e3a8a;  /* Tailwind blue-900 */
  --accent-color: #f97316;   /* Tailwind orange-500 */
  --accent-hover-color: #ea580c; /* Tailwind orange-600 */
  --secondary-accent-color: #fbbf24; /* Tailwind amber-400 */

  /* Typography */
  --text-dark: #111827;     /* Tailwind gray-900 */
  --text-medium: #4b5563;  /* Tailwind gray-600 */
  --text-light: #f8fafc;    /* Tailwind slate-50 */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;

  /* Backgrounds */
  --bg-light: #f3f4f6; /* Tailwind gray-100 */
  --bg-white: #ffffff;

  /* UI Elements */
  --border-radius: 0.5rem; /* 8px */
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition-fast: all 0.2s ease-in-out;
  --transition-medium: all 0.3s ease-in-out;
}

/* ---------------------------------- */
/*          Base Styles               */
/* ---------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------- */
/*          Typography                */
/* ---------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

h1 {
    color: var(--text-light); /* Enforced for Hero section as per prompt */
}

/* Ensure contrast on light backgrounds for other headings */
h2, h3 {
    color: var(--text-dark);
}

p {
  line-height: 1.65;
}

a {
  transition: var(--transition-fast);
}

/* ---------------------------------- */
/*     Global Components & Buttons    */
/* ---------------------------------- */
.volumetric-button {
  border: none;
  cursor: pointer;
  transition: var(--transition-medium);
  box-shadow: 0 4px var(--primary-dark);
}

.volumetric-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px var(--primary-dark);
}

.volumetric-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px var(--primary-dark);
}

/* Style for the orange accent button */
a.volumetric-button[class*="bg-orange-500"] {
  box-shadow: 0 4px #c2410c; /* Tailwind orange-700 */
}

a.volumetric-button[class*="bg-orange-500"]:hover {
  box-shadow: 0 6px #c2410c;
}

a.volumetric-button[class*="bg-orange-500"]:active {
  box-shadow: 0 2px #c2410c;
}

/* Style for the blue primary button */
button.volumetric-button[class*="bg-blue-800"] {
    box-shadow: 0 4px #1e3a8a; /* Tailwind blue-900 */
}

button.volumetric-button[class*="bg-blue-800"]:hover {
    box-shadow: 0 6px #1e3a8a;
}

button.volumetric-button[class*="bg-blue-800"]:active {
    box-shadow: 0 2px #1e3a8a;
}


/* Form input styles */
input[type="text"],
input[type="email"],
textarea {
  background-color: var(--bg-light);
  box-shadow: inset 2px 2px 5px #e0e0e0, inset -2px -2px 5px #ffffff;
  border: 2px solid transparent;
  transition: var(--transition-medium);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  background-color: var(--bg-white);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3); /* Orange focus ring */
}

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

.content-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.centered-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

/* ---------------------------------- */
/*       Scroll Animations            */
/* ---------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------- */
/*      Card Component Styles         */
/* ---------------------------------- */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card .card-image {
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.card .card-image img {
    width: 100%;
    height: 100%; /* Ensure this for proper aspect ratio control */
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.card .card-content {
    width: 100%;
}


/* ---------------------------------- */
/*    Section-Specific Styles         */
/* ---------------------------------- */

/* Hero Section */
#hero h1, #hero p {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

/* History Timeline */
#history .border-2-2 {
  border-width: 2px;
}
#history .right-timeline .z-20 {
    left: 50%;
    transform: translateX(-50%);
}
#history .left-timeline .z-20 {
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
  #history .relative.wrap {
    padding-left: 0;
    padding-right: 0;
  }
  #history .border-2-2 {
    left: 40px;
  }
  #history .right-timeline,
  #history .left-timeline {
    justify-content: start;
    padding-left: 80px;
  }
  #history .right-timeline .w-5\/12,
  #history .left-timeline .w-5\/12 {
    width: 100%;
  }
  #history .right-timeline > div:not(:first-child),
  #history .left-timeline > div:not(:first-child) {
    order: 1;
  }
  #history .right-timeline .z-20,
  #history .left-timeline .z-20 {
    left: 40px;
  }
  #history .right-timeline .order-1,
  #history .left-timeline .order-1 {
    order: 2;
  }
}

/* Events Calendar */
#calendar .relative span.absolute {
  font-size: 0.65rem;
}

/* Contact Form */
#contact .border-t-8 {
    border-top-color: var(--primary-color);
}

/* Footer */
footer a {
  position: relative;
  text-decoration: none;
  display: inline-block;
}

footer a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-color);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

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