/* style.css */

/* --- CSS Variables --- */
:root {
  /* Bright Color Palette */
  --color-background: #fffbeb; /* Tailwind amber-50 */
  --color-text-dark: #1c1917;   /* Tailwind stone-900 */
  --color-text-light: #fefce8;  /* A very light off-white for contrast on dark backgrounds */
  --color-primary: #2dd4bf;    /* Tailwind teal-400 */
  --color-secondary: #fca5a5;  /* Tailwind rose-400 */
  --color-accent: #facc15;     /* Tailwind yellow-400 */
  --color-dark-bg: #1c1917;    /* Tailwind stone-900 */
  
  /* Fonts */
  --font-display: 'Raleway', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Brutalism Elements */
  --border-hard: 4px solid var(--color-text-dark);
  --shadow-hard: 8px 8px 0px var(--color-text-dark);
  --shadow-hard-sm: 4px 4px 0px var(--color-text-dark);
  --shadow-inset: inset 4px 4px 0px rgba(0, 0, 0, 0.2);
}

/* --- Base Styles --- */
body {
  background-color: var(--color-background);
  color: var(--color-text-dark);
  font-family: var(--font-body);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-text-dark);
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.2);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 4rem;
    }
    h2 {
        font-size: 3.5rem;
    }
}

/* --- Global Component Styles --- */

/* Buttons */
button, input[type='submit'], .btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-align: center;
  color: var(--color-text-dark);
  background-color: var(--color-accent);
  border: var(--border-hard);
  box-shadow: var(--shadow-hard-sm);
  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),
              background-color 0.2s ease;
  cursor: pointer;
}

button:hover, input[type='submit']:hover, .btn:hover {
  background-color: var(--color-text-light);
  transform: translateY(-4px) translateX(-4px);
  box-shadow: 8px 8px 0px var(--color-text-dark);
}

/* Form Inputs */
input[type='text'], input[type='email'], textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-body);
  background-color: var(--color-text-light);
  border: var(--border-hard);
  box-shadow: var(--shadow-inset);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type='text']:focus, input[type='email']:focus, textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-inset), 0 0 0 4px var(--color-primary);
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border: var(--border-hard);
  box-shadow: var(--shadow-hard);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) translateX(-8px);
  box-shadow: 16px 16px 0px var(--color-text-dark);
}

.card-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-content {
  padding: 1.5rem;
  text-align: left;
  flex-grow: 1;
}

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

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

#hero h1, #hero p {
  color: white; /* Enforce white text color */
}

/* History Timeline */
.timeline-item {
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: scale(1.03);
}

/* In Tailwind, the timeline positioning is done with classes.
   We can style the central line and dots if they have specific classes or use pseudo-elements. */
@media (min-width: 768px) {
  .right-timeline .z-20, .left-timeline .z-20 {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .right-timeline:hover .z-20, .left-timeline:hover .z-20 {
    transform: scale(1.5);
  }
}

/* Footer */
footer a {
  transition: color 0.2s ease;
  position: relative;
  text-decoration: none;
}
footer a:hover {
  color: var(--color-accent);
}
footer a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
footer a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}


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

/* Success Page */
.success-page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.success-card {
  background-color: white;
  border: var(--border-hard);
  box-shadow: var(--shadow-hard);
  padding: 3rem 4rem;
  max-width: 600px;
}

/* Legal Pages (Privacy & Terms) */
.legal-page-content {
  padding-top: 120px; /* Space for the fixed header */
  padding-bottom: 60px;
}
.legal-page-content h1 {
  margin-bottom: 2rem;
  font-size: 2.8rem;
}
.legal-page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: 0.5rem;
}
.legal-page-content p, .legal-page-content li {
  line-height: 1.8;
  margin-bottom: 1rem;
}
.legal-page-content ul {
    list-style-type: disc;
    padding-left: 2rem;
}

/* --- GSAP Animation Initial States --- */
/* These elements will be animated by script.js */
.gsap-fade-up, .gsap-timeline-item {
  opacity: 0;
  transform: translateY(40px);
  visibility: hidden;
}

.gsap-hero-title {
  opacity: 0;
  transform: translateY(50px);
}
.gsap-hero-subtitle {
  opacity: 0;
  transform: translateY(50px);
}
.gsap-hero-button {
  opacity: 0;
  transform: scale(0.8);
}