/* =======================================
   Suffolk Maternity Page Styles (Final Version with Blog Feature)
   ======================================= */

/* ---------------------------------------
   1. Global Styles
--------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background-color: #1a1a1a;
  color: #fff;
  overflow-x: hidden;
  padding-top: 70px;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* ---------------------------------------
   2. Navigation Styles
--------------------------------------- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  transition: background 0.3s ease;
}
.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}
.nav-links {
  list-style: none;
  display: flex;
}
.nav-links li {
  margin-left: 1.5rem;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: #ff4b2b;
}
.nav-links a.active::after {
  content: '';
  width: 100%;
  height: 2px;
  background: #ff4b2b;
  position: absolute;
  left: 0;
  bottom: -5px;
}
.nav-links a::after {
  content: '';
  width: 0;
  height: 2px;
  background: #ff4b2b;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: width 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}
.burger-menu {
  display: none;
  align-items: center;
  cursor: pointer;
}
#menu-text, #menu-text-close {
  margin-left: 10px;
  font-size: 1rem;
  color: #333;
  transition: opacity 0.3s ease;
}
#menu-text-close {
  display: none;
}
#burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  transition: all 0.3s ease;
}
#burger div {
  width: 100%;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}
#burger.open div:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
#burger.open div:nth-child(2) {
  opacity: 0;
}
#burger.open div:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------------------------------------
   3. Hero Section with Image Slider
--------------------------------------- */
.hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
  background-color: #111;
}
.hero-background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: crossfade 24s linear infinite;
  object-fit: cover;
  object-position: center top;
}
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
@keyframes crossfade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  35%  { opacity: 1; }
  45%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
  padding: 1rem;
}
.hero-content h1 {
  font-family: 'Roboto Slab', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.btn {
  background-color: #D2691E;
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: #b85d16;
}

/* ---------------------------------------
   4. Main Content Sections
--------------------------------------- */
.about {
  padding: 2rem 0;
  background-color: #111;
  text-align: center;
  color: #fff;
}
.about h2 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.about p {
  font-size: 1rem;
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.7;
}
.portfolio {
  padding: 2rem 0;
  background-color: #111;
  text-align: center;
}
.portfolio h2 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 0 1rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.content-box {
  padding: 2rem 1.5rem;
  border-radius: 8px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  background-color: #222;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.section-title, .testimonial-section h2, .faq-section h2 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.testimonial-section {
  padding: 2rem 0;
  background-color: #111;
  color: #fff;
}
.testimonial-item {
  background-color: #2a2a2a;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border-left: 5px solid #D2691E;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  text-align: left;
}
.testimonial-item blockquote {
  border-left: none;
  padding-left: 0;
  margin: 0 0 0.8rem 0;
  font-style: italic;
  color: #e0e0e0;
  position: relative;
}
.testimonial-item blockquote::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #D2691E;
  font-size: 1.5rem;
  margin-right: 0.7rem;
  float: left;
}
.testimonial-item blockquote p {
  text-align: left;
  color: #EAEAEA;
  margin-bottom: 0;
}
.testimonial-author {
  text-align: right;
  font-weight: 700;
  color: #bdbdbd;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.95rem;
  display: block;
}

/* --- Blog Feature Section Styles --- */
.related-content-section {
  padding: 2rem 0;
  background-color: #1a1a1a;
}
.section-title-alt {
  font-family: 'Lora', serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}
.section-title-alt .fa-lightbulb {
  margin-right: 1rem;
  color: #FFB061;
}
.blog-feature-container {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.blog-feature-image {
  flex: 0 0 150px;
}
.blog-feature-image img {
  border-radius: 4px;
  width: 100%;
  height: auto;
}
.blog-feature-text {
  flex: 1;
  min-width: 250px;
}
.blog-feature-text h4 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem;
  color: #FFB061;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.blog-feature-text p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}
.btn.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* --- FAQ Section --- */
.faq-section {
  padding: 2rem 0;
  background-color: #111;
  color: #fff;
}
.faq-section .content-box {
  text-align: left;
}
.faq-item {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #333;
  padding-bottom: 1.5rem;
}
.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.faq-item h3 {
  font-family: 'Roboto Slab', serif;
  color: #FFB061;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.faq-item p {
  color: #EAEAEA;
  font-size: 1rem;
}
.faq-item strong, .faq-item b {
  font-weight: 700;
  color: #fff;
}
.contact {
  padding: 2rem 0;
  text-align: center;
  background-color: #000;
  color: #fff;
}
.contact h2 {
  font-family: 'Lora', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact p {
  margin-bottom: 1.5rem;
}


/* ---------------------------------------
   5. Detailed Footer Styles
--------------------------------------- */
footer {
  background-color: #0a0a0a;
  color: #ccc;
  padding: 4rem 1.5rem 2rem;
  font-size: 0.95rem;
  text-align: left;
}
.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-column h3 {
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
  text-align: left;
  font-family: 'Playfair Display', serif;
}
.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #D2691E;
}
.footer-column p, .footer-column li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  text-align: left;
}
.footer-column .icon {
  color: #D2691E;
  margin-right: 0.7rem;
  width: 1.2em;
  text-align: center;
  display: inline-block;
}
.footer-links {
  padding-left: 0;
  list-style: none;
}
.footer-links li a {
  color: #ccc;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 0.1rem 0;
}
.footer-links li a:hover, .footer-links li a:focus {
  color: #D2691E;
  text-decoration: none;
}
.footer-column a {
  color: #ccc;
  transition: color 0.3s ease;
}
.footer-column a:hover, .footer-column a:focus {
  color: #D2691E;
  text-decoration: none;
}
.footer-column a.footer-link {
  color: #D2691E;
  font-weight: bold;
}
.social-media {
  margin-bottom: 1rem;
  text-align: left;
}
.social-media a {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  margin-bottom: 0.8rem;
  color: #ccc;
  font-size: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-media a:hover, .social-media a:focus {
  color: #D2691E;
  transform: scale(1.05);
}
.footer-h3-spacing {
  margin-top: 1.5rem;
}
.service-areas {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
  text-align: left;
}
.service-areas a {
  color: #aaa;
  text-decoration: none;
  border-bottom: 1px dotted #555;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.service-areas a:hover, .service-areas a:focus {
  color: #D2691E;
  border-bottom-color: #D2691E;
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 2rem;
  margin-top: 3rem;
}
.footer-bottom p {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0;
  text-align: center;
}

/* ---------------------------------------
   6. Responsive Adjustments
--------------------------------------- */
@media (max-width: 768px) {
  .burger-menu {
    display: flex;
    z-index: 1001;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links li {
    margin: 1rem 0;
  }
  .nav-links a {
    color: #333;
    font-size: 1.2rem;
  }
  .nav-links.active {
    right: 0;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}
@media (min-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}