/* ================================================================
   天晴信用財務 Sunny Credit Finance — Global Stylesheet
   ================================================================ */

/* ── Variables ── */
:root {
  --black: #3B3B3B;
  --orange: #f29327;
  --blue: #1b9bd8;
  --orange-dark: #d97f1e;
  --blue-dark: #1580b5;
  --blue-light: #e8f4fc;
  --grad-orange: linear-gradient(135deg, #f29327 0%, #f7b733 100%);
  --grad-blue: linear-gradient(135deg, #1b9bd8 0%, #0d6efd 100%);
  --grad-dark: linear-gradient(135deg, #0d1b2a 0%, #1b2838 40%, #1b9bd8 100%);
}

/* ── Reset ── */
* { box-sizing: border-box; }
body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--black);
  overflow-x: hidden;
}
a { text-decoration: none; }
img { max-width: 100%; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar-sc {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,.06);
  padding: .6rem 0;
  transition: all .3s;
}
.navbar-sc.scrolled {
  padding: .4rem 0;
  box-shadow: 0 2px 40px rgba(0,0,0,.1);
}
.navbar-sc .navbar-brand img { height: 60px; }
.navbar-sc .nav-link {
  color: var(--black);
  font-weight: 500;
  padding: .5rem 1rem !important;
  position: relative;
  transition: color .3s;
  font-size: .92rem;
}
.navbar-sc .nav-link:hover,
.navbar-sc .nav-link.active { color: var(--orange); }
.navbar-sc .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .3s;
}
.navbar-sc .nav-link:hover::after,
.navbar-sc .nav-link.active::after { width: 60%; }
.navbar-sc .dropdown-toggle::after { display: none; }
.navbar-sc .dropdown-menu {
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,.1);
  border-radius: 12px;
  padding: .5rem;
}
.navbar-sc .dropdown-item {
  border-radius: 8px;
  padding: .6rem 1rem;
  font-size: .88rem;
  transition: all .2s;
}
.navbar-sc .dropdown-item:hover {
  background: var(--blue-light);
  color: var(--blue);
}
.btn-nav-apply {
  background: var(--grad-orange);
  color: #fff !important;
  border: none;
  border-radius: 50px;
  padding: .5rem 1.6rem !important;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: 0 4px 15px rgba(242,147,39,.4);
  transition: all .3s;
}
.btn-nav-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(242,147,39,.5);
}

/* ================================================================
   COMMON SECTIONS
   ================================================================ */
.sec-pad { padding: 5rem 0; }
.sec-title { text-align: center; margin-bottom: 3rem; }
.sec-title .overline {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.sec-title h2 { font-size: 2.2rem; font-weight: 900; margin-bottom: .8rem; }
.sec-title p { color: #888; font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-orange {
  background: var(--grad-orange);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .8rem 2.2rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(242,147,39,.35);
  transition: all .3s;
}
.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(242,147,39,.45);
  color: #fff;
}
.btn-blue {
  background: var(--grad-blue);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .8rem 2.2rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(27,155,216,.35);
  transition: all .3s;
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(27,155,216,.45);
  color: #fff;
}
.btn-ol-orange {
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 50px;
  padding: .7rem 2rem;
  font-weight: 700;
  background: transparent;
  transition: all .3s;
}
.btn-ol-orange:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}
.btn-ol-white {
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 50px;
  padding: .7rem 2rem;
  font-weight: 500;
  background: transparent;
  transition: all .3s;
}
.btn-ol-white:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  transform: translateY(-2px);
}

/* ================================================================
   HOVER LIFT
   ================================================================ */
.hover-lift {
  transition: all .4s cubic-bezier(.175,.885,.32,1.275);
}
.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
}

/* ================================================================
   PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  position: relative;
  padding: 10rem 0 4.5rem;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-dark);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 2.6rem; font-weight: 900; color: #fff; margin-bottom: .8rem; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 600px; }
.page-hero .breadcrumb { background: none; padding: 0; margin-bottom: 1rem; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb-item.active { color: var(--orange); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ================================================================
   PRODUCT HERO (product pages)
   ================================================================ */
.prod-hero {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
}
.prod-hero::before { content: ''; position: absolute; inset: 0; background: var(--grad-dark); }
.prod-hero .container { position: relative; z-index: 2; }

/* ================================================================
   INFO CARD (product key metrics)
   ================================================================ */
.info-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 35px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  height: 100%;
  transition: all .3s;
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0,0,0,.1);
}
.info-card .ic {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: #fff;
}
.info-card h4 { font-weight: 900; font-size: 1.6rem; margin-bottom: .3rem; }
.info-card p { color: #888; font-size: .88rem; margin: 0; }

/* ================================================================
   CTA BOX (shared across pages)
   ================================================================ */
.cta-box {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/homeSection6ContainerBg.jpg') center/cover no-repeat;
}
.cta-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,.92), rgba(27,155,216,.85));
}
.cta-box .container { position: relative; z-index: 2; }

