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

/* Modern Base Styles */
:root {
    --brand-blue: #3c8dc7;
    --brand-blue-dark: #2d7ab3;
    --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: 1920px;
    --wide-width: 1920px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

/* ─── Block Typography Overrides ───────────────────────────────── */

.has-custom-typography p,
.has-custom-typography span:not(.ct-form-required):not(.ct-form-field-label):not(.ct-form-counter),
.has-custom-typography li,
.has-custom-typography a:not([class]),
.has-custom-typography label,
.has-custom-typography td {
    color: var(--block-text-color, inherit);
    font-size: var(--block-text-size, inherit);
    font-weight: var(--block-text-weight, inherit);
}

.has-custom-typography h1,
.has-custom-typography h2,
.has-custom-typography h3,
.has-custom-typography h4,
.has-custom-typography h5,
.has-custom-typography h6 {
    color: var(--block-heading-color, inherit);
    font-size: var(--block-heading-size, inherit);
    font-weight: var(--block-heading-weight, inherit);
}

body {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    background-color: #fff;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

html {
    overflow-x: hidden;
}

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

[class^="wp-block-headless-"]:not(.header-component),
.footer-component {
    max-width: var(--container-width, 1920px);
    margin-left: auto;
    margin-right: auto;
}

/* Section background gradient wrapper */
.section-bg-wrapper {
    position: relative;
}

.section-bg-wrapper::before {
    content: '';
    position: absolute;
    top: calc(var(--section-bg-offset-top, 0) * -1);
    bottom: calc(var(--section-bg-offset-bottom, 0) * -1);
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    background: var(--section-bg-color, transparent);
    mask-image: linear-gradient(to bottom, transparent 0%, black var(--section-bg-fade-top, 12%), black calc(100% - var(--section-bg-fade-bottom, 12%)), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black var(--section-bg-fade-top, 12%), black calc(100% - var(--section-bg-fade-bottom, 12%)), transparent 100%);
    pointer-events: none;
    z-index: -1;
}

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

.alignwide {
    width: 100%;
    max-width: var(--wide-width);
    margin: 0 auto 60px;
}

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

@media (max-width: 1024px) {
    .main-container {
        margin: 0 auto 0;
        padding: 0 5px;
    }

    .alignwide {
        width: calc(100% - 10px);
    }
}

@media (max-width: 1100px) {
    :root {
        --header-height: 72px; /* Ensure fixed mobile header height is reflected */
    }
    .main-container {
        margin-bottom: 0;
        padding: 0 5px;
    }

    .alignwide {
        width: calc(100% - 10px);
    }
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0;
    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);
    max-width: 640px;
}

/* Form wrapper alignment */
.headless-form-wrapper .gform_wrapper {
    max-width: var(--form-max-width, 640px);
    margin-left: 0;
    margin-right: auto;
}
.headless-form-wrapper--center .gform_wrapper { margin-left: auto; margin-right: auto; }
.headless-form-wrapper--right .gform_wrapper { margin-left: auto; margin-right: 0; }

.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; }

/* ─── Form Wrapper Preset: Contact Hero ────────────────────────── */

.headless-form-wrapper--preset-contact-hero {
    max-width: 480px;
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper {
    max-width: 100%;
    background: #ffffff;
    border-radius: 32px;
    padding: 60px 40px;
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper .gform_body {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper .gfield {
    margin-bottom: 0;
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper .gfield_label {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: rgba(22, 30, 35, 0.85);
    margin-bottom: 10px;
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper .gfield_required {
    color: #ff5f5f;
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper .ginput_complex {
    display: flex;
    gap: 34px;
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper .ginput_complex > span {
    flex: 1;
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper input[type="text"],
.headless-form-wrapper--preset-contact-hero .gform_wrapper input[type="email"],
.headless-form-wrapper--preset-contact-hero .gform_wrapper input[type="tel"],
.headless-form-wrapper--preset-contact-hero .gform_wrapper textarea,
.headless-form-wrapper--preset-contact-hero .gform_wrapper select {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 6px 8px;
    height: 35px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #161e23;
    margin-bottom: 6px;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper input:focus,
.headless-form-wrapper--preset-contact-hero .gform_wrapper textarea:focus {
    outline: none;
    border-color: rgba(103, 152, 173, 0.6);
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper .gfield_description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: rgba(22, 30, 35, 0.75);
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper .ginput_counter {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(22, 30, 35, 0.5);
}

.headless-form-wrapper--preset-contact-hero .gform_wrapper .gform_footer,
.headless-form-wrapper--preset-contact-hero .gform_wrapper .gform_page_footer {
    padding: 0;
    margin: 0;
}

.headless-form-wrapper--preset-contact-hero .gform_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fa700d;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 99px;
    padding: 12px 24px;
    cursor: pointer;
    width: fit-content;
    box-shadow:
        0 1px 2px rgba(250, 112, 13, 0.3),
        0 4px 12px rgba(250, 112, 13, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.headless-form-wrapper--preset-contact-hero .gform_button:hover {
    background: #fa700d;
    transform: translateY(-1px);
    box-shadow:
        0 2px 4px rgba(250, 112, 13, 0.35),
        0 6px 16px rgba(250, 112, 13, 0.25);
}

.headless-form-wrapper--preset-contact-hero .gform_button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .headless-form-wrapper--preset-contact-hero .gform_wrapper {
        padding: 40px 24px;
    }

    .headless-form-wrapper--preset-contact-hero .gform_wrapper .gform_body {
        gap: 32px;
    }

    .headless-form-wrapper--preset-contact-hero .gform_wrapper .ginput_complex {
        flex-direction: column;
        gap: 16px;
    }
}

/* 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: var(--wide-width);
    max-width: 100vw;
    margin-left: calc(50% - min(calc(var(--wide-width) / 2), 50vw));
    margin-right: calc(50% - min(calc(var(--wide-width) / 2), 50vw));
}

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


