/* ==============================
   SPIDER SOLAR - index.php styles
   ============================== */

:root {
    --bg: #fff;
    --text: #161616;
    --muted: #6d6d6d;
    --line: #ece8e4;
    --orange: #ff761a;
    --orange-2: #ff9a4e;
    --red: #e01d16;
    --cream: #fff1e5;
    --dark: #21160f;
    --dark-2: #332316;
    --shadow: 0 18px 55px rgba(26, 17, 10, .08);
    --radius: 24px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: "Prompt", sans-serif;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit
}

img {
    max-width: 100%;
    display: block
}

button,
input,
select,
textarea {
    font: inherit
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto
}

.section {
    padding: 50px 0;
    position: relative
}

.eyebrow {
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 10px;
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h2 {
    font-size: clamp(34px, 4.3vw, 64px);
    line-height: 1.04;
    letter-spacing: -.04em;
    margin-bottom: 18px;
}

p {
    line-height: 1.72
}

.muted {
    color: var(--muted)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: .3s ease;
}

.btn-primary {
    color: #21160f; /* ตัวอักษรเข้มบนพื้นส้ม: contrast 6.6:1 (ขาวได้แค่ 2.67:1) */
    background: linear-gradient(135deg, var(--orange), #ff9b43);
    box-shadow: 0 10px 24px rgba(255, 118, 26, .25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 118, 26, .34)
}

.btn-red {
    background: var(--red);
    color: #fff
}

.btn-ghost {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08)
}

.arrow {
    font-size: 18px
}

/* NAV */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    transition: .3s ease;
}

.navbar.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .05);
}

.nav-wrap {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 19px;
    color: #fff;
    text-decoration: none;
    transition: .3s
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    font-weight: 600
}

.nav-links a {
    position: relative;
    color: #fff;
    transition: .3s
}

.nav-links a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: .25s
}

.nav-links a:hover:after {
    width: 100%
}

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

.menu-btn {
    display: none;
    border: 0;
    background: none;
    font-size: 26px;
    color: #fff
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: #171717
}

.navbar.scrolled .menu-btn {
    color: #171717
}

.nav-mobile-cta {
    display: none
}

/* โลโก้ตัวหนังสือขาวบน hero, สลับเป็นตัวหนังสือเข้มเมื่อ navbar เป็นพื้นขาว */
.navbar .logo .logo-dark {
    display: none
}

.navbar.scrolled .logo .logo-light,
.navbar.menu-open .logo .logo-light {
    display: none
}

.navbar.scrolled .logo .logo-dark,
.navbar.menu-open .logo .logo-dark {
    display: block
}

/* HERO */
.hero {
    min-height: 920px;
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg,
            rgba(36, 20, 10, .97) 0%,
            rgba(38, 22, 11, .93) 24%,
            rgba(38, 22, 11, .76) 42%,
            rgba(38, 22, 11, .34) 63%,
            rgba(38, 22, 11, .08) 100%),
        url('../../images/solar-house.webp') center/cover no-repeat;
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 12%, rgba(255, 140, 45, .18), transparent 30%),
        linear-gradient(180deg, transparent 64%, rgba(22, 13, 8, .58));
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    right: 10%;
    top: -190px;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 145, 45, .18), transparent 66%);
    animation: heroGlow 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes heroGlow {

    0%,
    100% {
        opacity: .55;
        transform: scale(.94)
    }

    50% {
        opacity: 1;
        transform: scale(1.07)
    }
}

.hero-inner {
    min-height: 920px;
    position: relative;
    z-index: 2
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 185px;
    max-width: 650px
}

.hero .eyebrow {
    color: #ffad70;
    letter-spacing: .15em
}

.hero h1 {
    font-size: clamp(62px, 6.6vw, 98px);
    line-height: .97;
    letter-spacing: -.055em;
    margin-bottom: 28px
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, .86);
    max-width: 600px
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px
}

.hero .btn-ghost {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
    backdrop-filter: blur(12px)
}

.hero .btn-ghost:hover {
    background: rgba(255, 255, 255, .14)
}

.price-chip {
    position: absolute;
    right: 0;
    bottom: 70px;
    z-index: 3;
    background: rgba(255, 255, 255, .95);
    color: #111;
    border-radius: 24px;
    padding: 25px 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
    min-width: 305px;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .72)
}

.price-chip:before {
    content: "";
    display: block;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: var(--orange);
    margin-bottom: 14px
}

.price-chip small {
    display: block;
    color: #777;
    margin-bottom: 6px
}

