/* 
* Family Law Resource Library & Hub - Main Stylesheet
* Version: 1.0
*/

/* ========== VARIABLES ========== */
:root {
  /* Primary Colors */
  --primary-color-1: #e6d7c3; /* Warm beige */
  --primary-color-2: #a5c8c0; /* Sage green */
  --primary-color-3: #d9bdc5; /* Dusty rose */
  --primary-color-4: #8a9ea7; /* Slate blue */
  --primary-color-5: #f5ebe0; /* Light cream */
  
  /* Light/Dark Variations */
  --primary-color-1-light: #f4eee5;
  --primary-color-1-dark: #c4b8a7;
  --primary-color-2-light: #c5e0d8;
  --primary-color-2-dark: #84a59d;
  --primary-color-3-light: #f0d7de;
  --primary-color-3-dark: #b69ba2;
  --primary-color-4-light: #b0bec5;
  --primary-color-4-dark: #6c7f87;
  --primary-color-5-light: #ffffff;
  --primary-color-5-dark: #dfd3c3;
  
  /* Neutral Colors */
  --dark: #3c4046;
  --medium: #6e7277;
  --light: #f8f9fa;
  
  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Merriweather', serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  
  /* Transitions */
  --transition-base: all 0.3s ease-in-out;
}

/* ========== RESET & BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-base);
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--primary-color-2-dark);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--primary-color-2);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-md);
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  padding-right: var(--spacing-sm);
  padding-left: var(--spacing-sm);
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-bg {
  background-color: var(--primary-color-5-light);
}

.section-title {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.section-title h2 {
  position: relative;
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.section-title h2:after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-color-3);
  bottom: 0;
  left: calc(50% - 25px);
}

/* ========== HEADER ========== */
header {
  background-color: #fff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--spacing-sm) 0;
}

.navbar {
  padding: 0;
}

.navbar-brand {
  font-family: var(--font-secondary);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
}

.navbar-nav {
  margin-left: auto;
}

.navbar-nav .nav-item {
  margin: 0 var(--spacing-sm);
}

.navbar-nav .nav-link {
  color: var(--medium);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  transition: var(--transition-base);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color-3);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide {
  height: 80vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: var(--spacing-lg);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: #fff;
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.9);
}

.hero-desc {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.8);
}

/* ========== ABOUT SECTION ========== */
.about {
  padding: var(--spacing-xl) 0;
  background-color: var(--light);
}

