/* style.css */

/*------------------------------------------------------------------
[Table of Contents]

1.  VARIABLES
2.  BASE STYLES
3.  LAYOUT & CONTAINER
4.  HEADER & NAVIGATION
5.  HERO SECTION
6.  NEO-BRUTALISM COMPONENTS
    -   Neo Card
    -   Neo Button (Global)
    -   Neo Input
7.  GENERIC CARD STYLES (Enhancements)
8.  SPECIFIC SECTION STYLING
    -   Statistics
    -   Accordions
    -   Modals
    -   Workshop/Blog "Read More"
9.  FOOTER
10. ANIMATIONS & TRANSITIONS
    -   ScrollReveal
    -   Motion One (JS driven, CSS can support)
    -   Hover Effects
11. UTILITY CLASSES
12. PAGE-SPECIFIC STYLES
    -   Success Page
    -   Privacy & Terms Pages
13. MISC & OVERRIDES
-------------------------------------------------------------------*/

/* 1. VARIABLES (Referenced from HTML <style> block for consistency)
:root {
    --color-primary: #0A3D62;
    --color-secondary: #F4A261;
    --color-accent1: #2A9D8F;
    --color-accent2: #E76F51;
    --color-text-dark: #1a1a1a;
    --color-text-light: #FFFFFF;
    --color-bg-light: #F8F9FA;
    --color-bg-dark: #212529;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;
}
*/

/* 2. BASE STYLES */
body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(
    --color-text-dark
  ); /* Overriding Tailwind's default if needed for global consistency */
  margin-bottom: 0.75em; /* Consistent spacing */
  line-height: 1.2;
}
/* Ensure section titles are prominent */
section h2.text-primary {
  color: var(
    --color-primary
  ) !important; /* Important to override Tailwind sometimes */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
section h2.text-light {
  color: var(--color-text-light) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

p {
  margin-bottom: 1em;
  color: var(
    --color-text-dark
  ); /* Default paragraph color on light backgrounds */
}
.text-gray-700 {
  color: #4a5568;
} /* Example, Tailwind usually handles this */
.text-gray-600 {
  color: #718096;
}
.text-gray-500 {
  color: #a0aec0;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

a:hover {
  color: var(--color-accent2);
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below images */
}

/* 3. LAYOUT & CONTAINER */
/* Tailwind's .container.mx-auto is generally used */
main.container {
  overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

section {
  padding-top: 4rem; /* py-16 in Tailwind is 4rem */
  padding-bottom: 4rem; /* py-16 in Tailwind is 4rem */
}

@media (min-width: 768px) {
  /* md breakpoint */
  section {
    padding-top: 6rem; /* md:py-24 in Tailwind is 6rem */
    padding-bottom: 6rem; /* md:py-24 in Tailwind is 6rem */
  }
}

/* 4. HEADER & NAVIGATION */
header {
  /* background-color: var(--color-primary); Tailwind bg-primary */
  /* color: var(--color-text-light); Tailwind text-light */
  /* position: sticky; Tailwind sticky */
  /* top: 0; Tailwind top-0 */
  /* z-index: 50; Tailwind z-50 */
  /* box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); Tailwind shadow-lg */
  transition: background-color 0.3s ease;
}

header nav a {
  padding: 0.5rem 0;
  position: relative;
  font-weight: 600;
}

header nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

header nav a:hover::after {
  width: 100%;
}

#mobile-menu {
  /* background-color: var(--color-primary); bg-primary */
  /* opacity: 0.95; bg-opacity-95 */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#mobile-menu.open {
  max-height: 500px; /* Adjust as needed */
}

#mobile-menu a {
  /* padding: 0.75rem 1rem; py-3 px-4 */
  /* font-size: 0.875rem; text-sm */
  transition: background-color 0.2s ease, color 0.2s ease;
}
/* #mobile-menu a:hover defined by Tailwind */

/* 5. HERO SECTION */
#hero {
  /* min-height: 100vh; Tailwind min-h-screen */
  /* background-attachment: fixed; (Parallax-like effect) */
  /* Other styles are inline in HTML */
}

#hero h1 {
  color: var(
    --color-text-light
  ) !important; /* Tailwind text-light, important to override */
}

