/*
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.7.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: #b32025;
    --ml-primary-dark: #84191d;
    --ml-ink: #17191c;
    --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; }
}


/* === MARBLELIFE global framework v0.2 === */
.ml-shell { width: min(calc(100% - 40px), var(--ml-wide-width)); margin-inline: auto; }
.ml-section-heading { margin: 0 0 28px; text-align: center; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.ml-admin-note { padding: 10px 14px; border: 1px dashed var(--ml-border); background: #fff; }

/* Global header widget */
.ml-site-header { position: relative; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--ml-border); }
.ml-site-header--sticky { position: sticky; top: 0; }
.admin-bar .ml-site-header--sticky { top: 32px; }
.ml-header-utility { background: var(--ml-ink); color: #fff; font-size: 13px; }
.ml-header-utility__inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ml-header-utility a { color: #fff; text-decoration: none; }
.ml-header-utility .menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.ml-header-utility__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.ml-header-phone { display: inline-flex; align-items: baseline; gap: 7px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.25); }
.ml-header-phone span { opacity: .75; }
.ml-header-phone a { font-size: 15px; font-weight: 800; }
.ml-header-main { background: #fff; }
.ml-header-main__inner { min-height: 86px; display: flex; align-items: center; gap: 30px; }
.ml-header-brand { flex: 0 0 auto; }
.ml-header-brand .custom-logo { display: block; width: auto; max-height: 62px; }
.ml-header-brand__text { color: var(--ml-ink); font-size: 24px; font-weight: 900; text-decoration: none; }
.ml-primary-nav { flex: 1 1 auto; }
.ml-primary-nav .menu { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 1.8vw, 28px); list-style: none; margin: 0; padding: 0; }
.ml-primary-nav li { position: relative; }
.ml-primary-nav a { display: block; padding: 30px 0; color: var(--ml-ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.ml-primary-nav > .menu > li.menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.ml-primary-nav .sub-menu { position: absolute; top: 100%; left: -18px; min-width: 230px; margin: 0; padding: 10px 0; list-style: none; background: #fff; border: 1px solid var(--ml-border); box-shadow: var(--ml-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s ease; }
.ml-primary-nav li:hover > .sub-menu, .ml-primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ml-primary-nav .sub-menu a { padding: 9px 18px; font-weight: 700; }
.ml-primary-nav .sub-menu .sub-menu { top: -10px; left: 100%; }
.ml-header-main__cta { flex: 0 0 auto; white-space: nowrap; }
.ml-nav-toggle { display: none; width: 46px; height: 42px; border: 1px solid var(--ml-border); background: #fff; border-radius: var(--ml-radius); padding: 9px; }
.ml-nav-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: var(--ml-ink); }

/* Global footer widget */
.ml-site-footer { background: var(--ml-ink); color: rgba(255,255,255,.78); }
.ml-site-footer a { color: #fff; text-decoration: none; }
.ml-site-footer__grid { display: grid; grid-template-columns: minmax(240px,1.45fr) repeat(4,minmax(140px,1fr)); gap: 40px; padding-block: 64px 50px; }
.ml-footer-brand .custom-logo { max-height: 56px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.ml-footer-brand p { max-width: 350px; margin: 0 0 16px; }
.ml-footer-phone { font-size: 20px; font-weight: 800; }
.ml-footer-column h2 { margin: 0 0 15px; color: #fff; font-size: 16px; }
.ml-footer-column .menu { margin: 0; padding: 0; list-style: none; }
.ml-footer-column .menu li { margin: 0 0 8px; }
.ml-footer-column .menu a { color: rgba(255,255,255,.76); }
.ml-footer-column .menu a:hover, .ml-footer-column .menu a:focus { color: #fff; }
.ml-site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px; }

/* Newsletter */
.ml-newsletter { background: var(--ml-primary); color: #fff; padding: 42px 0; }
.ml-newsletter__inner { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(420px,1.2fr); gap: 50px; align-items: center; }
.ml-newsletter h2 { margin: 0 0 8px; color: #fff; font-size: clamp(25px,3vw,36px); line-height: 1.15; }
.ml-newsletter p { margin: 0; }
.ml-newsletter__form .gform_wrapper { margin: 0; }
.ml-newsletter__form .gform_fields { align-items: end; }
.ml-newsletter__form .gform_footer { margin-block: 10px 0; padding: 0; }
.ml-newsletter__form .gform_wrapper input[type="submit"] { background: var(--ml-ink); border-color: var(--ml-ink); }
.ml-newsletter__note { margin-top: 8px !important; font-size: 12px; opacity: .78; }

/* Consultation CTA */
.ml-consultation { padding: 58px 0; background: var(--ml-surface-alt); }
.ml-consultation__inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.ml-consultation__inner:has(.ml-consultation__form) { grid-template-columns: minmax(260px,.78fr) minmax(420px,1.22fr); }
.ml-consultation h2 { margin: 0 0 12px; font-size: clamp(30px,4vw,45px); line-height: 1.1; }
.ml-consultation__copy > p { max-width: 700px; color: var(--ml-muted); }
.ml-consultation__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.ml-consultation__phone { color: var(--ml-ink); font-size: 21px; font-weight: 900; text-decoration: none; }
.ml-consultation__form { background: #fff; padding: 30px; box-shadow: var(--ml-shadow); }

/* Trust / credentials */
.ml-trust { padding: 70px 0; background: #fff; }
.ml-trust__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.ml-trust-card { position: relative; min-height: 220px; padding: 28px 24px; background: var(--ml-surface-alt); border-top: 3px solid var(--ml-primary); }
.ml-trust-card__number { color: var(--ml-primary); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.ml-trust-card h3 { margin: 28px 0 8px; font-size: 21px; line-height: 1.2; }
.ml-trust-card p { margin: 0; color: var(--ml-muted); }

/* National network */
.ml-network { padding: 70px 0; background: var(--ml-ink); color: #fff; }
.ml-network__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; }
.ml-network h2 { margin: 0 0 14px; color: #fff; font-size: clamp(32px,4vw,48px); line-height: 1.08; }
.ml-network__copy p { max-width: 700px; color: rgba(255,255,255,.76); }
.ml-network__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ml-network__stats > div { padding: 28px 20px; border: 1px solid rgba(255,255,255,.18); text-align: center; }
.ml-network__stats strong { display: block; font-size: clamp(36px,5vw,58px); line-height: 1; }
.ml-network__stats span { display: block; margin-top: 9px; color: rgba(255,255,255,.7); }

@media (max-width: 1120px) {
    .ml-header-utility__menu { display: none; }
    .ml-header-main__cta { display: none; }
    .ml-primary-nav .menu { gap: 15px; }
    .ml-site-footer__grid { grid-template-columns: 1.4fr repeat(2,1fr); }
}

@media (max-width: 900px) {
    .admin-bar .ml-site-header--sticky { top: 46px; }
    .ml-header-utility__inner { justify-content: flex-end; }
    .ml-header-utility__actions > a:not(:first-of-type) { display: none; }
    .ml-header-main__inner { min-height: 76px; }
    .ml-nav-toggle { display: block; margin-left: auto; }
    .ml-primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--ml-border); box-shadow: var(--ml-shadow); max-height: calc(100vh - 100px); overflow: auto; }
    .ml-primary-nav.is-open { display: block; }
    .ml-primary-nav .menu { display: block; padding: 10px 20px 22px; }
    .ml-primary-nav a { padding: 10px 4px; }
    .ml-primary-nav .sub-menu { position: static; min-width: 0; padding: 0 0 0 18px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .ml-primary-nav .sub-menu a { padding: 7px 4px; font-size: 13px; }
    .ml-newsletter__inner, .ml-consultation__inner:has(.ml-consultation__form), .ml-network__inner { grid-template-columns: 1fr; }
    .ml-trust__grid { grid-template-columns: repeat(2,1fr); }
    .ml-site-footer__grid { grid-template-columns: repeat(2,1fr); }
    .ml-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .ml-shell { width: min(calc(100% - 28px), var(--ml-wide-width)); }
    .ml-header-phone span { display: none; }
    .ml-header-utility__actions { gap: 10px; }
    .ml-header-utility__actions > a { font-size: 12px; }
    .ml-header-brand .custom-logo { max-height: 48px; max-width: 220px; }
    .ml-trust__grid, .ml-site-footer__grid, .ml-network__stats { grid-template-columns: 1fr; }
    .ml-footer-brand { grid-column: auto; }
    .ml-newsletter { padding: 34px 0; }
}

/* === MARBLELIFE homepage/component framework v0.3 === */
.ml-eyebrow {
    margin: 0 0 12px;
    color: var(--ml-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.ml-section-intro {
    max-width: 820px;
    margin: -10px auto 34px;
    color: var(--ml-muted);
    text-align: center;
    font-size: 18px;
}
.ml-section-action { margin: 34px 0 0; text-align: center; }
.ml-text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ml-primary); font-weight: 800; text-decoration: none; }
.ml-button--secondary { border-color: currentColor; background: transparent; color: inherit; }

/* Hero */
.ml-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(520px, 66vw, 760px);
    display: flex;
    align-items: center;
    background-color: var(--ml-ink);
    background-position: center;
    background-size: cover;
    overflow: hidden;
}
.ml-hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,17,20,.9) 0%, rgba(15,17,20,.7) 48%, rgba(15,17,20,.28) 100%); }
.ml-hero--light { background-color: var(--ml-surface-alt); color: var(--ml-ink); }
.ml-hero--light .ml-hero__overlay { background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.72), rgba(255,255,255,.3)); }
.ml-hero__inner { width: 100%; padding-block: clamp(80px, 10vw, 150px); }
.ml-hero__content { max-width: 790px; color: #fff; }
.ml-hero--light .ml-hero__content { color: var(--ml-ink); }
.ml-hero h1 { margin: 0 0 20px; color: inherit; font-size: clamp(45px, 6.4vw, 86px); line-height: .98; letter-spacing: -.035em; }
.ml-hero__text { max-width: 690px; margin: 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; opacity: .9; }
.ml-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ml-hero--dark .ml-eyebrow { color: #fff; opacity: .72; }
.ml-hero--dark .ml-button--secondary { color: #fff; border-color: rgba(255,255,255,.7); }

/* Features */
.ml-feature-section { padding: 78px 0; background: #fff; }
.ml-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.ml-feature-card { min-height: 250px; padding: 30px 26px; border-top: 4px solid var(--ml-primary); background: var(--ml-surface-alt); }
.ml-feature-card__number { color: var(--ml-primary); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.ml-feature-card h3 { margin: 36px 0 10px; font-size: 23px; line-height: 1.18; }
.ml-feature-card p { margin: 0; color: var(--ml-muted); }

/* Service cards */
.ml-services { padding: 82px 0; background: var(--ml-surface-alt); }
.ml-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.ml-service-card { display: flex; flex-direction: column; min-height: 230px; overflow: hidden; background: #fff; border: 1px solid var(--ml-border); box-shadow: 0 8px 22px rgba(20,31,43,.04); }
.ml-service-card__image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ml-service-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 24px; }
.ml-service-card h3 { margin: 0 0 9px; font-size: 21px; line-height: 1.2; }
.ml-service-card p { margin: 0 0 20px; color: var(--ml-muted); }
.ml-service-card .ml-text-link { margin-top: auto; }

/* Image + content */
.ml-split { padding: 82px 0; }
.ml-split--light { background: var(--ml-surface-alt); }
.ml-split--white { background: #fff; }
.ml-split--dark { background: var(--ml-ink); color: #fff; }
.ml-split--dark .ml-eyebrow { color: #fff; opacity: .7; }
.ml-split__inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(40px,6vw,90px); align-items: center; }
.ml-split--image-left .ml-split__media { order: -1; }
.ml-split__copy h2 { margin: 0 0 18px; font-size: clamp(34px,4.4vw,58px); line-height: 1.05; }
.ml-split__copy > p:not(.ml-eyebrow) { margin: 0 0 26px; color: var(--ml-muted); font-size: 18px; }
.ml-split--dark .ml-split__copy > p:not(.ml-eyebrow) { color: rgba(255,255,255,.75); }
.ml-split__media img, .ml-media-placeholder { display: block; width: 100%; min-height: 390px; object-fit: cover; }
.ml-media-placeholder { background: linear-gradient(135deg,#eceff1 0%,#d8dde2 100%); }

/* Gallery on component pages */
.ml-gallery-section { width: min(calc(100% - 40px), var(--ml-wide-width)); margin-inline: auto; padding-block: 82px; }
.ml-gallery__heading { margin: 0 0 34px; text-align: center; font-size: clamp(32px,4vw,48px); line-height: 1.1; }

/* Testimonials */
.ml-testimonials { padding: 82px 0; background: #fff; }
.ml-testimonial-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.ml-testimonial { margin: 0; padding: 30px; border: 1px solid var(--ml-border); background: var(--ml-surface-alt); }
.ml-testimonial blockquote { margin: 0 0 20px; font-size: 18px; line-height: 1.65; }
.ml-testimonial figcaption { color: var(--ml-primary); font-weight: 800; }

/* Resources / expert tips */
.ml-resources { padding: 82px 0; background: var(--ml-surface-alt); }
.ml-resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.ml-resource-card { overflow: hidden; background: #fff; border: 1px solid var(--ml-border); }
.ml-resource-card__image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ml-resource-card__body { padding: 24px; }
.ml-resource-card__meta { margin: 0 0 8px !important; color: var(--ml-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.ml-resource-card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; }
.ml-resource-card h3 a { color: var(--ml-ink); text-decoration: none; }
.ml-resource-card__body > p:not(.ml-resource-card__meta) { color: var(--ml-muted); }

@media (max-width: 1080px) {
    .ml-service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .ml-feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
    .ml-hero { min-height: 560px; }
    .ml-hero__overlay { background: rgba(15,17,20,.75); }
    .ml-hero--light .ml-hero__overlay { background: rgba(255,255,255,.88); }
    .ml-split__inner { grid-template-columns: 1fr; }
    .ml-split__media, .ml-split--image-left .ml-split__media { order: -1; }
    .ml-service-grid, .ml-testimonial-grid, .ml-resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 580px) {
    .ml-feature-grid, .ml-service-grid, .ml-testimonial-grid, .ml-resource-grid { grid-template-columns: 1fr; }
    .ml-hero h1 { font-size: clamp(42px,13vw,62px); }
    .ml-hero__actions .ml-button { width: 100%; }
    .ml-split__media img, .ml-media-placeholder { min-height: 280px; }
}


/* === MARBLELIFE corporate visual refinement v0.4 === */
.ml-header-main__inner { min-height: 104px; }
.ml-header-brand .custom-logo { max-height: 72px; max-width: 245px; }
.ml-header-utility { letter-spacing: .01em; }
.ml-header-utility__actions a { opacity: .88; transition: opacity .15s ease; }
.ml-header-utility__actions a:hover { opacity: 1; }
.ml-primary-nav .menu { gap: clamp(12px,1.35vw,22px); }
.ml-primary-nav a { font-size: 13px; letter-spacing: .012em; }
.ml-primary-nav > .menu > li > .sub-menu:has(> li:nth-child(7)) {
    width: 590px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px;
}
.ml-primary-nav > .menu > li > .sub-menu:has(> li:nth-child(7)) { display: grid; }
.ml-primary-nav .sub-menu a:hover, .ml-primary-nav .sub-menu a:focus { background: var(--ml-surface-alt); color: var(--ml-primary); }
.ml-header-main__cta { box-shadow: 0 6px 16px rgba(179,32,37,.18); }

.ml-hero { min-height: clamp(560px,62vw,760px); }
.ml-hero__overlay { background: linear-gradient(90deg, rgba(10,14,20,.92) 0%, rgba(10,14,20,.76) 43%, rgba(10,14,20,.32) 72%, rgba(10,14,20,.12) 100%); }
.ml-hero__content { max-width: 720px; }
.ml-hero h1 { text-shadow: 0 3px 22px rgba(0,0,0,.18); }

.ml-service-card { transition: transform .18s ease, box-shadow .18s ease; }
.ml-service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(20,31,43,.1); }
.ml-service-card__image { overflow: hidden; background: #e7eaed; }
.ml-service-card__image img { transition: transform .3s ease; }
.ml-service-card:hover .ml-service-card__image img { transform: scale(1.025); }

.ml-split__media { overflow: hidden; box-shadow: 0 18px 42px rgba(20,31,43,.1); }
.ml-split__media img { aspect-ratio: 4 / 3; min-height: 0; }

.ml-gallery-filters {
    display: grid; grid-template-columns: repeat(5,minmax(130px,1fr)) auto auto; gap: 12px; align-items: end;
    margin: 0 auto 34px; padding: 18px; border: 1px solid var(--ml-border); background: var(--ml-surface-alt);
}
.ml-gallery-filters label span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 800; color: var(--ml-muted); }
.ml-gallery-filters input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #cbd2d9; background: #fff; }
.ml-gallery-filters__reset { align-self: center; padding: 10px 4px; white-space: nowrap; font-weight: 700; }
.ml-gallery__item { overflow: hidden; border: 1px solid var(--ml-border); box-shadow: 0 8px 24px rgba(20,31,43,.05); }
.ml-gallery__item h3, .ml-gallery__item p { margin-inline: 18px; }
.ml-gallery__item h3 { margin-top: 16px; }
.ml-gallery__item p { margin-bottom: 18px; }
.ml-gallery__view-all { text-align: center; }

.ml-network { overflow: hidden; padding: 82px 0 54px; }
.ml-network__inner { grid-template-columns: minmax(0,.9fr) minmax(460px,1.1fr); }
.ml-network .ml-eyebrow { color: #fff; opacity: .65; }
.ml-network__visual { min-width: 0; }
.ml-network__image { display: block; width: min(100%,650px); margin: 22px auto -24px; filter: drop-shadow(0 20px 20px rgba(0,0,0,.24)); }
.ml-network__stats > div { background: rgba(255,255,255,.035); }

.ml-consultation { padding: 80px 0; background: #eef1f3; }
.ml-consultation__inner:has(.ml-consultation__form) { gap: clamp(38px,6vw,88px); }
.ml-consultation__copy { position: sticky; top: 140px; align-self: start; }
.ml-consultation__copy::before { content: "FREE CONSULTATION"; display: block; margin-bottom: 12px; color: var(--ml-primary); font-size: 12px; font-weight: 900; letter-spacing: .15em; }
.ml-consultation__form { border-top: 5px solid var(--ml-primary); padding: clamp(24px,3vw,40px); }
.ml-consultation__form .gform_wrapper { margin: 0; }
.ml-consultation__form .gform_footer { margin-bottom: 0; }
.ml-consultation__phone { display: inline-flex; align-items: center; min-height: 44px; }

.gform_wrapper .gfield_label { font-weight: 800; }
.gform_wrapper .gform_required_legend { font-size: 12px; color: var(--ml-muted); }
.gform_wrapper .gfield_description { font-size: 13px; }
.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_footer button[type="submit"] { min-width: 150px; }

.ml-newsletter { padding: 48px 0; }
.ml-newsletter__inner { grid-template-columns: minmax(320px,.9fr) minmax(520px,1.1fr); }
.ml-newsletter__form .gform_wrapper .gform_fields { row-gap: 10px; }
.ml-newsletter__form .gfield_label { color: #fff; }
.ml-newsletter__form .gform_required_legend { color: rgba(255,255,255,.75); }
.ml-newsletter__form input:not([type="submit"]) { min-height: 48px; border: 0 !important; }
.ml-newsletter__form .gform_footer input[type="submit"], .ml-newsletter__form .gform_footer button[type="submit"] { min-height: 48px; background: var(--ml-ink); border-color: var(--ml-ink); }

.ml-site-footer__grid { padding-top: 70px; }
.ml-footer-brand .custom-logo { max-width: 245px; max-height: 68px; }
.ml-site-footer__bottom .ml-shell { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 1260px) {
    .ml-header-main__inner { gap: 18px; }
    .ml-header-brand .custom-logo { max-width: 190px; }
    .ml-primary-nav .menu { gap: 12px; }
    .ml-primary-nav a { font-size: 12px; }
    .ml-gallery-filters { grid-template-columns: repeat(3,minmax(140px,1fr)); }
}
@media (max-width: 900px) {
    .ml-header-main__inner { min-height: 82px; }
    .ml-header-brand .custom-logo { max-width: 220px; max-height: 58px; }
    .ml-primary-nav > .menu > li > .sub-menu:has(> li:nth-child(7)) { width: auto; display: block; }
    .ml-network__inner { grid-template-columns: 1fr; }
    .ml-consultation__copy { position: static; }
    .ml-gallery-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ml-newsletter__inner { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
    .ml-gallery-filters { grid-template-columns: 1fr; }
    .ml-network__image { margin-bottom: -8px; }
    .ml-consultation { padding: 56px 0; }
    .ml-consultation__form { padding: 22px 18px; }
}

/* === MARBLELIFE corporate three-slide hero v0.4.1 === */
.ml-hero-slider { background-image: none !important; }
.ml-hero-slider__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ml-hero-slider__slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity .7s ease, transform 5.8s ease;
}
.ml-hero-slider__slide.is-active { opacity: 1; transform: scale(1); }
.ml-hero-slider__controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    pointer-events: none;
}
.ml-hero-slider__control {
    pointer-events: auto;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 50%;
    background: rgba(10,14,20,.48);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.ml-hero-slider__control:hover,
.ml-hero-slider__control:focus-visible,
.ml-hero-slider__control.is-active {
    background: var(--ml-primary);
    border-color: var(--ml-primary);
    transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
    .ml-hero-slider__slide { transition: none; transform: none; }
}
@media (max-width: 620px) {
    .ml-hero-slider__controls { bottom: 16px; }
    .ml-hero-slider__control { width: 34px; height: 34px; }
}

/* === Structured corporate hero v0.4.2 ===
 * The production MARBLELIFE hero uses two distinct visual layers per slide:
 * 1) a full-width background image and 2) a smaller comparison panel.
 * Header-One/Two/Three are comparison-panel assets, not slide backgrounds.
 */
.ml-hero-structured {
    position: relative;
    display: block;
    min-height: clamp(430px, 29vw, 560px);
    background: #d9d4cc;
    color: var(--ml-ink);
    overflow: hidden;
}
.ml-hero-structured__slides {
    position: relative;
    min-height: inherit;
}
.ml-hero-structured__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    min-height: inherit;
    background-color: #d9d4cc;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.008);
    transition: opacity .55s ease, visibility .55s ease, transform 5.8s ease;
}
.ml-hero-structured__slide:first-child { position: relative; }
.ml-hero-structured__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}
.ml-hero-structured__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.48) 0%, rgba(255,255,255,.30) 40%, rgba(255,255,255,.05) 67%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.ml-hero-structured.ml-hero--dark .ml-hero-structured__overlay {
    background: linear-gradient(90deg, rgba(10,14,20,.77) 0%, rgba(10,14,20,.58) 42%, rgba(10,14,20,.13) 75%, rgba(10,14,20,0) 100%);
}
.ml-hero-structured__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(500px, 1.06fr);
    align-items: center;
    gap: clamp(42px, 5vw, 86px);
    padding-block: clamp(48px, 5vw, 72px);
}
.ml-hero-structured .ml-hero__content {
    max-width: 720px;
    color: var(--ml-ink);
}
.ml-hero-structured.ml-hero--dark .ml-hero__content { color: #fff; }
.ml-hero-structured .ml-eyebrow {
    margin: 0 0 14px;
    color: currentColor;
    opacity: .72;
}
.ml-hero-structured h1 {
    max-width: 760px;
    margin: 0 0 24px;
    color: inherit;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(42px, 4.2vw, 72px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.025em;
    text-shadow: none;
}
.ml-hero-structured .ml-hero__text {
    max-width: 720px;
    color: inherit;
    font-size: clamp(18px, 1.35vw, 23px);
    line-height: 1.5;
    opacity: .94;
}
.ml-hero-structured .ml-hero__actions { margin-top: 26px; }
.ml-hero-structured .ml-hero__actions .ml-button {
    min-height: 56px;
    padding-inline: 34px;
    border-color: #4565ed;
    border-radius: 5px;
    background: #4565ed;
    color: #fff;
    font-size: 18px;
}
.ml-hero-structured .ml-hero__actions .ml-button:hover,
.ml-hero-structured .ml-hero__actions .ml-button:focus-visible { background: #3654d7; border-color: #3654d7; }
.ml-hero-structured .ml-hero__actions .ml-button--secondary {
    background: rgba(255,255,255,.82);
    border-color: rgba(23,25,28,.55);
    color: var(--ml-ink);
}
.ml-hero-structured.ml-hero--dark .ml-hero__actions .ml-button--secondary {
    background: rgba(10,14,20,.32);
    border-color: rgba(255,255,255,.72);
    color: #fff;
}
.ml-hero-structured__media {
    min-width: 0;
    width: 100%;
    justify-self: end;
}
.ml-hero-structured__comparison {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,.92);
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.ml-hero-structured__comparison--composite img {
    display: block;
    width: 100%;
    aspect-ratio: 2.12 / 1;
    object-fit: cover;
}
.ml-hero-structured__comparison--split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
}
.ml-hero-structured__comparison--split figure {
    position: relative;
    margin: 0;
    min-width: 0;
    overflow: hidden;
}
.ml-hero-structured__comparison--split figure + figure { border-left: 1px solid rgba(255,255,255,.82); }
.ml-hero-structured__comparison--split img {
    display: block;
    width: 100%;
    aspect-ratio: 1.06 / 1;
    object-fit: cover;
}
.ml-hero-structured__badge {
    position: absolute;
    z-index: 2;
    top: 20px;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
}
.ml-hero-structured__badge--before { left: 20px; background: #090909; }
.ml-hero-structured__badge--after { right: 20px; background: #ff8a13; }
.ml-hero-structured__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 52px;
    height: 76px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: rgba(10,14,20,.14);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 62px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease;
}
.ml-hero-structured__arrow:hover,
.ml-hero-structured__arrow:focus-visible { background: rgba(10,14,20,.34); }
.ml-hero-structured__arrow--prev { left: 0; }
.ml-hero-structured__arrow--next { right: 0; }
.ml-hero-structured .ml-hero-slider__controls {
    z-index: 6;
    bottom: 14px;
}
.ml-hero-structured .ml-hero-slider__control {
    width: 30px;
    height: 30px;
    border-color: rgba(255,255,255,.85);
    background: rgba(10,14,20,.38);
    font-size: 12px;
}
.ml-hero-structured .ml-hero-slider__control.is-active { background: #4565ed; border-color: #4565ed; }

@media (max-width: 1180px) {
    .ml-hero-structured__inner { grid-template-columns: minmax(0,.88fr) minmax(430px,1.12fr); gap: 34px; }
    .ml-hero-structured h1 { font-size: clamp(40px,4.8vw,62px); }
}
@media (max-width: 900px) {
    .ml-hero-structured { min-height: 0; }
    .ml-hero-structured__slide { position: absolute; min-height: 0; background-position: center center !important; }
    .ml-hero-structured__slide:first-child { position: relative; }
    .ml-hero-structured__overlay { background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.55) 54%, rgba(255,255,255,.18) 100%); }
    .ml-hero-structured.ml-hero--dark .ml-hero-structured__overlay { background: rgba(10,14,20,.62); }
    .ml-hero-structured__inner { grid-template-columns: 1fr; gap: 32px; padding-block: 50px 70px; }
    .ml-hero-structured .ml-hero__content { max-width: 680px; }
    .ml-hero-structured__media { width: min(100%,760px); justify-self: start; }
    .ml-hero-structured__arrow { top: auto; bottom: 18px; width: 42px; height: 48px; transform: none; font-size: 48px; }
    .ml-hero-structured__arrow--prev { left: 14px; }
    .ml-hero-structured__arrow--next { right: 14px; }
}
@media (max-width: 620px) {
    .ml-hero-structured__inner { width: min(calc(100% - 30px), var(--ml-wide-width)); padding-block: 38px 76px; }
    .ml-hero-structured h1 { font-size: clamp(38px,12vw,52px); }
    .ml-hero-structured .ml-hero__text { font-size: 17px; }
    .ml-hero-structured .ml-hero__actions .ml-button { width: 100%; min-height: 50px; font-size: 16px; }
    .ml-hero-structured__comparison { border-width: 2px; border-radius: 10px; }
    .ml-hero-structured__comparison--split { grid-template-columns: 1fr; }
    .ml-hero-structured__comparison--split figure + figure { border-left: 0; border-top: 1px solid rgba(255,255,255,.82); }
    .ml-hero-structured__comparison--split img { aspect-ratio: 16 / 9; }
    .ml-hero-structured__badge { top: 12px; padding: 8px 12px; font-size: 12px; }
    .ml-hero-structured__badge--before { left: 12px; }
    .ml-hero-structured__badge--after { right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .ml-hero-structured__slide { transition: none; transform: none; }
}


/* === MARBLELIFE global refinement v0.5 === */
/* Corporate header: the imported logo should read as a brand mark, not an icon. */
.ml-header-main__inner { min-height: 96px; gap: clamp(24px,2.3vw,42px); }
.ml-header-brand .custom-logo-link { display: flex; align-items: center; }
.ml-header-brand .custom-logo { width: clamp(155px,14vw,225px); max-width: 225px; max-height: none; height: auto; }
.ml-primary-nav a { font-size: 14px; }

/* Verified corporate homepage hero proportions. */
.ml-hero-structured { min-height: clamp(390px,31vw,545px); }
.ml-hero-structured__slide { background-size: cover; background-repeat: no-repeat; }
.ml-hero-structured__overlay { background: linear-gradient(90deg, rgba(248,244,236,.82) 0%, rgba(248,244,236,.66) 43%, rgba(248,244,236,.18) 72%, rgba(248,244,236,.04) 100%); }
.ml-hero-structured__inner { grid-template-columns: minmax(0,.9fr) minmax(460px,1.1fr); gap: clamp(36px,5vw,78px); padding-block: clamp(34px,4vw,58px); }
.ml-hero-structured .ml-hero__content { max-width: 690px; }
.ml-hero-structured h1 { font-size: clamp(42px,4.25vw,70px); line-height: 1.02; }
.ml-hero-structured .ml-hero__text { max-width: 650px; font-size: clamp(17px,1.35vw,22px); }
.ml-hero-structured__comparison { border-width: 3px; border-radius: 18px; box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.ml-hero-structured__comparison--composite img { aspect-ratio: 2.05 / 1; }
.ml-hero-structured .ml-hero-slider__controls { bottom: 10px; }

/* Network: present both metrics and the current corporate visual as one designed block. */
.ml-network { overflow: hidden; padding: 74px 0 60px; }
.ml-network__inner { grid-template-columns: minmax(0,.9fr) minmax(480px,1.1fr); gap: clamp(45px,6vw,90px); }
.ml-network__visual { position: relative; min-width: 0; }
.ml-network__stats { position: relative; z-index: 2; }
.ml-network__image { display: block; width: min(100%,760px); max-height: 300px; margin: 28px auto -22px; object-fit: contain; object-position: center bottom; }
.ml-network .ml-button { margin-top: 18px; }

/* Consultation: make the conversion copy visible even when the Global Section was seeded empty. */
.ml-consultation__copy h2 { max-width: 620px; }
.ml-consultation__copy > p { max-width: 590px; font-size: 17px; }
.ml-consultation__form { border-radius: 2px; }
.ml-consultation__form .gform_fields { column-gap: 16px; row-gap: 12px; }
.ml-consultation__form input:not([type="submit"]),
.ml-consultation__form select,
.ml-consultation__form textarea { background: #fff; border-color: #d8dde2 !important; }

/* Newsletter: compact, horizontal-first form presentation while retaining GF width classes. */
.ml-newsletter__copy { max-width: 620px; }
.ml-newsletter__form .gform_fields { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 10px; row-gap: 10px; }
.ml-newsletter__form .gfield { grid-column: span 1; }
.ml-newsletter__form .gfield--width-full,
.ml-newsletter__form .gfield.gfield--type-email:only-child { grid-column: 1 / -1; }
.ml-newsletter__form .gform_footer { display: flex; justify-content: flex-start; }

/* Footer legal treatment mirrors the corporate site's trademark/project disclaimer structure. */
.ml-site-footer__bottom { padding: 24px 0 28px; }
.ml-site-footer__legal { display: block; }
.ml-site-footer__legal p { max-width: 1180px; margin: 0 0 8px; color: rgba(255,255,255,.66); font-size: 12px; line-height: 1.55; }
.ml-site-footer__legal p:last-child { margin-bottom: 0; }

@media (max-width: 1100px) {
    .ml-hero-structured__inner { grid-template-columns: minmax(0,.9fr) minmax(400px,1.1fr); gap: 30px; }
    .ml-network__inner { grid-template-columns: 1fr; }
    .ml-network__image { margin-bottom: -10px; }
}
@media (max-width: 900px) {
    .ml-header-main__inner { min-height: 82px; }
    .ml-header-brand .custom-logo { width: clamp(145px,28vw,205px); }
    .ml-hero-structured__inner { grid-template-columns: 1fr; padding-block: 44px 70px; }
    .ml-hero-structured__overlay { background: linear-gradient(180deg, rgba(248,244,236,.88), rgba(248,244,236,.62) 54%, rgba(248,244,236,.2)); }
    .ml-newsletter__form .gform_fields { grid-template-columns: 1fr; }
    .ml-newsletter__form .gfield { grid-column: 1; }
}
@media (max-width: 620px) {
    .ml-header-brand .custom-logo { width: 150px; }
    .ml-hero-structured { min-height: 0; }
    .ml-network__stats { grid-template-columns: 1fr 1fr; }
}

/* === MARBLELIFE Tampa-reference component refinements v0.6 === */
/* Service grid translated from the Tampa Page Builder export: 3-column vertical cards,
 * natural image ratio, padded content, shadow, and a full-width action bar. */
.ml-services--tampa { padding: 50px 0; background: #f4f7fe; }
.ml-services--tampa .ml-section-heading { margin-bottom: 10px; }
.ml-services--tampa .ml-section-intro { max-width: 980px; margin: 0 auto 34px; text-align: center; }
.ml-service-grid { grid-template-columns: repeat(var(--ml-service-columns,3), minmax(0,1fr)); gap: 18px; align-items: stretch; }
.ml-services--tampa .ml-service-card {
    min-height: 100%;
    border: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
}
.ml-services--tampa .ml-service-card__image { background: #eef1f4; }
.ml-services--tampa .ml-service-card__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}
.ml-services--tampa .ml-service-card__body { padding: 18px 18px 20px; }
.ml-services--tampa .ml-service-card h3 { margin-bottom: 10px; font-size: 22px; }
.ml-services--tampa .ml-service-card p { margin: 0; font-size: 15px; line-height: 1.55; }
.ml-service-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 10px 14px;
    background: #4461e9;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}
.ml-service-card__button:hover,
.ml-service-card__button:focus { background: #3654d7; color: #fff; }

/* Hero: comparison media sits inside the slide rather than touching its outside edges. */
.ml-hero-structured__inner {
    grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
    gap: clamp(36px,4.5vw,74px);
}
.ml-hero-structured__media {
    width: min(100%, 760px);
    padding: clamp(8px,1vw,16px);
    justify-self: end;
}
.ml-hero-structured__comparison {
    width: calc(100% - clamp(10px,1.6vw,28px));
    margin-inline: auto;
    border: 3px solid rgba(255,255,255,.94);
    border-radius: 16px;
}
.ml-hero-structured__comparison--composite img { height: auto; aspect-ratio: auto; object-fit: contain; }

/* Tampa-reference Global Header: top row + blue secondary menu + light primary menu. */
.ml-global-header { position: relative; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--ml-border); }
.ml-reference-header__top .panel-grid-cell { display: flex; align-items: center; }
.ml-site-logo-widget { width: 100%; }
.ml-site-logo-widget .custom-logo-link { display: inline-flex; align-items: center; }
.ml-site-logo-widget .custom-logo { width: min(100%, 270px); max-height: 76px; object-fit: contain; }
.ml-header-actions-widget { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; width: 100%; }
.ml-header-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 700; }
.ml-header-action--primary { background: #ff8810; color: #fff; }
.ml-header-action--secondary { border: 1px solid #b7b7b7; background: #fff; color: #111; }
.ml-header-contact-widget { display: flex; justify-content: flex-end; align-items: center; gap: 14px; width: 100%; }
.ml-header-socials { display: flex; gap: 6px; }
.ml-header-socials a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 4px; background: #363d5a; color: #fff; text-decoration: none; font-weight: 800; }
.ml-header-consult { display: flex; flex-direction: column; line-height: 1.15; }
.ml-header-consult span { font-size: 12px; font-weight: 700; color: #5f6b76; }
.ml-header-consult a { color: #111; font-size: 18px; font-weight: 800; text-decoration: none; }
.ml-menu-location ul { list-style: none; margin: 0; padding: 0; }
.ml-menu-location--blue > ul,
.ml-menu-location--light > ul { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0; }
.ml-menu-location--blue a,
.ml-menu-location--light a { display: block; padding: 12px 18px; text-decoration: none; font-weight: 700; }
.ml-menu-location--blue a { color: #fff; }
.ml-menu-location--light a { color: #1f2933; }
.ml-menu-location--blue .sub-menu,
.ml-menu-location--light .sub-menu { position: absolute; z-index: 30; min-width: 230px; display: none; background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.ml-menu-location--blue li,
.ml-menu-location--light li { position: relative; }
.ml-menu-location--blue li:hover > .sub-menu,
.ml-menu-location--blue li:focus-within > .sub-menu,
.ml-menu-location--light li:hover > .sub-menu,
.ml-menu-location--light li:focus-within > .sub-menu { display: block; }
.ml-menu-location--blue .sub-menu a,
.ml-menu-location--light .sub-menu a { color: #1f2933; padding: 10px 14px; }
.ml-menu-location__empty { margin: 0; padding: 10px 18px; font-size: 12px; opacity: .75; }

/* Tampa-reference Footer: light four-column area, legal copy, black bottom bar. */
.ml-reference-footer__main,
.ml-reference-footer__legal-copy { color: #111; }
.ml-footer-brand-widget .custom-logo { width: min(100%,200px); height: auto; margin-bottom: 12px; }
.ml-footer-brand-widget p { max-width: 320px; font-size: 12px; line-height: 1.45; }
.ml-footer-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.ml-footer-socials a { color: #363d5a; font-weight: 700; text-decoration: none; }
.ml-menu-location--footer h2 { margin: 0 0 12px; font-size: 17px; color: #111; }
.ml-menu-location--footer li { margin-bottom: 7px; }
.ml-menu-location--footer a { color: #111; text-decoration: none; }
.ml-legal-text--trademark p { margin: 0; font-size: 10px; line-height: 1.4; text-align: center; }
.ml-reference-footer__bottom .panel-grid-cell { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.ml-menu-location--legal > ul { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.ml-menu-location--legal a,
.ml-legal-text--copyright p { color: #fff; text-decoration: none; font-size: 12px; }
.ml-legal-text--copyright p { margin: 0; }

@media (max-width: 1050px) {
    .ml-service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ml-reference-header__top .panel-grid-cell { display: block; }
    .ml-header-contact-widget { justify-content: center; }
    .ml-site-logo-widget { text-align: center; }
}
@media (max-width: 780px) {
    .ml-service-grid { grid-template-columns: 1fr; }
    .ml-menu-location--blue > ul,
    .ml-menu-location--light > ul { flex-direction: column; align-items: stretch; }
    .ml-menu-location--blue .sub-menu,
    .ml-menu-location--light .sub-menu { position: static; display: block; box-shadow: none; padding-left: 14px; }
    .ml-header-actions-widget { flex-direction: column; }
    .ml-header-action { width: 100%; }
    .ml-header-contact-widget { flex-direction: column; }
    .ml-reference-footer__main .panel-grid-cell { margin-bottom: 22px; }
    .ml-hero-structured__media { width: 100%; padding-inline: 12px; }
    .ml-hero-structured__comparison { width: 100%; }
}
@media (min-width: 781px) {
    .ml-menu-location__toggle { display: none; }
}
@media (max-width: 780px) {
    .ml-menu-location--light .ml-menu-location__nav { display: none; }
    .ml-menu-location--light .ml-menu-location__nav.is-open { display: block; }
    .ml-menu-location__toggle { margin: 8px auto; }
}


/* === MARBLELIFE corporate/Tampa hybrid header + exact card proportions v0.7 === */
.ml-reference-header__top { background:#fff; }
.ml-reference-header__top .panel-grid-cell { min-width:0; }
.ml-header-brand-widget { display:flex; align-items:center; gap:24px; width:100%; }
.ml-header-brand-widget__identity { flex:0 1 290px; padding-right:20px; border-right:1px solid #dfe3ea; }
.ml-header-brand-widget__tagline { display:flex; flex-direction:column; align-items:center; margin-top:5px; color:#283044; font-size:12px; font-weight:600; line-height:1.2; }
.ml-header-brand-widget__credentials { display:flex; align-items:center; gap:10px; flex:1 1 auto; }
.ml-header-brand-widget__credentials img { display:block; max-height:56px; max-width:120px; width:auto; object-fit:contain; }
.ml-site-logo-widget .custom-logo { width:min(100%,285px); max-height:74px; object-fit:contain; }
.ml-header-actions-widget { position:relative; display:grid; grid-template-columns:repeat(2,minmax(145px,1fr)); gap:10px 14px; align-items:stretch; }
.ml-header-search-wrap { display:contents; }
.ml-header-action { min-height:50px; padding:10px 14px; border-radius:5px; gap:7px; font-size:15px; line-height:1.1; }
.ml-header-action__icon { font-size:19px; line-height:1; }
.ml-header-action--search { border:0; background:#162a95; color:#fff; cursor:pointer; }
.ml-header-action--estimate { background:#ff8810; color:#fff; }
.ml-header-action--careers { border:1px solid #aeb5c2; background:#fff; color:#202532; }
.ml-header-action--franchise { border:1px solid #2d3038; background:#2d3038; color:#fff; }
.ml-header-search-form { position:absolute; z-index:140; left:0; right:0; top:calc(100% + 8px); display:none; gap:7px; padding:10px; background:#fff; box-shadow:0 10px 25px rgba(0,0,0,.16); border:1px solid #dfe3ea; }
.ml-header-search-form.is-open { display:flex; }
.ml-header-search-form input { flex:1 1 auto; min-width:0; }
.ml-header-search-form button { border:0; background:#162a95; color:#fff; padding:8px 14px; }
.ml-header-contact-widget { justify-content:flex-start; gap:15px; }
.ml-header-phone-icon { flex:0 0 58px; width:58px; height:58px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#4461e9; color:#fff; text-decoration:none; font-size:25px; }
.ml-header-consult span { color:#343b50; font-size:14px; font-weight:800; }
.ml-header-consult a { color:#172033; font-size:25px; font-weight:900; letter-spacing:.01em; }
.ml-reference-header__secondary .ml-menu-location__nav > ul,
.ml-reference-header__primary .ml-menu-location__nav > ul { display:flex; align-items:center; justify-content:center; list-style:none; margin:0; padding:0; }
.ml-reference-header__secondary .ml-menu-location__nav > ul > li > a,
.ml-reference-header__primary .ml-menu-location__nav > ul > li > a { display:block; padding:13px 22px; font-weight:800; text-decoration:none; }
.ml-reference-header__secondary .ml-menu-location__nav > ul > li > a { color:#fff; }
.ml-reference-header__primary .ml-menu-location__nav > ul > li > a { color:#202532; }
.ml-reference-header__secondary .ml-menu-location__nav > ul > li > .sub-menu,
.ml-reference-header__primary .ml-menu-location__nav > ul > li > .sub-menu { left:50%; transform:translateX(-50%); width:min(1180px,calc(100vw - 36px)); padding:22px; display:none; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 24px; }
.ml-reference-header__secondary .ml-menu-location__nav > ul > li:hover > .sub-menu,
.ml-reference-header__secondary .ml-menu-location__nav > ul > li:focus-within > .sub-menu,
.ml-reference-header__primary .ml-menu-location__nav > ul > li:hover > .sub-menu,
.ml-reference-header__primary .ml-menu-location__nav > ul > li:focus-within > .sub-menu { display:grid; }
.ml-reference-header__secondary .sub-menu > li,
.ml-reference-header__primary .sub-menu > li { break-inside:avoid; }
.ml-reference-header__secondary .sub-menu .sub-menu,
.ml-reference-header__primary .sub-menu .sub-menu { position:static; display:block; min-width:0; padding:2px 0 8px 13px; box-shadow:none; background:transparent; transform:none; }
.ml-reference-header__secondary .sub-menu > li > a,
.ml-reference-header__primary .sub-menu > li > a { font-weight:800; }
.ml-reference-header__secondary .sub-menu .sub-menu a,
.ml-reference-header__primary .sub-menu .sub-menu a { font-size:13px; font-weight:500; padding:4px 7px; }

.ml-services--tampa .ml-service-grid { gap:28px 32px; }
.ml-services--tampa .ml-service-card { height:100%; overflow:hidden; box-shadow:0 5px 15px rgba(0,0,0,.16); }
.ml-services--tampa .ml-service-card__image { width:100%; background:#f0f2f6; }
.ml-services--tampa .ml-service-card__image img { display:block; width:100%; height:auto; object-fit:contain; }
.ml-services--tampa .ml-service-card__body { padding:20px 20px 24px; min-height:215px; }
.ml-services--tampa .ml-service-card h3 { font-family:Georgia,'Times New Roman',serif; font-size:25px; line-height:1.15; letter-spacing:.01em; color:#252525; }
.ml-services--tampa .ml-service-card p { font-size:17px; line-height:1.65; color:#282828; }
.ml-services--tampa .ml-service-card__button { min-height:56px; font-size:17px; font-weight:500; }

@media (max-width:1180px){
  .ml-header-brand-widget { gap:12px; }
  .ml-header-brand-widget__credentials img { max-width:88px; max-height:46px; }
  .ml-header-actions-widget { grid-template-columns:1fr 1fr; }
  .ml-header-action { font-size:13px; }
  .ml-header-consult a { font-size:20px; }
}
@media (max-width:900px){
  .ml-header-brand-widget { justify-content:center; flex-wrap:wrap; }
  .ml-header-brand-widget__identity { border-right:0; padding-right:0; }
  .ml-header-brand-widget__credentials { justify-content:center; }
  .ml-header-actions-widget { display:grid; grid-template-columns:1fr 1fr; max-width:520px; margin:15px auto; }
  .ml-header-contact-widget { justify-content:center; margin-top:10px; }
  .ml-reference-header__secondary .ml-menu-location__nav > ul,
  .ml-reference-header__primary .ml-menu-location__nav > ul { flex-direction:column; align-items:stretch; }
  .ml-reference-header__secondary .ml-menu-location__nav > ul > li > .sub-menu,
  .ml-reference-header__primary .ml-menu-location__nav > ul > li > .sub-menu { position:static; transform:none; width:auto; display:block; grid-template-columns:1fr; box-shadow:none; padding:8px 18px; }
}
@media (max-width:560px){
  .ml-header-actions-widget { grid-template-columns:1fr; }
  .ml-header-phone-icon { width:48px; height:48px; flex-basis:48px; }
  .ml-header-consult a { font-size:18px; }
  .ml-services--tampa .ml-service-card__body { min-height:0; }
}
