/* ===================== Root & Shared ===================== */
:root {
  --orange: #0b4750;
  --orange-hover: #145f6b;
  --purple: #a78bfa;
  --blue: #60a5fa;
  --pink: #e4405f;
  --green: #4ade80;
  --dark: #1e1e2f;
  --light-bg: #f8f9fa;
  --text-muted: #6c757d;
  --border-light: #e9ecef;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --transition-base: all 0.3s ease;
}

/* ===================== Buttons ===================== */
.btn-orange {
  background: var(--orange);
  color: #fff;
  border: none;
}
.btn-orange:hover {
  background: var(--orange-hover);
  color: #fff;
}
.btn-outline-dark {
  border: 1px solid #ccc;
  background: #fff;
  color: var(--dark);
}
.btn-outline-dark:hover {
  background: #f0f0f0;
}

/* ===================== Shared Icon Bases ===================== */
.icon-box,
.icon-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.icon-card {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

/* ===================== Background Colors ===================== */
.bg-purple {
  background: var(--purple);
}
.bg-blue {
  background: var(--blue);
}
.bg-pink {
  background: var(--pink);
}
.bg-green {
  background: var(--green);
}
.bg-warning-light {
  background: #fef3c7;
}

/* ===================== Card Hover ===================== */
.card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ===================== Accordion Base ===================== */
.accordion-button:not(.collapsed) {
  background-color: #e9ecef;
  color: var(--dark);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

/* ===================== Footer Link Base ===================== */
footer a:hover {
  color: var(--orange) !important;
}

/* ===================== Hero Section ===================== */
.hero-section {
  padding: 5rem 0;
}
.hero-title {
  line-height: 1.4;
  margin-bottom: 1rem;
}
.hero-subtitle {
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.hero-description {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.hero-section .icon-box {
  width: 36px;
  height: 36px;
}
.hero-section .icon-box img {
  width: 18px;
  height: 18px;
}

.hero-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 50px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.hero-image:hover {
  transform: scale(1.02);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.16),
    0 12px 24px rgba(0, 0, 0, 0.08);
}

.animate-hidden {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-text-animate {
  transform: translateX(-40px);
}
.hero-image-animate {
  transform: translateX(40px);
}
.animate-visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
}
.hero-text-animate:nth-child(1) {
  transition-delay: 0.1s;
}
.hero-text-animate:nth-child(2) {
  transition-delay: 0.2s;
}
.hero-text-animate:nth-child(3) {
  transition-delay: 0.3s;
}
.hero-buttons {
  transition-delay: 0.4s;
}
.hero-icons {
  transition-delay: 0.5s;
}

/* ===================== Features Cards ===================== */
.features-section .card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.features-section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}
.features-section .icon-card {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.features-section .icon-card img {
  width: 26px;
  height: 26px;
}
.feature-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.feature-card-header h4 {
  margin-bottom: 0;
  font-size: 1rem;
}
.features-section .card p {
  line-height: 1.8;
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ===================== Features Tabs ===================== */
.tab-btn {
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  font-size: 0.85rem;
  background: #f1f3f5;
  color: #495057;
}
.tab-btn.active {
  background: var(--blue) !important;
  color: #fff !important;
}
.tab-btn:not(.active):hover {
  background: #e9ecef;
}
.tab-content-wrapper {
  position: relative;
  min-height: 300px;
}
.tab-pane {
  display: none;
  animation: fadeSlideIn 0.4s ease forwards;
}
.tab-pane.active {
  display: block;
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tab-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  min-height: 220px;
}
.tab-content-text h4 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}
.tab-content-text p {
  line-height: 1.8;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===================== FAQ Section ===================== */
.faq-section .accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  background: #fff;
  border: none;
  padding: 1rem 1.25rem;
  transition: var(--transition-base);
  box-shadow: none;
  border-bottom: 1px solid var(--border-light);
}
.faq-section .accordion-button:not(.collapsed) {
  color: var(--orange);
  border-bottom: 1px solid #ffe0cc;
}
.faq-section .accordion-button:hover {
  color: var(--orange);
  background: #fafafa;
}
.faq-section .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
.faq-section .accordion-button::after {
  background-size: 1rem;
  transition: transform 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
}
.faq-section .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ff6b2b' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3E%3C/svg%3E");
  transform: rotate(0deg);
}
.faq-section .accordion-body {
  padding: 1rem 1.25rem 1.25rem;
  line-height: 1.9;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: #fff;
}
.faq-section .accordion-item {
  border: none;
  border-bottom: 1px solid #f1f3f5;
}
.faq-section .accordion-item:last-child {
  border-bottom: none;
}
.faq-card-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.faq-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  min-height: 260px;
}

/* ===================== Footer ===================== */
.footer-section {
  background: #fafbfc;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.footer-link {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover {
  color: #4a6b8a;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.social-link:hover {
  background: #4a6b8a;
  border-color: #4a6b8a;
}
.social-link:hover img {
  filter: brightness(0) invert(1);
}

/* ===================== Responsive ===================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }
  .navbar .container {
    flex-wrap: wrap;
  }
  .d-lg-none .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem !important;
    white-space: nowrap;
  }
  .navbar-toggler {
    order: 3;
    margin-right: 0;
  }
  .hero-section {
    padding: 2rem 0;
    text-align: center !important;
  }
  .hero-image {
    border-radius: 36px;
    box-shadow:
      0 14px 28px rgba(0, 0, 0, 0.1),
      0 6px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
  }
  .hero-text-animate,
  .hero-image-animate {
    transform: translateY(30px);
  }
  .hero-buttons {
    justify-content: center !important;
    margin: 1rem 0 3rem !important;
    gap: 0.5rem !important;
  }
  .hero-icons {
    justify-content: center;
    gap: 0.8rem !important;
    margin-top: 0.5rem !important;
  }
  .features-section .icon-card {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }
  .features-section .icon-card img {
    width: 22px;
    height: 22px;
  }
  .feature-card-header h4 {
    font-size: 0.95rem;
  }
  .features-section .card p {
    font-size: 0.8rem;
    line-height: 1.7;
  }
  .reminder-container {
    text-align: center;
  }
  .tab-image {
    aspect-ratio: 16/9;
    border-radius: 16px;
    min-height: 200px;
  }
  .tab-content-text {
    text-align: center;
  }
  .faq-image {
    aspect-ratio: 16/9;
    min-height: 220px;
    border-radius: 16px;
    margin-top: 1.5rem;
  }
  .faq-section .accordion-button {
    font-size: 0.9rem;
    padding: 0.9rem 1rem;
  }
  .faq-section .accordion-body {
    font-size: 0.85rem;
    padding: 0.8rem 1rem 1rem;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .features-section .card {
    padding: 1.25rem !important;
  }
  .feature-card-header {
    gap: 0.6rem;
    margin-bottom: 0.6rem;
  }
  .features-section .card p {
    font-size: 0.8rem;
    line-height: 1.7;
  }
  .tab-btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.9rem !important;
  }
  .tab-image {
    aspect-ratio: 4/3;
    border-radius: 14px;
    min-height: 180px;
    margin-top: 1rem;
  }
  .faq-image {
    aspect-ratio: 4/3;
    min-height: 200px;
    border-radius: 14px;
  }
  .faq-card-wrapper {
    border-radius: 14px;
  }
  .faq-section h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }
  .hero-section {
    text-align: center;
  }
  .hero-image {
    border-radius: 28px;
    max-width: 85%;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  .hero-description {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 3rem;
  }
  .hero-buttons {
    justify-content: center;
    margin: 1rem 0 3rem !important;
    gap: 0.5rem !important;
  }
  .hero-buttons .btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
  .hero-icons {
    justify-content: center;
    gap: 0.8rem !important;
    margin-top: 0.5rem !important;
  }
  .hero-icons small {
    font-size: 0.7rem;
  }
  .hero-section .icon-box {
    width: 28px;
    height: 28px;
  }
  .hero-section .icon-box img {
    width: 14px;
    height: 14px;
  }
  .features-section .card {
    padding: 1rem !important;
  }
  .features-section .icon-card {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .features-section .icon-card img {
    width: 20px;
    height: 20px;
  }
  .feature-card-header {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .feature-card-header h4 {
    font-size: 0.9rem;
  }
  .features-section .card p {
    font-size: 0.78rem;
    line-height: 1.7;
    text-align: justify;
  }
  .tab-image {
    min-height: 200px;
    border-radius: 12px;
  }
  .tab-content-text h4 {
    font-size: 1rem;
    text-align: center;
  }
  .tab-content-text p {
    font-size: 0.8rem;
    text-align: center;
  }
  .faq-image {
    min-height: 180px;
    border-radius: 12px;
  }
  .faq-section .accordion-button {
    font-size: 0.82rem;
    padding: 0.75rem 0.9rem;
  }
  .faq-section .accordion-body {
    font-size: 0.78rem;
    padding: 0.7rem 0.9rem 0.9rem;
  }
}