.price-chip b {
    font-size: 27px;
    line-height: 1.25
}

.price-chip b span {
    color: var(--red);
    font-size: 31px
}

.hero-features {
    max-width: 690px;
    margin-top: 48px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hero-feature {
    display: block;
    padding: 0
}

.hero-feature+.hero-feature {
    border-left: 0;
    padding-left: 0
}

.hero-feature .ico {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    place-items: center;
    justify-content: center;
    color: var(--orange);
    background: rgba(252, 176, 50, 0.16);
    border: 1px solid rgba(252, 176, 50, 0.35);
    border-radius: 14px;
    font-weight: 800;
    margin-bottom: 11px;
    transition: .3s
}

.hero-feature .ico svg {
    width: 23px;
    height: 23px;
    stroke-width: 2.2;
}

.hero-feature:hover .ico {
    background: var(--orange);
    color: #fff;
    transform: translateY(-4px)
}

.hero-feature strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px
}

.hero-feature span {
    font-size: 12px;
    color: rgba(255, 255, 255, .66)
}

.hero-scroll {
    position: absolute;
    right: 28px;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    letter-spacing: .2em;
    font-size: 10px;
    color: rgba(255, 255, 255, .5)
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.22, 1, .36, 1)
}

.reveal.from-left {
    transform: translateX(-42px)
}

.reveal.from-right {
    transform: translateX(42px)
}

.reveal.show {
    opacity: 1;
    transform: none
}

.delay-1 {
    transition-delay: .08s
}

.delay-2 {
    transition-delay: .16s
}

.delay-3 {
    transition-delay: .24s
}

.delay-4 {
    transition-delay: .32s
}

/* QUICK CHECK */

.quick-head {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 35px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20, 16, 12, .04);
}

.quick-card {
    padding: 22px 18px;
    min-height: 160px;
    transition: .3s;
}

.quick-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}


/* แถวบน: icon + check */
.quick-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}


/* ติ๊กถูก */
.quick-card .check {
    width: 34px;
    height: 34px;
    border-radius: 50%;

    background: var(--orange);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 700;

    /* ลบ margin-bottom เดิม */
    margin-bottom: 0;
}


/* icon */
.quick-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #fff2e8;
    color: var(--red);

    font-size: 21px;

    /* ลบ margin-bottom เดิม */
    margin-bottom: 0;
}


/* title */
.quick-card b {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 4px;
}


/* description */
.quick-card span {
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.quick-cta {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

/* MATCH */
.match {
    background: #fff
}

.match-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end
}

.match-layout {
    display: grid;
    grid-template-columns: .85fr 1.7fr;
    gap: 16px;
    margin-top: 38px
}

.match-intro {
    min-height: 370px;
    border-radius: 22px;
    padding: 30px;
    background: linear-gradient(145deg, #ffd7bc, #fff3e7);
    position: relative;
    overflow: hidden
}

.match-intro::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: -30px;

    width: 175px;
    height: 175px;

    background-color: #ff7019;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Ccircle cx='94' cy='27' r='10'/%3E%3Cpath d='M94 8v8M94 38v8M75 27h8M105 27h8M80.5 13.5l5.5 5.5M102 35l5.5 5.5M107.5 13.5L102 19M86 35l-5.5 5.5'/%3E%3Cpath d='M25 48h72l12 50H13z'/%3E%3Cpath d='M49 48l-4 50M73 48l4 50M19 65h82M16 82h89'/%3E%3Cpath d='M51 98l-6 19M71 98l6 19M35 117h52'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;

    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Ccircle cx='94' cy='27' r='10'/%3E%3Cpath d='M94 8v8M94 38v8M75 27h8M105 27h8M80.5 13.5l5.5 5.5M102 35l5.5 5.5M107.5 13.5L102 19M86 35l-5.5 5.5'/%3E%3Cpath d='M25 48h72l12 50H13z'/%3E%3Cpath d='M49 48l-4 50M73 48l4 50M19 65h82M16 82h89'/%3E%3Cpath d='M51 98l-6 19M71 98l6 19M35 117h52'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;

    opacity: .24;
    pointer-events: none;
}

.match-intro h3 {
    font-size: 25px;
    line-height: 1.35;
    font-weight: 300;
    margin: 16px 0 10px;
}

.match-intro .big {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.05
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.solution-card {
    padding: 22px 24px;
    min-height: 150px;

    display: flex;
    align-items: center;
    gap: 18px;

    position: relative;
    overflow: hidden;

    background: #fff;
    border: 1px solid #f0ece8;
    border-radius: 18px;

    transition: .3s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(30, 20, 12, .08);
}

/* ไอคอนวงกลมซ้าย */
.solution-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff0e3;
    color: var(--red);

    font-size: 24px;
}

/* กลุ่มข้อความ */
.solution-content {
    min-width: 0;
}

/* เลข 01-04 */
.solution-number {
    font-size: 28px;
    line-height: 1;

    font-weight: 700;
    color: #e05a0a; /* ส้มเข้มขึ้นให้ contrast ผ่าน 3:1 (ตัวอักษรขนาดใหญ่) */

    margin-bottom: 6px;
}

/* หัวข้อ */
.solution-content h3 {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;

    margin: 0 0 5px;
    color: #151515;
}

/* รายละเอียด */
.solution-content p {
    margin: 0;

    font-size: 12px;
    line-height: 1.55;

    color: var(--muted);
}

/* ติ๊กขวาบน */
.solution-check {
    position: absolute;
    top: 18px;
    right: 18px;

    color: var(--orange);
    font-size: 16px;
}

/* =========================
PROCESS
========================= */

.process {
    background:
        linear-gradient(90deg,
            #f7f3ee 0%,
            #f7f3ee 68%,
            rgba(247, 243, 238, .75) 78%,
            rgba(247, 243, 238, .30) 88%,
            rgba(247, 243, 238, .05) 100%),
        url('../../images/process-house2.webp');

    background-repeat: no-repeat;
    background-position: center, right bottom;
    background-size: 100% 100%, 65% auto;
}

.process-inner {
    position: relative;
    z-index: 2;
}

.process-content {
    width: 72%;
    max-width: 1280px;
}


/* หัวข้อ */
.process-head {
    max-width: 680px;
    margin-bottom: 42px;
}

.process .eyebrow {
    color: #c2410c; /* ส้มเข้มให้ contrast ผ่าน 4.5:1 บนพื้นครีม */
}

.process h2 {
    font-size: clamp(38px, 4vw, 58px);
    margin-bottom: 10px;
}


/* STEP GRID */
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
    z-index: 2;
}


