/*
  Prepurchasesyst S.R.L. - style.css
  Theme: Modern Professional Training & Recruitment
  Design System: Neomorphism with Hyperrealistic Textures
  Color Scheme: Gradient
  Animation Style: Smooth Transitions
*/

/* -------------------------------------------------------------------------- */
/*                               CSS Variables                                */
/* -------------------------------------------------------------------------- */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'IBM Plex Sans', sans-serif;

  /* Gradient Color Scheme - Sky & Slate Tones */
  --color-primary-light: #38bdf8; /* sky-400 */
  --color-primary: #0ea5e9;       /* sky-500 */
  --color-primary-dark: #0284c7;  /* sky-600 */
  --color-primary-darker: #0369a1; /* sky-700 */

  --color-accent: #f59e0b; /* amber-500 - for a contrasting CTA or highlight */
  --color-accent-dark: #d97706; /* amber-600 */

  --color-text-base: #334155;    /* slate-700 */
  --color-text-muted: #64748b;   /* slate-500 */
  --color-text-headings: #1e293b; /* slate-800 */
  --color-text-white: #ffffff;
  --color-text-inverted: #f8fafc; /* slate-50 on dark backgrounds */

  --color-background-body-start: #f8fafc; /* slate-50 */
  --color-background-body-end: #e0f2fe;   /* sky-100 */
  
  --color-surface-light: #ffffff;         /* White for cards, modals */
  --color-surface-medium: #f1f5f9;      /* slate-100 for subtle contrast */
  --color-surface-dark: #1e293b;        /* slate-800 for footer */

  /* Neomorphism - Base color should match the surface the element is on */
  /* For elements on --color-background-body-start or --color-surface-medium */
  --neumorphic-bg: var(--color-surface-medium); /* Adjust if cards are on a different bg */
  --neumorphic-shadow-light: rgba(255, 255, 255, 0.8);
  --neumorphic-shadow-dark: rgba(163, 177, 198, 0.6); /* Derived from a light grey background */
  --neumorphic-shadow-offset: 6px; /* Example offset */
  
  /* Shadows (can be combined with Tailwind's or used for more custom neomorphic effects) */
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-strong: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

  --border-radius-sm: 0.375rem; /* 6px */
  --border-radius-md: 0.75rem;  /* 12px */
  --border-radius-lg: 1rem;    /* 16px */
  --border-radius-xl: 1.5rem;  /* 24px */
  --border-radius-full: 9999px;

  --transition-base: all 0.3s ease-in-out;
  --transition-fast: all 0.15s ease-in-out;

  /* Glassmorphism */
  --glass-bg-light: rgba(255, 255, 255, 0.3);
  --glass-bg-dark: rgba(30, 41, 59, 0.3); /* slate-800 with alpha */
  --glass-blur: 10px;
  --glass-border-light: rgba(255, 255, 255, 0.4);
  --glass-border-dark: rgba(71, 85, 105, 0.4); /* slate-600 with alpha */
}

/* -------------------------------------------------------------------------- */
/*                                Basic Styles                                */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-text-base);
  background-image: linear-gradient(to bottom right, var(--color-background-body-start), var(--color-background-body-end));
  line-height: 1.65;
  font-size: 16px; /* Base font size */
  overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Base link styles */
a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--color-primary-darker);
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/*                                 Typography                                 */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-text-headings);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75em; /* Tailwind uses mb utilities mostly */
}

h1 { font-size: 2.5rem; }   /* Tailwind: text-4xl or text-5xl */
h2 { font-size: 2rem; }     /* Tailwind: text-3xl or text-4xl */
h3 { font-size: 1.75rem; }  /* Tailwind: text-2xl or text-3xl */
h4 { font-size: 1.5rem; }   /* Tailwind: text-xl or text-2xl */
p { margin-bottom: 1.25rem; } /* Tailwind: mb-5 */

/* For prose content on privacy/terms pages if Tailwind prose plugin is not used extensively */
.prose-custom h2 { margin-top: 2em; margin-bottom: 1em; }
.prose-custom ul, .prose-custom ol { margin-left: 1.5em; margin-bottom: 1.25em; }
.prose-custom li { margin-bottom: 0.5em; }

/* Hero section text must be white */
#hero h1, #hero p {
  color: var(--color-text-white) !important;
}

