/*
Theme Name: Custom Builder Theme
Theme URI: https://yoursite.com
Author: Custom Builder
Author URI: https://yoursite.com
Description: A clean blank WordPress theme with a custom drag-and-drop page builder.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-builder-theme
Tags: custom, builder, drag-drop, blank
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* =============================================
   LAYOUT
   ============================================= */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

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

/* =============================================
   BUILDER RENDERED OUTPUT
   ============================================= */
.cb-builder-output {
    width: 100%;
}

/* Section */
.cb-section {
    width: 100%;
    padding: 60px 20px;
    position: relative;
}

/* Column Container */
.cb-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    align-items: flex-start;
}

.cb-column {
    flex: 1;
    min-width: 0;
}

/* Heading Element */
.cb-heading {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 16px;
}

.cb-heading h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.cb-heading h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
.cb-heading h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
.cb-heading h4 { font-size: 1.4rem; }
.cb-heading h5 { font-size: 1.2rem; }
.cb-heading h6 { font-size: 1rem; }

/* Text Element */
.cb-text {
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

/* Image Element */
.cb-image {
    width: 100%;
    margin-bottom: 16px;
}

.cb-image img {
    width: 100%;
    border-radius: 4px;
}

/* Button Element */
.cb-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    text-decoration: none;
    margin-bottom: 16px;
}

.cb-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Alignment helpers */
.cb-align-left   { text-align: left; }
.cb-align-center { text-align: center; }
.cb-align-right  { text-align: right; }

/* Responsive */
@media (max-width: 768px) {
    .cb-columns {
        flex-direction: column;
    }
    .cb-section {
        padding: 40px 16px;
    }
}

/* =============================================
   DEFAULT HEADER / FOOTER (blank)
   ============================================= */
.site-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.site-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}
