/* css/components.css */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Outfit', sans-serif;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-light);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: hsl(217, 91%, 50%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-light);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
  background-color: var(--text-light);
  color: var(--primary);
  border-color: var(--text-light);
  transform: translateY(-2px);
}

/* --- Cards --- */
.card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.14);
  border-color: rgba(30, 64, 175, 0.15);
}

.card-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #cbd5e1;
}

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

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Timelines (History) --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary);
  opacity: 0.15;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: var(--radius-full);
}

.timeline-item {
  padding: 1rem 3rem;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--bg-card);
  border: 4px solid var(--accent);
  top: 1.5rem;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15);
  transition: transform var(--transition-fast);
}

.timeline-item:hover::after {
  transform: scale(1.2);
}

.left {
  left: 0;
  text-align: right;
}

.right {
  left: 50%;
}

.right::after {
  left: -10px;
}

.timeline-date {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline-content {
  padding: 1.5rem;
  background-color: var(--bg-card);
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

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

.testimonial-card {
  background-color: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote {
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-family: serif;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background-color: #cbd5e1;
  object-fit: cover;
}

.testimonial-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.testimonial-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Forms --- */
.contact-form-wrapper {
  background-color: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

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

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-light);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
  background-color: var(--bg-card);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-checkbox input {
  margin-top: 0.25rem;
}

.form-checkbox a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* --- Gallery Filter Menu --- */
.filter-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-muted);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

/* --- Lightbox Modal --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  color: var(--text-light);
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--accent);
}

/* --- SVGs & Dividers --- */
.wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.wave-divider-top {
  margin-bottom: -1px;
}

.wave-divider-bottom {
  margin-top: -1px;
}

.wave-fill-light {
  fill: var(--bg-light);
}

.wave-fill-dark {
  fill: var(--bg-dark);
}

.wave-fill-white {
  fill: var(--bg-card);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 55px;
    padding-right: 15px;
    text-align: left;
  }
  .timeline-item::after {
    left: 21px;
  }
  .left {
    text-align: left;
  }
  .right {
    left: 0;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form-wrapper {
    padding: 1.75rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .filter-nav {
    gap: 0.5rem;
  }
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .whatsapp-icon {
    width: 26px;
    height: 26px;
  }
}

/* --- FAQ Accordion --- */
.faq-section {
  background-color: var(--bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-fast) ease;
}

.faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background-color var(--transition-fast) ease;
}

.faq-item summary:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--transition-fast) ease;
}

.faq-item[open] summary::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-content {
  padding: 1.5rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-content {
  border-top-color: var(--border-color);
}

/* --- Responsive Utilities & Grids --- */
.grid-2-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.grid-3-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.grid-4-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.grid-sidebar-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}
.card-row-layout {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

@media (max-width: 992px) {
  .grid-4-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-sidebar-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .grid-2-cols, .grid-3-cols, .grid-4-cols, .grid-sidebar-layout {
    grid-template-columns: 1fr;
  }
  .card-row-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .card-row-layout > div {
    width: 100% !important;
  }
  .card-row-layout > div:first-child {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
  }
}