/* Section titles for added contrast if needed - Tailwind usually handles this with text color utilities */
/* .section-title-dark { color: #222222; } */
/* .section-title-shadow { text-shadow: 1px 1px 3px rgba(0,0,0,0.5); } */


/* -------------------------------------------------------------------------- */
/*                            Global Button Styles                            */
/* -------------------------------------------------------------------------- */
.btn, button, input[type="submit"], input[type="button"] {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 500;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem; /* py-3 px-6 */
  font-size: 1rem; /* text-base */
  line-height: 1.5;
  border-radius: var(--border-radius-md); /* rounded-lg */
  transition: var(--transition-base);
  box-shadow: var(--shadow-soft); /* Subtle base shadow */
  
  /* Base Neomorphic style for buttons */
  background-color: var(--color-primary);
  color: var(--color-text-white);
  /* For a more pronounced neomorphic effect on primary buttons: */
  /* box-shadow: var(--neumorphic-shadow-offset) var(--neumorphic-shadow-offset) calc(var(--neumorphic-shadow-offset) * 2) var(--neumorphic-shadow-dark),
              calc(-1 * var(--neumorphic-shadow-offset)) calc(-1 * var(--neumorphic-shadow-offset)) calc(var(--neumorphic-shadow-offset) * 2) var(--neumorphic-shadow-light); */
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-text-white);
  transform: translateY(-2px); /* Slight lift */
  box-shadow: var(--shadow-medium);
  /* Neomorphic pressed effect on hover: */
  /* box-shadow: inset var(--neumorphic-shadow-offset) var(--neumorphic-shadow-offset) calc(var(--neumorphic-shadow-offset) * 2) var(--neumorphic-shadow-dark),
              inset calc(-1 * var(--neumorphic-shadow-offset)) calc(-1 * var(--neumorphic-shadow-offset)) calc(var(--neumorphic-shadow-offset) * 2) var(--neumorphic-shadow-light); */
}

.btn:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--color-primary-light), 0.5), var(--shadow-medium); /* Focus ring */
}

.btn:active, button:active, input[type="submit"]:active, input[type="button"]:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-soft); /* Slightly less shadow when pressed */
}

/* Secondary/Outline button style example */
.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}

/* Text button style example */
.btn-text {
  background-color: transparent;
  color: var(--color-primary);
  box-shadow: none;
}
.btn-text:hover {
  background-color: rgba(var(--color-primary-light), 0.1); /* Subtle hover */
  color: var(--color-primary-dark);
  transform: none;
  box-shadow: none;
}


/* -------------------------------------------------------------------------- */
/*                              Navigation / Header                           */
/* -------------------------------------------------------------------------- */
.neomorphic-header { /* Tailwind handles most of this: bg-white/80 backdrop-blur-md shadow-lg */
  /* Potentially add specific neomorphic border if glassmorphism is more pronounced */
  /* border-bottom: 1px solid var(--glass-border-light); */
}

/* Mobile menu specific styles if needed beyond Tailwind's hidden/flex */
#mobile-menu {
  /* background-color: var(--glass-bg-light); */ /* For glassmorphism on mobile menu */
  /* backdrop-filter: blur(var(--glass-blur)); */
}
#mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
}
#mobile-menu a:hover {
  background-color: var(--color-surface-medium);
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
#hero { /* min-h-[80vh] is set in HTML */
  /* Background image set inline with linear-gradient overlay */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#hero .animate-fade-in-down { animation: fadeInDown 1s ease-out forwards; }
#hero .animate-fade-in-up { animation: fadeInUp 1s ease-out 0.2s forwards; }
#hero .delay-200 { animation-delay: 0.4s; }


/* -------------------------------------------------------------------------- */
/*                         Card and Item-like Elements                        */
/* -------------------------------------------------------------------------- */
/* General card styles (applied via Tailwind's bg-white, rounded-xl, shadow-xl) */
.course-card, .card, .item, .testimonial, .team-member, .product-card, 
.bg-slate-50.p-6.rounded-xl, /* For external resources cards */
.bg-white.p-6.rounded-xl /* For press cards */
 {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center text content */
  transition: var(--transition-base);
  overflow: hidden; /* Ensure content respects border-radius */
}

