/* ========================================
   K-smile - Custom Styles
   Color palette inspired by c-morinosato.com
   ======================================== */

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out both;
}
.animate-fadeIn {
  animation: fadeIn 0.6s ease-out both;
}

/* --- Scroll-triggered animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation Links --- */
.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #051b18;
  transition: color 0.3s;
}
.nav-link:hover,
.nav-link.active {
  color: #409b8d;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #409b8d;
  transition: width 0.3s, left 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
  left: 20%;
}

/* --- Mobile Nav --- */
.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #051b18;
  border-radius: 0.75rem;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #e1f0ee;
  color: #409b8d;
}

/* --- Hamburger --- */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #051b18;
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Feature Cards --- */
.feature-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(5, 27, 24, 0.05);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(5, 27, 24, 0.1);
}

/* --- Testimonial Cards --- */
.testimonial-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(5, 27, 24, 0.05);
  transition: transform 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-2px);
}

/* --- Timeline --- */
.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0 0.875rem 2rem;
  border-left: 2px solid #c8ddd9;
  margin-left: 0.5rem;
}
.timeline-item.last {
  border-left-color: transparent;
}
.timeline-dot {
  position: absolute;
  left: -7px;
  width: 12px;
  height: 12px;
  background: #409b8d;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 3px #e1f0ee;
}
.timeline-dot.break-dot {
  background: #c8a45a;
  box-shadow: 0 0 0 3px #f5edcc;
}
.timeline-dot.end-dot {
  background: #e74c3c;
  box-shadow: 0 0 0 3px #fde8e6;
}
.timeline-time {
  font-weight: 700;
  font-size: 1rem;
  color: #409b8d;
  min-width: 3.5rem;
}
.timeline-label {
  font-size: 0.95rem;
  color: #4a5e5b;
  font-weight: 500;
}

/* --- Page Header (sub pages) --- */
.page-header {
  background: linear-gradient(135deg, #e1f0ee 0%, #f2f1e6 100%);
  padding: 8rem 0 4rem;
}
.breadcrumb a {
  color: #4a5e5b;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #409b8d;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 10px rgba(5, 27, 24, 0.04);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-question:hover {
  background: #f8f8f3;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem;
}
.faq-answer.open {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}
.faq-chevron {
  transition: transform 0.3s;
  width: 1.25rem;
  height: 1.25rem;
  color: #409b8d;
  flex-shrink: 0;
}
.faq-question.active .faq-chevron {
  transform: rotate(180deg);
}

/* --- Recruitment Steps --- */
.step-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(5, 27, 24, 0.05);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: #409b8d;
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #051b18;
  font-size: 0.9rem;
}
.form-label .required {
  background: #e74c3c;
  color: white;
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
  font-weight: 500;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e1e1d6;
  border-radius: 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #fff;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #409b8d;
  box-shadow: 0 0 0 3px #e1f0ee;
}
.form-textarea {
  resize: vertical;
  min-height: 150px;
}

/* --- Button Styles --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #409b8d;
  color: white;
  padding: 1rem 3rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-primary:hover {
  background: #357f73;
  box-shadow: 0 8px 25px rgba(64, 155, 141, 0.3);
  transform: translateY(-2px);
}

/* --- Responsive helpers --- */
@media (max-width: 640px) {
  .timeline-time {
    font-size: 0.875rem;
    min-width: 3rem;
  }
  .timeline-label {
    font-size: 0.85rem;
  }
}
