/*
Theme Name: CM Starter Theme
Theme URI: https://cmwebsite.com
Author: CM WebSite
Author URI: https://cmwebsite.com
Description: Lightweight WordPress starter theme for Elementor with local Noto Sans Thai, Classic Editor, performance cleanup and maintenance mode.
Version: 1.5
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: cm-starter-theme
*/

html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: 'Noto Sans Thai', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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


/* CM Starter Utility Classes */
.cm-container {
    width: min(1280px, 92%);
    margin-inline: auto;
}

.cm-section {
    padding: clamp(56px, 7vw, 110px) 0;
}

.cm-radius {
    border-radius: 24px;
}

.cm-shadow {
    box-shadow: 0 18px 50px rgba(15, 23, 42, .10);
}

.cm-title {
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.cm-lead {
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.8;
    color: #64748b;
}

.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.cm-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
}

.cm-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

@media (max-width: 767px) {
    .cm-grid-2,
    .cm-grid-3 {
        grid-template-columns: 1fr;
    }
}
