@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Kanit:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600;700;800&family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
    --primary-color: #e96656;
    --primary-hover: #d85545;
    --green-color: #34d293;
    --green-hover: #14a168;
    --blue-color: #3ab0e2;
    --yellow-color: #f7d861;
    --text-dark: #404040;
    --text-color: #333333;
    --text-light: #808080;
    --bg-light: #f5f5f5;
    --bg-dark: #272727;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
}

body {
    font-family: 'Kanit', 'Lato', 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Kanit', 'Montserrat', Helvetica, sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0;
}

a {
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* =============================================
   HEADER / TOP BAR  (Zerif-Lite style)
   ============================================= */
.header {
    min-height: 76px;
}

.header>.navbar {
    box-shadow: 0 5px 11px 0 rgba(50, 50, 50, 0.08);
}

.navbar {
    border: 0;
    border-radius: 0 !important;
    background: #fff;
    margin-bottom: 0;
    text-align: left;
    position: fixed;
    z-index: 1000;
    width: 100%;
    min-height: 75px;
    padding: 0;
}

.navbar-brand {
    display: inline-block;
    position: relative;
    height: 76px;
    padding: 7px 15px;
    line-height: 60px;
    text-align: center;
}

.navbar-brand>img,
.navbar-brand img {
    max-height: 100%;
    width: auto;
}

.navbar-inverse .navbar-nav>li {
    display: inline;
    margin-top: 20px;
    margin-right: 20px;
}

.navbar-inverse .navbar-nav>li:last-child {
    margin-right: 0 !important;
}

.navbar-inverse .navbar-nav>li>a {
    padding: 0;
    color: #404040;
    line-height: 35px;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

.navbar-inverse .navbar-nav>li>a:hover,
.navbar-inverse .navbar-nav>li>a:focus,
.navbar-inverse .navbar-nav>li.active>a {
    color: var(--primary-color) !important;
    background: transparent !important;
    outline: none;
}

.navbar-inverse .navbar-nav>li.active>a::before {
    display: block;
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 12.5%;
    width: 75%;
    height: 2px;
    margin: auto;
    background: var(--primary-color);
    content: "";
}

.navbar-toggle {
    margin-top: 23px;
    border: 0;
    background-color: #808080;
}

.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
    background-color: var(--primary-color);
    box-shadow: none;
}

/* =============================================
   PRODUCTS DROPDOWN (Hover effect)
   ============================================= */
.products-dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: none;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 220px;
    margin-top: 0;
}

.products-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.products-dropdown .dropdown-menu>li>a {
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.products-dropdown .dropdown-menu>li>a:hover {
    background: var(--primary-color);
    color: #fff;
    padding-left: 25px;
}

.products-dropdown .dropdown-menu>li.divider {
    margin: 4px 15px;
    background-color: #eee;
}

/* =============================================
   HERO SECTION  (Full-width cover image)
   ============================================= */
.hero-section {
    position: relative;
    min-height: 600px;
    height: 75vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: 0;
    /* no extra margin needed as header occupies space */
}

.video-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    margin-bottom: 40px;
    /* เพิ่มช่องว่างด้านล่าง */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.home-header-wrap {
    position: relative;
    min-height: 600px;
}

.home-header-wrap .layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
}

/* =============================================
   INTRO SECTION (Text below hero)
   ============================================= */
.intro-section {
    overflow: hidden;
    padding: 90px 0 40px 0;
    background: #fff;
    text-align: center;
}

.intro-section .home-hd {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 2.2em;
    line-height: 1.4;
}

.heading-border {
    border-top: 2px solid var(--primary-color);
    width: 60px;
    margin: 20px auto 30px;
}

.intro-section .intro-subtitle {
    font-size: 1.15em;
    color: var(--text-light);
    margin-bottom: 15px;
}

.intro-section .intro-text {
    font-size: 1.05em;
    color: #555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* =============================================
   BUTTONS  (Zerif-Lite style)
   ============================================= */
.custom-button {
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
}

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

.btn-primary.red-btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 102, 86, 0.3);
}

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