.step {
    position: relative;
    padding: 0 16px;
    text-align: center;
}


/* STEP แรก */
.step:first-child {
    padding-left: 0;
}


/* STEP สุดท้าย */
.step:last-child {
    padding-right: 0;
}


/* เส้นลูกศรเชื่อม */
.step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 42px;
    right: -10px;
    font-size: 34px;
    font-weight: 300;
    color: #1d1d1d;
    z-index: 3;
}


/* กลุ่มเลข + วงกลม */
.step-top {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}


/* เลข 01 / 02 */
.step-no {
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--red);
}


/* วงกลมไอคอน */
.step-circle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(145deg,
            #ff9b55,
            #ff741a);

    color: #111;
    font-size: 27px;
    box-shadow:
        0 8px 20px rgba(255, 118, 26, .22);
    transition: .3s ease;
}


/* hover */
.step:hover .step-circle {
    transform: translateY(-5px) scale(1.04);
    box-shadow:
        0 14px 30px rgba(255, 118, 26, .32);
}


/* title */
.step h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* desc */
.step p {
    max-width: 170px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
}

/* PACKAGE */
.package-wrap {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 18px
}

.package-card {
    padding: 34px;
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow)
}

.package-card .pkg-title {
    font-size: 46px;
    line-height: .95;
    font-weight: 800
}

.package-card .pkg-title span {
    color: var(--red)
}

.package-price {
    font-size: 54px;
    color: var(--red);
    font-weight: 800;
    margin: 20px 0
}

.package-list {
    display: grid;
    gap: 10px;
    margin-bottom: 26px
}

.package-list div {
    display: flex;
    gap: 10px;
    font-size: 14px
}

.package-list i {
    font-style: normal;
    color: var(--orange)
}

/* การ์ดเปรียบเทียบ On-Grid / Hybrid (ส่วน PACKAGE) */
.compare-card {
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(circle at 80% 20%,
            rgba(255, 126, 30, .16),
            transparent 25%),
        linear-gradient(145deg, #2a1d13, #1e1610);
}

/* เนื้อหาทุกชิ้นอยู่เหนือภาพบ้านพื้นหลัง */
.compare-card>*:not(.solar-house-art) {
    position: relative;
    z-index: 1;
}

/* ป้ายวงรีด้านบน */
.compare-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;

    padding: 7px 15px;
    margin-bottom: 16px;

    color: #ff9f54;
    background: rgba(255, 112, 25, .10);
    border: 1px solid rgba(255, 159, 84, .65);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1.2px;
}

