/* ==========================================================
   HOMIE WEBSITE
   STYLE.CSS
   Version: 1.0

   ไฟล์นี้ใช้สำหรับ:
   - Custom Override
   - การปรับแต่งเฉพาะจุด
   - CSS ที่ไม่เหมาะกับไฟล์ Design System อื่น
========================================================== */


/* ==========================================================
   BOOTSTRAP COMPATIBILITY
========================================================== */

.btn-success {
    border-color: var(--primary);
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    border-color: var(--primary-dark) !important;
    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        ) !important;
}

.btn-outline-light:hover {
    color: var(--text-white);
}


/* ==========================================================
   PAGE FALLBACK
========================================================== */

.placeholder-page {
    min-height: 55vh;
    padding: var(--section-padding) 0;
}


/* ==========================================================
   UTILITY OVERRIDES
========================================================== */

.bg-white {
    background-color: var(--background) !important;
}

.text-success {
    color: var(--primary) !important;
}

/* ==========================================================
   PHASE 1 — PREMIUM REFINEMENT
   5 จุดปรับปรุงระดับบริษัท
========================================================== */


/* ==========================================================
   1. ปรับโลโก้ให้ใหญ่และเด่นขึ้น
========================================================== */

.homie-brand {
    min-width: 190px;
    transition:
        transform var(--transition-fast) ease,
        opacity var(--transition-fast) ease;
}

.homie-brand__mark {
    font-size: 38px;
    letter-spacing: -1.8px;
}

.homie-brand__house {
    width: 43px;
    height: 43px;
    margin: 0 3px;
    border-radius: 9px;
    font-size: 21px;
    box-shadow: 0 8px 18px rgba(17, 185, 90, 0.20);
}

.homie-brand__sub {
    margin-top: 6px;
    font-size: 10px;
    letter-spacing: 1.45px;
}

/* รองรับกรณีเปลี่ยนเป็นโลโก้รูปภาพจริง */
.homie-brand img,
.homie-brand__image {
    display: block;
    width: auto;
    max-width: 220px;
    height: 60px;
    object-fit: contain;
}


/* ==========================================================
   2. เพิ่มความสูง Hero ให้อลังการขึ้น
========================================================== */

.hero-section {
    min-height: 880px;
}

.hero-section .min-vh-100 {
    min-height: 880px !important;
}

.hero-content {
    padding-top: 80px;
    padding-bottom: 80px;
}


/* ==========================================================
   3. เพิ่ม Dark Overlay ให้ข้อความชัดขึ้น
========================================================== */

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(1, 17, 33, 0.96) 0%,
            rgba(1, 17, 33, 0.86) 35%,
            rgba(1, 17, 33, 0.62) 65%,
            rgba(1, 17, 33, 0.35) 100%
        );
}

.hero-section::before {
    filter:
        saturate(1.03)
        contrast(1.04);
}


/* ==========================================================
   4. ปรับ Glass Card ด้านขวาให้ Premium
========================================================== */

.hero-card {
    transition:
        transform var(--transition-fast) ease,
        filter var(--transition-fast) ease;
}

.hero-card:hover {
    transform: translateX(-6px);
}