.btn-primary.green-btn:hover {
    background-color: var(--green-hover);
    border-color: var(--green-hover);
    transform: translateY(-2px);
}

/* =============================================
   FOCUS SECTION  ("คอสมาพรอฟ รับผลิตอะไรบ้าง")
   ============================================= */
.focus {
    overflow: hidden;
    padding: 75px 0 90px 0;
    background: var(--white);
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: var(--text-dark);
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-legend {
    font-size: 16px;
    color: var(--text-light);
    max-width: 800px;
    margin: 30px auto 0;
    font-weight: 400;
    line-height: 1.8;
}

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
    padding: 80px 0;
    background: var(--primary-color);
    /* Uses the brand's main color */
    color: var(--white);
}

.stat-box {
    padding: 20px 10px;
    text-align: center;
}

.stat-number {
    font-size: 72px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0px;
    line-height: 1.2;
}

.stat-label {
    font-size: 22px;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0px;
}

/* =============================================
   FEATURES SECTION  (Service boxes)
   ============================================= */
.features-section {
    padding: 75px 0 30px 0;
    background: var(--bg-light);
}

.features-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.features-section .section-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 80%;
    margin: 20px auto 35px auto;
    line-height: 1.8;
}

.feature-box {
    background: var(--white);
    padding: 35px 25px;
    margin-bottom: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin: 0 auto 20px;
}

.feature-icon img {
    max-width: 80px;
    transition: var(--transition);
}

.feature-title {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.feature-box p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.7;
}

/* =============================================
   SEPARATOR / CTA  (Green bar like Zerif)
   ============================================= */
.separator-one {
    padding: 80px 0;
    background: rgba(52, 210, 147, 0.85);
}

.separator-one h3 {
    max-width: 800px;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 0;
    color: #fff;
    line-height: 34px;
    font-size: 22px;
    font-weight: 600;
}

.separator-one .green-btn {
    background: #14a168;
}

.separator-one .green-btn:hover {
    background: #007345;
}

.cta-section {
    padding: 80px 0;
    background: rgba(52, 210, 147, 0.85);
    color: var(--white);
}

.cta-section h3 {
    margin: 0 0 15px 0;
    color: var(--white);
    font-size: 22px;
    line-height: 34px;
}

.cta-section p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

/* =============================================
   ABOUT US  (Dark section with stats)
   ============================================= */
.about-us {
    padding: 100px 0;
    background: var(--bg-dark);
    color: var(--white);
}

.about-us h2 {
    color: var(--white);
    font-size: 30px;
    margin-bottom: 20px;
}

.about-us .section-header h2 {
    color: #fff;
}

.about-us .section-legend {
    color: rgba(255, 255, 255, 0.8);
}

.about-us .big-intro {
    font-family: 'Homemade Apple', cursive;
    font-size: 42px;
    color: #fff;
    margin-bottom: 25px;
}

