﻿/**
 * Custom Styles
 * This file contains project-specific styles.
 * Bootstrap utilities are preferred; use custom CSS sparingly.
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   Modern shadcn-inspired design system
   ============================================ */

@import url("header.css");
@import url("footer.css");

:root {
  /* Colors - shadcn inspired palette */
  --custom-accent: #6366f1;
  --custom-accent-light: #818cf8;
  --custom-accent-dark: #4f46e5;

  /* Brand colors */
  --brand-color-light: #f79e6d;
  --brand-color-lightest: #fde5d8;
  --brand-color: #f36415;
  --brand-color-rgb: 247 105 21;
  --brand-color-dark: #df5e12;
  --brand-color-darker: #c75410;
  --cta-background-image: radial-gradient(#004486, #001326);

  /* Neutral colors */
  --color-background: #fff;
  --color-foreground: #09090b;
  --color-muted: #f4f4f5;
  --color-muted-foreground: #71717a;
  --color-border: #e4e4e7;
  --color-background-dark: #011f3d;

  /* Animation durations */
  --animation-duration-fast: 200ms;
  --animation-duration-normal: 400ms;
  --animation-duration-slow: 600ms;

  /* Shadows - softer, more subtle */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 5%);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -1px rgb(0 0 0 / 6%);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -2px rgb(0 0 0 / 5%);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 10px 10px -5px rgb(0 0 0 / 4%);

  /* Spacing - Tailwind-like scale */
  --spacing-xs: 0.5rem; /* 8px */
  --spacing-sm: 0.75rem; /* 12px */
  --spacing-md: 1rem; /* 16px */
  --spacing-lg: 1.5rem; /* 24px */
  --spacing-xl: 2rem; /* 32px */
  --spacing-2xl: 3rem; /* 48px */
  --spacing-3xl: 4rem; /* 64px */
  --spacing-4xl: 6rem; /* 96px */

  /* Border radius */
  --radius-sm: 0.375rem; /* 6px */
  --radius-md: 0.5rem; /* 8px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-xl: 1rem; /* 16px */
}

/* ============================================
   Global Styles
   ============================================ */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Ensure footer stays at bottom */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, sans-serif;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
}

/* Utility spacing classes */
.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.pb-6 {
  padding-bottom: 5rem !important;
}

.btn-brand-solid {
  background-color: var(--brand-color);
  border: 1px solid var(--brand-color);
  color: var(--bs-white);
}

.btn-brand-solid:hover,
.btn-brand-solid:focus-visible {
  background-color: var(--brand-color-dark);
  border: 1px solid var(--brand-color-dark);
  color: var(--bs-white);
}

.btn-brand-solid:focus-visible,
.btn-brand-outline:focus-visible {
  outline: 3px solid rgb(var(--brand-color-rgb) / 25%);
  outline-offset: 0;
}

.btn-brand-solid:active {
  background-color: var(--brand-color-darker) !important;
  border: 1px solid var(--brand-color-darker) !important;
  color: var(--bs-white) !important;
}

.btn-brand-outline {
  color: var(--brand-color);
  border: 1px solid var(--brand-color);
}

.btn-brand-outline:hover,
.btn-brand-outline:active,
.btn-brand-outline:focus-visible {
  background-color: var(--brand-color) !important;
  border-color: var(--brand-color) !important;
  color: var(--bs-white) !important;
}

.text-brand {
  color: var(--brand-color);
}

.brand-name {
  font-weight: 500;
  color: var(--brand-color);
}

.section-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--brand-color);
}

.page-wrapper {
  background-color: var(--bs-light);
}

.page-header {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.page-header img {
  display: block;
  height: clamp(190px, 27vw, 330px);
  object-fit: cover;
  object-position: center;
  width: 100%;
  pointer-events: none;
}

.page-header > .container-md {
  align-items: center;
  display: flex;
  bottom: 0;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
}

.page-header-content {
  width: 100%;
}

.page-header-content h1 {
  color: var(--color-background-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  max-width: 520px;
  text-shadow: 0 2px 16px rgb(255 255 255 / 92%);
}

.page-divider {
  margin-left: auto;
  margin-right: auto;
  height: 1px;
  width: 65%;
  background: linear-gradient(to right, transparent, #c7c7c7, transparent);
}

.cta-page-section {
  background-image: var(--cta-background-image);
  position: relative;
  overflow: hidden;
  padding-block: 3.75rem;
}

.cta-page-inner {
  position: relative;
  z-index: 1;
}

.cta-page-headline {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.cta-page-body {
  font-size: 1rem;
  line-height: 1.2;
  color: rgb(255 255 255 / 55%);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ============================================
/* ============================================
   404 Error Page
   ============================================ */

.error-section {
  min-height: 70dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-page-code {
  color: var(--color-background-dark);
  font-size: 220px;
  font-weight: 300;
  line-height: 0.8;
  margin-bottom: 1.25rem;
}

.error-page-title {
  color: var(--color-background-dark);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.error-page-message {
  color: var(--color-muted-foreground);
  margin-bottom: 1.25rem;
}

@media (width <= 576px) {
  .error-page-code {
    font-size: 5rem;
    line-height: 1;
  }

  .error-page-title {
    font-size: 1.5rem;
  }
}

/* ============================================
   Motion Animation States
   Elements using data-animate start hidden
   and are revealed by animations.js
   ============================================ */
[data-animate] {
  opacity: 0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (width < 992px) {
  .display-2 {
    font-size: 2.5rem;
  }

  .display-3 {
    font-size: 2rem;
  }

  .display-4 {
    font-size: 1.75rem;
  }

  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .pb-6 {
    padding-bottom: 3rem !important;
  }
}

@media (width < 768px) {
  .container-md {
    padding-inline: calc(var(--bs-gutter-x) * 1);
  }
}

@media (width < 576px) {
  .container-md {
    padding-inline: 1rem;
  }
}

/* ============================================
   Accessibility: Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  /* Ensure data-animate elements are visible when motion is reduced */
  [data-animate] {
    opacity: 1;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .navbar,
  footer {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
}
