/*
Theme Name: AutoBueno
Theme URI: https://autobueno.pt/
Author: PAOS.PT
Author URI: https://paos.pt/
Description: Tema WordPress para Auto Bueno (conversão de HTML/CSS/JS)
Version: 1.0
Text Domain: AutoBueno
*/

/* General Styles */
:root {
  --primary-color: #ff0000;
  --secondary-color: #000000;
  --text-color: #333333;
  --white: #ffffff;
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  padding-top: 65px;
}

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

h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  margin-top: 10px;
}

/* Header Styles */
.header {
   background: #3a3a3a;
  /* background: var(--primary-color); */
  color: var(--white);
  padding: 0.5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 20px;
}

.logo {
  height: 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.logo img {
  height: 250px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: normal;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: rgb(154, 152, 152);
}

.main-nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Button - Hidden by default */
.mobile-menu-btn {
  display: none;
}

/* Hero Section */
.hero {
  background: #3c3c3b;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.hero-content {
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 20px;
}

.hero-logo {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: #3c3c3b;
  color: var(--white);
}

.section-header {
  text-align: left;
  margin-bottom: 3rem;
}

.section-subtitle {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.section-title {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin: 0;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
}

.text-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.text-content p:last-child {
  margin-bottom: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
}

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

.team-photo {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 40px;
  border: 3px solid var(--primary-color);
  display: block;
  box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

/* Work Gallery */
.work {
  padding: 5rem 0;
  background: #3c3c3b;
  color: var(--white);
}

.work h2 {
  color: var(--primary-color);
  text-align: left;
  margin-bottom: 3rem;
}

/* Work Video Section */
.work-video {
  max-width: 900px;
  margin: 0 auto 4rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  background: #000;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 15px;
  background: #000;
}

.work-gallery {
  position: relative;
  padding: 0 60px;
  margin: 2rem auto;
  max-width: 1000px;
}
.work-gallery {
  position: relative;
  padding: 0 60px;
}

.gallery-container {
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  position: relative;
  gap: 1rem;
}

/* Desktop: show 3 images per view */
.gallery-slide {
  flex: 0 0 calc(33.333% - 0.667rem);
  box-sizing: border-box;
}

.gallery-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Keep container rounded look */
.gallery-container {
  border-radius: 10px;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: 2px solid var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 2;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* View all photos button */
.view-all-btn {
  display: block;
  margin: 1rem auto 0;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.view-all-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* All-photos overlay */
.all-photos-extra { display: none; }
.all-photos-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  padding: 12px;
}

.all-photos-content {
  width: 95vw;
  height: 90vh;
  display: flex;
  flex-direction: column;
}

.all-photos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  margin-bottom: 12px;
}
.all-photos-header .title {
  font-size: 1.25rem;
  font-weight: 700;
}
.all-photos-header .actions {
  display: inline-flex;
  gap: 8px;
}
.all-photos-header .actions button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.all-photos-header .actions .size-toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
}
.all-photos-header .actions .overlay-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

 .all-photos-grid {
   flex: 1;
   overflow: auto;
   display: grid;
   gap: 6px;
   -webkit-overflow-scrolling: touch;
 }
 .all-photos-grid.large {
   grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
 }
 .all-photos-grid.small {
   grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
 }
 .all-photos-grid .grid-item { 
   aspect-ratio: 1 / 1;
   cursor: zoom-in;
 }
 .all-photos-grid .grid-item img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 6px;
   display: block;
 }
.photo-lightbox[hidden] { display: none; }
.photo-lightbox {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2110;
}
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

@media (max-width: 768px) {
  .all-photos-grid {
    gap: 2px;
  }
  .all-photos-grid.large {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .all-photos-grid.small {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
}

@media (max-width: 768px) {
  .work-video {
    margin-bottom: 3rem;
  }

  .video-wrapper {
    border-radius: 10px;
  }

  .video-wrapper video {
    border-radius: 10px;
  }

  .work-gallery {
    padding: 0 40px;
  }

  .gallery-track {
    height: 300px;
  }

  /* Mobile: show one slide per view to fit small screens */
  .gallery-slide {
    flex: 0 0 100%;
  }

  .gallery-nav {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: #3c3c3b;
  color: var(--white);
}

.testimonials h2 {
  color: var(--primary-color);
}

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

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

.testimonial-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-card h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Contact Form */
.contact {
  padding: 5rem 0;
  background: var(--white);
}

.contact h2 {
  color: var(--primary-color);
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
  margin-bottom: 1rem;
}

.contact-form button {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 3rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
  min-height: 48px;
}

.contact-form button:hover {
  opacity: 0.8;
}

/* Footer */
.footer {
  background: #3c3c3b;
  color: var(--white);
  padding: 2.5rem 0 0;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 3rem;
  margin-bottom: 1.5rem;
}

.footer-logo-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.footer-logo-wrapper {
  background: transparent;
  max-width: 400px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-logo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-bottom: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  object-fit: contain;
}

.footer-title {
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

.footer-contact {
  text-align: left;
  font-size: 1rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.footer-contact p {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact i {
  width: 20px;
  flex-shrink: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 2px;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  justify-content: flex-start;
}

.footer-social-title {
  font-weight: 600;
  margin-bottom: 0;
  font-size: 1.1rem;
  margin-right: 0;
}

.footer-social .social-icons {
  display: flex;
  gap: 0.75rem;
}

.footer-social .social-icon {
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-social .social-icon:hover {
  background: #cc0000;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  font-size: 0.9rem;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-copyright a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;
}

.footer-copyright a:hover {
  color: #3688ed;
}

.footer-pattern {
  height: 40px;
  background: linear-gradient(45deg, #ffffff 25%, transparent 25%, transparent 75%, #ffffff 75%, #ffffff),
              linear-gradient(45deg, #ffffff 25%, transparent 25%, transparent 75%, #ffffff 75%, #ffffff);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  margin-top: 1rem;
  opacity: 0.3;
}

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
  .about-content {
    gap: 2rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-container img {
    width: calc(50% - 0.5rem);
  }
}

/* Mobile Styles (Below 768px) */
@media (max-width: 768px) {
  /* Adjust body padding for mobile header */
  body {
    padding-top: 70px;
  }

  /* Container padding */
  .container {
    padding: 0 15px;
  }

  /* Header adjustments */
  .header {
    padding: 0.5rem 0;
  }

  .header .container {
    padding: 0.5rem 15px;
  }

  .logo img {
    height: 64px; /* larger logo on mobile */
  }

  /* Mobile Menu Button */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    position: relative;
  }

  .mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s linear;
    border-radius: 2px;
    position: absolute;
  }

  .mobile-menu-btn span:first-child {
    top: 0;
  }

  .mobile-menu-btn span:nth-child(2) {
    top: 9px;
  }

  .mobile-menu-btn span:last-child {
    top: 18px;
  }

  .mobile-menu-btn.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:last-child {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Mobile Navigation */
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #3a3a3a;
    padding: 1rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    visibility: hidden;
    opacity: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .main-nav.active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .main-nav a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
  }

  /* Hero Section */
  .hero {
    min-height: 40vh;
    padding: 3rem 0;
  }

  .hero-logo {
    max-width: 280px;
  }

  /* Typography */
  h2 {
    font-size: 1.8rem;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  /* About Section */
  .about {
    padding: 3rem 0;
  }

  .section-header {
    text-align: center;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .team-photo {
    max-width: 100%;
    border-radius: 20px;
  }

  .text-content {
    font-size: 1rem;
  }

  /* Work Gallery */
  .work {
    padding: 3rem 0;
  }

  .work-gallery {
    padding: 0 15px;
  }

  .gallery-container {
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-container img {
    width: 100%;
    height: 250px;
  }

  .gallery-nav {
    display: none;
  }

  /* Testimonials */
  .testimonials {
    padding: 3rem 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Contact Form */
  .contact {
    padding: 3rem 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-logo-block {
    align-items: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-contact p {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-logo-wrapper {
    max-width: 280px; /* larger footer logo wrapper on mobile */
    padding: 0.5rem;
    min-height: auto;
    background: transparent;
    box-shadow: none;
  }

  .footer-logo {
    max-width: 240px; /* increase footer logo size on mobile */
    max-height: none;
  }
}

/* Small Mobile (Below 480px) */
@media (max-width: 480px) {
  h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-logo {
    max-width: 220px;
  }

  .text-content {
    font-size: 0.95rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .footer-social-title {
    font-size: 1rem;
  }

  .footer-social .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .footer-logo-wrapper {
    max-width: 180px;
    padding: 0.5rem;
    min-height: 150px;
    background: transparent;
    box-shadow: none;
  }

  .footer-logo {
    max-width: 140px;
    max-height: 120px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-content,
.about-content,
.testimonial-card,
.contact-form {
  animation: fadeIn 1s ease-out;
}

/* Image modal / lightbox */
.img-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none; /* hidden by default; JS sets to flex when opening */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.img-modal-content {
  position: relative;
  width: 95vw;
  height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-modal-img {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.2s ease;
  will-change: transform;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.img-modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 2010;
}

.img-modal-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
}

.img-modal-nav.prev {
  left: 20px;
}
.img-modal-nav.next {
  right: 20px;
}

/* make gallery images clickable cursor */
.gallery-slide img {
  cursor: zoom-in;
}

/* ==== Testimonials enhancements override ==== */
.testimonials-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.google-badge .fa-google { color: #34a853; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 1.5rem;
  justify-content: center;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 1.75rem 1.5rem;
  padding-top: 3rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 6px 18px -4px rgba(0,0,0,0.45);
  color: var(--white);
  overflow: hidden;
  text-align: left;
}
.testimonial-card::before {
  content: '“';
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 6rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
}
.testimonial-text {
  font-style: italic;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}
.testimonial-stars {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: inline-flex;
  gap: 6px;
  color: #ffd54f;
  font-size: 1rem;
  z-index: 1;
}
.testimonial-stars .fa-star { filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25)); }

.testimonial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: nowrap;
  width: 100%;
  margin-top: auto;
}
.testimonial-meta .author {
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--primary-color);
  display: inline-block;
  white-space: nowrap;
}
.testimonial-meta .date {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
}
.testimonial-meta .date::before {
  content: "•";
  margin: 0 0.5rem;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 768px) {
  .testimonials-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ==== 404 Error Page ==== */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a1a1a 100%);
  color: var(--white);
}

.error-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.error-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

.error-title {
  font-size: 8rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 0;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.error-subtitle {
  font-size: 2rem;
  color: var(--white);
  margin: 1rem 0;
  font-weight: 600;
  text-transform: uppercase;
}

.error-message {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 1.5rem 0 2.5rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.error-actions .btn-primary,
.error-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.error-actions .btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.error-actions .btn-primary:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.error-actions .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.error-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.error-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.error-links h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 600;
}

.error-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.error-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.error-links ul li a:hover {
  color: var(--primary-color);
}

.error-links ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.error-links ul li a:hover::after {
  width: 100%;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* Mobile responsive for 404 page */
@media (max-width: 768px) {
  .error-404 {
    padding: 3rem 0;
    min-height: 60vh;
  }

  .error-icon {
    font-size: 3.5rem;
  }

  .error-title {
    font-size: 5rem;
  }

  .error-subtitle {
    font-size: 1.5rem;
  }

  .error-message {
    font-size: 1rem;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-actions .btn-primary,
  .error-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .error-links ul {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .error-title {
    font-size: 4rem;
  }

  .error-subtitle {
    font-size: 1.25rem;
  }

  .error-actions .btn-primary,
  .error-actions .btn-secondary {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}