/* พื้นที่หัวข้อด้านซ้าย */
.compare-heading {
    max-width: 58%;
}

.compare-card h3 {
    max-width: 520px;
    margin-top: 14px;
    font-size: 32px;
    line-height: 1.35;
}

.compare-heading>p {
    margin-bottom: 26px;
    color: rgba(255, 255, 255, .70);
    line-height: 1.8;
}

/* ภาพบ้านหลังคา Solar ด้านขวาบน */
.solar-house-art {
    position: absolute;
    top: 40px;
    right: -18px;

    width: 400px;
    height: 363px;

    color: #ff9f54;
    opacity: .25;

    pointer-events: none;
    z-index: 0;
}

.solar-house-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* รายการเปรียบเทียบ */
.compare-line {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

/* กล่องไอคอน */
.compare-line .ico {
    width: 46px;
    height: 46px;
    min-width: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ff9f54;
    background: rgba(255, 159, 84, .10);
    border: 1px solid rgba(255, 159, 84, .28);
    border-radius: 14px;
}

/* เส้นไอคอน Lucide */
.compare-line .ico svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.compare-line b {
    display: block;
    margin-bottom: 3px;
    color: #fff;
}

.compare-line p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.6;
}

/* Tablet และมือถือ */
@media (max-width: 900px) {
    .compare-card {
        padding: 30px 24px;
    }

    .compare-heading {
        max-width: 100%;
    }

    .compare-card h3 {
        font-size: 27px;
    }

    .solar-house-art {
        top: 105px;
        right: -45px;
        width: 270px;
        height: 220px;
        opacity: .10;
    }
}

@media (max-width: 520px) {
    .compare-card h3 {
        font-size: 24px;
    }

    .compare-line {
        align-items: flex-start;
        gap: 14px;
    }
}

/* ========================================
MARKETPLACE
======================================== */

.market {
    background: #fffdfb;
}

.market-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}


/* ========================================
MANAGEMENT CARDS
======================================== */

.manage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 30px 0;
}

.manage-card {
    min-height: 150px;
    padding: 24px;
}

.manage-card .ico {
    margin-bottom: 10px;
    color: var(--red);
    font-size: 30px;
}

.manage-card h3 {
    margin-bottom: 6px;
    font-size: 17px;
}

.manage-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}


/* ========================================
STORY GRID
======================================== */

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 18px;
}


/* ========================================
STORY IMAGE
======================================== */

.story-img {
    position: relative;
    overflow: hidden;

    min-height: 360px;
    border-radius: 22px;

    background:
        url("https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?auto=format&fit=crop&w=1200&q=85") center / cover no-repeat;
}

/* Overlay ช่วยให้เส้นและข้อความอ่านง่าย */
.story-img::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at center,
            rgba(255, 112, 25, .05),
            rgba(0, 0, 0, .08) 50%,
            rgba(0, 0, 0, .38) 100%);

    pointer-events: none;
    z-index: 0;
}


/* ========================================
ENERGY ORBIT SVG
======================================== */

.energy-orbit {
    position: absolute;
    left: 50%;
    top: 50%;

    width: 108%;
    max-width: 620px;
    aspect-ratio: 600 / 420;

    transform: translate(-50%, -50%);

    pointer-events: none;
    z-index: 2;
}

.orbit-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}


/* ========================================
เนื้อหาตรงกลางวงโคจร
======================================== */

.orbit-center {
    position: absolute;
    left: 50%;
    top: 50%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    width: 240px;

    text-align: center;
    transform: translate(-50%, -50%);
}


/* ========================================
ดวงอาทิตย์ตรงกลาง
======================================== */

.orbit-sun {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: linear-gradient(145deg, #ffa55d, #ff7019);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;

    box-shadow:
        0 10px 30px rgba(255, 112, 25, .50),
        0 0 22px rgba(255, 159, 84, .28),
        inset 0 1px 0 rgba(255, 255, 255, .40);
}

.orbit-sun i {
    font-size: 28px;
    line-height: 1;

    animation: orbit-sun-spin 12s linear infinite;
}

@keyframes orbit-sun-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ========================================
ข้อความกลางภาพ
======================================== */

.orbit-message {
    color: #fff;
    font-size: clamp(19px, 2vw, 27px);
    font-weight: 700;
    line-height: 1.35;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, .65),
        0 0 20px rgba(0, 0, 0, .35);
}


