/*
Theme Name: MARBLELIFE Corporate
Theme URI: https://marblelife.com/
Author: MARBLELIFE
Description: Clean SiteOrigin-first corporate theme for MARBLELIFE.com. Global header/footer/marketing sections are provided by MARBLELIFE Core.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: marblelife-corporate
*/

:root {
    --ml-content-width: 1180px;
    --ml-wide-width: 1440px;
    --ml-text: #1f2933;
    --ml-muted: #5f6b76;
    --ml-border: #e3e7eb;
    --ml-surface: #ffffff;
    --ml-surface-alt: #f5f7f8;
    --ml-primary: #1f4f72;
    --ml-primary-contrast: #ffffff;
    --ml-radius: 4px;
    --ml-shadow: 0 10px 30px rgba(20, 31, 43, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ml-text);
    background: var(--ml-surface);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ml-primary); }
a:hover, a:focus { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }

.ml-container {
    width: min(calc(100% - 40px), var(--ml-content-width));
    margin-inline: auto;
}

.ml-site-main { min-height: 55vh; }
.ml-content-default { padding: 48px 0 72px; }
.ml-content-default > article { width: min(calc(100% - 40px), var(--ml-content-width)); margin-inline: auto; }

/* SiteOrigin-built pages are responsible for their own row widths and spacing. */
body.ml-has-siteorigin .ml-content-default { padding: 0; }
body.ml-has-siteorigin .ml-content-default > article { width: 100%; max-width: none; }
body.ml-has-siteorigin .entry-content { margin: 0; }

.entry-title { line-height: 1.15; }
.entry-content::after { content: ""; display: table; clear: both; }

.ml-button,
a.ml-button,
button.ml-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--ml-primary);
    border-radius: var(--ml-radius);
    background: var(--ml-primary);
    color: var(--ml-primary-contrast);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

/* Fallback header only appears until a published Global Header exists. */
.ml-fallback-header { border-bottom: 1px solid var(--ml-border); background: var(--ml-surface); }
.ml-fallback-header__inner { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.ml-fallback-header__brand { margin-right: auto; }
.ml-fallback-header__brand .custom-logo { max-height: 58px; width: auto; }
.ml-fallback-header__title { color: var(--ml-text); font-size: 24px; font-weight: 800; text-decoration: none; }
.ml-fallback-header .menu { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.ml-fallback-header .menu a { color: var(--ml-text); text-decoration: none; font-weight: 700; }
.ml-fallback-header__phone { white-space: nowrap; font-weight: 700; text-decoration: none; }

/* Fallback footer only appears until a published Global Footer exists. */
.ml-fallback-footer { border-top: 1px solid var(--ml-border); background: var(--ml-surface-alt); padding: 42px 0; }
.ml-fallback-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }

.ml-global-header, .ml-global-footer, .ml-global-newsletter { position: relative; }

/* Project gallery baseline. The provider adapter will supply the project data. */
.ml-gallery-section { width: 100%; }
.ml-gallery__heading { margin-top: 0; }
.ml-gallery { display: grid; gap: 22px; }
.ml-gallery--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ml-gallery__item { min-width: 0; background: var(--ml-surface); }
.ml-gallery__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ml-gallery__item h3 { margin: 12px 0 4px; font-size: 18px; line-height: 1.3; }
.ml-gallery__item p { margin: 0; color: var(--ml-muted); }
.ml-gallery__item a { color: inherit; text-decoration: none; }
.ml-gallery__view-all { margin-top: 26px; }
.ml-gallery__notice { padding: 12px 16px; border: 1px solid var(--ml-border); background: var(--ml-surface-alt); }

/* Gravity Forms baseline - intentionally light so form-specific styling remains editable. */
.gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.gform_wrapper select,
.gform_wrapper textarea {
    width: 100%;
    border: 1px solid #cbd2d9;
    border-radius: var(--ml-radius);
    background: #fff;
    padding: 10px 12px;
}
.gform_wrapper input[type="submit"],
.gform_wrapper button[type="submit"] {
    min-height: 44px;
    border: 1px solid var(--ml-primary);
    border-radius: var(--ml-radius);
    background: var(--ml-primary);
    color: #fff;
    padding: 10px 22px;
    font-weight: 700;
    cursor: pointer;
}

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
    overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus { clip: auto !important; clip-path: none; display: block; height: auto; left: 5px; top: 5px; width: auto; z-index: 100000; background: #fff; padding: 15px 23px 14px; }

@media (max-width: 980px) {
    .ml-gallery--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ml-fallback-header__inner { flex-wrap: wrap; padding-block: 14px; }
    .ml-fallback-header__brand { flex: 1 1 auto; }
    .ml-fallback-header nav { order: 3; width: 100%; }
}

@media (max-width: 640px) {
    .ml-container { width: min(calc(100% - 28px), var(--ml-content-width)); }
    .ml-gallery--grid { grid-template-columns: 1fr; }
    .ml-fallback-header .menu { flex-direction: column; gap: 8px; }
}
