/* Improved Layout CSS for Knufman Photography - 2025-09-26 */

/* Enhanced Card Grid System */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin: 0 auto;
  max-width: 1200px;
}

/* Improved Card Styling */
.card {
  background: var(--color-white, #fff);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Enhanced Card Image Container */
.card-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f5f5f5;
}

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

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

/* Improved Card Content */
.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary, #1a1a1a);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
  font-size: 0.95rem;
}

/* Features Section Cards (Text-only) */
.section .card-grid .card:not(.card-image) .card-content,
.card-content:only-child {
  padding: 2rem 1.5rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Enhanced Typography for Cards */
.card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary, #1a1a1a);
  margin-bottom: 1rem;
  line-height: 1.3;
}

/* Improved Split Section */
.split-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin: 0 auto;
  max-width: 1200px;
}

.split-content,
.split-image {
  flex: 1;
}

.split-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Enhanced Section Spacing */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary, #1a1a1a);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent-1, #c9a77c);
  border-radius: 2px;
}

/* Responsive Improvements */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .split-section {
    flex-direction: column;
    gap: 2rem;
  }
  
  .split-image {
    order: -1;
  }
  
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card-image {
    height: 240px;
  }
  
  .card-content {
    padding: 1.25rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .split-section {
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .card-content {
    padding: 1rem;
  }
  
  .card-title,
  .card-content h3 {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.75rem;
  }
}

/* Image Loading Optimization */
.card-image img {
  loading: lazy;
}

/* Accessibility Improvements */
.card {
  outline: none;
}

.card:focus-within {
  outline: 2px solid var(--color-accent-1, #c9a77c);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .card:hover {
    transform: none;
  }
}


/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
  margin: 0 auto;
  max-width: 1200px;
}

.pricing-card {
  background: var(--color-white, #fff);
  border-radius: var(--radius-md, 12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary, #1a1a1a);
  margin-bottom: 1rem;
  line-height: 1.3;
  text-align: center;
}

.pricing-card .price {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent-1, #c9a77c);
  margin-bottom: 1.5rem;
  text-align: center;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pricing-card ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  color: #666;
  font-size: 0.95rem;
}

.pricing-card ul li::before {
  content: '\f00c'; /* Font Awesome check icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--color-accent-1, #c9a77c);
  margin-right: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
}

.pricing-card .btn {
  margin-top: auto; /* Push button to the bottom */
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card h3 {
    font-size: 1.4rem;
  }
  .pricing-card .price {
    font-size: 1.8rem;
  }
}


/* Experience Cards Styling */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #c9a96e, #b8956a);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.experience-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.experience-date {
    color: #c9a96e;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.experience-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.experience-content .skills-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.experience-content .skills-list li {
    color: #666;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.experience-content .skills-list li:last-child {
    border-bottom: none;
}

.experience-content .skills-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #c9a96e;
    font-weight: bold;
}

/* Responsive adjustments for experience cards */
@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experience-card {
        padding: 1.5rem;
    }
    
    .experience-content h3 {
        font-size: 1.2rem;
    }
}