.hero-card .icon {
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-card > div:last-child {
    min-height: 68px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-left: 0;
    background:
        linear-gradient(
            90deg,
            rgba(1, 19, 36, 0.78),
            rgba(7, 22, 35, 0.48)
        );
    box-shadow:
        0 13px 32px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-card h5 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}

.hero-card p {
    color: rgba(255, 255, 255, 0.78);
}


/* ==========================================================
   5. Navbar Scroll Effect
========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-fixed);
}

.top-bar {
    overflow: hidden;
    max-height: var(--topbar-height);
    opacity: 1;
    transition:
        max-height var(--transition) ease,
        min-height var(--transition) ease,
        opacity var(--transition-fast) ease,
        transform var(--transition) ease;
}

.homie-navbar {
    transition:
        min-height var(--transition) ease,
        padding var(--transition) ease,
        background-color var(--transition) ease,
        box-shadow var(--transition) ease,
        backdrop-filter var(--transition) ease;
}

/* เมื่อ Scroll เกิน 20px */
.site-header.is-scrolled .top-bar {
    min-height: 0;
    max-height: 0;
    opacity: 0;
    transform: translateY(-100%);
}

.site-header.is-scrolled .homie-navbar {
    min-height: 72px;
    border-bottom-color: rgba(0, 31, 58, 0.10);
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 13px 34px rgba(0, 25, 48, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header.is-scrolled .homie-brand {
    transform: scale(0.90);
    transform-origin: left center;
}

.site-header.is-scrolled .homie-navbar .nav-link {
    padding-top: 25px;
    padding-bottom: 22px;
}

.site-header.is-scrolled .homie-navbar .nav-link::after {
    bottom: 15px;
}

.site-header.is-scrolled .quote-button {
    min-height: 42px;
    padding-right: 21px;
    padding-left: 21px;
}


/* ==========================================================
   เพิ่มความ Premium ให้ปุ่ม Hero
========================================================== */

.hero-buttons .btn-success {
    box-shadow:
        0 13px 32px rgba(17, 185, 90, 0.28);
}

.hero-buttons .btn-success:hover {
    box-shadow:
        0 18px 38px rgba(17, 185, 90, 0.38);
}

.hero-buttons .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(1, 18, 34, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* ==========================================================
   ปรับข้อความ Hero ให้มีมิติมากขึ้น
========================================================== */

.hero-title-small,
.hero-title {
    text-shadow:
        0 6px 22px rgba(0, 0, 0, 0.38),
        0 2px 3px rgba(0, 0, 0, 0.22);
}

.hero-description {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}

/* ==========================================================
   ABOUT → PORTFOLIO SPACING FIX
========================================================== */

.about-section {
    padding-bottom: 35px;
}

.portfolio-section {
    padding-top: 35px;
}

/* ==========================================================
   STATISTICS → ABOUT SPACING FIX
========================================================== */

.about-section {
    padding-top: 45px;
}

/* ==========================================================
   PORTFOLIO → NEWS SPACING FIX
========================================================== */

.portfolio-section {
    padding-bottom: 35px;
}

.news-section {
    padding-top: 35px;
}

/* ==========================================================
   ABOUT PAGE
   VISION → TIMELINE SPACING
========================================================== */

.company-timeline-section {
    padding-top: 30px;
}

.timeline-heading {
    margin-bottom: 55px;
}

/* ==========================================================
   ABOUT PAGE — FINAL SPACING POLISH
========================================================== */

/*
   Company Story
*/
.about-story-section {
    padding-top: 72px;
    padding-bottom: 68px;
}


/*
   Vision / Mission / Values
*/
.about-direction-section {
    padding-top: 62px;
    padding-bottom: 62px;
}


/*
   Timeline
*/
.company-timeline-section {
    padding-top: 32px;
    padding-bottom: 72px;
}

.timeline-heading {
    margin-bottom: 52px;
}


/*
   Team
*/
.about-team-section {
    padding-top: 68px;
    padding-bottom: 76px;
}

.about-team-heading {
    margin-bottom: 48px;
}

.about-team-list {
    gap: 62px;
}


/*
   Achievement
*/
.about-achievement-section {
    padding-top: 66px;
    padding-bottom: 74px;
}

.about-achievement-heading {
    margin-bottom: 40px;
}


/*
   Why Choose HOMIE
*/
.about-strength-section {
    padding-top: 72px;
    padding-bottom: 72px;
}


/*
   Services
*/
.about-services-section {
    padding-top: 68px;
    padding-bottom: 72px;
}


/*
   Work Process
*/
.about-process-section {
    padding-top: 68px;
    padding-bottom: 72px;
}


/*
   FAQ
*/
.about-faq-section {
    padding-top: 68px;
    padding-bottom: 76px;
}


/*
   Premium CTA
*/
.inner-contact-cta {
    padding-top: 84px;
    padding-bottom: 84px;
}

/* ==========================================================
   ABOUT PAGE — SECTION BACKGROUND RHYTHM
========================================================== */

.about-story-section {
    background: #ffffff;
}

.about-direction-section {
    background:
        linear-gradient(
            180deg,
            #f8fbfa 0%,
            #f4f8f6 100%
        );
}

.company-timeline-section {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fafcfb 100%
        );
}

.about-team-section {
    background:
        linear-gradient(
            180deg,
            #f7faf9 0%,
            #ffffff 100%
        );
}

.about-achievement-section {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f7faf9 100%
        );
}

.about-services-section {
    background: #ffffff;
}

.about-process-section {
    background:
        linear-gradient(
            180deg,
            #f7faf9 0%,
            #f3f7f5 100%
        );
}

.about-faq-section {
    background: #ffffff;
}

/* ==========================================================
   ABOUT PAGE — HEADING CONSISTENCY
========================================================== */

.about-page .section-heading {
    margin-bottom: 42px;
}

.about-page .section-heading .section-label {
    margin-bottom: 10px;
}

.about-page .section-heading .section-title {
    margin-bottom: 12px;
}

.about-page .section-heading .section-description {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}

.about-page .section-title span {
    color: var(--primary);
}

.about-page .timeline-heading,
.about-page .about-team-heading,
.about-page .about-achievement-heading {
    margin-right: auto;
    margin-left: auto;
}

/* ==========================================================
   ABOUT PAGE — CARD CONSISTENCY
========================================================== */

.about-direction-card,
.about-achievement-card,
.about-service-item,
.about-process-step,
.about-faq-item {
    border-color: rgba(6, 39, 70, 0.08);
    box-shadow:
        0 12px 32px rgba(0, 30, 55, 0.055);
}

.about-direction-card:hover,
.about-achievement-card:hover,
.about-service-item:hover {
    border-color: rgba(17, 185, 90, 0.25);

    box-shadow:
        0 20px 45px rgba(0, 30, 55, 0.10);
}

