/* =============================
   Reusable Components
============================= */

/* -----------------------------
   Buttons
------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition:
        transform var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        background-color var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out),
        color var(--dur-base) var(--ease-out);
}

.btn svg {
    flex: none;
    width: 18px;
    height: 18px;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
    filter: saturate(1.06);
}

.btn--secondary {
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(var(--blur-sm));
    backdrop-filter: blur(var(--blur-sm));
    border: 1px solid var(--border-strong);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    transform: translateY(-2px);
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    min-height: 44px;
    padding: 8px 4px;
    color: var(--primary-dark);
    font-weight: 500;
}

.btn--ghost:hover {
    color: var(--primary);
    gap: 14px;
}

.btn--on-dark {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 12px 28px rgba(90, 35, 0, 0.22);
}

.btn--on-dark:hover {
    transform: translateY(-2px);
    background: var(--white);
    box-shadow: 0 18px 36px rgba(90, 35, 0, 0.28);
}

.btn--outline-light {
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(var(--blur-sm));
    backdrop-filter: blur(var(--blur-sm));
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.btn--outline-light:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.28);
}

.btn--block {
    width: 100%;
}

.btn--sm {
    min-height: 40px;
    padding: 8px 16px;
    font-size: var(--fs-xs);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* -----------------------------
   Glass card
------------------------------ */
.glass-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(var(--blur-md)) saturate(1.4);
    backdrop-filter: blur(var(--blur-md)) saturate(1.4);
    box-shadow: var(--shadow-md), var(--shadow-inset-glass);
}

.glass-card--solid {
    background: var(--glass-strong);
}

.glass-card--tint {
    background: var(--glass-tint);
    border-color: rgba(255, 255, 255, 0.62);
}

/* -----------------------------
   Badge / Icon box
------------------------------ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    border: 1px solid var(--border);
    color: var(--primary-dark);
    font-size: var(--fs-xs);
    font-weight: 400;
    white-space: nowrap;
}

.badge--neutral {
    background: rgba(34, 26, 21, 0.045);
    border-color: var(--border-neutral);
    color: var(--text-secondary);
}

.icon-box {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 22px rgba(255, 106, 0, 0.26);
}

.icon-box svg {
    width: 26px;
    height: 26px;
}

.icon-box--soft {
    background: var(--primary-light);
    border: 1px solid var(--border);
    color: var(--primary);
    box-shadow: none;
}

.icon-box--sm {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
}

.icon-box--sm svg {
    width: 21px;
    height: 21px;
}

/* -----------------------------
   Header
------------------------------ */
/* อยู่บนสุด = ใสสนิท เห็นพื้นหลังทะลุ / เลื่อนลงแล้วค่อยเป็นกระจกฝ้า */
.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: var(--z-header);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition:
        background-color var(--dur-base) var(--ease-out),
        border-color var(--dur-base) var(--ease-out),
        box-shadow var(--dur-base) var(--ease-out),
        -webkit-backdrop-filter var(--dur-base) var(--ease-out),
        backdrop-filter var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled {
    background: rgba(255, 253, 252, 0.86);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(1.5);
    backdrop-filter: blur(var(--blur-lg)) saturate(1.5);
    border-bottom-color: var(--border);
    box-shadow: 0 8px 30px rgba(120, 60, 20, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: var(--header-height);
}

/* -----------------------------
   Brand wordmark
   SIAM = ส้ม / FINN = ดำ / FINANCIAL GROUP = เทา ชิดขวา
------------------------------ */
.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    flex: none;
    color: var(--text);
}

.brand-wordmark {
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.005em;
    white-space: nowrap;
}

.brand-wordmark em {
    font-style: normal;
    color: var(--primary);
}

.brand-tagline {
    font-size: 0.5rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.235em;
    text-align: right;
    color: var(--text-muted);
    white-space: nowrap;
    /* letter-spacing เพิ่มช่องว่างท้ายบรรทัด ต้องดึงกลับให้ขอบขวาตรงกับ wordmark */
    margin-right: -0.235em;
}

.brand--lg .brand-wordmark {
    font-size: 1.62rem;
}

.brand--lg .brand-tagline {
    font-size: 0.6rem;
}

.nav {
    margin-inline: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 9px 15px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}

.nav-link:hover {
    color: var(--primary-dark);
    background: rgba(255, 106, 0, 0.07);
}

.nav-link.is-active {
    color: var(--primary-dark);
    font-weight: 500;
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.header-cta {
    min-height: 44px;
    padding: 10px 22px;
}

/* Hamburger */
.nav-toggle {
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--glass-strong);
    color: var(--text);
}