#hero p {
  color: var(--color-text-light) !important; /* Tailwind text-light */
}

.animate-fade-in-down {
  /* Example custom animation if not using Tailwind's */
  animation: fadeInDown 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.animate-fade-in-up {
  animation: fadeInUp 0.8s 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}
.animate-bounce-in {
  animation: bounceIn 1s 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
  opacity: 0; /* Start hidden for animation */
}

@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);
  }
}
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 6. NEO-BRUTALISM COMPONENTS */
/* Refinements to styles defined in HTML's <style> block */

.neo-card {
  /* Base styles from HTML's style block are good */
  /* padding from Tailwind p-6, p-8 */
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.neo-card:hover {
  /* transform: translate(-2px, -2px); */ /* from HTML */
  /* box-shadow: 7px 7px 0 var(--color-accent1); */ /* from HTML */
}

/* Global Button Styles - extends/refines HTML's .neo-button */
.neo-button,
button,
input[type="submit"],
input[type="button"] {
  font-family: var(--font-heading);
  border: 3px solid var(--color-text-dark);
  box-shadow: 4px 4px 0 var(--color-text-dark);
  transition: transform 0.15s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    box-shadow 0.15s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    background-color 0.2s ease;
  padding: 0.75rem 1.5rem; /* Consistent padding */
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  user-select: none; /* Prevent text selection on click */

}

.neo-button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--color-text-dark);

}

.neo-button:active,
button:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 var(--color-text-dark);
}

.neo-button.primary {
  background-color: var(--color-secondary);
  color: #fff !important;
}
.neo-button.primary:hover {
  background-color: #e59450; /* Slightly darker orange */
}

.neo-button.secondary {
  background-color: var(--color-accent1);
    

}
.neo-button.secondary:hover {
  background-color: #238c7f; /* Slightly darker teal */
}

.neo-input {
  /* Base styles from HTML's style block are good */
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  width: 100%; /* Ensure inputs take full width of their container */
}
.neo-input:focus {
  /* outline: 2px solid var(--color-secondary); */ /* from HTML */
  /* border-color: var(--color-secondary); */ /* from HTML */
  /* box-shadow: inset 2px 2px 0px rgba(0,0,0,0.1), 0 0 0 2px var(--color-secondary); */ /* from HTML */
}

textarea.neo-input {
  min-height: 120px; /* Decent default height for textareas */
  resize: vertical; /* Allow vertical resize */
}

/* 7. GENERIC CARD STYLES (Enhancements for .card not necessarily .neo-card) */
.card {
  /* If a non-neo card is used, e.g. Tailwind card */
  background-color: var(--color-text-light);
  border-radius: 0.5rem; /* Tailwind rounded-lg */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Tailwind shadow-md */
  overflow: hidden; /* To contain image */
  display: flex;
  flex-direction: column;
}

.card .card-image,
.neo-card .card-image {
  /* Image container */
  width: 100%; /* Ensure it spans width if card has align-items:center (it doesn't by default here) */
  position: relative; /* For potential overlays */
  overflow: hidden;
}

.card .card-image img,
.neo-card .card-image img {
  /* Tailwind classes w-full h-56 object-cover are applied on <img> directly in HTML */
  /* These ensure the image fills the fixed height container and is cropped nicely */
  display: block; /* Removes bottom space */
}

.card .card-content,
.neo-card .card-content {
  padding: 1.5rem; /* Tailwind p-6 */
  flex-grow: 1; /* Allows content to expand and push footer elements down */
  display: flex;
  flex-direction: column;
}
/* Centering content within card-content if class is applied */
.card.text-center .card-content,
.neo-card.text-center .card-content {
  text-align: center;
  align-items: center;
}