/* ========================================
STORY COPY
======================================== */

.story-copy {
    padding: 36px;
    border-radius: 22px;

    background:
        radial-gradient(circle at 90% 10%,
            rgba(255, 159, 84, .14),
            transparent 30%),
        linear-gradient(135deg, #fff0e5, #fffaf6);
}

.story-copy h3 {
    margin-bottom: 14px;

    color: var(--red);
    font-size: 34px;
    line-height: 1.15;
}


/* ========================================
TABLET
======================================== */

@media (max-width: 900px) {

    .manage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-img {
        min-height: 400px;
    }

    .energy-orbit {
        width: 95%;
        max-width: 580px;
    }
}


/* ========================================
MOBILE
======================================== */

@media (max-width: 600px) {

    .market-head {
        display: block;
    }

    .manage-grid {
        grid-template-columns: 1fr;
    }

    .story-img {
        min-height: 350px;
    }

    .energy-orbit {
        width: 118%;
    }

    .orbit-center {
        width: 210px;
        gap: 10px;
    }

    .orbit-sun {
        width: 60px;
        height: 60px;
    }

    .orbit-sun i {
        font-size: 24px;
    }

    .orbit-message {
        font-size: 19px;
    }

    .story-copy {
        padding: 28px 22px;
    }

    .story-copy h3 {
        font-size: 28px;
    }
}


/* ปิด Animation หากผู้ใช้ตั้งค่าลดการเคลื่อนไหว */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }

    .cursor-glow {
        display: none
    }
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 4000;
    padding: 12px 18px;
    border-radius: 10px;
    background: #161616;
    color: #fff;
    font-weight: 700
}

.skip-link:focus {
    top: 12px
}

main:focus {
    outline: none
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px
}

.lead :focus-visible,
.hero :focus-visible,
.footer :focus-visible {
    outline-color: #ffb27a
}

/* FAQ */
.faq-layout {
    display: grid;
    grid-template-columns: .5fr 1.5fr;
    gap: 42px;
    align-items: start
}

.faq-list {
    display: grid;
    gap: 10px
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden
}

.faq-q {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 0;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    font-weight: 600;
    color: inherit
}

.faq-h {
    margin: 0;
    font-size: inherit;
    line-height: inherit
}

/* visibility ซ่อนคำตอบที่ปิดอยู่จาก screen reader และ Tab ด้วย (หน่วงไว้ให้ animation ปิดเล่นจบก่อน) */
.faq-a {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .35s ease, visibility 0s linear .35s
}

.faq-item.open .faq-a {
    max-height: 220px;
    visibility: visible;
    transition: max-height .35s ease, visibility 0s
}

.faq-a p {
    padding: 0 20px 18px;
    color: var(--muted);
    margin: 0
}

.faq-item.open .faq-q span {
    transform: rotate(45deg)
}

.faq-q span {
    transition: .25s;
    font-size: 22px
}

/* LEAD */
.lead {
    color: #fff;
    background:
        radial-gradient(circle at 17% 50%, rgba(255, 139, 52, .25), transparent 25%),
        linear-gradient(90deg, #26180f 0%, #2c1d12 48%, #1d140f 100%);
}

.lead-layout {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    gap: 60px;
    align-items: center
}

.lead h2 {
    font-size: clamp(44px, 5.5vw, 78px);
    line-height: 1
}

.lead-copy p {
    color: rgba(255, 255, 255, .68);
    max-width: 480px
}

.form-card {
    background: #fff;
    color: #111;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28)
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #8f8a86;
    border-radius: 9px;
    padding: 13px 14px;
    outline: none;
    background: #fff
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 118, 26, .35)
}

.upload {
    grid-column: 1/-1;
    border: 1px dashed #8f8a86;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    color: #6b645f;
    background: #faf8f6;
    cursor: pointer
}

.upload:focus-within {
    border-color: var(--orange);
    outline: 3px solid rgba(255, 118, 26, .45);
    outline-offset: 2px
}

.checkline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    color: #666;
    margin: 14px 0
}

.checkline>span {
    flex: 1;
    min-width: 0
}

.checkline .field-error {
    flex-basis: 100%;
    margin: -4px 0 0 24px
}

.submit {
    width: 100%;
    border-radius: 8px
}

.form-note {
    font-size: 11px;
    color: #737373;
    margin-top: 10px
}

.form-alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 14px
}

.form-alert.is-success {
    background: #e8f7ef;
    color: #11784a;
    border: 1px solid #b7e4cc
}