.about-content {
  padding: var(--spacing-md);
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

.about-image img {
  transition: var(--transition-base);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-feature {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
}

.about-feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.about-feature-icon {
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color-3);
  font-size: 2rem;
}

.about-feature-name {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

/* ========== SERVICES SECTION ========== */
.services {
  background-color: var(--primary-color-5-light);
  position: relative;
}

.service-shape {
  position: absolute;
  right: 0;
  top: 0;
  width: 25%;
  opacity: 0.1;
  z-index: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.service-item {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  position: relative;
  z-index: 1;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.service-item:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: var(--spacing-md);
}

.service-name {
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--dark);
}

.service-desc {
  margin-bottom: var(--spacing-sm);
  color: var(--medium);
}

.service-price {
  font-weight: 700;
  color: var(--primary-color-3-dark);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-features li:last-child {
  border-bottom: none;
}

/* ========== FEATURES SECTION ========== */
.features {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
  background-color: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.feature-item {
  text-align: center;
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  background-color: var(--primary-color-5-light);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color-2);
  margin-bottom: var(--spacing-sm);
}

.feature-name {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

/* ========== PRICE PLAN SECTION ========== */
.price-plan {
  background-color: var(--primary-color-1-light);
  position: relative;
  overflow: hidden;
}

.price-shape {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 25%;
  opacity: 0.1;
  z-index: 0;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.price-item {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  text-align: center;
  position: relative;
  z-index: 1;
}

.price-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.price-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.price-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color-3-dark);
  margin-bottom: var(--spacing-md);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
  text-align: left;
}

.price-features li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.price-features li:last-child {
  border-bottom: none;
}

/* ========== TEAM SECTION ========== */
.team {
  background-color: #fff;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.team-member {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-photo {
  height: 300px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.team-member:hover .team-photo img {
  transform: scale(1.1);
}

.team-info {
  background-color: #fff;
  padding: var(--spacing-sm);
  text-align: center;
}

.team-name {
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.team-role {
  color: var(--primary-color-2-dark);
  font-size: 0.9rem;
}

/* ========== REVIEWS SECTION ========== */
.reviews {
  background-color: var(--primary-color-2-light);
  position: relative;
  overflow: hidden;
}

.reviews-shape {
  position: absolute;
  right: 0;
  top: 0;
  width: 30%;
  opacity: 0.1;
  z-index: 0;
}

.review-slider {
  padding: var(--spacing-md) 0;
}

.review-item {
  background-color: #fff;
  border-radius: var(--border-radius-md);
  padding: var(--spacing-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin: var(--spacing-xs);
  position: relative;
  z-index: 1;
}

.review-text {
  position: relative;
  padding: var(--spacing-md) 0;
  font-style: italic;
  color: var(--medium);
}

.review-text:before {
  content: "\201C";
  font-size: 4rem;
  position: absolute;
  left: -20px;
  top: -20px;
  color: var(--primary-color-2-light);
  opacity: 0.5;
}

.review-author {
  display: flex;
  align-items: center;
}

.review-author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: var(--spacing-sm);
}

.review-author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-author-name {
  font-weight: 700;
  margin-bottom: 0;
}

/* ========== CORE INFO SECTION ========== */
.coreinfo {
  padding: var(--spacing-xl) 0;
  background-color: #fff;
}

.coreinfo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.coreinfo-item {
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  background-color: var(--primary-color-1-light);
  transition: var(--transition-base);
}

.coreinfo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.coreinfo-icon {
  font-size: 2.5rem;
  color: var(--primary-color-3-dark);
  margin-bottom: var(--spacing-sm);
}

.coreinfo-title {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

/* ========== CONTACT SECTION ========== */
.contact {
  background-color: var(--primary-color-5-light);
  position: relative;
}

.contact-shape {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 25%;
  opacity: 0.1;
  z-index: 0;
}

.contact-form {
  background-color: #fff;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-base);
}

.form-control:focus {
  border-color: var(--primary-color-3);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(217, 189, 197, 0.25);
}

.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark);
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-base);
}

.form-select:focus {
  border-color: var(--primary-color-3);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(217, 189, 197, 0.25);
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background-color: var(--primary-color-3-dark);
  border-color: var(--primary-color-3-dark);
}

.btn-primary:hover {
  background-color: var(--primary-color-3);
  border-color: var(--primary-color-3);
  color: #fff;
}

.contact-info {
  margin-top: var(--spacing-lg);
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.contact-icon {
  font-size: 1rem;
  color: var(--primary-color-3);
  margin-right: var(--spacing-sm);
}

/* ========== BLOG SECTION ========== */
.blog {
  background-color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.blog-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
}

.blog-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-img {
  height: 200px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.blog-item:hover .blog-img img {
  transform: scale(1.1);
}

.blog-content {
  padding: var(--spacing-md);
  background-color: #fff;
}

.blog-title {
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.blog-excerpt {
  color: var(--medium);
  margin-bottom: var(--spacing-sm);
}

.blog-link {
  font-weight: 600;
  color: var(--primary-color-3-dark);
}

.blog-link:hover {
  color: var(--primary-color-3);
}

/* ========== FOOTER ========== */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-xl) 0 var(--spacing-sm);
}

.footer-widget {
  margin-bottom: var(--spacing-lg);
}

.footer-title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer-title:after {
  content: '';
  position: absolute;
  display: block;
  width: 30px;
  height: 2px;
  background: var(--primary-color-3);
  bottom: 0;
  left: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  padding: var(--spacing-xs) 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: #fff;
  padding-left: var(--spacing-xs);
}

.footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
}

/* ========== SPACE PAGE ========== */
.space-container {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color-5-light);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.fade-in-delay-1 {
  animation: fadeIn 1s ease 0.2s forwards;
  opacity: 0;
}

.fade-in-delay-2 {
  animation: fadeIn 1s ease 0.4s forwards;
  opacity: 0;
}

.fade-in-delay-3 {
  animation: fadeIn 1s ease 0.6s forwards;
  opacity: 0;
}

/* ========== UTILITIES ========== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.bg-light {
  background-color: var(--light);
}

.bg-dark {
  background-color: var(--dark);
  color: #fff;
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

/* Additional Section Styles for Additional Pages */
.add-page-section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.add-page-section:nth-child(odd) {
  background-color: var(--primary-color-5-light);
}

.add-page-section:nth-child(even) {
  background-color: #fff;
}

.add-page-item {
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  margin-bottom: var(--spacing-md);
}

.add-page-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.add-page-icon {
  font-size: 2.5rem;
  color: var(--primary-color-2);
  margin-bottom: var(--spacing-sm);
}

/* Decorative SVG Shapes */
.shape-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.shape-divider .shape-fill {
  fill: #FFFFFF;
}

.shape-divider-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.shape-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 50px;
}

.shape-divider-top .shape-fill {
  fill: #FFFFFF;
} 