/* 8. SPECIFIC SECTION STYLING */

/* Statistics Section */
#statistics [data-animate-number] {
  transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* JS will update the number */
}

/* Accordion Styles */
.accordion-item {
  /* border, rounded-md, shadow-md from Tailwind */
  /* margin-bottom: 1rem; mb-4 from Tailwind */
}
.accordion-header {
  transition: background-color 0.2s ease;
}
.accordion-icon {
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}
.accordion-content {
  /* hidden by default via Tailwind */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    padding 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* padding: 0 1.25rem; p-5 from Tailwind for when open */
}
.accordion-item.active .accordion-content {
  /* padding: 1.25rem; p-5 */ /* Re-apply padding when active if it was set to 0 for hidden state */
  max-height: 1000px; /* Large enough value */
}

/* Modal Styles */
/* The #successStoryModal1 etc. uses Tailwind 'hidden', 'fixed', 'inset-0', etc. */
/* CSS for transition effect when JS adds/removes 'hidden' */
/* We'll animate opacity and transform via a custom class like 'modal-open' */
.fixed[role="dialog"] {
  /* Targeting modals */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    visibility 0.3s step-end;
}
.fixed[role="dialog"].modal-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    visibility 0.3s step-start;
}

.fixed[role="dialog"] [data-modal-content] {
  /* transform: scale(0.95) translateY(20px); Tailwind scale-95 */
  /* opacity: 0; Tailwind opacity-0 */
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: center;
}
.fixed[role="dialog"].modal-open [data-modal-content] {
  transform: scale(1) translateY(0);
  opacity: 1;
}
[data-modal-close] {
  transition: color 0.2s ease;
}

/* Workshop/Blog "Read More" styled as text link */
.card-content button[data-modal-target^="blogModal"],
.card-content button[data-modal-target^="successStoryModal"] {
  /* Using Tailwind classes: text-secondary font-semibold hover:underline */
  /* Additional enhancements */
  display: inline-block; /* Or block if it should take full width */
  padding: 0.25rem 0; /* Minimal padding as it's text-like */
  margin-top: auto; /* Pushes to bottom if card-content is flex column with flex-grow:1 */
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.card-content button[data-modal-target^="blogModal"]:hover,
.card-content button[data-modal-target^="successStoryModal"]:hover {
  color: var(--color-accent2) !important; /* Make it pop more on hover */
  transform: translateX(4px);
}

/* 9. FOOTER */
footer {
  /* background-color: var(--color-bg-dark); Tailwind bg-dark */
  /* color: var(--color-text-light); Tailwind text-light */
  /* padding from Tailwind */
}
footer h5 {
  color: var(--color-text-light);
}
footer p,
footer li,
footer a {
  color: #a0aec0; /* Tailwind text-gray-400 or text-gray-500 */
}
footer a {
  transition: color 0.2s ease;
}
footer a:hover {
  color: var(--color-secondary);
}
footer .border-t {
  /* Tailwind border-t */
  border-color: #4a5568; /* Tailwind border-gray-700 */
}
footer #currentYear {
  /* JS populates this */
}
/* Footer social links are text-only as requested */
footer ul li a[target="_blank"]::after {
  /* Optional: external link icon for text links */
  /* content: ' \2197'; /* North East Arrow */
  /* font-size: 0.8em; */
  /* display: inline-block; */
  /* margin-left: 2px; */
}

/* 10. ANIMATIONS & TRANSITIONS */

/* ScrollReveal common initial state */
[data-scroll-reveal] {
  transform: translateY(40px) scale(0.95);
  transition-property: opacity, transform;
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(
    0.175,
    0.885,
    0.32,
    1.275
  ); /* Non-linear */
}