/* ================================================================
   CALCULATOR WIDGET
   ================================================================ */
.calc-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 2rem;
}
.calc-card h5 { color: #fff; font-weight: 700; }
.calc-label { color: rgba(255,255,255,.6); font-size: .8rem; margin-bottom: .2rem; }
.calc-val { color: #fff; font-size: 1.5rem; font-weight: 900; }
.calc-range {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.12);
  outline: none;
  margin: .6rem 0 .3rem;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 0 15px rgba(242,147,39,.5);
}
.calc-range-label { color: rgba(255,255,255,.35); font-size: .7rem; }
.calc-result {
  background: rgba(242,147,39,.12);
  border: 1px solid rgba(242,147,39,.25);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  margin-top: .5rem;
}
.calc-result-label { color: rgba(255,255,255,.6); font-size: .78rem; }
.calc-result-amount { color: var(--orange); font-size: 1.7rem; font-weight: 900; }

.calc-card.light { background: #fff; border: 1px solid #eee; box-shadow: 0 10px 40px rgba(0,0,0,.06); }
.calc-card.light h5 { color: var(--black); }
.calc-card.light .calc-label { color: #888; }
.calc-card.light .calc-val { color: var(--black); }
.calc-card.light .calc-range { background: #eee; }
.calc-card.light .calc-range-label { color: #aaa; }
.calc-card.light .calc-result { background: var(--blue-light); border-color: rgba(27,155,216,.2); }
.calc-card.light .calc-result-label { color: #666; }
.calc-card.light .calc-result-amount { color: var(--blue); }

/* ================================================================
   BLOG CARDS
   ================================================================ */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.04);
  height: 100%;
}
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-body { padding: 1.3rem; }
.blog-body .date { color: var(--blue); font-size: .78rem; font-weight: 600; margin-bottom: .4rem; }
.blog-body h6 {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.5;
  margin-bottom: .5rem;
  color: var(--black);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-body p {
  color: #888;
  font-size: .82rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

/* ================================================================
   FORM STYLES (Apply / Contact)
   ================================================================ */
.form-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 60px rgba(0,0,0,.08);
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,.04);
}
.form-card .form-control,
.form-card .form-select {
  border-radius: 12px;
  padding: .8rem 1.2rem;
  border: 2px solid #eee;
  transition: all .3s;
  font-size: .92rem;
}
.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(27,155,216,.1);
}
.form-card .form-label {
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .3rem;
}

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-accordion .accordion-item {
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px !important;
  margin-bottom: .8rem;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-weight: 700;
  font-size: .95rem;
  color: var(--black);
  padding: 1.2rem 1.5rem;
  background: #fff;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--blue-light);
  color: var(--blue);
  box-shadow: none;
}
.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f29327'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-accordion .accordion-body {
  padding: 0 1.5rem 1.2rem;
  color: #666;
  font-size: .9rem;
  line-height: 1.8;
}

/* ================================================================
   LEGAL PAGES (Privacy / Terms)
   ================================================================ */
.legal-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: .8rem;
  color: var(--black);
}
.legal-content p {
  color: #666;
  font-size: .92rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.legal-content ul {
  color: #666;
  font-size: .92rem;
  line-height: 2;
  padding-left: 1.5rem;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 0;
}
.footer h6 { color: #fff; font-weight: 700; margin-bottom: 1.2rem; font-size: 1rem; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .88rem; transition: all .3s; }
.footer-links a:hover { color: var(--orange); padding-left: 5px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
  margin-right: .5rem;
  transition: all .3s;
  font-size: 1.1rem;
}
.social-links a:hover {
  background: var(--orange);
  transform: translateY(-3px);
  color: #fff;
}
.footer-warning {
  background: rgba(242,147,39,.1);
  border: 1px solid rgba(242,147,39,.2);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 2.5rem;
  text-align: center;
}
.footer-warning p { color: var(--orange); font-weight: 700; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  margin-top: 2rem;
}
.footer-disc {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
}

/* ================================================================
   WHATSAPP FLOAT
   ================================================================ */
.wa-float {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 999;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 5px 25px rgba(37,211,102,.4);
  transition: all .3s;
  animation: waPulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }
@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ================================================================
   SUCCESS PAGE
   ================================================================ */
.success-icon {
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 3rem;
  color: #fff;
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 10px 40px rgba(40,167,69,.3);
  animation: successBounce 1s ease;
}
@keyframes successBounce {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .page-hero { padding: 8rem 0 3rem; }
  .page-hero h1 { font-size: 1.8rem; }
  .prod-hero { padding: 8rem 0 3.5rem; }
  .sec-title h2 { font-size: 1.7rem; }
  .info-card h4 { font-size: 1.3rem; }
  .form-card { padding: 1.5rem; }
}