/* Image container within cards */
.card-image { /* Tailwind: mb-6 rounded-lg overflow-hidden h-52 */
  width: 100%; /* Make image container take full width of card before padding */
  display: flex; /* For centering the img tag itself if it's smaller */
  justify-content: center;
  align-items: center;
  /* Fixed height is set in HTML by `h-52` or similar */
}

.card-image img {
  width: 100%;
  height: 100%; /* Ensure img fills the .card-image container */
  object-fit: cover; /* Crucial for fixed height containers */
  margin: 0 auto; /* Redundant if parent is flex centering, but safe */
}

/* Ensure text content within cards is also centered if not directly a child of the flex container */
.card-content {
  width: 100%; /* Take full width for text alignment */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.card-content > * {
   /* Allow text to wrap naturally based on card width */
}

/* Specific testimonial avatar */
.testimonial .card-image { /* This targets the avatar holder */
  /* Tailwind classes handle this mostly: w-20 h-20 rounded-full overflow-hidden mx-auto mb-6 border-4 border-sky-200 */
  /* Ensure it's treated like other card images for consistency if needed */
}


/* -------------------------------------------------------------------------- */
/*                               Modal Styles                                 */
/* -------------------------------------------------------------------------- */
.modal { /* Fixed position, bg overlay, hidden by default - handled by Tailwind & JS */
  /* backdrop-filter: blur(var(--glass-blur)); /* Glassmorphism for backdrop */
}
.neomorphic-modal-content { /* Tailwind: bg-white rounded-xl shadow-2xl p-8 max-w-2xl */
  /* Example neomorphic shadow for modal surface */
  /* box-shadow: 0 0 0 1px var(--neumorphic-bg),
              var(--neumorphic-shadow-offset) var(--neumorphic-shadow-offset) calc(var(--neumorphic-shadow-offset) * 2) var(--neumorphic-shadow-dark),
              calc(-1 * var(--neumorphic-shadow-offset)) calc(-1 * var(--neumorphic-shadow-offset)) calc(var(--neumorphic-shadow-offset) * 2) var(--neumorphic-shadow-light); */
  border: 1px solid rgba(0,0,0,0.05); /* Softer border for light surfaces */
}
.modal img { /* Images inside modals */
  border-radius: var(--border-radius-md);
}

/* -------------------------------------------------------------------------- */
/*                                Form Styles                                 */
/* -------------------------------------------------------------------------- */
/* Tailwind handles most input styling. This is for neomorphic enhancement. */
.neomorphic-input { /* Applied in HTML */
  background-color: var(--color-surface-medium); /* Match page/form container background */
  border: 1px solid transparent; /* Remove default border if any */
  box-shadow: inset 3px 3px 5px var(--neumorphic-shadow-dark), /* Darker inner shadow */
              inset -3px -3px 5px var(--neumorphic-shadow-light); /* Lighter inner shadow */
  transition: box-shadow var(--transition-fast);
}
.neomorphic-input:focus {
  /* box-shadow: 0 0 0 2px var(--color-primary-light), /* Optional focus ring */
  /*             inset 2px 2px 4px var(--neumorphic-shadow-dark),
                 inset -2px -2px 4px var(--neumorphic-shadow-light); */
  /* Tailwind's focus:border-sky-500 focus:ring-sky-500 is good for accessibility */
}
label {
  font-weight: 500;
  color: var(--color-text-headings);
}

/* -------------------------------------------------------------------------- */
/*                               Footer Styles                                */
/* -------------------------------------------------------------------------- */
footer { /* Tailwind: bg-slate-800 text-slate-300 py-16 */
  color: var(--color-text-inverted);
}
footer h4 {
  color: var(--color-text-white);
}
footer a {
  color: var(--color-primary-light); /* Lighter blue on dark bg */
  transition: var(--transition-fast);
}
footer a:hover {
  color: var(--color-text-white);
  text-decoration: underline;
}
/* Social links in footer are text-based as requested */
footer ul li a { /* General link styling already covers this */ }

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

/* success.html page */
body[data-barba-namespace="success"] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body[data-barba-namespace="success"] > main[data-barba-container] {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
body[data-barba-namespace="success"] header { /* Make header on success page non-sticky or adjust */
    position: static; /* Or ensure it doesn't overlap the centered content */
}


/* privacy.html and terms.html - content padding */
body[data-barba-namespace="privacy"] > main[data-barba-container] > section,
body[data-barba-namespace="terms"] > main[data-barba-container] > section {
  padding-top: 6.25rem; /* 100px approx, adjust as needed based on fixed header height */
}
@media (min-width: 768px) { /* md breakpoint */
    body[data-barba-namespace="privacy"] > main[data-barba-container] > section,
    body[data-barba-namespace="terms"] > main[data-barba-container] > section {
      padding-top: 7.5rem; /* 120px */
    }
}


/* Background image handling (global approach if needed, HTML already has inline) */
.bg-image-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.bg-image-darken-overlay { /* Apply this class if using CSS for overlay */
  position: relative;
}
.bg-image-darken-overlay::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
  z-index: 1; /* Ensure text is above overlay if z-index is used on children */
}
/* Ensure content is above overlay */
.bg-image-darken-overlay > * {
  position: relative;
  z-index: 2;
}


/* "Read More" link style */
.read-more-link {
  font-weight: 600;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  transition: var(--transition-base);
}
.read-more-link:hover {
  color: var(--color-primary-darker);
  text-decoration: none;
}
.read-more-link .arrow {
  margin-left: 0.35rem;
  transition: transform 0.2s ease-in-out;
}
.read-more-link:hover .arrow {
  transform: translateX(3px);
}


/* Carousel basic styles (JS handles functionality) */
#bts-carousel-track { /* Handled by Tailwind: flex transition-transform */ }
#bts-carousel .min-w-full, 
#bts-carousel .md\:min-w-\[50\%\] /* Escaped for CSS */
 { /* Handled by Tailwind */ }

#bts-prev, #bts-next {
    /* Tailwind: absolute top-1/2 transform -translate-y-1/2 bg-white/70 p-2 rounded-full shadow-md hover:bg-white */
    z-index: 10;
}


