/* ===================================
   PatchWorks Studio - Custom Overrides
   Bootstrap 5 + Brand Theming
   =================================== */

/* CSS Variables for Brand Colors */
:root {
  --primary-color: #2196F3;
  --primary-dark: #1976D2;
  --accent-color: #FF6B35;
  --accent-light: #FF8C61;
  --text-dark: #2C3E50;
  --text-light: #5A6C7D;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* Bootstrap Color Overrides */
.text-primary {
  color: var(--primary-color) !important;
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Body Font */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Logo Icon */
.logo-icon {
  border-radius: 8px;
  object-fit: contain;
}

/* Hero Section with Gradient Background */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../assets/family_hero_points.jpg') center/cover;
  opacity: 0.2;
  z-index: 0;
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h1,
.hero p,
.hero .lead {
  color: white !important;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* Contact Section Gradient */
.contact {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.contact h2,
.contact p,
.contact .lead {
  color: white !important;
}

/* Legal Pages Styling */
.legal-page {
  padding: 4rem 1.5rem;
  max-width: 900px;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 576px) {
  .legal-page {
    padding: 2rem 1rem;
  }
}

.legal-page h1 {
  color: var(--primary-color);
}

.legal-page .last-updated {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 2rem;
}

.legal-page h2 {
  margin-top: 2.5rem;
  color: var(--text-dark);
}

.legal-page h3 {
  margin-top: 1.5rem;
  color: var(--primary-color);
}

.legal-page ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.legal-page p,
.legal-page li,
.legal-page td {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.legal-page a {
  word-break: break-word;
}

/* Ensure table responsiveness */
.legal-page .table-responsive {
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* Hover Effects for Cards */
.card {
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
}

/* Footer Link Hover */
footer a:hover {
  opacity: 0.8;
}