/* State when element is visible (ScrollReveal adds 'is-visible' or similar) */
/* Assuming ScrollReveal.js adds a class or directly styles. If it adds a class: */
.sr-is-visible,
[data-scroll-reveal].is-visible {
  /* Check ScrollReveal docs for actual class */
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* General hover effects for links/buttons are already defined */

/* 11. UTILITY CLASSES */
.text-shadow-light {
  /* From HTML */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.text-shadow-dark {
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.1);
}
.bg-hero-pattern {
  /* Example if a pattern is used */
  /* background-image: url('image/hero-pattern.png'); */
}

/* 12. PAGE-SPECIFIC STYLES */

/* Success Page (`success.html`) */
.success-page-container {
  min-height: calc(100vh - 5rem); /* 5rem is approx header height (h-20) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--color-bg-light);
}
body.success-page {
  /* Add this class to body of success.html */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.success-page main {
  flex-grow: 1;
  display: flex; /* To make .success-page-container fill the main area */
  align-items: center;
  justify-content: center;
}
.success-page-container .icon-success {
  color: var(--color-accent1); /* Teal */
  width: 5rem; /* Tailwind w-20 */
  height: 5rem; /* Tailwind h-20 */
  margin-bottom: 1.5rem; /* Tailwind mb-6 */
}
.success-page-container h1 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.success-page-container p {
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
  max-width: 500px;
}

/* Privacy & Terms Pages (`privacy.html`, `terms.html`) */
.privacy-content-wrapper,
.terms-content-wrapper {
  padding-top: calc(
    5rem + 2rem
  ); /* Header height (h-20 is 5rem) + extra space */
  padding-bottom: 4rem;
  color: var(--color-text-dark);
}
.privacy-content-wrapper .container,
.terms-content-wrapper .container {
  max-width: 800px; /* Limit content width for readability */
}
.privacy-content-wrapper h1,
.terms-content-wrapper h1,
.privacy-content-wrapper h2,
.terms-content-wrapper h2,
.privacy-content-wrapper h3,
.terms-content-wrapper h3 {
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.privacy-content-wrapper p,
.terms-content-wrapper p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.privacy-content-wrapper ul,
.terms-content-wrapper ul,
.privacy-content-wrapper ol,
.terms-content-wrapper ol {
  margin-left: 1.5rem; /* Tailwind ml-6 */
  margin-bottom: 1.25rem;
}
.privacy-content-wrapper li,
.terms-content-wrapper li {
  margin-bottom: 0.5rem;
}
.privacy-content-wrapper a,
.terms-content-wrapper a {
  color: var(--color-secondary);
  text-decoration: underline;
}
.privacy-content-wrapper a:hover,
.terms-content-wrapper a:hover {
  color: var(--color-accent2);
}

/* 13. MISC & OVERRIDES */
/* Ensure high contrast for text on various backgrounds */
.high-contrast-dark-bg p,
.high-contrast-dark-bg li {
  /* from HTML */
  color: var(--color-text-light) !important; /* Ensure readability */
}
.high-contrast-dark-bg a {
  color: var(--color-secondary) !important;
}
.high-contrast-dark-bg a:hover {
  color: var(--color-text-light) !important;
}

.high-contrast-light-bg p,
.high-contrast-light-bg li {
  /* from HTML */
  color: var(--color-text-dark) !important;
}

/* Fix for potential Tailwind conflict with custom font families on headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading) !important;
}

/* Background image defaults for sections that might use them */
.section-bg-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative; /* For pseudo-element overlays */
}
.section-bg-image.dark-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.section-bg-image > * {
  /* Ensure content is above overlay */
  position: relative;
  z-index: 2;
}

/* Cookie popup is styled inline in HTML, this is a safeguard */
#cookie-popup {
  font-family: var(--font-body);
}
#cookie-popup a {
  color: var(--color-secondary) !important; /* Ensure link color is visible */
}
#cookie-popup #accept-cookie {
  font-family: var(--font-heading); /* Match button style */
}
