/* -------------------------------------------------------------
   Max Metal Sheet Stylesheet
   Theme: Industrial Modern (Red #D60000 & Dark Charcoal #111111)
   ------------------------------------------------------------- */

/* Variables & Base System */
:root {
    --primary: #D60000;
    --primary-rgb: 214, 0, 0;
    --primary-hover: #B00000;
    --secondary: #111111;
    --dark-bg: #111111;
    --dark-card: #1A1A1A;
    --dark-border: #2A2A2A;
    --light-bg: #F8F9FA;
    --light-card: #FFFFFF;
    --light-border: #E5E5E5;
    --white: #FFFFFF;
    --text-dark: #222222;
    --text-light: #F3F4F6;
    --text-gray: #6B7280;
    --text-gray-light: #9CA3AF;
    --line-green: #06C755;
    --line-green-hover: #05B34C;
    --fb-messenger: #0084FF;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Kanit', 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

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

/* Helper Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-why-us {
    background-color: var(--white);
}

.section-products {
    background-color: var(--light-bg);
}

.section-targets {
    background-color: var(--secondary);
    color: var(--white);
}

.section-projects {
    background-color: var(--white);
}

.section-blog {
    background-color: var(--light-bg);
}

.section-contact {
    background-color: var(--white);
}

.desktop-only {
    display: inline-flex;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

/* Section Titles */
.section-title-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.section-targets .section-title {
    color: var(--white);
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 0, 0, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--secondary);
    border: 1px solid var(--light-border);
}

.btn-secondary:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn-line {
    background-color: var(--line-green);
    color: var(--white);
}