.about-us p {
    color: #cccccc;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

/* Standards Section (Dark) */
.standards-section {
    overflow: hidden;
    padding: 0 0 50px 0;
    background: var(--bg-dark);
    color: #fff;
}

.standards-section h2 {
    font-size: 32px;
    padding-bottom: 20px;
    color: #fff;
}

.standards-section p {
    color: #ccc;
    line-height: 1.8;
}

.standards-section .feature-box {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #fff;
}

.standards-section .feature-box:hover {
    transform: translateY(-5px);
}

.standards-section .feature-title {
    color: #fff;
    font-size: 16px;
}

.standards-section .feature-box p {
    color: #ccc;
}

/* =============================================
   RED RIBBON  (Purchase / Fanpage)
   ============================================= */
.purchase-now {
    padding: 60px 0;
    background: var(--primary-color);
    color: #fff;
}

.purchase-now h3 {
    color: #fff;
    font-size: 22px;
    margin: 0;
    line-height: 40px;
}

/* =============================================
   WHY CHOOSE US  (Light bg section)
   ============================================= */
.why-section {
    padding: 75px 0 30px 0;
    background: var(--bg-light);
}

.why-section .section-title {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.why-section .section-desc {
    max-width: 80%;
    margin: 20px auto 35px auto;
    color: var(--text-light);
    line-height: 1.8;
}

/* =============================================
   FINAL CTA  (Light bg with red button)
   ============================================= */
/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.animate-zoom {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.animate-zoom.is-visible {
    opacity: 1;
    transform: scale(1);
}

.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.final-cta {
    overflow: hidden;
    padding: 90px 0 50px 0;
    background: var(--bg-light);
}

.final-cta h2 {
    font-size: 32px;
    padding-bottom: 20px;
    color: var(--text-dark);
}

.final-cta p {
    max-width: 55em;
    margin: 20px auto 35px auto;
    color: var(--text-light);
    line-height: 1.8;
}

/* =============================================
   CONTACT US  (Dark section)
   ============================================= */
.contact-us {
    padding: 80px 0;
    background: var(--bg-dark);
    color: #fff;
}

.contact-us h2 {
    color: #fff;
}

.contact-us .section-legend {
    color: rgba(255, 255, 255, 0.8);
}

/* =============================================
   PAGE HEADER
   ============================================= */
.page-header-wrap {
    background: linear-gradient(to right, #272727, #1a1a1a);
    padding: 120px 0 60px;
    color: var(--white);
    text-align: center;
    margin-top: 76px;
}

.page-header-wrap h1 {
    color: var(--white);
    font-size: 36px;
    margin: 0;
}

/* =============================================
   PRODUCTS
   ============================================= */
.product-box {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    margin-bottom: 30px;
    text-align: center;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-box img {
    transition: var(--transition);
}

.product-box:hover img {
    transform: scale(1.05);
}

/* =============================================
   FOOTER  (Zerif-Lite style)
   ============================================= */
footer {
    background: #111111;
    color: #888888;
    padding: 50px 0 30px;
    font-size: 14px;
}

.footer-details,
.company-details {
    margin-bottom: 20px;
}

.footer-details p,
.company-details p {
    margin-bottom: 8px;
}

.social-links,
.social {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li,
.social li {
    display: inline-block;
    margin: 0 5px;
}

.social-links a,
.social a {
    color: var(--white);
    background: #333333;
    width: 40px;
    height: 40px;
    display: inline-block;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 16px;
}

.social-links a:hover,
.social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #222222;
    font-size: 13px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
        height: 40vh;
    }

    .intro-section .home-hd {
        font-size: 1.6em;
    }

    .intro-section {
        padding: 50px 15px 40px;
    }

    .features-section,
    .focus,
    .about-us,
    .standards-section,
    .final-cta {
        padding: 50px 15px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .navbar-brand {
        height: auto;
        padding: 10px 15px;
    }

    .navbar-brand img {
        max-height: 45px;
    }

    .page-header-wrap {
        padding: 90px 0 40px;
    }

    .cta-section h3,
    .separator-one h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
}

/* Modern Blue Gradient Theme Styles (Used on all pages) */
.elegant-header {
    background: linear-gradient(135deg, #2680FF 0%, #6f9bd8 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.elegant-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
                       radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.elegant-header .container {
    position: relative;
    z-index: 2;
}

.elegant-title {
    color: #ffffff;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif, 'Kanit', sans-serif;
}

.elegant-divider {
    display: none; /* Hidden to match modern look */
}

.elegant-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Custom Services Page Styles */
.services-main-heading {
    text-align: center;
    margin-bottom: 50px;
}

.styled-heading {
    font-size: 28px;
    color: #333;
    font-weight: 600;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.styled-heading::before,
.styled-heading::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid #2680FF;
    max-width: 150px;
}

.styled-heading span {
    padding: 0 20px;
}

.services-intro-text {
    color: #666;
    font-size: 15px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.service-box-custom {
    background: linear-gradient(135deg, #2680FF 0%, #6f9bd8 100%); /* Primary blue gradient */
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-box-custom:hover {
    transform: translateY(-5px);
}

.service-box-inner {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 15px;
    text-align: center;
}

.service-box-img {
    background: #fff;
    padding: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.service-box-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-box-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    font-family: 'Kanit', sans-serif;
}