.form-alert.is-error {
    background: #fdecec;
    color: #b3261e;
    border: 1px solid #f3c2bf
}

.field-error {
    display: block;
    font-size: 11px;
    color: #b3261e;
    margin-top: 5px
}

.field.has-error input,
.field.has-error select {
    border-color: #e0453b
}

.upload.has-error {
    border-color: #e0453b
}

.upload.has-file {
    border-color: var(--orange);
    background: #fff6ef
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

.submit[disabled] {
    opacity: .7;
    cursor: wait
}

/* FOOTER */
.footer {
    background: #17110d;
    color: #fff;
    padding: 24px 0
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap
}

.footer-nav {
    display: flex;
    gap: 22px;
    font-size: 12px;
    color: rgba(255, 255, 255, .7)
}

.copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, .5)
}

/* FLOAT / EFFECT */
.floating-cta {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 500;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--orange);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 14px 35px rgba(255, 118, 26, .35);
    animation: floaty 3s ease-in-out infinite
}

@keyframes floaty {
    50% {
        transform: translateY(-8px)
    }
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--orange));
    z-index: 2000;
    width: 0
}

.cursor-glow {
    position: fixed;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 119, 26, .08), transparent 65%);
    transform: translate(-50%, -50%)
}

/* RESPONSIVE */
@media(max-width:980px) {
    .nav-links {
        display: none
    }

    .menu-btn {
        display: block
    }

    .navbar.menu-open {
        background: #fff;
        box-shadow: 0 8px 30px rgba(0, 0, 0, .08)
    }

    .navbar.menu-open .menu-btn {
        color: #171717
    }

    .navbar.menu-open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 8px 20px 20px;
        border-top: 1px solid rgba(0, 0, 0, .06);
        box-shadow: 0 18px 30px rgba(0, 0, 0, .08)
    }

    .navbar.menu-open .nav-links a {
        color: #171717;
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        font-size: 15px
    }

    .navbar.menu-open .nav-links a:after {
        display: none
    }

    .navbar.menu-open .nav-links .nav-mobile-cta {
        display: block;
        border: 0;
        margin-top: 12px;
        text-align: center;
        color: #21160f;
        background: var(--orange);
        border-radius: 999px
    }

    .hero {
        min-height: 760px
    }

    .hero-content {
        max-width: 680px
    }

    .price-chip {
        display: none
    }

    .hero-feature+.hero-feature {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, .12);
        padding-left: 0
    }

    .hero-features {
        position: relative;
        margin-top: 70px
    }

    .quick-grid,
    .manage-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .match-layout,
    .package-wrap,
    .story-grid,
    .lead-layout,
    .faq-layout,
    .match-head,
    .quick-head {
        grid-template-columns: 1fr
    }

    .steps {
        grid-template-columns: 1fr 1fr;
        gap: 30px
    }

    .step:not(:last-child):after {
        display: none
    }
}

@media(max-width:640px) {
    .container {
        width: min(100% - 26px, 1180px)
    }

    .section {
        padding: 64px 0
    }

    h2 {
        font-size: 40px
    }

    .nav-actions .btn {
        display: none
    }

    /* hero บนมือถือ: ไล่เฉดจากบนลงล่างแทนซ้ายไปขวา */
    .hero {
        min-height: 920px;
        background: linear-gradient(180deg, rgba(36, 20, 10, .25), rgba(36, 20, 10, .74) 48%, rgba(28, 16, 9, .98)), url('../../images/solar-house.webp') center/cover no-repeat
    }

    .hero-inner {
        min-height: 920px
    }

    .hero-content {
        padding-top: 145px
    }

    .hero h1 {
        font-size: 56px
    }

    .hero p {
        font-size: 15px
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .hero-feature {
        display: grid;
        grid-template-columns: 46px 1fr;
        column-gap: 12px
    }

    .hero-feature .ico {
        grid-row: 1/3
    }

    .hero-scroll {
        display: none
    }

    .quick-grid,
    .manage-grid,
    .solution-grid,
    .form-grid,
    .steps {
        grid-template-columns: 1fr
    }

    .package-card .pkg-title {
        font-size: 38px
    }

    .package-price {
        font-size: 42px
    }

    .market-head {
        align-items: flex-start;
        flex-direction: column
    }
}

.matching-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 18px;

    border: 1px solid rgba(255, 118, 26, .65);
    border-radius: 999px;

    color: #332316;

    background: #ff761a;


    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .45);

    font-size: 11px;
    font-weight: 700;

    margin-bottom: 20px;
}
