/*
Theme Name: UM Concrete
Version: 4.0.0
*/
@import url("https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&family=Kanit:wght@400;500;600;700&display=swap");

:root {
    --primary: #1a4a7a;
    --primary-dark: #0d2e4f;
    --primary-light: #2563a8;
    --accent: #e8a020;
    --accent-dark: #c47d0a;
    --surface: #f4f6fa;
    --text: #1a1a2e;
    --text-muted: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #2d7a4f;
    --gray-light: #f7f8fc;
    --shadow: 0 4px 20px rgba(26,74,122,0.10);
    --shadow-md: 0 8px 32px rgba(26,74,122,0.14);
    --radius: 10px;
    --radius-lg: 16px;
  }
  * { margin:0; padding:0; box-sizing:border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Sarabun', sans-serif;
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.7;
  }
  h1,h2,h3,h4,h5 { font-family: 'Kanit', sans-serif; line-height: 1.3; }

  /* ===== NAVBAR ===== */
  .navbar {
    position: sticky; top: 0; z-index: 1000;
    background: var(--primary-dark);
    padding: 0 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  }
  .nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
  }
  .nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--white);
  }
  .nav-logo-icon {
    width: 38px; height: 38px; border-radius: 8px;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 18px; color: var(--white);
  }
  .nav-logo-text { font-family: 'Kanit', sans-serif; font-size: 17px; font-weight: 600; }
  .nav-logo-sub { font-size: 11px; font-weight: 300; opacity: 0.75; }
  .nav-links {
    display: flex; align-items: center; gap: 0;
    list-style: none;
  }
  .nav-links a {
    display: block; padding: 0 14px; height: 64px; line-height: 64px;
    text-decoration: none; color: rgba(255,255,255,0.85);
    font-size: 14px; font-weight: 400; transition: all 0.2s;
    border-bottom: 3px solid transparent;
  }
  .nav-links a:hover { color: var(--white); border-bottom-color: var(--accent); background: rgba(255,255,255,0.06); }
  .nav-links a.active { color: var(--white); border-bottom-color: var(--accent); }
  .nav-cta {
    padding: 8px 18px; background: var(--accent); color: var(--white) !important;
    border-radius: 6px; font-weight: 600 !important; border-bottom: none !important;
    height: auto !important; line-height: 1.5 !important; margin-left: 8px;
    transition: background 0.2s !important;
  }
  .nav-cta:hover { background: var(--accent-dark) !important; }
  .nav-phone-bar {
    background: var(--accent); text-align: center; padding: 6px;
    font-family: 'Kanit', sans-serif; font-size: 14px; color: var(--white);
    display: flex; justify-content: center; align-items: center; gap: 16px;
    flex-wrap: wrap;
  }
  .nav-phone-bar a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; }
  .hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }
  .mobile-menu { display: none; }

  /* ===== HERO ===== */
  .hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1e5f99 100%);
    color: var(--white);
    padding: 80px 1.5rem 60px;
    position: relative; overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute; top: 0; right: -10%; width: 55%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath d='M0 400 L400 0 L400 400Z' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") no-repeat center/cover;
  }
  .hero-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
  .hero-content { flex: 1; min-width: 280px; position: relative; }
  .hero-badge {
    display: inline-block; background: var(--accent); color: var(--white);
    font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 20px; margin-bottom: 16px;
    letter-spacing: 0.5px;
  }
  .hero h1 { font-size: clamp(28px,5vw,48px); font-weight: 700; margin-bottom: 16px; }
  .hero p { font-size: 17px; opacity: 0.88; margin-bottom: 28px; max-width: 520px; }
  .hero-brands {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px;
  }
  .brand-chip {
    padding: 5px 14px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 20px;
    font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.9);
  }
  .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 8px; font-family: 'Kanit', sans-serif;
    font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
    border: none; transition: all 0.2s;
  }
  .btn-primary { background: var(--accent); color: var(--white); }
  .btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
  .btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
  .btn-outline:hover { background: rgba(255,255,255,0.12); }
  .btn-blue { background: var(--primary); color: var(--white); }
  .btn-blue:hover { background: var(--primary-dark); }
  .hero-stats {
    flex: 0 0 260px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    position: relative;
  }
  .stat-card {
    background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius); padding: 18px 14px; text-align: center;
    backdrop-filter: blur(4px);
  }
  .stat-card .num { font-family: 'Kanit', sans-serif; font-size: 30px; font-weight: 700; color: var(--accent); }
  .stat-card .label { font-size: 12px; opacity: 0.8; margin-top: 2px; }

  /* ===== SECTIONS ===== */
  .section { padding: 72px 1.5rem; }
  .section-alt { background: var(--gray-light); }
  .container { max-width: 1200px; margin: 0 auto; }
  .section-header { text-align: center; margin-bottom: 48px; }
  .section-header h2 { font-size: clamp(22px,4vw,34px); color: var(--primary-dark); margin-bottom: 10px; }
  .section-header p { font-size: 16px; color: var(--text-muted); max-width: 580px; margin: 0 auto; }
  .section-label {
    display: inline-block; background: rgba(26,74,122,0.08); color: var(--primary);
    font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
    letter-spacing: 0.5px;
  }

  /* ===== PRODUCT TABLE ===== */
  .product-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
  .product-table {
    width: 100%; border-collapse: collapse;
    background: var(--white); min-width: 640px;
  }
  .product-table thead th {
    background: var(--primary-dark); color: var(--white);
    padding: 14px 16px; text-align: left; font-family: 'Kanit', sans-serif; font-size: 14px; font-weight: 500;
  }
  .product-table thead th:first-child { border-radius: var(--radius) 0 0 0; }
  .product-table thead th:last-child { border-radius: 0 var(--radius) 0 0; }
  .product-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
  .product-table tbody tr:hover { background: rgba(26,74,122,0.04); }
  .product-table td { padding: 14px 16px; font-size: 14px; vertical-align: top; }
  .product-table td:first-child { font-family: 'Kanit', sans-serif; font-weight: 600; color: var(--primary); font-size: 15px; }
  .grade-badge {
    display: inline-block; background: var(--primary); color: var(--white);
    padding: 3px 10px; border-radius: 4px; font-size: 13px; font-weight: 600;
  }
  .price-link {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--accent); color: var(--white); text-decoration: none;
    padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; transition: all 0.2s;
  }
  .price-link:hover { background: var(--accent-dark); }

  /* ===== KNOWLEDGE CARDS ===== */
  .knowledge-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 24px; }
  .knowledge-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 24px; transition: all 0.25s; box-shadow: var(--shadow);
  }
  .knowledge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(26,74,122,0.2); }
  .knowledge-icon {
    width: 48px; height: 48px; border-radius: var(--radius); background: rgba(26,74,122,0.08);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
    font-size: 22px;
  }
  .knowledge-card h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 8px; }
  .knowledge-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
  .knowledge-card .tag { font-size: 11px; color: var(--text-light); }
  .read-more {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--primary); font-size: 13px; font-weight: 600; text-decoration: none; margin-top: 8px;
  }
  .read-more:hover { color: var(--accent-dark); }

  /* ===== WORKS / REVIEWS ===== */
  .works-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 28px; }
  .work-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.25s;
  }
  .work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .work-img {
    width: 100%; height: 200px; object-fit: cover;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); font-size: 48px; position: relative; overflow: hidden;
  }
  .work-img-concrete-1 {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  }
  .work-img-concrete-2 {
    background: linear-gradient(135deg, #1a3a2a 0%, #27ae60 100%);
  }
  .work-img-concrete-3 {
    background: linear-gradient(135deg, #4a2c12 0%, #e67e22 100%);
  }
  .work-img-concrete-4 {
    background: linear-gradient(135deg, #1a1a4a 0%, #8e44ad 100%);
  }
  .work-img-concrete-5 {
    background: linear-gradient(135deg, #1a3050 0%, #1a6eb5 100%);
  }
  .work-img svg { width: 60%; height: 60%; opacity: 0.3; }
  .work-img-label {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white); padding: 28px 16px 12px; font-family: 'Kanit', sans-serif;
    font-size: 15px; font-weight: 600;
  }
  .work-body { padding: 16px; }
  .work-body h4 { font-size: 15px; color: var(--primary-dark); margin-bottom: 6px; }
  .work-body p { font-size: 13px; color: var(--text-muted); }
  .work-grade { font-size: 12px; font-weight: 600; color: var(--primary); margin-top: 8px; }
  .review-box {
    background: var(--gray-light); border-radius: var(--radius); padding: 12px 14px; margin-top: 14px;
    border-left: 3px solid var(--accent);
  }
  .stars { color: #f59e0b; font-size: 14px; margin-bottom: 4px; }
  .reviewer { font-size: 12px; color: var(--text-light); margin-top: 4px; }

  /* ===== REVIEWS GRID ===== */
  .reviews-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; }
  .review-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px 18px; box-shadow: var(--shadow);
  }
  .review-card .stars { font-size: 14px; margin-bottom: 10px; }
  .review-text { font-size: 14px; color: var(--text); margin-bottom: 12px; line-height: 1.6; }
  .reviewer-info { display: flex; align-items: center; gap: 10px; }
  .reviewer-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Kanit', sans-serif; font-size: 14px; font-weight: 600; flex-shrink: 0;
  }
  .reviewer-name { font-size: 13px; font-weight: 600; color: var(--primary-dark); }
  .reviewer-detail { font-size: 11px; color: var(--text-light); }

  /* ===== ABOUT ===== */
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .about-visual {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg); padding: 40px; color: var(--white); text-align: center;
    min-height: 320px; display: flex; flex-direction: column; justify-content: center; gap: 24px;
  }
  .about-visual h3 { font-size: 22px; margin-bottom: 8px; }
  .brand-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
  .brand-item {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px; padding: 8px 16px; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 14px;
  }
  .about-content h2 { font-size: clamp(22px,3vw,32px); color: var(--primary-dark); margin-bottom: 16px; }
  .about-content p { color: var(--text-muted); margin-bottom: 16px; }
  .about-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
  .about-list li {
    display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-muted);
    padding: 10px 14px; background: var(--gray-light); border-radius: 8px;
  }
  .about-list li::before {
    content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px;
  }

  /* ===== PRODUCTS PAGE ===== */
  .products-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 24px; }
  .product-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 24px; box-shadow: var(--shadow); transition: all 0.25s;
  }
  .product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
  .product-card .grade { font-family: 'Kanit', sans-serif; font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
  .product-card .grade-name { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }
  .product-card .use { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
  .product-card .price-btn {
    display: block; text-align: center; background: var(--accent); color: var(--white);
    padding: 10px; border-radius: 6px; text-decoration: none; font-family: 'Kanit', sans-serif;
    font-size: 14px; font-weight: 600; transition: background 0.2s;
  }
  .product-card .price-btn:hover { background: var(--accent-dark); }

  /* ===== CONTACT FORM ===== */
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
  .form-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow);
  }
  .form-group { margin-bottom: 18px; }
  .form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
  .form-group label span { color: #e53e3e; }
  .form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-family: 'Sarabun', sans-serif; font-size: 15px; color: var(--text);
    transition: border-color 0.2s; background: var(--white);
  }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,74,122,0.12);
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .submit-btn {
    width: 100%; padding: 13px; background: var(--primary); color: var(--white);
    border: none; border-radius: 8px; font-family: 'Kanit', sans-serif;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s;
  }
  .submit-btn:hover { background: var(--primary-dark); }
  .contact-info { display: flex; flex-direction: column; gap: 20px; }
  .contact-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px; background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .contact-icon {
    width: 44px; height: 44px; border-radius: 10px; background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
  }
  .contact-item h4 { font-size: 15px; font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; }
  .contact-item a { color: var(--primary); text-decoration: none; font-size: 15px; font-weight: 600; }
  .contact-item a:hover { color: var(--accent-dark); }
  .payment-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 24px; box-shadow: var(--shadow); margin-top: 20px;
  }
  .payment-card h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 14px; }
  .payment-method {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: var(--gray-light); border-radius: 8px; margin-bottom: 10px; font-size: 14px;
  }
  .payment-icon { font-size: 22px; }

  /* ===== SUCCESS MODAL ===== */
  .modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 9999;
    align-items: center; justify-content: center;
  }
  .modal-overlay.show { display: flex; }
  .modal-box {
    background: var(--white); border-radius: var(--radius-lg); padding: 36px 32px;
    max-width: 420px; width: 90%; text-align: center; box-shadow: var(--shadow-md);
  }
  .modal-icon { font-size: 56px; margin-bottom: 16px; }
  .modal-box h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 8px; }
  .modal-box p { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
  .modal-close {
    padding: 10px 28px; background: var(--primary); color: var(--white);
    border: none; border-radius: 8px; font-family: 'Kanit', sans-serif;
    font-size: 15px; font-weight: 600; cursor: pointer;
  }

  /* ===== FOOTER ===== */
  footer {
    background: var(--primary-dark); color: rgba(255,255,255,0.85);
    padding: 48px 1.5rem 24px;
  }
  .footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .footer-brand p { font-size: 14px; opacity: 0.75; margin-top: 12px; line-height: 1.7; }
  .footer-col h4 { font-family: 'Kanit', sans-serif; font-size: 15px; color: var(--white); margin-bottom: 14px; }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .footer-col ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: color 0.2s; }
  .footer-col ul li a:hover { color: var(--accent); }
  .footer-bottom { max-width: 1200px; margin: 20px auto 0; text-align: center; font-size: 13px; opacity: 0.55; }
  .footer-contact a { color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 600; }

  /* ===== LINE FLOAT BUTTON ===== */
  .float-btns {
    position: fixed; bottom: 24px; right: 20px; z-index: 999;
    display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  }
  .float-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 30px; text-decoration: none;
    font-family: 'Kanit', sans-serif; font-size: 14px; font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: all 0.2s;
    color: var(--white);
  }
  .float-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
  .float-line { background: #06c755; }
  .float-phone { background: var(--primary); }
  .float-btn-icon { font-size: 18px; }

  /* ===== PAGE SECTIONS ===== */
  .page-section { display: none; }
  .page-section.active { display: block; }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 900px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { flex: none; width: 100%; grid-template-columns: repeat(4,1fr); }
    .form-row { grid-template-columns: 1fr; }
  }
  @media (max-width: 680px) {
    .hero { padding: 52px 1.2rem 40px; }
    .section { padding: 52px 1.2rem; }
    .navbar { padding: 0 1rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-menu.open { display: block; background: var(--primary-dark); padding: 12px 0; }
    .mobile-menu a { display: block; padding: 12px 20px; color: rgba(255,255,255,0.85); text-decoration: none; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .mobile-menu a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
    .hero-stats { grid-template-columns: repeat(2,1fr); flex: none; width: 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .float-btns {
  		bottom: 0; right: 0; left: 0;
 		 flex-direction: row; gap: 0;
  		align-items: stretch;
	}
	.float-btn {
 	 flex: 1; justify-content: center;
 	 padding: 16px 10px; border-radius: 0;
 	 font-size: 16px; min-height: 56px;
	}
	.float-btn span { display: inline; }
	.float-btn-icon { font-size: 22px; }
	.float-line { border-right: 1px solid rgba(255,255,255,0.2); }
  }

/* ===== Float/CTA Colors ===== */
.float-line { background: #dc2626 !important; }
.float-phone { background: #06c755 !important; }
a[href*="line.me"] { color: #06c755; }