.nav-toggle span {
    position: relative;
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) linear;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--dur-base) var(--ease-out);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile drawer */
.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: rgba(60, 30, 10, 0.28);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}

.nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-drawer);
    width: min(340px, 86vw);
    padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 251, 247, 0.9);
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(1.5);
    backdrop-filter: blur(var(--blur-lg)) saturate(1.5);
    border-left: 1px solid var(--glass-border);
    box-shadow: -24px 0 60px rgba(120, 60, 20, 0.16);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform var(--dur-base) var(--ease-out), visibility var(--dur-base);
    overflow-y: auto;
}

.mobile-nav.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-secondary);
}

.mobile-nav-close svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.mobile-nav-link svg {
    width: 16px;
    height: 16px;
    opacity: 0.45;
}

.mobile-nav .btn {
    margin-top: 14px;
}

.mobile-nav-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.mobile-nav-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-secondary);
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.mobile-nav-social a[data-social="phone"] { border-color: rgba(52, 199, 89, 0.3); background: rgba(52, 199, 89, 0.1); color: #34C759; }
.mobile-nav-social a[data-social="line"] { border-color: rgba(6, 199, 85, 0.3); background: rgba(6, 199, 85, 0.1); color: #06C755; }
.mobile-nav-social a[data-social="facebook"] { border-color: rgba(24, 119, 242, 0.3); background: rgba(24, 119, 242, 0.1); color: #1877F2; }
.mobile-nav-social a[data-social="instagram"] { border-color: rgba(228, 64, 95, 0.3); background: rgba(228, 64, 95, 0.1); color: #E4405F; }
.mobile-nav-social a[data-social="tiktok"] { border-color: rgba(17, 17, 17, 0.3); background: rgba(17, 17, 17, 0.1); color: #111111; }
.mobile-nav-social a[data-social="email"] { border-color: rgba(234, 67, 53, 0.3); background: rgba(234, 67, 53, 0.1); color: #EA4335; }

.mobile-nav-social a[data-social="phone"]:hover { background: #34C759; color: #ffffff; border-color: #34C759; }
.mobile-nav-social a[data-social="line"]:hover { background: #06C755; color: #ffffff; border-color: #06C755; }
.mobile-nav-social a[data-social="facebook"]:hover { background: #1877F2; color: #ffffff; border-color: #1877F2; }
.mobile-nav-social a[data-social="instagram"]:hover { background: #E4405F; color: #ffffff; border-color: #E4405F; }
.mobile-nav-social a[data-social="tiktok"]:hover { background: #111111; color: #ffffff; border-color: #111111; }
.mobile-nav-social a[data-social="email"]:hover { background: #EA4335; color: #ffffff; border-color: #EA4335; }

.mobile-nav-social svg {
    width: 18px;
    height: 18px;
}

.mobile-nav-note {
    margin-top: auto;
    padding-top: 18px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

/* -----------------------------
   Breadcrumb
------------------------------ */
.breadcrumb {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li + li::before {
    content: "/";
    color: var(--border-strong);
}

.breadcrumb a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
    color: var(--text-secondary);
}

/* -----------------------------
   Page hero (inner pages)
------------------------------ */
.page-hero {
    position: relative;
    padding-top: calc(var(--header-height) + clamp(34px, 5vw, 60px));
    /* ใช้ค่าเดียวกับ .section เพื่อให้ระยะห่างถึง section ถัดไปเท่ากับที่อื่นเป๊ะ */
    padding-bottom: calc(var(--section-space) / 2);
    background: var(--gradient-soft);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.page-hero .container {
    position: relative;
    z-index: var(--z-content);
}

.page-hero-title {
    margin-block: 16px 14px;
    max-width: 20ch;
}

.page-hero-desc {
    max-width: 60ch;
    color: var(--text-secondary);
}

/* -----------------------------
   FAQ accordion
------------------------------ */
.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border-radius: var(--radius-md);
    background: var(--glass-strong);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.faq-item.is-open {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 62px;
    padding: 16px 20px;
    text-align: left;
    font-size: var(--fs-body);
    font-weight: 400;
    color: var(--text);
}

.faq-question:hover {
    color: var(--primary-dark);
}

.faq-icon {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: opacity var(--dur-base) var(--ease-out);
}

.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after  { width: 2px; height: 12px; }

.faq-item.is-open .faq-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: rotate(180deg);
}

.faq-item.is-open .faq-icon::after {
    opacity: 0;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-base) var(--ease-out);
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer > div {
    overflow: hidden;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

/* -----------------------------
   CTA band
------------------------------ */
/* CTA ปิดท้ายไม่ต้องมี padding ล่าง เพราะ .site-footer มี margin-top ของตัวเองอยู่แล้ว
   (เดิมกฎนี้อยู่ใน home.css จึงมีผลแค่หน้าแรก หน้าอื่นเลยห่างจาก footer เป็นสองเท่า) */
.cta-section {
    padding-bottom: 0;
}

.cta-band {
    position: relative;
    padding: clamp(38px, 5vw, 62px) clamp(24px, 4vw, 62px);
    border-radius: var(--radius-xl);
    background: var(--gradient-primary);
    box-shadow: 0 30px 70px rgba(255, 106, 0, 0.28);
    overflow: hidden;
    color: var(--white);
}

.cta-band::before,
.cta-band::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-band::before {
    width: 320px;
    height: 320px;
    top: -140px;
    right: -60px;
    background: rgba(255, 255, 255, 0.16);
}

.cta-band::after {
    width: 220px;
    height: 220px;
    bottom: -130px;
    left: 8%;
    background: rgba(255, 255, 255, 0.12);
}

.cta-band-inner {
    position: relative;
    z-index: var(--z-content);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 3vw, 44px);
}

.cta-band h2 {
    color: var(--white);
    max-width: 18ch;
    margin-bottom: 12px;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 46ch;
    font-size: var(--fs-sm);
}

.cta-band-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* -----------------------------
   Footer
------------------------------ */
.site-footer {
    position: relative;
    overflow: hidden;
    /* .cta-section มี padding-bottom: 0 ระยะนี้จึงเป็นช่องว่างเต็ม ๆ ก่อนถึง footer
       ใช้ --section-space ตรง ๆ เพื่อให้เท่ากับระยะระหว่าง section อื่น */
    margin-top: var(--section-space);
    padding-top: clamp(52px, 6vw, 78px);
    /* เว้นระยะขอบล่างไม่ให้เนื้อหาชิดก้นหน้าจอ + เผื่อ safe area ของมือถือที่มีขอบมน/แถบล่าง */
    padding-bottom: calc(clamp(18px, 2.2vw, 30px) + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, var(--background-soft) 0%, var(--background-deep) 100%);
    border-top: 1px solid var(--border);
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

/* เหลือเฉพาะบล็อกแบรนด์ วางกึ่งกลางเป็นแถวเดียว */
.footer-grid {
    display: grid;
    justify-items: center;
    padding-bottom: clamp(30px, 3.5vw, 44px);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand .brand {
    margin-bottom: 16px;
}

.footer-desc {
    max-width: 46ch;
    /* กันคำสุดท้ายตกไปอยู่บรรทัดเดียวโดด ๆ ตอนจัดกึ่งกลาง */
    text-wrap: balance;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary-dark);
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

.footer-social a[data-social="facebook"] { border-color: rgba(24, 119, 242, 0.3); background: rgba(24, 119, 242, 0.1); color: #1877F2; }
.footer-social a[data-social="line"] { border-color: rgba(6, 199, 85, 0.3); background: rgba(6, 199, 85, 0.1); color: #06C755; }
.footer-social a[data-social="instagram"] { border-color: rgba(228, 64, 95, 0.3); background: rgba(228, 64, 95, 0.1); color: #E4405F; }
.footer-social a[data-social="tiktok"] { border-color: rgba(17, 17, 17, 0.3); background: rgba(17, 17, 17, 0.1); color: #111111; }
.footer-social a[data-social="email"] { border-color: rgba(234, 67, 53, 0.3); background: rgba(234, 67, 53, 0.1); color: #EA4335; }

.footer-social a[data-social="facebook"]:hover { background: #1877F2; color: #ffffff; border-color: #1877F2; transform: translateY(-2px); }
.footer-social a[data-social="line"]:hover { background: #06C755; color: #ffffff; border-color: #06C755; transform: translateY(-2px); }
.footer-social a[data-social="instagram"]:hover { background: #E4405F; color: #ffffff; border-color: #E4405F; transform: translateY(-2px); }
.footer-social a[data-social="tiktok"]:hover { background: #111111; color: #ffffff; border-color: #111111; transform: translateY(-2px); }
.footer-social a[data-social="email"]:hover { background: #EA4335; color: #ffffff; border-color: #EA4335; transform: translateY(-2px); }

.footer-social svg {
    width: 19px;
    height: 19px;
}

.footer-col h3 {
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 500;
}

.footer-col ul {
    display: grid;
    gap: 10px;
    /* ul ใน footer ไม่มี class จึงไม่โดน reset ของ ul[class] — ปิด bullet ตรงนี้ */
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col a,
.footer-col span {
    color: var(--text-secondary);
    font-size: var(--fs-sm);
    transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-disclaimer {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
    padding-block: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* -----------------------------
   Giant Footer Brand Text (Enlarged Background Watermark)
------------------------------ */
.footer-big-brand {
    position: absolute;
    bottom: -0.05em;
    left: 0;
    right: 0;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    line-height: 0.72;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.footer-big-brand span {
    font-size: clamp(4.5rem, 23.5vw, 24rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 106, 0, 0.22) 0%, rgba(220, 70, 0, 0.01) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* -----------------------------
   Mouse-Tracking Glow Cards Effect
------------------------------ */
.service-card,
.review-card,
.contact-method,
.hero-card,
.calc-card {
    position: relative;
    overflow: hidden;
}

.service-card::before,
.review-card::before,
.contact-method::before,
.hero-card::before,
.calc-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 126, 40, 0.14),
        transparent 80%
    );
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
    z-index: 1;
}

.service-card:hover::before,
.review-card:hover::before,
.contact-method:hover::before,
.hero-card:hover::before,
.calc-card:hover::before {
    opacity: 1;
}

/* -----------------------------
   Loan Calculator Widget Styles
------------------------------ */
.calc-wrapper {
    max-width: 900px;
    margin-inline: auto;
}

.calc-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    margin-top: 36px;
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-xl, 24px);
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(16px);
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.calc-label-row label {
    font-weight: 500;
    font-size: var(--fs-md);
    color: var(--text);
}

.calc-value-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: var(--fs-sm);
    border: 1px solid rgba(255, 106, 0, 0.2);
}

.calc-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border);
    outline: none;
    accent-color: var(--primary);
    cursor: pointer;
}

.range-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.calc-result-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.08) 0%, rgba(255, 150, 0, 0.03) 100%);
    border: 1px solid rgba(255, 106, 0, 0.18);
    text-align: center;
}

.result-label {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.result-amount {
    margin-block: 10px 6px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
}

.result-amount .currency {
    font-size: 1.4rem;
    vertical-align: super;
}

.result-amount .amount-num {
    font-size: clamp(2rem, 3.2vw, 2.6rem);
}

.result-amount .unit {
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--text-muted);
}

.result-note {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .calc-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* -----------------------------
   Floating Speed Dial Contact Widget
------------------------------ */
.floating-contact-widget {
    position: fixed;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    right: 22px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.floating-trigger {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 26px rgba(255, 106, 0, 0.4);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
    animation: floatPulse 3s infinite;
}

.floating-trigger:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(255, 106, 0, 0.55);
}

.floating-trigger svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.floating-trigger .icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

.floating-contact-widget.is-active .floating-trigger {
    animation: none;
    background: var(--text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.floating-contact-widget.is-active .floating-trigger .icon-chat {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

.floating-contact-widget.is-active .floating-trigger .icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.floating-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.92);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
    pointer-events: none;
}

.floating-contact-widget.is-active .floating-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.floating-item:hover {
    transform: translateX(-4px);
}

.floating-tooltip {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: rgba(20, 20, 20, 0.88);
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.floating-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease;
}

.floating-item[data-social="phone"] .floating-icon { color: #34C759; background: #ffffff; border-color: rgba(52, 199, 89, 0.3); }
.floating-item[data-social="line"] .floating-icon { color: #06C755; background: #ffffff; border-color: rgba(6, 199, 85, 0.3); }
.floating-item[data-social="facebook"] .floating-icon { color: #1877F2; background: #ffffff; border-color: rgba(24, 119, 242, 0.3); }
.floating-item[data-social="email"] .floating-icon { color: #EA4335; background: #ffffff; border-color: rgba(234, 67, 53, 0.3); }

.floating-icon svg {
    width: 20px;
    height: 20px;
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 8px 26px rgba(255, 106, 0, 0.4); }
    50% { box-shadow: 0 8px 34px rgba(255, 106, 0, 0.65); transform: translateY(-2px); }
}

/* -----------------------------
   Forms (shared)
------------------------------ */
.field {
    display: grid;
    gap: 7px;
}

.field label {
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--text);
}

.field .req {
    color: var(--primary);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--border-neutral);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: var(--fs-sm);
    font-weight: 300;
    color: var(--text);
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.7;
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6058' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.14);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #B3A9A2;
}

.field .error-msg {
    display: none;
    color: #C0392B;
    font-size: var(--fs-xs);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #C0392B;
    background: #FFF7F6;
}

.field.has-error .error-msg {
    display: block;
}

.field-hint {
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.checkbox-field input[type="checkbox"] {
    flex: none;
    width: 22px;
    height: 22px;
    min-height: 0;
    margin-top: 3px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-field label {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    cursor: pointer;
}

/* has-error ถูกใส่ที่ .field ซึ่งครอบ .checkbox-field อีกชั้น */
.field.has-error .checkbox-field label {
    color: #C0392B;
}

.field.has-error input[type="checkbox"] {
    outline: 2px solid #C0392B;
    outline-offset: 2px;
}

/* Honeypot — ต้องมองไม่เห็นสำหรับผู้ใช้จริง */
.hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    display: none;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
}

.form-status.is-visible {
    display: flex;
}

.form-status--success {
    background: #F0FAF3;
    border: 1px solid #BFE6CC;
    color: #1E6B3A;
}

.form-status--error {
    background: #FFF6F5;
    border: 1px solid #F3C7C2;
    color: #A3392B;
}

.form-status svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

/* -----------------------------
   Review card (ใช้ทั้งสไลด์หน้าแรกและกริดหน้ารีวิว)
------------------------------ */
.review-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(var(--blur-md));
    backdrop-filter: blur(var(--blur-md));
    box-shadow: var(--shadow-sm), var(--shadow-inset-glass);
}

.review-head {
    display: flex;
    align-items: center;
    gap: 13px;
}

.review-avatar {
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-xs);
}

.review-name {
    display: block;
    font-weight: 500;
    line-height: 1.4;
}

.review-meta {
    display: block;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
}

.review-text {
    flex: 1;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.review-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.review-date {
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

/* -----------------------------
   Stars
------------------------------ */
.stars {
    display: inline-flex;
    gap: 2px;
    color: #FFA426;
}

.stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* -----------------------------
   Lead form (ขอประเมินวงเงิน) — ใช้ทั้งหน้าแรกและหน้าติดต่อ
------------------------------ */
.lead-form-card {
    padding: clamp(24px, 3.2vw, 42px);
    border-radius: var(--radius-lg);
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(var(--blur-md));
    backdrop-filter: blur(var(--blur-md));
    box-shadow: var(--shadow-md), var(--shadow-inset-glass);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-grid .field--full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 26px;
}

.form-actions .btn {
    min-width: 220px;
}

.form-actions .form-note {
    flex: 1 1 220px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.65;
}

.form-status {
    margin-top: 22px;
}

.form-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-neutral);
}

.form-benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.form-benefit svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* -----------------------------
   Legal pages (นโยบายความเป็นส่วนตัว / ข้อกำหนดการใช้งาน)
------------------------------ */
.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 7px 15px;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    border: 1px solid var(--border-strong);
    color: var(--primary-dark);
    font-size: var(--fs-xs);
}

.legal-toc {
    margin-bottom: 44px;
    padding: 24px 26px;
    border-radius: var(--radius-md);
    background: var(--background-soft);
    border: 1px solid var(--border-neutral);
}

.legal-toc strong {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
}

.legal-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 26px;
    margin: 0;
    padding-left: 20px;
    font-size: var(--fs-sm);
}

.legal-toc a {
    color: var(--text-secondary);
}

.legal-toc a:hover {
    color: var(--primary);
}

.legal-body > section + section {
    margin-top: 40px;
}

.legal-body h2 {
    font-size: clamp(1.18rem, 1.03rem + 0.6vw, 1.45rem);
    font-weight: 500;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.legal-body h3 {
    margin-top: 22px;
    font-size: var(--fs-body);
    font-weight: 500;
}

.legal-body p {
    margin-top: 12px;
    color: var(--text-secondary);
}

.legal-body ul {
    margin-top: 12px;
    padding-left: 4px;
    list-style: none;
    display: grid;
    gap: 9px;
}

.legal-body ul li {
    position: relative;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: var(--lh-body);
}

.legal-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.legal-note {
    margin-top: 40px;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    background: var(--background-soft);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.legal-contact {
    margin-top: 14px;
    display: grid;
    gap: 6px;
    font-size: var(--fs-sm);
}
