/*
Theme Name: 3D Global Block Theme
Description: Editable block theme for 3D Global.
Version: 0.2.7
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: 3dglobal
*/

:root {
    --three-d-border: #d2deec;
    --three-d-gutter: clamp(1.25rem, 5vw, 5.5rem);
}

.site-header, .site-footer, .site-page {
    padding: 1.25rem var(--three-d-gutter);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid var(--three-d-border);
    font-weight: 700;
}

.site-header .wp-block-image {
    width: clamp(6rem, 12vw, 9rem);
    flex: none;
}

.site-header .wp-block-navigation a {
    color: inherit;
}

.site-footer {
    padding-block: 3rem;
    background: var(--wp--preset--color--ink);
    color: var(--wp--preset--color--white);
}

.site-footer a { color: inherit; }
.site-footer .wp-block-image { max-width: 9rem; }
.site-page { padding-block: 3rem 5rem; }

.home-blocks section { margin-block-start: 0; }

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    min-height: min(43rem, 85vh);
    background: linear-gradient(125deg, #e4f1ff, #f8fbff);
    padding: 3rem 0 3rem var(--three-d-gutter);
}

.home-hero h1 {
    font-size: clamp(2.8rem, 6.2vw, 7.4rem);
    letter-spacing: -.06em;
    margin-block: .8rem 1.5rem;
}

.home-blocks h1 em, .home-blocks h2 em { color: var(--wp--preset--color--blue); }

.home-hero .hero-intro {
    font: clamp(1.05rem, 1.8vw, 1.5rem)/1.55 var(--wp--preset--font-family--rufina);
    max-width: 38ch;
}

.home-hero .hero-visual { position: relative; }
.home-hero .hero-image img {
    display: block;
    width: 100%;
    min-height: 25rem;
    object-fit: cover;
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}

.home-hero .hero-card {
    position: absolute;
    left: 6%;
    bottom: 6%;
    width: min(18rem, 60%);
    padding: clamp(.7rem, 2vw, 1.6rem);
    background: rgba(7, 27, 46, .94);
    color: white;
    border: 1px solid #a3c5e561;
}

.hero-card p { margin-block: .3rem; }
.hero-trustmarks {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-inline-start: 6%;
    font-size: .85rem;
}

.eyebrow {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.home-section, .home-proof { padding: clamp(2.5rem, 6vw, 5rem) var(--three-d-gutter); }
.home-section h2 { font-size: clamp(2.2rem, 4vw, 4.25rem); margin-block: .75rem; }
.home-proof { background: var(--wp--preset--color--ice); }
.home-proof, .home-columns, .home-card-grid, .team-directory .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    align-items: start;
    gap: 1.25rem;
}
.home-card, .team-directory .wp-block-post {
    padding: 1.25rem;
    border: 1px solid var(--three-d-border);
    background: white;
}
.home-card h3 { margin-block: .4rem; font-size: clamp(1.3rem, 2vw, 2rem); }
.home-section.is-tinted { background: var(--wp--preset--color--ice); }
.home-blocks .wp-block-buttons { gap: .75rem; margin-block-start: 1.5rem; }
.team-directory .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 780px) {
    .site-header { flex-wrap: wrap; }
    .home-hero { grid-template-columns: 1fr; padding: 2rem var(--three-d-gutter); }
    .home-hero .hero-image img { min-height: auto; clip-path: none; }
    .home-hero .hero-card { position: static; width: auto; }
    .hero-trustmarks { padding-inline-start: 0; }
}

.three-d-isolated-form, .three-d-isolated-calculator {
    border: 1px solid var(--three-d-border);
    background: white;
    padding: clamp(1rem, 3vw, 2rem);
}
.three-d-isolated-form label, .three-d-isolated-calculator label {
    display: block;
    margin-block: .65rem;
}
.three-d-isolated-form :is(input, select, textarea),
.three-d-isolated-calculator :is(input, select) {
    max-width: 100%;
    font: inherit;
}
.three-d-isolated-form :is(input:not([type="checkbox"]):not([type="hidden"]), select, textarea) {
    width: 100%;
}
.three-d-isolated-form button, .three-d-isolated-calculator button { cursor: pointer; }
.three-d-isolated-calculator output, .three-d-isolated-calculator .tool-result strong {
    display: block;
    font-size: 1.5rem;
}
.three-d-isolated-form .form-trap, .three-d-isolated-calculator .form-trap {
    position: absolute;
    left: -10000px;
}
.three-d-isolated-form .date-picker-popover[hidden] { display: none; }
