/* Main CSS Styles for Maureen Martin Ferris Website */

:root {
  --primary-color: #592e86; /* Purple */
  --secondary-color: #9c62ce; /* Lighter Purple */
  --accent-color: #fbb940; /* Gold */
  --text-color: #333333;
  --light-bg: #e6e4dd;
  --white: #ffffff;
  --section-padding: 4rem 2rem;
  --transition: all 0.3s ease;
}

/* Breadcrumb Navigation */
.breadcrumb-container {
  background-color: #f5f5f5;
  border-bottom: 1px solid #e9e9e9;
  padding: 8px 0;
  margin-top: 120px; /* Adjust for fixed header */
}

.breadcrumb {
  display: flex;
  align-items: center;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.breadcrumb .separator {
  margin: 0 10px;
  color: #999;
}

.breadcrumb .current {
  color: #666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Futura", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Styles */
header {
  background-color: var(--white);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.logo-text {
  margin-left: 1rem;
}

.logo-text h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

.logo-text p {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding-bottom: 5px;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  background-image: url("../images/background.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 650px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  font-weight: 500;
  border: 2px solid var(--primary-color);
}

.btn:hover {
  background-color: transparent;
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--white);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* About Section */
.about {
  padding: var(--section-padding);
  background-color: var(--white);
}

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

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--accent-color);
  bottom: -10px;
  left: 25%;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img img {
  max-height: 400px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

/* Services Section */
.services {
  padding: var(--section-padding);
  background-color: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: var(--primary-color);
  margin: 1.5rem 0 1rem;
  font-size: 1.5rem;
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-color);
}

/* Projects Section */
.projects {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Wide project card for Flickr stream */
.project-card-wide {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}

.project-card-wide .project-info {
  padding: 30px;
  flex: 1;
}

.flickr-container {
  margin: 20px 0;
  margin-bottom:0px;
  width: 100%;
}

.flickr-container h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

#flickr-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  margin-top: 15px;
  min-height: 265px; /* Maintain consistent height */
}

/* Photo wrapper for consistent sizing */
.photo-wrapper {
  width: 100%;
  height: 220px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

#flickr-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border: none;
}

/* Error message styling */
.error-message {
  text-align: center;
  padding: 20px;
  color: #721c24;
  background-color: #f8d7da;
  border-radius: 4px;
}

.error-message a {
  color: #721c24;
  text-decoration: underline;
  font-weight: bold;
}

.error-message a:hover {
  text-decoration: none;
}

/* Skeleton loader styles */
.skeleton-loader {
  width: 100%;
  height: 220px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Show skeleton loaders only during loading state */
#flickr-photos.loading .skeleton-loader {
  display: block;
}

#flickr-photos:not(.loading) .skeleton-loader {
  display: none;
}

/* Rest of existing project card styles */
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-img {
  height: 250px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-btn {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

.project-btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

/* Resources Section */
.resources {
  padding: var(--section-padding);
  background-color: var(--light-bg);
}

.resources-btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.resources-btn {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--primary-color);
  color: var(--white) !important;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.resource-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

.resource-card h3 {
  color: var(--primary-color);
  margin: 1rem 0;
  font-size: 1.3rem;
}

.resource-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.resource-card a:hover {
  color: var(--accent-color);
}

.resource-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Social Resource Links - Updated for Facebook Groups */
.social-resource-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.facebook-group-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-align: center;
}

.facebook-group-item a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: #5d2a8c;
  border-radius: 50%;
  color: white;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.facebook-group-item a:hover {
  background-color: #4a2271;
  transform: scale(1.05);
}

.group-name {
  font-size: 1rem;
  font-weight: 700;
  color: #592e86;
  margin: 0;
  line-height: 1.1;
  text-align: center;
  word-break: break-word;
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
  background-color: var(--white);
}

.contact-container {
  display: flex;
  gap: 4rem;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.contact-info p {
  margin-bottom: 1.5rem;
}

.contact-links {
  margin-top: 2rem;
}

.contact-links a {
  display: inline-block;
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: var(--transition);
}

.contact-links a:hover {
  color: var(--accent-color);
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(89, 46, 134, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-logo {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.footer-logo img {
  width: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.footer-logo p {
  max-width: 300px;
}

.footer-links {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.footer-links h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--accent-color);
}

.footer-social {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.footer-social h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.social-links a {
  display: inline-block;
  margin-right: 1rem;
  color: var(--white);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-container {
    flex-direction: column;
  }

  .about-content {
    flex-direction: column;
  }

  .about-img {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  .logo-text h1 {
    font-size: 1.2rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    transition: var(--transition);
    z-index: 999;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
  }

  nav ul li {
    margin: 1rem 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
  }

  .btn-secondary {
    margin-left: 0;
  }

  .footer-content {
    flex-direction: column;
  }
}

/* Biography Section Styles */
.biography {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.biography-content {
  max-width: 900px;
  margin: 0 auto;
}

.biography-text {
  line-height: 1.8;
}

.biography-text h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: #555;
}

.biography-text ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.biography-text li {
  margin-bottom: 8px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 25px 0;
}

.expertise-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.expertise-item i {
  font-size: 1.2rem;
  color: #786a5f;
  width: 24px;
  text-align: center;
}

/* Form response styling */
.form-response {
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 4px;
}

.form-response.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-response.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Required field indicator */
.required {
  color: #dc3545;
}

/* Responsive adjustment for expertise grid */
@media (max-width: 768px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}