.btn-line:hover {
    background-color: var(--line-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* -------------------------------------------------------------
   TOP BAR
   ------------------------------------------------------------- */
.top-bar {
    background: linear-gradient(to right, #0a0a0a, var(--secondary));
    color: #e2e8f0;
    font-size: 0.92rem;
    padding: 10px 0;
    border-bottom: 2px solid var(--primary);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact-info {
    display: flex;
    gap: 20px;
}

.top-contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.icon-small {
    width: 14px;
    height: 14px;
    color: var(--primary);
}

.top-bar-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-socials a {
    color: var(--text-gray-light);
    display: inline-flex;
}

.top-bar-socials a:hover {
    color: var(--primary);
}

.line-text-icon {
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--line-green);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
}

.line-text-icon:hover {
    background-color: var(--line-green-hover);
}

/* -------------------------------------------------------------
   HEADER
   ------------------------------------------------------------- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 12px 0;
}

.main-header.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 52px;
    width: 52px;
    border-radius: var(--border-radius);
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-gray);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.company-sub {
    font-size: 1.35rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 1px;
}

.nav-menu ul {
    display: flex;
    gap: 15px;
}

.nav-link {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--secondary);
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.1px;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 102;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* -------------------------------------------------------------
   MOBILE DRAWER NAVIGATION
   ------------------------------------------------------------- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--white);
    z-index: 1000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.drawer-close-btn {
    font-size: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: auto;
}

.drawer-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary);
    display: block;
}

.drawer-link:hover {
    color: var(--primary);
    padding-left: 8px;
}

.drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid var(--light-border);
    padding-top: 20px;
}

.drawer-contact-info {
    font-size: 0.9rem;
}

.drawer-phone {
    font-weight: 600;
    color: var(--primary);
}

/* -------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 100px 0 120px;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-headline {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero-headline .highlight {
    color: var(--primary);
    position: relative;
}

.hero-subheadline {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-subheadline strong {
    color: var(--white);
}

/* Icon Grid 6 items */
.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 35px;
    margin: 0 auto 45px;
    max-width: 680px;
    width: 100%;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.check-icon {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
}

.feature-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* CTA buttons */
.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.hero-cta-buttons .btn {
    min-width: 170px;
}

.line-btn-logo {
    font-size: 0.8rem;
    font-weight: 700;
    background-color: var(--white);
    color: var(--line-green);
    padding: 2px 6px;
    border-radius: 4px;
}

/* -------------------------------------------------------------
   WHY CHOOSE US
   ------------------------------------------------------------- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 35px 25px;
    transition: var(--transition-smooth);
    text-align: center;
}

.why-card:hover {
    transform: translateY(-10px);
    background-color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--box-shadow-hover);
}

.why-icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(214, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: var(--transition-smooth);
}

.why-card:hover .why-icon-box {
    background-color: var(--primary);
}

.why-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.why-card:hover .why-icon {
    color: var(--white);
}

.why-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 15px;
}

.why-card-text {
    font-size: 1.05rem;
    color: #4b5563;
    line-height: 1.7;
}

/* -------------------------------------------------------------
   PRODUCTS SECTION
   ------------------------------------------------------------- */
.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
}

.filter-btn {
    background-color: var(--white);
    border: 1px solid var(--light-border);
    color: var(--secondary);
    padding: 10px 22px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(214, 0, 0, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(214, 0, 0, 0.2);
}

.product-img-box {
    background-color: #F3F4F6;
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    height: 85%;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.img-rotate {
    transform: rotate(45deg);
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.product-card:hover .img-rotate {
    transform: scale(1.08) rotate(45deg);
}

.product-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-badge {
    align-self: flex-start;
    background-color: #FEF2F2;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.product-badge.badge-red {
    background-color: var(--primary);
    color: var(--white);
}

.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-desc {
    font-size: 1.0rem;
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1;
}

.product-action {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
}

.product-action .btn {
    padding: 10px 12px;
    font-size: 0.85rem;
}

/* Hide card animation helper class */
.product-card.hidden {
    display: none;
}

/* -------------------------------------------------------------
   TARGET CUSTOMER SECTION
   ------------------------------------------------------------- */
.targets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.target-card {
    background-color: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    transition: var(--transition-smooth);
}

.target-card.highlighted {
    background-color: #221A1A;
    border-color: var(--primary);
    position: relative;
}

.target-card.highlighted::before {
    content: 'RECOMMENDED FOR CONTRACTORS';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 1px;
}

.target-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.target-icon-circle {
    width: 50px;
    height: 50px;
    background-color: rgba(214, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(214, 0, 0, 0.2);
}

.target-card.highlighted .target-icon-circle {
    background-color: var(--primary);
}

.target-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.target-card.highlighted .target-icon {
    color: var(--white);
}

.target-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.target-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.target-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}

.bullet-check {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.target-card.highlighted .bullet-check {
    color: var(--white);
}

.list-title {
    font-weight: 600;
    color: var(--white);
    display: block;
    margin-bottom: 2px;
}

/* -------------------------------------------------------------
   PROJECT SECTION (แกลเลอรีผลงาน)
   ------------------------------------------------------------- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.gallery-filter-btn {
    background-color: var(--white);
    border: 1px solid var(--light-border);
    color: var(--secondary);
    padding: 8px 20px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 320px;
    box-shadow: var(--box-shadow);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    color: var(--white);
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-overlay-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.gallery-overlay-text p {
    font-size: 0.85rem;
    color: var(--text-gray-light);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay-text {
    transform: translateY(0);
}

/* -------------------------------------------------------------
   BLOG SECTION
   ------------------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(214, 0, 0, 0.2);
}

.blog-img-wrap {
    height: 180px;
    overflow: hidden;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-read-more {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    align-self: flex-start;
    padding: 0;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.blog-read-more:hover {
    color: var(--primary-hover);
    transform: translateX(3px);
}

/* -------------------------------------------------------------
   CONTACT SECTION
   ------------------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: flex-start;
}

.company-card {
    margin-bottom: 35px;
}

.company-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.company-description {
    font-size: 1.08rem;
    color: #4b5563;
    line-height: 1.8;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(214, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

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

.info-text h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.info-text p,
.info-text a {
    font-size: 1.05rem;
    color: #4b5563;
}

.info-text a:hover {
    color: var(--primary);
}

.sales-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.sales-list li {
    font-size: 1.0rem;
    color: #4b5563;
}

.sales-list span {
    font-weight: 500;
    color: var(--secondary);
}

.sales-list a {
    font-weight: 600;
    color: var(--primary);
}

/* QR Code Box */
.qr-code-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 20px;
}

.qr-img {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    border: 1px solid var(--light-border);
}

.qr-text {
    flex-grow: 1;
}

.qr-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 2px;
}

.qr-sub {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Contact Form */
.contact-form-wrap {
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.contact-form-wrap h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 25px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    border: 1px solid var(--light-border);
    background-color: var(--white);
    border-radius: var(--border-radius);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(214, 0, 0, 0.1);
}

.form-feedback {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px;
    border-radius: var(--border-radius);
    display: none;
}

.form-feedback.success {
    display: block;
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.form-feedback.error {
    display: block;
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* Google Map styling */
.map-wrap {
    margin-top: 35px;
}

.map-wrap h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.map-iframe-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-border);
    height: 250px;
}

.map-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.main-footer {
    background-color: var(--secondary);
    color: var(--text-light);
    padding: 70px 0 0;
    border-top: 4px solid var(--primary);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo-img {
    height: 60px;
    width: 60px;
    border-radius: var(--border-radius);
    object-fit: contain;
}

.footer-brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
}

.footer-logo-section p {
    font-size: 0.85rem;
    color: var(--text-gray-light);
    line-height: 1.6;
}

.footer-social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-social-links a {
    width: 36px;
    height: 36px;
    background-color: var(--dark-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--white);
}

.footer-social-links a:hover {
    background-color: var(--primary);
}

.footer-links-section h4,
.footer-products-section h4,
.footer-contact-section h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 8px;
}

.footer-links-section h4::after,
.footer-products-section h4::after,
.footer-contact-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links-section ul,
.footer-products-section ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-section a,
.footer-products-section a {
    font-size: 0.85rem;
    color: var(--text-gray-light);
}

.footer-links-section a:hover,
.footer-products-section a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact-section p {
    font-size: 0.85rem;
    color: var(--text-gray-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-contact-section strong {
    color: var(--white);
}

.footer-bottom {
    background-color: #0A0A0A;
    border-top: 1px solid var(--dark-border);
    padding: 25px 0;
    font-size: 0.8rem;
    color: var(--text-gray);
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-seo-notice {
    font-size: 0.75rem;
    color: #4B5563;
}

/* -------------------------------------------------------------
   MODALS
   ------------------------------------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 20px;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    width: 100%;
    max-width: 650px;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal.open .modal-dialog {
    transform: scale(1);
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background-color: var(--secondary);
    color: var(--white);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close-btn {
    font-size: 1.8rem;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--primary);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
}

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Product Detail inside Modal */
.modal-product-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modal-product-img-box {
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-product-img {
    height: 85%;
    width: auto;
    object-fit: contain;
}

.modal-detail-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 15px 0 8px;
    border-bottom: 1px solid var(--light-border);
    padding-bottom: 4px;
}

.modal-detail-info h4:first-of-type {
    margin-top: 0;
}

.modal-detail-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 12px;
}

/* Bullet list inside Modal specs */
.spec-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.spec-list li {
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.spec-label {
    font-weight: 600;
    color: var(--secondary);
    min-width: 130px;
    flex-shrink: 0;
}

.color-palette {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0 15px;
}

.color-swatch {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.75rem;
}

.color-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-detail-action {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

/* Blog Content inside Modal */
.blog-modal-content {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.blog-modal-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid var(--light-border);
}

.blog-modal-meta {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    display: block;
}

.blog-modal-content p {
    margin-bottom: 15px;
}

.blog-modal-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 25px 0 10px;
}

/* -------------------------------------------------------------
   FLOATING BUTTONS WIDGET
   ------------------------------------------------------------- */
.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 998;
}

.float-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: var(--transition-smooth);
}

.float-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.float-icon {
    width: 26px;
    height: 26px;
}

.float-phone {
    background-color: var(--primary);
}

.float-line {
    background-color: var(--line-green);
    text-align: center;
}

.float-line-logo {
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.float-messenger {
    background-color: var(--fb-messenger);
}

/* Tooltips */
.float-tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.float-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--secondary);
}

.float-btn:hover .float-tooltip {
    opacity: 1;
    visibility: visible;
}

/* -------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-headline {
        font-size: 2.6rem;
    }

    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

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

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .header-cta .btn {
        display: none;
        /* Hide top quotation button, but hamburger shows and drawer will have it */
    }

    .hamburger-btn {
        display: flex;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-section {
        padding: 60px 0 80px;
    }

    .hero-headline {
        font-size: 2.2rem;
    }

    .hero-subheadline {
        font-size: 1rem;
    }

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

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-detail-action {
        grid-template-columns: 1fr;
    }

    .floating-widget {
        bottom: 20px;
        right: 20px;
    }

    .float-btn {
        width: 48px;
        height: 48px;
    }

    .float-icon {
        width: 22px;
        height: 22px;
    }
}