/* --- /base.css --- */
/* site/web/css/base.css */

/* Modern Base Styles */
:root {
    --brand-blue: #6798AD;
    --brand-blue-dark: #558296;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-light: #f5f5f7;
    --border-light: rgba(0,0,0,0.05);
    --shadow-subtle: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.08);
    --radius-large: 24px;
    --radius-medium: 12px;
    --radius-small: 8px;
    --container-width: 1200px;
    --header-height: 72px;
}

@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-color: #fff;
}

.main-container {
    max-width: var(--container-width);
    margin: 0 auto 100px;
    padding: 0 40px;
    box-sizing: border-box;
    width: 100%;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: none;
}

.alignwide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 60px;
}

@media (max-width: 1400px) {
    .alignwide {
        width: calc(100% - 80px);
        padding: 0;
    }
}

@media (max-width: 1024px) {
    .main-container {
        margin: 0 auto 80px;
        padding: 0 32px;
    }
    
    .alignwide {
        width: calc(100% - 64px);
    }
}

@media (max-width: 768px) {
    .main-container {
        margin: 0 auto 60px;
        padding: 0 24px;
    }
    
    .alignwide {
        width: calc(100% - 48px);
    }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.6em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 2.5rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 1.1vw, 1.125rem);
}

/* Typography and WordPress Editor Support */
strong, b { font-weight: 600; }
em, i { font-style: italic; }

/* Standard WordPress text alignments */
.has-text-align-left { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.has-text-align-justify { text-align: justify; }

/* Typography and Font Sizes */
.has-small-font-size { font-size: 0.85rem; }
.has-medium-font-size { font-size: 1rem; }
.has-large-font-size { font-size: 1.5rem; }
.has-x-large-font-size { font-size: 2.5rem; }
.has-xx-large-font-size { font-size: 3.5rem; }

/* Standard WordPress Colors */
.has-primary-color { color: var(--brand-blue) !important; }
.has-primary-background-color { background-color: var(--brand-blue) !important; }
.has-black-color { color: #000 !important; }
.has-white-color { color: #fff !important; }
.has-white-background-color { background-color: #fff !important; }
.has-black-background-color { background-color: #000 !important; }

/* Core WordPress Layout Blocks */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

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

.is-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 32px;
}

.is-layout-grid.wp-block-columns,
.wp-block-columns.is-layout-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    align-items: stretch;
}

.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.wp-block-column > * {
    width: 100%;
}

.is-layout-grid > * {
    min-width: 0;
}

@media (max-width: 800px) {
    .wp-block-columns,
    .is-layout-flex {
        gap: 20px;
    }

    .wp-block-columns:not(.is-not-stacked-on-mobile) {
        flex-direction: column;
    }

    .is-layout-grid.wp-block-columns,
    .wp-block-columns.is-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

body.no-scroll {
    overflow: hidden;
}

@media (max-width: 600px) {
    .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* Button Component and WordPress Block Styles */
.button-component, 
.wp-block-button__link {
    display: inline-block;
    padding: 14px 28px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 980px; /* Apple-style rounded pill buttons */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin: 10px 5px;
    border: none;
    box-sizing: border-box;
    text-align: center;
}

/* Primary Style */
.button-component.primary-style,
.wp-block-button__link {
    background-color: var(--brand-blue);
    color: #fff !important;
}

.button-component.primary-style:hover,
.wp-block-button__link:hover {
    background-color: var(--brand-blue-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(103, 152, 173, 0.4);
}

/* Outline Style */
.button-component.outline-style,
.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--brand-blue) !important;
    border: 1.5px solid var(--brand-blue) !important;
}

.button-component.outline-style:hover,
.is-style-outline .wp-block-button__link:hover {
    background-color: var(--brand-blue) !important;
    color: #fff !important;
    transform: scale(1.02);
}

/* Gravity Forms Modern Styling */
.gform_wrapper {
    margin: 60px 0;
    padding: 40px;
    border: none;
    border-radius: var(--radius-large);
    background: var(--bg-light);
    box-shadow: var(--shadow-subtle);
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-medium);
    font-size: 16px;
    margin-bottom: 15px;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.gform_wrapper input:focus {
    outline: none;
    border-color: var(--brand-blue);
}

.gform_button {
    background: var(--brand-blue);
    color: #fff;
    padding: 14px 32px;
    border-radius: 980px;
    border: none;
    font-weight: 500;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s;
}

.gform_button:hover {
    background: var(--brand-blue-dark);
    transform: scale(1.02);
}

.submission-response { margin: 40px 0; padding: 25px; border-radius: var(--radius-medium); }
.success-message { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.error-message { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* Image Block Styles */
.wp-block-image {
    margin: 60px 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
}

.wp-block-image figcaption {
    margin-top: 15px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Floating Alignments */
.wp-block-image.alignleft { float: left; margin-right: 40px; max-width: 50%; }
.wp-block-image.alignright { float: right; margin-left: 40px; max-width: 50%; }
.wp-block-image.aligncenter { text-align: center; }
.wp-block-image.aligncenter img { margin: 0 auto; }

/* Breakout Layouts */
.alignfull {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0 !important;
}

.alignwide {
    width: 1200px;
    max-width: 100vw;
    margin-left: calc(50% - min(600px, 50vw));
    margin-right: calc(50% - min(600px, 50vw));
}

/* Clearfix */
body::after {
    content: "";
    display: table;
    clear: both;
}


/* --- /parts/post-slug/home.css --- */
body.post-slug-home {
    background-color: #f9f9f9;
}


