/* Reversible editorial trial. All rules are scoped to the opt-in page/header classes. */
.design-trial-shell { width: min(1240px, calc(100% - 5rem)); padding-bottom: 6rem; }
.design-trial-shell > nav[aria-label="Breadcrumb"] { margin-bottom: 2.5rem; color: #aaa; font-size: .72rem; letter-spacing: .025em; }
.design-trial-shell > nav[aria-label="Breadcrumb"] a { text-decoration: none; }
.trial-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding: 0 0 4rem; }
.trial-hero-copy { padding: 2rem 0; }
body .trial-hero h1 { font-size: clamp(2.3rem, 4.5vw, 4.3rem); line-height: 1.12; letter-spacing: -.025em; color: #f4f0e8 !important; margin: 0 0 2rem; max-width: 15ch; }
.trial-hero h1::before { content: ''; display: block; width: 52px; height: 2px; background: var(--madola-gold); margin-bottom: 1.8rem; }
.trial-lead h2 { font-family: var(--madola-body-font) !important; font-size: .68rem; letter-spacing: .11em; line-height: 1.8; margin: 0 0 1rem; }
body .trial-lead p { margin: 0; font-size: clamp(1.025rem, 1.3vw, 1.12rem); font-weight: 500; line-height: 1.85; color: #e8e4dc !important; max-width: 48ch; }
.trial-hero-media { min-width: 0; position: relative; padding: 0 0 1rem 1rem; }
.trial-hero-media::before { content: ''; position: absolute; inset: 1.5rem 1.5rem 0 0; border: 1px solid #514528; pointer-events: none; }
.trial-hero-media > img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4/4.5; object-fit: cover; }
.trial-hero-media > .video-frame { aspect-ratio: 4/4.5; }
body .trial-hero-media .content-video { object-fit: cover; }
.trial-introduction { max-width: 850px; padding: 0 0 3.5rem; margin: 0 auto; }
body .trial-introduction p { color: #e8e4dc !important; font-size: 1.05rem; font-weight: 500; line-height: 1.85; }
.trial-contents { border-top: 1px solid #393326; border-bottom: 1px solid #393326; margin-bottom: 2rem; }
.trial-contents > summary { padding: 1.1rem 0; font-size: .9rem; font-weight: 600; letter-spacing: .025em; cursor: pointer; }
.trial-contents > nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem 1.5rem; padding: 0 0 1.5rem; }
.trial-contents a { display: flex; align-items: center; min-height: 44px; font-size: .8rem; font-weight: 500; line-height: 1.7; padding: .65rem 0; text-decoration: none; }
.trial-sections.page-copy { max-width: none; }
.trial-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); column-gap: clamp(2rem, 7vw, 7rem); padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-bottom: 1px solid #2f2b22; scroll-margin-top: calc(var(--madola-header-height, 145px) + 1rem); }
.trial-section-heading { min-width: 0; }
.trial-section-number { display: block; font-size: .7rem; color: var(--madola-gold); letter-spacing: .16em; margin-bottom: 1.25rem; }
body .trial-section h2 { font-size: clamp(1.35rem, 2.15vw, 2rem); line-height: 1.4; margin: 0; letter-spacing: -.015em; color: #eee9df !important; }
.trial-section-content { min-width: 0; }
body .trial-section-content :is(p, li) { font-size: 1.05rem; font-weight: 500; line-height: 1.85; color: #e8e4dc !important; }
.trial-section-content p { margin: 0 0 1.1rem; }
.trial-section-content p:last-child { margin-bottom: 0; }
.trial-section-content > :is(ul, ol) { columns: 2; column-gap: 2.5rem; padding-left: 1.1rem; margin: 1.4rem 0; }
.trial-section-content > :is(ul, ol) li { break-inside: avoid; padding-right: .5rem; }
.trial-section-photo { margin: 0 0 1.8rem; overflow: hidden; }
.trial-section-photo img { display: block; width: 100%; aspect-ratio: 16/10; height: auto; object-fit: cover; }
.trial-feature-section:nth-child(even) .trial-section-photo img { aspect-ratio: 16/11; }
.trial-section .content-faq { margin: 0; padding: 1.2rem 0; border: 0; border-bottom: 1px solid #393326; border-radius: 0; }
body .trial-section .content-faq summary { font-size: 1rem; line-height: 1.75; color: #f2eee5 !important; padding-right: 1rem; }
.trial-section .content-faq p { margin: 1rem 0 0; }
.trial-process { border-left: 1px solid #514528; margin: 1.5rem 0 .5rem .4rem; padding-left: 1.7rem; }
.trial-step { position: relative; padding: 0 0 2rem; }
.trial-step::before { content: ''; position: absolute; top: .55rem; left: -1.98rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--madola-gold); }
.trial-step:last-child { padding-bottom: 0; }
body .trial-step h3 { margin: 0 0 .7rem; font-family: var(--madola-body-font) !important; font-size: .9rem; font-weight: 600; line-height: 1.7; }
.trial-service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem; padding: 2.5rem 0 3.5rem; border-bottom: 1px solid #2f2b22; }
body .trial-service-card { display: flex; flex-direction: column; gap: 1.4rem; padding: 1.5rem 0 0; border-bottom: 0; border-top: 1px solid #82703d; background: transparent !important; }
.trial-service-card h2 { font-size: 1.25rem !important; }
.trial-service-card .trial-section-content { flex: 1; }
.trial-about-us .trial-section-content > p:only-child { font-size: 1.05rem; }
.trial-guide-hero { min-height: 600px; padding-bottom: 1rem; }
.trial-guide-hero .trial-hero-media { padding: 2rem 3rem; background: #11100d; }
.trial-guide-hero .trial-hero-media::before { inset: 1rem; border-color: #393326; }
.trial-guide-preview { display: block; position: relative; transform: rotate(3deg); transition: transform .25s ease; box-shadow: 0 16px 40px #000; }
.trial-guide-preview:hover { transform: rotate(0); }
.trial-guide-preview img { display: block; width: 100%; height: auto; }
.trial-design-guide .trial-introduction { margin: 1rem 0; max-width: 650px; padding-bottom: 1rem; }
.trial-editorial-page > :is(.page-actions, .page-project-cta) { margin-top: 3rem; padding: 2.5rem 0 0; border-top: 1px solid #393326; }
.trial-editorial-page .page-actions .btn { font-size: .8rem; padding: .85rem 1.3rem; }
.trial-our-design-team .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trial-our-design-team .trial-section:has(.team-grid) { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 768px) and (max-width: 991.98px) { .trial-our-design-team .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Supplied document layouts keep their content and imagery, with shared spacing. */
.design-trial-shell.client-page-shell { width: 100%; }
.design-trial-shell.client-page-shell > :is(h1, nav) { width: min(1240px, calc(100% - 5rem)); }
.design-trial-shell.client-page-shell > h1 { color: #f4f0e8 !important; font-size: clamp(2rem, 4vw, 3.6rem); margin-bottom: 3rem; }
#site-header.design-trial-header .trial-menu-heading, #site-header.design-trial-header .trial-menu-footer, .trial-menu-secondary { display: none; }
@media (max-width: 991.98px) {
    body:has(#site-header.design-trial-header) .top-bar .contact-info { display: none; }
    #site-header.design-trial-header .main-nav-wrap { border-bottom: 1px solid #302b20; backdrop-filter: none; -webkit-backdrop-filter: none; }
    #site-header.design-trial-header .navbar { min-height: 68px !important; }
    #site-header.design-trial-header .navbar-brand { padding-block: .5rem; }
    #site-header.design-trial-header .logo-img { width: 48px !important; }
    body #site-header.design-trial-header .navbar-toggler { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; padding: 11px; border: 0; border-radius: 0; background: transparent !important; line-height: 1; }
    #site-header.design-trial-header .trial-hamburger-icon { display: block; flex: 0 0 22px; width: 22px; height: 22px; }
    #site-header.design-trial-header #navbarScroll { position: fixed; inset: 0; z-index: 1100; width: 100%; height: 100vh !important; height: 100dvh !important; min-height: 0; max-height: none; padding: max(1rem, env(safe-area-inset-top)) max(1.4rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.4rem, env(safe-area-inset-left)); margin: 0; border: 0; border-radius: 0; background: #080808 !important; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; backdrop-filter: none; animation: none; }
    #site-header.design-trial-header #navbarScroll.collapsing { transition: none; }
    #site-header.design-trial-header .trial-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #393326; color: #d4af37; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
    .trial-menu-close { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border: 1px solid #514528; color: #eee9df; font-size: 1.8rem; line-height: 1; }
    #site-header.design-trial-header #navbarScroll .navbar-nav { width: 100%; max-height: none; margin: 1rem 0 !important; padding: 0; overflow: visible; }
    #site-header.design-trial-header #navbarScroll .nav-item { margin: 0; padding: 0; list-style: none; }
    body #site-header.design-trial-header #navbarScroll .nav-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: .85rem .1rem; margin: 0; border-bottom: 1px solid #25231e !important; text-align: left; font-size: 1.05rem; font-weight: 500; line-height: 1.5; text-transform: none; }
    #site-header.design-trial-header #navbarScroll .nav-link::before { display: none; }
    #site-header.design-trial-header #navbarScroll .dropdown-toggle::after { margin: 0 .5rem 0 1rem; }
    body #site-header.design-trial-header #navbarScroll .dropdown-menu { position: static !important; transform: none !important; float: none; padding: .5rem 0 .75rem 1rem; margin: 0; min-width: 0; width: 100%; border: 0; border-left: 1px solid #514528; border-radius: 0; box-shadow: none; background: transparent !important; }
    body #site-header.design-trial-header #navbarScroll .dropdown-item { display: block; min-height: 44px; padding: .7rem .8rem; text-align: left; font-size: .85rem; line-height: 1.7; white-space: normal; }
    #site-header.design-trial-header .trial-menu-secondary { display: block; padding: 1.5rem 0 .5rem; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: #9a917e !important; }
    body #site-header.design-trial-header #navbarScroll .trial-secondary-link .nav-link { font-size: .88rem; min-height: 44px; }
    #site-header.design-trial-header .trial-menu-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-top: 2rem; padding-bottom: .5rem; }
    .trial-menu-footer .btn { width: 100%; padding: .95rem 1rem; font-size: .85rem; }
    .trial-menu-footer > a:not(.btn) { font-size: .8rem; text-decoration: none; }
    body.trial-nav-open { overflow: hidden; }
    body.trial-nav-open #site-header { transform: none !important; pointer-events: auto; }
    .trial-hero { gap: 2rem; }
}
@media (max-width: 767px) {
    .design-trial-shell { width: calc(100% - 2.5rem); padding-bottom: 3.5rem; }
    .design-trial-shell > nav[aria-label="Breadcrumb"] { margin-bottom: 1.5rem; font-size: .65rem; line-height: 1.8; }
    .trial-hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-bottom: 2.5rem; }
    .trial-hero-copy { padding: .5rem 0 0; }
    body .trial-hero h1 { max-width: 19ch; font-size: clamp(2rem, 8.8vw, 3rem); line-height: 1.18; margin-bottom: 1.5rem; }
    .trial-hero h1::before { margin-bottom: 1.25rem; width: 38px; }
    body .trial-lead p { font-size: 1rem; line-height: 1.85; }
    .trial-hero-media { margin-top: .5rem; padding-left: .6rem; padding-bottom: .6rem; }
    .trial-hero-media > img, .trial-hero-media > .video-frame { aspect-ratio: 4/3; }
    .trial-introduction { padding-bottom: 2rem; }
    body .trial-introduction p { font-size: 1rem; }
    .trial-contents { margin-bottom: .5rem; }
    .trial-contents > nav { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
    .trial-contents a { font-size: .8rem; }
    .trial-section { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding-block: 2.5rem; }
    .trial-section-number { margin-bottom: .7rem; font-size: .65rem; }
    body .trial-section h2 { font-size: 1.35rem; line-height: 1.45; max-width: 28ch; }
    body .trial-section-content :is(p, li) { font-size: 1rem; line-height: 1.85; }
    .trial-section-content > :is(ul, ol) { columns: 1; }
    .trial-service-cards { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 1.5rem 2.5rem; }
    .trial-service-card { gap: 1rem; padding-top: 1.5rem; }
    .trial-guide-hero { min-height: 0; }
    .trial-guide-hero .trial-hero-media { width: min(330px, 100%); margin: .5rem auto 0; padding: 1.7rem 2rem; }
    .trial-editorial-page > .page-actions { flex-direction: column; align-items: stretch; gap: 1rem; }
    .trial-editorial-page > .page-actions .btn { width: 100%; text-align: center; }
    .design-trial-shell.client-page-shell > :is(h1, nav) { width: calc(100% - 2.5rem); }
    .trial-our-design-team .team-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .trial-guide-preview { transition: none; transform: none; } }

body .trial-section-content p.trial-pullquote { margin: 1.8rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 2px solid var(--madola-gold); font-family: var(--madola-heading-font) !important; font-size: clamp(1.25rem, 2.1vw, 1.8rem); line-height: 1.6; color: #e5d2a0 !important; }
body .trial-guide-introduction p { font-size: 1rem; font-weight: 500; line-height: 1.85; color: #e8e4dc !important; margin: 1.2rem 0 0; }
.trial-hero-copy .page-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.trial-hero-copy .page-actions .btn { font-size: .75rem; padding: .85rem 1rem; }
@media (max-width: 767px) { .trial-hero-copy .page-actions { flex-direction: column; align-items: stretch; } .trial-hero-copy .page-actions .btn { text-align: center; } }

/* Service hero media sits directly in the layout, without an offset frame. */
:is(.trial-interior-exterior-finishes, .trial-residential-construction, .trial-residential-renovation) .trial-hero-media::before { content: none; }
:is(.trial-interior-exterior-finishes, .trial-residential-construction, .trial-residential-renovation) .trial-hero-media { padding: 0; }

/* Show where section-navigation links land, including keyboard navigation. */
.trial-section:target .trial-section-heading { padding-left: 1rem; border-left: 2px solid var(--madola-gold); }