/* -------------------------------------------------------------------------- */
/*                              Animations & Transitions                      */
/* -------------------------------------------------------------------------- */
/* Barba.js page transitions */
.fade-in {
  animation: fadeInAnimation 0.5s ease-out forwards;
}
.fade-out {
  animation: fadeOutAnimation 0.5s ease-in forwards;
}

@keyframes fadeInAnimation {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOutAnimation {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-15px); }
}

/* Additional keyframes for hero text if needed */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* AOS fallback if library not loaded (JS adds .aos-animate-manual) */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-aos].aos-animate-manual { /* Class added by JS fallback */
    opacity: 1;
}
[data-aos][data-aos="fade-up"] { transform: translateY(40px); }
[data-aos][data-aos="fade-up"].aos-animate-manual { transform: translateY(0); }

[data-aos][data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos][data-aos="fade-right"].aos-animate-manual { transform: translateX(0); }

[data-aos][data-aos="fade-left"] { transform: translateX(40px); }
[data-aos][data-aos="fade-left"].aos-animate-manual { transform: translateX(0); }

[data-aos][data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos][data-aos="zoom-in"].aos-animate-manual { transform: scale(1); }

[data-aos][data-aos="zoom-in-up"] { transform: scale(0.9) translateY(30px); }
[data-aos][data-aos="zoom-in-up"].aos-animate-manual { transform: scale(1) translateY(0); }

[data-aos][data-aos="flip-left"] { transform: perspective(2000px) rotateY(-90deg); }
[data-aos][data-aos="flip-left"].aos-animate-manual { transform: perspective(2000px) rotateY(0); }


/* Microinteractions - example, Tailwind handles most hovers */
.interactive-scale:hover {
  transform: scale(1.03);
}
.interactive-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}


/* Cookie Popup (already styled inline in HTML, but can be moved here) */
/* #cookie-popup { ... } */
/* #accept-cookie { ... } */


/* Responsive typography (example, Tailwind handles this well with responsive prefixes) */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  body { font-size: 15px; }
}

/* Ensure content on Privacy and Terms pages doesn't overlap fixed header */
/* Applied directly to page-specific body data attributes */
/* body[data-barba-namespace="privacy"] .content-wrapper,
body[data-barba-namespace="terms"] .content-wrapper {
  padding-top: 120px; /* Adjust based on actual header height 
} */
/* This is handled by padding-top on the section within the main container */
.text-3xl {
    font-size: 1.2rem!important;
    line-height: 2.25rem;
}