/*
 Theme Name:     Qii Lightning Child
 Theme URI:      https://qqii.space
 Description:    ธีมลูกจาก Lightning สำหรับโปรเจกต์ Qii
 Author:         Q
 Author URI:     https://qqii.space
 Template:       lightning
 Version:        1.0.0
*/

/* ======================================================
   🎨 Qii Custom Theme Colors
   ====================================================== */
   :root {
    --qii-color-primary:        #2a4ff7;
    --qii-color-secondary:      #5de2e6;
    --qii-color-accent-warm:    #fd4c34;
    --qii-color-accent-cool:    #ca3ee1;
  
    --qii-color-text:           #333333;
    --qii-color-text-subtle:    #666666;
    --qii-color-bg-light:       #f5f5f5;
    --qii-color-bg-white:       #ffffff;
  
    --qii-color-link:           var(--qii-color-primary);
    --qii-color-link-hover:     var(--qii-color-accent-cool);
    --qii-color-border:         #e0e0e0;
    --qii-radius-base:          8px;
    --qii-shadow-light:         0 2px 8px rgba(0,0,0,0.05);
  }
  
  /* ======================================================
     🔄 Override VK Theme Colors (Lightning)
     ====================================================== */
  :root {
    --vk-color-primary:         var(--qii-color-primary);
    --vk-color-primary-dark:    #1e3bc2;
    --vk-color-primary-light:   #8baeff;
    --vk-color-primary-vivid:   var(--qii-color-secondary);
    --vk-color-accent:          var(--qii-color-accent-warm);
    --vk-color-sub:             var(--qii-color-accent-cool);
  }
  /* ======================================================
     🔄 Backgrounds
     ====================================================== */

  :root {
    /* Backgrounds - พื้นฐาน */
    --qii-bg-white:        #ffffff;   /* พื้นหลัก */
    --qii-bg-light:        #f5f5f5;   /* สีอ่อนสำหรับ section */
  
    /* Backgrounds - คุมโทน Qii */
    --qii-bg-pale-blue:    #f0f4ff;   /* ฟ้าจาง (ใกล้ Qii Blue) */
    --qii-bg-mint-tint:    #e0f7f5;   /* เขียวมิ้นต์อ่อน เย็นตา */
    --qii-bg-accent-light: #e6faff;   /* turquoise จาง ใช้เน้นนิดๆ */
  
    /* Backgrounds - เข้ม (Dark Mode หรือ Footer) */
    --qii-bg-dark-1:       #1e293b;   /* navy เรียบ สุภาพ */
    --qii-bg-dark-2:       #192a56;   /* midnight เข้ม หรู พรีเมียม */
  } 

  /* แก้ปัญหา nav menu color */
  html:root {
    --vk-color-primary:         var(--qii-color-primary);
    --vk-color-primary-dark:    var(--qii-color-primary-dark);
    --vk-color-primary-vivid:   var(--qii-color-secondary);
  }


  /* ========== Fonts & Base ========== */
  body {
    font-family: 'Noto Sans Thai Looped', 'Noto Sans Thai', 'Bai Jamjuree', sans-serif;
  }
  
  .emoji img {
    height: auto;
    max-height: 2em;
  }
  
  /* IMPORT GOOGLE FONTS */
  @import url('https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;600&family=Noto+Sans+Thai:wght@400;600&family=Noto+Sans+Thai+Looped:wght@400;600&display=swap');
  
  /* Font Stack */
  :root {
    --font-heading: 'Bai Jamjuree', 'Prompt', sans-serif;
    --font-body: 'Noto Sans Thai Looped', sans-serif;
    --font-ui: 'Noto Sans Thai', sans-serif;
  }
  
  /* Typography */
  html {
    font-size: 100%;
    scroll-behavior: smooth;
  }
  
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.4;
  }
  
  body, p, ul, ol, li, blockquote {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.8;
  }
  
  button, input, select, textarea, label, nav, .menu, .site-header, a.menu-link {
    font-family: var(--font-ui);
    font-weight: 400;
    letter-spacing: 0.02em;
  }
  
  .highlight-box {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1em;
    line-height: 1.6;
  }
  
  .elementor-widget-text-editor,
  .elementor-widget-text-editor p,
  .elementor-widget-text-editor span,
  .elementor-widget-text-editor li,
  .elementor-widget-text-editor ul,
  .elementor-widget-text-editor ol {
    font-family: var(--font-body) !important;
  }
  
  .qii-highlight-box .elementor-widget-text-editor {
    font-family: var(--font-heading);
    font-weight: 600;
  }
  
  /* ========== Layout & Components ========== */
  
  /* ลบเส้นบน h2 */
  .entry-title--post-type--page,
  h2:where(:not(.wp-block-post-title)) {
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 0 !important;
    padding-bottom: 0.5em;
  }
  
  /* Slide style (desktop) */
  .ltg-slide-text-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.4em;
    margin-bottom: 0.5rem;
  }
  
  .ltg-slide-text-caption {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6em;
    margin-bottom: 1.5rem;
  }
  
  .btn.btn-ghost {
    font-size: 18px;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    display: inline-block;
    text-align: center;
    line-height: 1.2em;
  }
  
  .btn.btn-ghost span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #ccc;
    margin-top: 2px;
  }
  
  /* Responsive (mobile) */
  @media (max-width: 576px) {
    .ltg-slide-text-title {
      font-size: 22px !important;
      line-height: 1.3em;
      margin-bottom: 0.25rem;
    }
  
    .ltg-slide-text-caption {
      font-size: 14px !important;
      line-height: 1.4em;
      margin-bottom: 0.75rem;
    }
  
    .btn.btn-ghost {
      font-size: 16px !important;
      padding: 0.6rem 1rem;
    }
  
    .btn.btn-ghost span {
      font-size: 11px !important;
      color: #ffb6da;
      margin-top: 0.1rem;
    }
  
    .mini-content-container-1 {
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }
  }
  
  /* ========== WPForms Customization ========== */
  
  .wpforms-form .wpforms-field-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
  }
  
  .wpforms-form input[type="text"],
  .wpforms-form input[type="email"],
  .wpforms-form input[type="tel"],
  .wpforms-form select,
  .wpforms-form textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 30px;
  }
  
  #wpforms-submit-1939.wpforms-submit.btn-qii-submit {
    margin: 20px 0 0 0 !important;
    padding: 16px 24px !important;
    text-align: center;
    display: inline-block;
    font-size: 1.125em;
    max-width: 300px;
    width: 100%;
    border-radius: 25px;
    background-color: #2A4FF7;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(52, 117, 111, 0.2);
    transition: all 0.3s ease;
  }
  
  .elementor-kit-1145 .wpforms-submit.btn-qii-submit:hover {
    background-color: #5de2e6;
    box-shadow: 0 6px 14px rgba(40, 94, 89, 0.3);
    cursor: pointer;
  }
  
  .elementor-kit-1145 .wpforms-submit.btn-qii-submit:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(52, 117, 111, 0.3);
  }
  
  @media (max-width: 480px) {
    .elementor-kit-1145 button.btn-qii-submit {
      width: auto;
      max-width: 100%;
      padding: 16px 20px !important;
      font-size: 1em;
      margin: 20px 0 0 0 !important;
      border-radius: 20px;
    }
  }
  
  .wpforms-field-description {
    margin-bottom: 20px !important;
  }
  
  /* LINE icon in label */
  .wpforms-field.wpforms-field-text.line-label label::before {
    content: "";
    display: inline-block;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/4/41/LINE_logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: text-bottom;
  }


/*-----------End of CSS---------*/  